:root {
  --paper: var(--ui-paper);
  --ink: var(--ui-ink);
  --text: var(--ui-text);
  --muted: var(--ui-muted);
  --soft: var(--ui-soft);
  --soft-2: var(--ui-soft-2);
  --soft-3: var(--ui-soft-3);
  --accent: var(--ui-accent);
  --accent-deep: var(--ui-accent-deep);
  --sage: var(--ui-sage);
  --line: var(--ui-line);
  --error: var(--ui-danger);
  --radius: var(--ui-radius);
  --max: 1160px;
  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui-font-sans);
  font-size: 17px;
  line-height: 1.5;
}

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

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

button,
input,
textarea {
  font: inherit;
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

article,
.hero-copy,
.section-head,
.compare-column,
.about-copy,
.review-card,
.certificate-card {
  min-width: 0;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 20;
  transform: translateY(-140%);
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 10;
  width: min(var(--max), calc(100% - 42px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  padding-top: 32px;
}

.brand {
  color: var(--accent-deep);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.header-cta {
  display: inline-flex;
  max-width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 24px;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(166, 77, 109, 0.18);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  background: var(--accent-deep);
  box-shadow: 0 18px 42px rgba(120, 51, 77, 0.23);
}

@media (min-width: 681px) and (max-width: 920px) {
  .site-header .header-actions {
    gap: 8px;
  }

  .site-header .header-link {
    font-size: 13px;
  }

  .site-header .header-cta {
    min-height: 46px;
    padding: 11px 16px;
    font-size: 13px;
  }
}

.hero {
  width: min(var(--max), calc(100% - 42px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 54px;
  align-items: center;
  min-height: 620px;
  margin: 0 auto;
  padding: 96px 0 48px;
}

.hero-photo {
  order: 2;
  width: min(100%, 445px);
  justify-self: end;
  overflow: hidden;
  aspect-ratio: 0.86 / 1.08;
  border-radius: 86px;
  background: var(--soft-2);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
}

.hero-illustration {
  border: 1px solid rgba(166, 77, 109, 0.12);
  background: #faf7f2;
  box-shadow: 0 28px 64px rgba(97, 69, 88, 0.1);
}

.hero-illustration img {
  object-position: center;
}

.directions {
  border-top: 1px solid var(--line);
}

.hero-copy {
  order: 1;
  padding-top: 0;
}

.hero-kicker {
  max-width: 520px;
  margin-bottom: 18px;
  color: var(--sage);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 660px;
  margin-bottom: 18px;
  color: var(--ink);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--accent);
}

.hero-name {
  margin-bottom: 5px;
  color: var(--accent-deep);
  font-size: 26px;
}

.hero-role {
  max-width: 500px;
  margin-bottom: 26px;
  color: var(--text);
  font-size: 21px;
}

.hero-footnote {
  max-width: 500px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
}

.hero-price {
  max-width: 500px;
  margin-top: 22px;
  color: var(--accent-deep);
  font-size: 19px;
}

.hero-price strong {
  font-weight: 800;
}

.button {
  display: inline-flex;
  max-width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(166, 77, 109, 0.22);
}

.button.primary:hover {
  transform: translateY(-1px);
  background: var(--accent-deep);
  box-shadow: 0 18px 42px rgba(120, 51, 77, 0.25);
}

.button.secondary {
  min-height: 52px;
  border: 1px solid rgba(120, 51, 77, 0.18);
  background: #ffffff;
  color: var(--accent-deep);
  box-shadow: 0 12px 28px rgba(97, 69, 88, 0.08);
}

.button.secondary:hover {
  transform: translateY(-1px);
  background: var(--soft);
}

.button.full {
  width: 100%;
}

.quote {
  width: min(960px, calc(100% - 42px));
  margin: 0 auto;
  padding: 96px 0 104px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.quote p {
  color: var(--ink);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 46px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.16;
}

.quote span {
  display: block;
  margin-top: 28px;
  color: var(--muted);
  font-size: 18px;
}

.section {
  width: min(var(--max), calc(100% - 42px));
  margin: 0 auto;
  padding: 104px 0;
}

.section-head {
  max-width: 810px;
  margin: 0 auto 70px;
  text-align: center;
}

.section h2,
.cta-band h2,
.consultation h2 {
  color: var(--ink);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p,
.consultation-head p {
  max-width: 720px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.direction-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 66px 56px;
}

.direction-list article {
  max-width: 500px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.direction-list h3,
.changes-grid h3,
.steps h3,
.impact-list h3,
.numbered-list h3,
.diagnostic-grid h3 {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.12;
}

.direction-list p,
.changes-grid p,
.steps p,
.case-list p,
.impact-list p,
.numbered-list p,
.diagnostic-grid p,
.faq-list p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.52;
}

.cta-band {
  width: min(920px, calc(100% - 42px));
  margin: 10px auto 0;
  padding: 92px 0 112px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta-band h2 {
  max-width: 760px;
  margin: 0 auto 30px;
  color: #555157;
  font-size: 46px;
}

.cta-band p {
  max-width: 740px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.pressure,
.method,
.diagnostic {
  width: 100%;
  max-width: none;
  background: linear-gradient(180deg, #ffffff 0, #fbf7fb 100%);
}

.pressure > *,
.method > *,
.diagnostic > * {
  width: min(var(--max), calc(100% - 42px));
  margin-left: auto;
  margin-right: auto;
}

.impact-list,
.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.impact-list article,
.diagnostic-grid article {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.impact-list h3,
.diagnostic-grid h3 {
  font-size: 25px;
}

.impact-list p,
.diagnostic-grid p {
  color: var(--muted);
  font-size: 18px;
}

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

.numbered-list article {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 34px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.numbered-list span {
  color: var(--sage);
  font-size: 18px;
  font-weight: 800;
}

.numbered-list article > span {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.numbered-list article > h3,
.numbered-list article > p {
  grid-column: 2;
  min-width: 0;
}

.numbered-list h3 {
  font-size: 28px;
}

.section-note {
  max-width: 780px;
  margin: 38px auto 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.55;
  text-align: center;
}

.quote-second {
  border-top: 0;
}

.changes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.changes-grid article {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.changes-grid h3 {
  font-size: 22px;
}

.changes-grid p {
  color: var(--muted);
  font-size: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.steps article {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.steps span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--soft-2);
  color: var(--accent);
  font-weight: 800;
}

.steps h3 {
  font-size: 26px;
}

.steps p {
  color: var(--muted);
  font-size: 18px;
}

.specialists {
  border-top: 1px solid var(--line);
}

.specialist-grid {
  display: grid;
  gap: 26px;
}

.specialist-card {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid rgba(120, 51, 77, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 247, 251, 0.96)),
    var(--soft);
  box-shadow: 0 20px 48px rgba(97, 69, 88, 0.07);
}

.specialist-photo {
  display: block;
  overflow: hidden;
  min-height: 236px;
  border-radius: var(--radius);
  background: var(--soft-2);
}

.specialist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.specialist-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.specialist-label {
  color: var(--sage);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.specialist-copy h3 {
  color: var(--accent);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.08;
}

.specialist-copy > p:not(.specialist-label) {
  max-width: 720px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.52;
}

.specialist-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 190px));
  gap: 12px;
  margin: 4px 0 0;
}

.specialist-facts div {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(120, 51, 77, 0.1);
}

.specialist-facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.specialist-facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.specialist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  font-size: 16px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.before-after {
  border-top: 1px solid var(--line);
}

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

.compare-column {
  padding: 38px;
  border: 1px solid rgba(120, 51, 77, 0.12);
  border-radius: 34px;
  background: var(--soft-2);
}

.compare-column-after {
  background: var(--soft-2);
}

.compare-column h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.12;
}

.compare-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.compare-icon-before {
  background: var(--accent);
}

.compare-icon-after {
  background: var(--sage);
}

.compare-column ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
}

.compare-column li {
  color: var(--text);
  font-size: 20px;
  line-height: 1.55;
}

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

.case-list article {
  display: grid;
  gap: 16px;
  align-content: start;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.case-list .case-tag {
  color: var(--sage);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-list h3 {
  color: var(--accent);
  font-size: 28px;
  font-weight: 400;
}

.case-list p {
  font-size: 18px;
}

.case-list strong {
  color: var(--ink);
}

.reviews {
  padding-top: 86px;
}

.review-gallery {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.review-gallery figure {
  display: grid;
  flex: 0 0 calc((100% - 24px) / 2);
  gap: 12px;
  scroll-snap-align: start;
}

.image-link {
  display: block;
  color: inherit;
}

.image-link:focus-visible {
  outline: 3px solid rgba(166, 77, 109, 0.34);
  outline-offset: 4px;
}

.review-gallery .image-link {
  display: grid;
  height: clamp(360px, 42vw, 560px);
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  background: #141217;
  box-shadow: 0 22px 50px rgba(97, 69, 88, 0.11);
}

.review-gallery .review-screenshot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.review-gallery figcaption {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.review-card {
  display: grid;
  flex: 0 0 calc((100% - 24px) / 2);
  min-height: 260px;
  align-content: start;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(251, 247, 251, 0.98)),
    var(--soft);
  box-shadow: 0 22px 50px rgba(97, 69, 88, 0.08);
  scroll-snap-align: start;
}

.review-card span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.review-card p {
  color: var(--text);
  font-size: 18px;
  line-height: 1.52;
}

.review-slider,
.certificate-slider {
  position: relative;
}

.slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: -28px 0 24px;
}

.slider-button {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(51, 50, 54, 0.12);
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent-deep);
  box-shadow: 0 12px 30px rgba(97, 69, 88, 0.11);
  cursor: pointer;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.slider-button:hover {
  transform: translateY(-1px);
  background: var(--soft);
}

.slider-button:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.slider-track {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 2px 24px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.certificate-track {
  display: flex;
  gap: 28px;
}

.certificate-card {
  display: grid;
  flex: 0 0 calc((100% - 28px) / 2);
  gap: 16px;
  align-content: start;
  scroll-snap-align: start;
}

.certificate-frame {
  display: grid;
  min-height: 360px;
  place-items: center;
  border: 1px dashed rgba(120, 51, 77, 0.28);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(242, 230, 240, 0.72)),
    var(--soft);
  color: var(--accent-deep);
  text-align: center;
}

.certificate-frame span {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(97, 69, 88, 0.09);
  font-size: 15px;
  font-weight: 800;
}

.certificate-document {
  display: grid;
  height: clamp(360px, 42vw, 560px);
  place-items: center;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(120, 51, 77, 0.12);
  border-radius: 34px;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(97, 69, 88, 0.09);
}

.certificate-document img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.certificate-card h3 {
  color: var(--accent);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.14;
  text-align: center;
}

.certificate-card p {
  max-width: 420px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.52;
  text-align: center;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.about-photo {
  overflow: hidden;
  aspect-ratio: 0.9 / 1;
  border-radius: 70px;
  background: var(--soft-2);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.about-copy h2 {
  margin-bottom: 24px;
}

.about-copy p,
.about-copy li {
  color: var(--text);
  font-size: 21px;
  line-height: 1.55;
}

.about-copy ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding-left: 22px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.about-stats p {
  display: grid;
  gap: 4px;
}

.about-stats strong {
  color: var(--accent);
  font-size: 28px;
  font-weight: 400;
}

.about-stats span {
  color: var(--muted);
  font-size: 15px;
}

.service-trust {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 68px;
  align-items: start;
}

.service-trust-copy h2 {
  margin-bottom: 28px;
}

.service-trust-copy p {
  max-width: 720px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.62;
}

.service-trust-copy p + p {
  margin-top: 18px;
}

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

.trust-principles p {
  display: grid;
  gap: 7px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.trust-principles strong {
  color: var(--accent);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 28px;
  font-weight: 400;
}

.trust-principles span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

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

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--accent-deep);
  cursor: pointer;
  font-size: 25px;
  font-weight: 400;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--sage);
  font-size: 30px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  max-width: 820px;
  padding: 0 0 26px;
  font-size: 18px;
}

.consultation {
  width: min(930px, calc(100% - 42px));
  margin: 0 auto 88px;
  padding: 106px 0 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 28px;
}

.consultation-head {
  margin-bottom: 44px;
  text-align: center;
}

.lead-form {
  display: grid;
  gap: 18px;
  padding: 42px;
  border-radius: 36px;
  background: var(--soft);
}

.company-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

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

.field span {
  color: var(--ink);
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(51, 50, 54, 0.16);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

.field input {
  min-height: 56px;
  padding: 14px 16px;
}

.field textarea {
  min-height: 138px;
  padding: 15px 16px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(166, 77, 109, 0.16);
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.consent input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.consent a {
  color: var(--accent-deep);
  font-weight: 800;
}

.has-error input,
.has-error textarea {
  border-color: var(--error);
}

.form-status {
  min-height: 24px;
  color: var(--error);
  font-size: 15px;
  line-height: 1.45;
}

.form-status.success {
  color: var(--accent-deep);
}

.inner-header {
  position: relative;
  left: auto;
  transform: none;
  margin: 0 auto;
}

.page-hero {
  width: min(980px, calc(100% - 42px));
  margin: 0 auto;
  padding: 58px 0 46px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 auto 22px;
  color: var(--ink);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: 0;
}

.page-hero p:not(.hero-kicker) {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text);
  font-size: 19px;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.matching-workspace {
  width: min(var(--max), calc(100% - 42px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 44px;
  align-items: start;
  margin: 0 auto;
  padding: 46px 0 104px;
}

.matching-form {
  display: grid;
  gap: 38px;
}

.matching-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.matching-progress span,
.catalog-status {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.matching-progress strong {
  color: var(--accent);
  font-size: 18px;
}

.choice-group {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  margin-bottom: 18px;
  color: var(--ink);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.14;
}

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

.choice-group.compact legend {
  grid-column: 1 / -1;
}

.choice-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 13px;
  align-items: start;
  padding: 17px;
  border: 1px solid rgba(51, 50, 54, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(97, 69, 88, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.choice-card-warning {
  border-color: rgba(164, 66, 52, 0.34);
  background: #fffafa;
}

[data-matching-step][hidden] {
  display: none !important;
}

.matching-step-controls {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr minmax(120px, auto);
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.matching-step-controls > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.matching-step-controls [data-matching-next] {
  grid-column: 3;
}

.choice-card:hover,
.choice-card.is-selected {
  border-color: rgba(166, 77, 109, 0.46);
  background: var(--soft);
  box-shadow: 0 16px 34px rgba(97, 69, 88, 0.09);
}

.choice-card input {
  width: 19px;
  height: 19px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.choice-card span {
  min-width: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.28;
}

.choice-card small {
  grid-column: 2;
  min-width: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.42;
}

.matching-submit {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.recommendation-panel {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 24px;
  padding: 30px;
  border: 1px solid rgba(120, 51, 77, 0.12);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: 0 22px 54px rgba(97, 69, 88, 0.09);
}

.matching-route-preview {
  display: grid;
  gap: 5px;
  border-left: 3px solid var(--line);
  padding: 4px 0 4px 14px;
}

.matching-route-preview strong {
  color: var(--ink);
  font-size: 15px;
}

.matching-route-preview span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.matching-route-preview.is-high,
.matching-route-preview.is-medium {
  border-left-color: var(--sage);
}

.matching-route-preview.is-no-match {
  border-left-color: var(--accent);
}

.matching-route-preview.is-urgent {
  border-left-color: var(--error);
}

.recommendation-panel-head {
  display: grid;
  gap: 16px;
}

.recommendation-panel h2 {
  color: var(--ink);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
}

.selection-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.selection-summary span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: #ffffff;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(120, 51, 77, 0.12);
}

.recommendation-list {
  display: grid;
  gap: 12px;
}

.recommendation-empty {
  display: grid;
  gap: 10px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.recommendation-urgent {
  border-left: 3px solid var(--error);
  padding-left: 18px;
}

.matching-decision {
  width: min(980px, calc(100% - 42px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin: 34px auto 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--sage);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}

.matching-decision.is-no_match {
  border-left-color: var(--accent);
}

.matching-decision.is-urgent {
  border-left-color: var(--error);
}

.matching-decision h2 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 30px;
  font-weight: 400;
}

.matching-decision p:not(.hero-kicker) {
  max-width: 720px;
  color: var(--text);
}

.matching-confidence,
.match-confidence {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.match-confidence {
  margin-top: 4px;
}

.recommendation-empty h2 {
  color: var(--accent);
  font-size: 25px;
}

.recommendation-empty p {
  color: var(--text);
  font-size: 17px;
}

.recommendation-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.recommendation-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.recommendation-row > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-2);
  color: var(--accent);
  font-weight: 800;
}

.recommendation-row h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.recommendation-row p {
  color: var(--accent-deep);
  font-size: 15px;
  font-weight: 800;
}

.recommendation-row small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.catalog-section,
.result-section {
  padding-top: 58px;
}

.catalog-toolbar {
  display: grid;
  gap: 28px;
  margin-bottom: 36px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-group p {
  flex: 0 0 100%;
  color: var(--sage);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-chip {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(51, 50, 54, 0.14);
  border-radius: 999px;
  padding: 9px 14px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.filter-chip input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.filter-chip.is-selected {
  border-color: rgba(166, 77, 109, 0.48);
  background: var(--soft);
  color: var(--accent-deep);
}

.catalog-status-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.text-button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.match-list {
  display: grid;
  gap: 24px;
}

.match-card {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid rgba(120, 51, 77, 0.12);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: 0 20px 48px rgba(97, 69, 88, 0.07);
}

.match-photo {
  display: block;
  overflow: hidden;
  min-height: 220px;
  border-radius: 8px;
  background: var(--soft-2);
}

.match-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.match-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.match-copy h3 {
  color: var(--accent);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.08;
}

.match-role {
  color: var(--accent-deep);
  font-size: 16px;
  font-weight: 800;
}

.match-recommendation-role {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 2px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  color: var(--accent-deep);
  font-size: 15px;
  font-weight: 800;
}

.match-recommendation-role span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 12px;
}

.match-copy > p:not(.specialist-label):not(.match-role),
.match-best {
  color: var(--text);
  font-size: 18px;
  line-height: 1.52;
}

.match-best {
  padding-left: 16px;
  border-left: 3px solid rgba(127, 142, 116, 0.45);
}

.match-reasons {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.match-reasons li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.match-reasons li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

.match-evidence {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.match-evidence-group {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.match-evidence-group h4 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

.match-evidence-group.is-caveat .match-reasons li::before {
  background: var(--warning, #a86f16);
}

.match-evidence-group.is-difference .match-reasons li::before {
  background: var(--muted);
}

.empty-state {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 58px 30px;
  border: 1px solid rgba(120, 51, 77, 0.12);
  border-radius: 30px;
  background: var(--soft);
  text-align: center;
}

.empty-state h2 {
  max-width: 620px;
  color: var(--ink);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.12;
}

.empty-state p {
  max-width: 620px;
  color: var(--text);
  font-size: 19px;
}

.result-summary {
  justify-content: center;
  margin-top: 28px;
}

.result-consultation {
  margin-bottom: 92px;
}

.result-alternative {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.result-alternative h3 {
  color: var(--ink);
  font-size: 24px;
}

.result-alternative p {
  max-width: 720px;
  margin-top: 7px;
  color: var(--text);
}

.booking-layout {
  width: min(var(--max), calc(100% - 42px));
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: 52px;
  align-items: start;
  margin: 0 auto;
  padding: 76px 0 104px;
}

.booking-specialist {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(120, 51, 77, 0.12);
  border-radius: 30px;
  background: var(--soft);
}

.booking-specialist > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  object-fit: cover;
  object-position: center 28%;
}

.booking-specialist > div {
  display: grid;
  gap: 13px;
}

.booking-specialist h2,
.booking-success h2 {
  color: var(--ink);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.08;
}

.booking-specialist p:not(.specialist-label) {
  color: var(--text);
  font-size: 17px;
}

.booking-specialist-role {
  color: var(--accent-deep) !important;
  font-weight: 800;
}

.booking-form-wrap {
  min-width: 0;
}

.booking-form-head {
  text-align: left;
}

.booking-form-head p {
  margin: 10px 0 0;
}

.booking-form {
  padding: 36px;
  border-radius: 30px;
}

.field select {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(51, 50, 54, 0.16);
  border-radius: var(--radius);
  padding: 14px 42px 14px 16px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(166, 77, 109, 0.16);
}

.booking-preferences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.booking-contact-method {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.booking-contact-method legend {
  flex: 0 0 100%;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 800;
}

.booking-contact-method label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(51, 50, 54, 0.14);
  border-radius: 999px;
  padding: 9px 14px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.booking-contact-method input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.booking-slot-picker {
  display: grid;
  gap: 12px;
  margin: 0;
  border: 0;
  padding: 0;
}

.booking-slot-picker legend {
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 800;
}

.booking-slot-hint {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

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

.booking-slot-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 72px;
  border: 1px solid rgba(51, 50, 54, 0.14);
  border-radius: 8px;
  padding: 13px;
  background: #ffffff;
  cursor: pointer;
}

.booking-slot-option:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(166, 77, 109, 0.12);
}

.booking-slot-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.booking-slot-option span,
.booking-slot-option small {
  min-width: 0;
}

.booking-slot-option strong,
.booking-slot-option small {
  display: block;
}

.booking-slot-option strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.booking-slot-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.booking-slot-manual {
  min-height: 64px;
  background: var(--soft-3);
}

.booking-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.booking-success {
  display: grid;
  gap: 20px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.booking-success[hidden] {
  display: none;
}

.booking-success p:not(.hero-kicker) {
  max-width: 620px;
  color: var(--text);
  font-size: 19px;
}

.payment-page {
  min-height: calc(100vh - 220px);
}

.payment-hero {
  padding-bottom: 44px;
}

.payment-shell {
  width: min(760px, calc(100% - 42px));
  margin: 0 auto;
  padding: 0 0 104px;
}

.payment-panel {
  border: 1px solid rgba(120, 51, 77, 0.16);
  border-radius: 8px;
  padding: 34px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(44, 35, 40, 0.08);
}

.payment-state {
  display: inline-block;
  margin-bottom: 24px;
  border-radius: 6px;
  padding: 8px 11px;
  background: var(--soft);
  color: var(--accent-deep);
  font-weight: 900;
}

.payment-details {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
}

.payment-details[hidden] {
  display: none;
}

.payment-details > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1.3fr);
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.payment-details dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.payment-details dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.payment-note {
  margin: 22px 0 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

.payment-provider-note {
  display: grid;
  gap: 6px;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.payment-provider-note strong,
.payment-provider-note span {
  display: block;
}

.payment-provider-note span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.payment-actions [hidden] {
  display: none;
}

.footer {
  width: min(var(--max), calc(100% - 42px));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
  margin: 0 auto;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--accent-deep);
  font-weight: 800;
}

.footer-cookie-settings {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-deep);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 18px;
  z-index: 40;
  width: min(960px, calc(100% - 36px));
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid rgba(51, 50, 54, 0.13);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(51, 50, 54, 0.16);
  color: var(--text);
  backdrop-filter: blur(16px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.cookie-banner a {
  color: var(--accent-deep);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-button {
  min-height: 46px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 12px 19px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.cookie-button-secondary {
  border: 1px solid rgba(92, 57, 75, 0.28);
  background: #ffffff;
  color: var(--accent-deep);
}

.cookie-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.home-topic-links {
  padding-top: 34px;
}

.home-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.home-topic-grid a {
  min-height: 156px;
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background 0.2s ease;
}

.home-topic-grid a:hover {
  background: var(--soft);
}

.home-topic-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-topic-grid strong {
  color: var(--accent-deep);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.15;
}

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

  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: auto;
    padding-top: 96px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero h1 {
    font-size: 48px;
  }

  .impact-list,
  .diagnostic-grid,
  .changes-grid,
  .steps,
  .specialist-grid,
  .review-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 30px;
  }

  .specialist-card {
    grid-template-columns: 1fr;
  }

  .specialist-photo {
    min-height: 320px;
  }

  .review-gallery figure,
  .review-card,
  .certificate-card {
    flex-basis: calc((100% - 30px) / 2);
  }

  .case-list,
  .about,
  .service-trust,
  .matching-workspace {
    grid-template-columns: 1fr;
  }

  .recommendation-panel {
    position: static;
  }

  .about-photo {
    max-width: 640px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-topic-grid {
    grid-template-columns: 1fr;
  }

  .home-topic-grid a {
    min-height: 126px;
  }

  body {
    font-size: 16px;
    background: var(--paper);
  }

  .site-header {
    display: none;
  }

  .hero {
    width: min(calc(100% - 40px), var(--max));
    gap: 18px;
    padding: 30px 0 18px;
  }

  .hero-photo {
    order: 2;
    width: 100%;
    height: 150px;
    justify-self: center;
    aspect-ratio: auto;
    border-radius: 36px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-photo img {
    object-position: center 52%;
  }

  .hero h1 {
    margin-bottom: 22px;
    font-size: 35px;
    line-height: 1.04;
    overflow-wrap: break-word;
  }

  .hero-name {
    font-size: 22px;
  }

  .hero-role {
    margin-bottom: 28px;
    font-size: 19px;
  }

  .hero-kicker {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .hero-price {
    margin-top: 20px;
    font-size: 18px;
  }

  .hero-actions,
  .matching-submit {
    display: grid;
    gap: 12px;
  }

  .hero-footnote {
    max-width: 330px;
  }

  .button {
    width: 100%;
    min-height: 58px;
    padding: 15px 20px;
  }

  .quote {
    width: min(calc(100% - 40px), 960px);
    padding: 76px 0 80px;
  }

  .quote p {
    font-size: 32px;
  }

  .quote span {
    font-size: 18px;
  }

  .section {
    width: min(calc(100% - 40px), var(--max));
    padding: 78px 0;
  }

  .directions {
    padding-top: 46px;
  }

  .pressure,
  .method,
  .diagnostic {
    width: 100%;
  }

  .pressure > *,
  .method > *,
  .diagnostic > * {
    width: min(calc(100% - 40px), var(--max));
  }

  .section-head {
    margin-bottom: 58px;
  }

  .section h2,
  .cta-band h2,
  .consultation h2 {
    font-size: 36px;
  }

  .section-head p,
  .consultation-head p,
  .cta-band p,
  .section-note {
    font-size: 18px;
  }

  .direction-list,
  .impact-list,
  .diagnostic-grid,
  .changes-grid,
  .steps,
  .specialist-grid,
  .compare-grid,
  .case-list,
  .review-gallery {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .direction-list h3,
  .changes-grid h3,
  .steps h3,
  .impact-list h3,
  .numbered-list h3,
  .diagnostic-grid h3 {
    font-size: 29px;
  }

  .direction-list p,
  .changes-grid p,
  .steps p,
  .specialist-copy > p:not(.specialist-label),
  .impact-list p,
  .numbered-list p,
  .diagnostic-grid p,
  .faq-list p {
    font-size: 18px;
  }

  .specialist-card {
    padding: 20px;
    border-radius: 24px;
  }

  .specialist-photo {
    min-height: 260px;
    border-radius: 20px;
  }

  .specialist-copy h3 {
    font-size: 30px;
  }

  .specialist-facts {
    grid-template-columns: 1fr;
  }

  .specialist-actions {
    display: grid;
    gap: 10px;
  }

  .text-link {
    width: 100%;
  }

  .numbered-list article {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 30px 0;
  }

  .numbered-list article > span,
  .numbered-list article > h3,
  .numbered-list article > p {
    grid-column: 1;
  }

  .numbered-list article > span {
    grid-row: auto;
  }

  .numbered-list span {
    font-size: 16px;
  }

  .cta-band {
    width: min(calc(100% - 40px), 920px);
    padding: 76px 0 88px;
  }

  .compare-column {
    padding: 28px;
  }

  .review-gallery .image-link {
    height: min(132vw, 620px);
  }

  .slider-controls {
    justify-content: center;
    margin: -18px 0 20px;
  }

  .slider-button {
    width: 48px;
    height: 48px;
  }

  .review-gallery {
    gap: 20px;
  }

  .review-gallery figure,
  .review-card,
  .certificate-card {
    flex-basis: 88%;
  }

  .review-card {
    min-height: auto;
    padding: 24px;
    border-radius: 24px;
  }

  .review-card p {
    font-size: 18px;
    line-height: 1.5;
  }

  .certificate-frame {
    min-height: 300px;
    border-radius: 28px;
  }

  .certificate-document {
    height: min(92vw, 430px);
    border-radius: 28px;
    padding: 14px;
  }

  .certificate-card h3 {
    font-size: 25px;
  }

  .about-photo {
    border-radius: 58px;
  }

  .about-copy p,
  .about-copy li {
    font-size: 19px;
  }

  .service-trust {
    gap: 42px;
  }

  .service-trust-copy p {
    font-size: 18px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .faq-list summary {
    min-height: 62px;
    padding: 14px 0;
    font-size: 20px;
  }

  .lead-form {
    padding: 26px;
  }

  .consultation {
    width: min(calc(100% - 40px), 930px);
    padding-top: 80px;
  }

  .page-hero {
    width: min(calc(100% - 40px), 980px);
    padding: 42px 0 56px;
    text-align: left;
  }

  .page-hero h1 {
    font-size: 38px;
    line-height: 1.04;
  }

  .page-hero p:not(.hero-kicker) {
    font-size: 18px;
  }

  .page-hero .hero-actions,
  .result-summary {
    justify-content: stretch;
  }

  .matching-workspace {
    width: min(calc(100% - 40px), var(--max));
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 48px 0 78px;
  }

  .choice-group legend {
    font-size: 29px;
  }

  .choice-group.compact {
    grid-template-columns: 1fr;
  }

  .choice-card {
    border-radius: 8px;
    padding: 15px;
  }

  .recommendation-panel {
    padding: 22px;
    border-radius: 8px;
  }

  .matching-step-controls {
    grid-template-columns: 1fr 1fr;
  }

  .matching-step-controls > span {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .matching-step-controls [data-matching-back] {
    grid-column: 1;
  }

  .matching-step-controls [data-matching-next] {
    grid-column: 2;
  }

  .matching-decision {
    width: min(calc(100% - 40px), 980px);
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .catalog-section,
  .result-section {
    padding-top: 66px;
  }

  .catalog-toolbar {
    padding: 22px 0;
  }

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

  .filter-chip {
    justify-content: flex-start;
    width: 100%;
  }

  .catalog-status-row {
    display: grid;
  }

  .match-card {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 8px;
  }

  .booking-layout {
    width: min(calc(100% - 40px), var(--max));
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 54px 0 78px;
  }

  .booking-specialist {
    position: static;
    border-radius: 24px;
  }

  .booking-specialist h2,
  .booking-success h2 {
    font-size: 31px;
  }

  .booking-form-head {
    margin-bottom: 28px;
  }

  .booking-form {
    padding: 24px;
    border-radius: 24px;
  }

  .booking-preferences {
    grid-template-columns: 1fr;
  }

  .booking-slot-list {
    grid-template-columns: 1fr;
  }

  .match-photo {
    min-height: 260px;
    border-radius: 8px;
  }

  .match-copy h3 {
    font-size: 30px;
  }

  .empty-state {
    padding: 42px 22px;
    border-radius: 24px;
  }

  .empty-state h2 {
    font-size: 31px;
  }

  .footer {
    width: min(calc(100% - 40px), var(--max));
    display: grid;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 18px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* End-to-end journey navigation */
.journey-navigation {
  width: min(980px, calc(100% - 42px));
  display: grid;
  gap: 14px;
  margin: 30px auto 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.journey-return-row {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.journey-back {
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.journey-specialist {
  max-width: 52%;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-steps li {
  min-width: 0;
  border-bottom: 3px solid var(--line);
}

.journey-steps li > a,
.journey-steps li > span {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.journey-steps li.is-complete {
  border-bottom-color: var(--sage);
}

.journey-steps li.is-current {
  border-bottom-color: var(--accent);
}

.journey-steps li.is-complete > a,
.journey-steps li.is-current > span {
  color: var(--ink);
}

.journey-step-number {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: inherit;
  font-size: 11px;
}

.journey-step-label > span:last-child {
  display: none;
}

.journey-steps li.is-complete .journey-step-number {
  border-color: var(--sage);
  background: var(--soft-3);
}

.journey-steps li.is-current .journey-step-number {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.journey-navigation + .page-hero {
  padding-top: 46px;
}

.journey-navigation + .dynamic-profile-back {
  display: none;
}

@media (max-width: 680px) {
  .journey-navigation {
    width: min(calc(100% - 32px), 980px);
    margin-top: 18px;
  }

  .journey-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .journey-steps li > a,
  .journey-steps li > span {
    min-height: 66px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 7px 2px;
    font-size: 10px;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .journey-step-label > span:first-child {
    display: none;
  }

  .journey-step-label > span:last-child {
    display: inline;
  }

  .journey-return-row {
    align-items: flex-start;
  }

  .journey-specialist {
    max-width: 48%;
    text-align: right;
  }

  .journey-navigation + .page-hero {
    padding-top: 34px;
  }
}

/* Unified popup, consent, and gallery controls */
.consultation > .button {
  display: flex;
  width: fit-content;
  margin: 0 auto;
}

.consent {
  padding: 14px 16px;
  border: 1.5px solid rgba(166, 77, 109, 0.34);
  border-radius: 18px;
  background: rgba(166, 77, 109, 0.075);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74);
}

.consent input {
  width: 24px;
  height: 24px;
  margin-top: 0;
  accent-color: var(--accent);
}

.consent input:focus-visible {
  outline: 3px solid rgba(166, 77, 109, 0.24);
  outline-offset: 3px;
}

.consent.has-error,
.has-error.consent {
  border-color: var(--error);
  background: rgba(179, 38, 30, 0.08);
}

body.lead-modal-open,
body.lightbox-open {
  overflow: hidden;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lead-modal[hidden] {
  display: none;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 14, 19, 0.58);
  cursor: zoom-out;
}

.lead-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  background: #fffdf9;
  box-shadow: 0 34px 100px rgba(30, 22, 32, 0.28);
}

.lead-modal-head {
  max-width: 560px;
  margin: 0 auto 24px;
  padding: 0 50px;
  text-align: center;
}

.lead-modal-head h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.08;
}

.lead-modal-head p {
  color: var(--text);
  font-size: 18px;
}

.lead-modal .lead-form {
  padding: 0;
  background: transparent;
}

.lead-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(51, 50, 54, 0.12);
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent-deep);
  cursor: pointer;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 16px 34px rgba(51, 50, 54, 0.12);
}

.lead-modal-close:hover {
  transform: translateY(-1px);
}

.lead-modal-close:focus-visible {
  outline: 3px solid rgba(166, 77, 109, 0.22);
  outline-offset: 3px;
}

.review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: transparent;
  backdrop-filter: none;
}

.review-lightbox[hidden] {
  display: none;
}

.review-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 14, 19, 0.72);
  cursor: zoom-out;
}

.review-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  min-height: min(720px, calc(100dvh - 56px));
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 18px;
  pointer-events: auto;
}

.review-lightbox-image {
  justify-self: center;
  max-width: min(100%, 980px);
  max-height: calc(100dvh - 112px);
  border-radius: 18px;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.review-lightbox-close,
.review-lightbox-nav {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-deep);
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.review-lightbox-close:hover,
.review-lightbox-nav:hover {
  transform: translateY(-1px);
}

.review-lightbox-close:focus-visible,
.review-lightbox-nav:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.45);
  outline-offset: 3px;
}

.review-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 54px;
  height: 54px;
  font-size: 30px;
}

.review-lightbox-nav {
  width: 58px;
  height: 58px;
  font-size: 27px;
}

.review-lightbox-nav.prev {
  justify-self: start;
}

.review-lightbox-nav.next {
  justify-self: end;
}

.certificate-frame a,
.certificate-document,
[data-review-lightbox] {
  cursor: zoom-in;
}

.certificate-frame a {
  display: block;
  width: 100%;
  height: 100%;
}

.certificate-frame a img {
  width: 100%;
  height: 100%;
}

@media (max-width: 680px) {
  .lead-modal {
    padding: 12px;
  }

  .lead-modal-dialog {
    max-height: calc(100dvh - 24px);
    padding: 22px;
    border-radius: 24px;
  }

  .lead-modal-head {
    margin: 0 auto 22px;
    padding: 0 44px;
    text-align: center;
  }

  .lead-modal-head h2 {
    font-size: 28px;
  }

  .lead-modal-head p {
    font-size: 16px;
  }

  .lead-modal .lead-form {
    padding: 0;
    gap: 14px;
  }

  .lead-modal-close {
    top: 12px;
    right: 12px;
  }

  .review-lightbox {
    padding: 12px;
  }

  .review-lightbox-dialog {
    width: 100%;
    min-height: calc(100dvh - 24px);
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
  }

  .review-lightbox-image {
    max-height: calc(100dvh - 96px);
    border-radius: 14px;
  }

  .review-lightbox-close {
    top: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
  }

  .review-lightbox-nav {
    width: 46px;
    height: 46px;
    font-size: 23px;
  }

  .payment-shell {
    width: min(calc(100% - 24px), 760px);
    padding-bottom: 72px;
  }

  .payment-panel {
    padding: 22px;
  }

  .payment-details > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .payment-actions .button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .section h2,
  .cta-band h2,
  .consultation h2 {
    font-size: 32px;
  }

  .compare-column h3 {
    font-size: 26px;
  }
}
/* End unified popup, consent, and gallery controls */

/* Aggregator product layer */
.hero-team {
  order: 2;
  width: min(100%, 510px);
  height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.88fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  justify-self: end;
}

.hero-team-photo {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: var(--soft-2);
}

.hero-team-photo-main {
  grid-row: 1 / -1;
}

.hero-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.hero-team-photo-main img {
  object-position: 52% center;
}

.trust-strip {
  width: min(var(--max), calc(100% - 42px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip p {
  display: grid;
  gap: 3px;
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}

.trust-strip p:first-child {
  border-left: 0;
}

.trust-strip strong {
  color: var(--accent-deep);
  font-size: 20px;
  line-height: 1.2;
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.start-paths {
  padding-bottom: 68px;
}

.start-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.start-path-grid article {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.start-path-grid h3 {
  color: var(--ink);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.12;
}

.start-path-grid article > p:not(.path-number) {
  color: var(--text);
  font-size: 16px;
}

.path-number {
  color: var(--sage);
  font-size: 13px;
  font-weight: 900;
}

.start-path-grid .button {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  padding: 13px 18px;
}

.home-specialists {
  width: 100%;
  padding: 86px max(21px, calc((100% - var(--max)) / 2));
  background: var(--soft-3);
}

.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.section-head-row > div {
  max-width: 760px;
}

.section-head-row .hero-kicker {
  margin-bottom: 12px;
}

.section-head-row > .text-link {
  flex: 0 0 auto;
  width: auto;
  margin-bottom: 5px;
}

.home-specialist-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.match-card {
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(68, 49, 61, 0.06);
}

.home-specialist-list .match-card {
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
}

.home-specialist-list .match-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.home-specialist-list .match-photo {
  min-height: 100%;
  border-radius: 6px;
}

.home-specialist-list .match-copy h3 {
  font-size: 28px;
}

.home-specialist-list .match-copy > p:not(.specialist-label):not(.match-role) {
  font-size: 16px;
}

.match-card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
}

.verification-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(127, 142, 116, 0.35);
  border-radius: 6px;
  padding: 5px 8px;
  background: rgba(127, 142, 116, 0.09);
  color: #53604c;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.match-data-source {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.dynamic-profile-data-source {
  max-width: 720px;
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.button.is-disabled {
  cursor: not-allowed;
  opacity: 0.62;
  pointer-events: none;
}

.start-offer-guide {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.start-offer-guide summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.start-offer-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-top: 20px;
}

.start-offer-guide-grid h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 19px;
}

.start-offer-guide-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

@media (max-width: 720px) {
  .start-offer-guide-grid {
    grid-template-columns: 1fr;
  }
}

.match-best-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  list-style: none;
}

.match-best-list li {
  position: relative;
  padding-left: 18px;
}

.match-best-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

.match-availability {
  padding: 10px 12px;
  border-left: 3px solid var(--line);
  background: var(--soft-3);
  color: var(--text) !important;
  font-size: 14px !important;
  font-weight: 800;
}

.match-availability.is-open {
  border-left-color: var(--sage);
  color: #53604c !important;
}

.home-specialist-list .specialist-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-specialist-list .specialist-actions {
  margin-top: auto;
}

.home-specialist-list .specialist-actions .button {
  min-height: 50px;
  padding: 12px 18px;
}

.screening-grid article {
  padding-top: 20px;
  border-top: 3px solid rgba(127, 142, 116, 0.4);
}

.choice-card,
.recommendation-panel,
.empty-state {
  border-radius: 8px;
}

.matching-error {
  color: var(--error);
  font-size: 15px;
  font-weight: 800;
}

.matching-error:empty {
  display: none;
}

@media (max-width: 1080px) {
  .hero-team {
    width: 100%;
    max-width: 720px;
    height: 430px;
    justify-self: start;
  }

  .start-path-grid,
  .home-specialist-list {
    grid-template-columns: 1fr;
  }

  .home-specialist-list .match-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .hero {
    gap: 12px;
    padding: 22px 0 12px;
  }

  .hero h1 {
    margin-bottom: 16px;
    font-size: 32px;
  }

  .hero-role {
    margin-bottom: 20px;
    font-size: 18px;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .button {
    min-height: 52px;
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .hero-price {
    margin-top: 14px;
  }

  .hero-footnote {
    margin-top: 12px;
  }

  .hero-team {
    order: 2;
    height: 150px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 6px;
  }

  .trust-strip {
    width: min(calc(100% - 40px), var(--max));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip p {
    padding: 16px 12px;
    border-top: 1px solid var(--line);
  }

  .trust-strip p:nth-child(odd) {
    border-left: 0;
  }

  .trust-strip p:nth-child(-n + 2) {
    border-top: 0;
  }

  .start-path-grid {
    gap: 12px;
  }

  .start-path-grid article {
    padding: 21px;
  }

  .start-path-grid h3 {
    font-size: 26px;
  }

  .home-specialists {
    width: 100%;
    padding: 72px 20px;
  }

  .section-head-row {
    display: grid;
    gap: 20px;
  }

  .section-head-row > .text-link {
    width: fit-content;
  }

  .home-specialist-list .match-card,
  .match-card {
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 8px;
  }

  .home-specialist-list .match-photo,
  .match-photo {
    min-height: 250px;
    border-radius: 6px;
  }

  .home-specialist-list .specialist-facts {
    grid-template-columns: 1fr;
  }

  .match-card-topline {
    align-items: flex-start;
  }
}
/* End aggregator product layer */

/* Aggregator comparison and selection layer */
.mobile-nav-toggle,
.mobile-site-menu {
  display: none;
}

.mobile-site-menu[hidden] {
  display: none;
}

.catalog-search {
  display: grid;
  max-width: 620px;
  gap: 8px;
}

.catalog-search span {
  color: var(--sage);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-search input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(51, 50, 54, 0.18);
  border-radius: 6px;
  padding: 12px 16px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.catalog-search input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(166, 77, 109, 0.14);
}

.compare-toggle,
.favorite-toggle {
  min-height: 44px;
  border: 1px solid rgba(120, 51, 77, 0.24);
  border-radius: 6px;
  padding: 9px 13px;
  background: #ffffff;
  color: var(--accent-deep);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.compare-toggle:hover,
.compare-toggle:focus-visible,
.compare-toggle.is-selected,
.favorite-toggle:hover,
.favorite-toggle:focus-visible,
.favorite-toggle.is-selected {
  border-color: var(--accent);
  background: var(--soft);
}

.catalog-view-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.catalog-sort {
  display: grid;
  min-width: min(100%, 280px);
  gap: 7px;
}

.catalog-sort span {
  color: var(--sage);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-sort select {
  min-height: 46px;
  border: 1px solid rgba(51, 50, 54, 0.18);
  border-radius: 6px;
  padding: 10px 38px 10px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.section-followup {
  margin-top: 24px;
}

.comparison-tray {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 35;
  width: min(920px, calc(100% - 32px));
  transform: translateX(-50%);
  border: 1px solid rgba(120, 51, 77, 0.18);
  border-radius: 8px;
  padding: 14px 16px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(68, 49, 61, 0.18);
}

.comparison-tray[hidden] {
  display: none;
}

.comparison-tray-inner {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
}

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

.comparison-tray-copy strong {
  color: var(--ink);
  font-size: 16px;
}

.comparison-tray-copy span {
  color: var(--muted);
  font-size: 13px;
}

.comparison-tray-people {
  display: flex;
  min-width: 108px;
}

.comparison-tray-people img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.comparison-tray-people img + img {
  margin-left: -9px;
}

.comparison-tray-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.comparison-tray-actions .button {
  min-height: 46px;
  padding: 10px 18px;
}

.comparison-tray-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--accent-deep);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.comparison-tray.is-collapsed {
  width: min(520px, calc(100% - 32px));
}

.comparison-tray.is-collapsed .comparison-tray-copy span,
.comparison-tray.is-collapsed .comparison-tray-people,
.comparison-tray.is-collapsed [data-comparison-clear],
.comparison-tray.is-collapsed [data-comparison-open],
.comparison-tray.is-collapsed [data-comparison-dismiss] {
  display: none;
}

.comparison-tray.is-collapsed .comparison-tray-inner {
  grid-template-columns: minmax(0, 1fr) auto;
}

.comparison-tray.is-collapsed .comparison-tray-actions {
  grid-column: 2;
}

.comparison-reopen {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 35;
  min-height: 46px;
  border: 1px solid rgba(120, 51, 77, 0.24);
  border-radius: 999px;
  padding: 10px 16px;
  background: #fff;
  color: var(--accent-deep);
  box-shadow: 0 14px 34px rgba(68, 49, 61, 0.16);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.comparison-reopen[hidden] {
  display: none;
}

.comparison-announcement {
  margin: 0;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 800;
}

.comparison-announcement:empty {
  display: none;
}

body.has-comparison-tray {
  padding-bottom: 98px;
}

body.has-collapsed-comparison-tray {
  padding-bottom: 76px;
}

.comparison-status {
  margin-top: 18px;
  color: var(--accent-deep) !important;
  font-size: 15px !important;
  font-weight: 800;
}

.comparison-section {
  padding-top: 62px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  align-items: stretch;
}

.comparison-profile {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(120, 51, 77, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.comparison-profile-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: var(--soft-2);
}

.comparison-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-profile h2 {
  color: var(--accent);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.1;
}

.comparison-role {
  color: var(--accent-deep);
  font-weight: 800;
}

.comparison-facts {
  display: grid;
  gap: 0;
  margin: 2px 0 0;
}

.comparison-facts div {
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.comparison-facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.comparison-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.comparison-best h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
}

.comparison-best ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 19px;
  font-size: 14px;
  line-height: 1.45;
}

.comparison-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}

.comparison-profile-actions .button {
  width: 100%;
}

.comparison-empty {
  grid-column: 1 / -1;
  max-width: 720px;
  padding: 36px 0;
}

.comparison-empty h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 38px;
  font-weight: 400;
}

.comparison-empty p {
  max-width: 620px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.55;
}

.selection-criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 36px;
}

.selection-criteria-grid article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px 16px;
  padding-top: 20px;
  border-top: 3px solid rgba(127, 142, 116, 0.4);
}

.selection-criteria-grid article > span {
  grid-row: 1 / span 2;
  color: var(--sage);
  font-size: 14px;
  font-weight: 900;
}

.selection-criteria-grid h3 {
  color: var(--ink);
  font-size: 22px;
}

.selection-criteria-grid p {
  color: var(--text);
  line-height: 1.55;
}

.selection-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: selection-step;
}

.selection-steps li {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1.45fr);
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  counter-increment: selection-step;
}

.selection-steps strong {
  color: var(--ink);
  font-size: 20px;
}

.selection-steps strong::before {
  content: counter(selection-step, decimal-leading-zero) " ";
  color: var(--sage);
  font-size: 14px;
}

.selection-steps span {
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
}

.selection-limits {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.6fr);
  gap: 48px;
  align-items: end;
  border-top: 1px solid var(--line);
}

.selection-limits-copy {
  display: grid;
  gap: 14px;
}

.selection-limits-copy h2 {
  color: var(--ink);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.12;
}

.selection-limits-copy p {
  color: var(--text);
  font-size: 18px;
  line-height: 1.58;
}

@media (max-width: 980px) {
  .selection-limits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .result-alternative {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 12px;
    padding: 8px;
    background: transparent;
    color: var(--accent-deep);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
  }

  .site-header .header-actions {
    display: none;
  }

  .mobile-site-menu:not([hidden]) {
    width: min(calc(100% - 32px), var(--max));
    display: grid;
    margin: 0 auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .mobile-site-menu a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--accent-deep);
    font-size: 15px;
    font-weight: 800;
  }

  .mobile-site-menu a:first-child {
    border-top: 0;
  }

  .comparison-tray {
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    padding: 12px;
  }

  .comparison-tray-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .comparison-tray-people {
    display: none;
  }

  .comparison-tray-copy span,
  .comparison-tray-actions .text-button {
    display: none;
  }

  .comparison-tray-actions .button {
    min-height: 44px;
    padding: 9px 14px;
  }

  .comparison-tray-actions [data-comparison-dismiss] {
    display: none;
  }

  body.has-comparison-tray {
    padding-bottom: 88px;
  }

  .comparison-grid,
  .selection-criteria-grid {
    grid-template-columns: 1fr;
  }

  .comparison-profile {
    padding: 16px;
  }

  .selection-steps li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .selection-limits-copy h2,
  .comparison-empty h2 {
    font-size: 32px;
  }
}
/* End aggregator comparison and selection layer */

/* Holistic aggregator product layer */
.direction-list article {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.direction-link {
  margin-top: 18px;
  color: var(--accent-deep);
  font-size: 15px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.safety-note {
  width: min(var(--max), calc(100% - 42px));
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  color: var(--text);
  font-size: 15px;
}

.safety-note p {
  max-width: 760px;
}

.safety-note a {
  flex: 0 0 auto;
  color: var(--accent-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.booking-specialist,
.booking-form {
  border-radius: 8px;
}

.booking-specialist > img {
  border-radius: 6px;
}

.booking-preferences[hidden] {
  display: none;
}

.booking-next {
  width: min(var(--max), calc(100% - 42px));
  margin: -26px auto 88px;
  border-top: 1px solid var(--line);
  padding-top: 54px;
}

.booking-next .section-head {
  margin: 0 0 34px;
  text-align: left;
}

.booking-next .section-head p {
  margin-left: 0;
}

.booking-next-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.booking-next-steps article {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.booking-next-steps span,
.partner-benefits span {
  color: var(--sage);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-next-steps h3,
.partner-benefits h3,
.partner-steps h3,
.urgent-options h2 {
  margin: 9px 0 10px;
  color: var(--ink);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
}

.booking-next-steps p,
.partner-benefits p,
.partner-steps p,
.urgent-options p {
  color: var(--text);
}

.partner-hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 140px max(21px, calc((100vw - var(--max)) / 2)) 72px;
  background: var(--ink);
}

.partner-hero-media,
.partner-hero-overlay {
  position: absolute;
  inset: 0;
}

.partner-hero-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.partner-hero-media img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  object-position: center 24%;
}

.partner-hero-media img:nth-child(2) {
  object-position: center 18%;
}

.partner-hero-overlay {
  background: linear-gradient(90deg, rgba(37, 31, 34, 0.86) 0%, rgba(37, 31, 34, 0.68) 48%, rgba(37, 31, 34, 0.25) 100%);
}

.partner-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: #ffffff;
}

.partner-hero-copy .hero-kicker {
  color: #d8dfd1;
}

.partner-hero h1 {
  margin-bottom: 22px;
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 54px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}

.partner-hero-copy > p:not(.hero-kicker) {
  max-width: 650px;
  font-size: 20px;
  line-height: 1.55;
}

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

.partner-secondary {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.92);
}

.partner-header .brand,
.partner-header .header-link {
  color: #ffffff;
}

.partner-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.partner-benefits article {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.partner-process {
  width: 100%;
  background: var(--soft-3);
}

.partner-process > * {
  width: min(var(--max), calc(100% - 42px));
  margin-right: auto;
  margin-left: auto;
}

.partner-steps {
  list-style: none;
}

.partner-requirements {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: start;
}

.partner-requirements h2,
.partner-status h2,
.urgent-page h1,
.urgent-action h2 {
  color: var(--ink);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-weight: 400;
  letter-spacing: 0;
}

.partner-requirements h2,
.partner-status h2 {
  font-size: 42px;
  line-height: 1.08;
}

.partner-requirements-copy > p:last-child {
  margin-top: 18px;
  color: var(--text);
  font-size: 19px;
}

.partner-checklist {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner-checklist li {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 18px 0 18px 32px;
  color: var(--text);
}

.partner-checklist li::before {
  position: absolute;
  top: 22px;
  left: 1px;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid var(--sage);
  border-left: 2px solid var(--sage);
  content: "";
  transform: rotate(-45deg);
}

.partner-status {
  width: min(var(--max), calc(100% - 42px));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  margin: 0 auto 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}

.partner-status > p {
  color: var(--text);
  font-size: 18px;
  line-height: 1.62;
}

.partner-cta .hero-actions {
  justify-content: center;
}

.urgent-page {
  width: min(900px, calc(100% - 42px));
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: 170px 0 90px;
}

.urgent-page h1 {
  max-width: 760px;
  font-size: 56px;
  line-height: 1.02;
}

.urgent-lead {
  max-width: 740px;
  margin-top: 24px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.6;
}

.urgent-action {
  display: flex;
  gap: 34px;
  align-items: center;
  justify-content: space-between;
  margin: 54px 0;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  padding: 34px 0;
}

.urgent-action h2 {
  max-width: 650px;
  font-size: 35px;
  line-height: 1.1;
}

.urgent-action p {
  margin-top: 10px;
  color: var(--text);
}

.urgent-call {
  flex: 0 0 auto;
}

.urgent-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
}

.urgent-options section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.urgent-options .text-link {
  display: inline-block;
  margin-top: 18px;
}

.urgent-return {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  color: var(--text);
}

.urgent-return .hero-actions {
  align-items: center;
  margin-top: 22px;
}

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

  .partner-requirements,
  .partner-status {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 680px) {
  .safety-note,
  .urgent-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .safety-note {
    width: min(calc(100% - 40px), var(--max));
    margin-bottom: 52px;
  }

  .booking-specialist,
  .booking-form {
    border-radius: 8px;
  }

  .booking-next {
    width: min(calc(100% - 40px), var(--max));
    margin-top: -12px;
  }

  .booking-next-steps,
  .partner-benefits,
  .urgent-options {
    grid-template-columns: 1fr;
  }

  .partner-hero {
    min-height: 720px;
    padding: 116px 20px 58px;
  }

  .partner-hero-media {
    grid-template-columns: 1fr;
  }

  .partner-hero-media img {
    display: none;
  }

  .partner-hero-media img:nth-child(2) {
    display: block;
    object-position: center 20%;
  }

  .partner-hero-overlay {
    background: linear-gradient(0deg, rgba(37, 31, 34, 0.92) 0%, rgba(37, 31, 34, 0.7) 60%, rgba(37, 31, 34, 0.3) 100%);
  }

  .partner-hero h1 {
    font-size: 39px;
  }

  .partner-hero-copy > p:not(.hero-kicker) {
    font-size: 17px;
  }

  .partner-header .mobile-nav-toggle {
    color: #ffffff;
  }

  .site-header:not(.inner-header) + .mobile-site-menu:not([hidden]) {
    position: absolute;
    top: 64px;
    left: 50%;
    z-index: 9;
    transform: translateX(-50%);
    padding: 0 16px;
    background: #ffffff;
  }

  .partner-requirements h2,
  .partner-status h2 {
    font-size: 34px;
  }

  .urgent-page {
    width: min(calc(100% - 40px), 900px);
    padding-top: 120px;
  }

  .urgent-page h1 {
    font-size: 40px;
  }

  .urgent-lead {
    font-size: 18px;
  }

  .urgent-action h2 {
    font-size: 30px;
  }
}
/* End holistic aggregator product layer */

@media (max-width: 680px) {
  .site-header {
    width: min(calc(100% - 32px), var(--max));
    display: flex;
    gap: 12px;
    padding-top: 14px;
  }

  .site-header .brand {
    max-width: 150px;
    font-size: 16px;
    line-height: 1.15;
  }

  .site-header .header-actions {
    gap: 8px;
    margin-left: auto;
  }

  .site-header .header-link {
    display: none;
  }

  .site-header .header-cta {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 13px;
  }

  .cookie-banner {
    gap: 10px;
    padding: 12px 14px;
  }

  .cookie-banner p {
    font-size: 13px;
    line-height: 1.35;
  }

  .cookie-button {
    min-height: 42px;
    padding: 10px 14px;
  }

  .hero {
    padding-top: 82px;
  }

  .inner-header {
    min-height: 64px;
    padding-bottom: 6px;
  }

  .inner-header + main .page-hero {
    padding-top: 52px;
  }
}

/* Secure booking status */
.booking-status-page {
  min-height: calc(100vh - 220px);
}

.booking-status-hero {
  padding-bottom: 52px;
}

.booking-status-shell,
.booking-rules {
  width: min(900px, calc(100% - 42px));
  margin: 0 auto;
}

.booking-status-shell {
  padding: 0 0 86px;
}

.booking-status-panel {
  border: 1px solid rgba(120, 51, 77, 0.16);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
  box-shadow: 0 24px 70px rgba(44, 35, 40, 0.08);
}

.booking-status-loading {
  color: var(--text);
  font-size: 18px;
}

.booking-status-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.booking-status-heading h2 {
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
}

.booking-status-heading > strong {
  color: var(--muted);
  font-size: 14px;
}

.booking-state-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--soft-2);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 800;
}

.booking-status-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.booking-status-facts div {
  min-width: 0;
  padding: 16px;
  background: #fff;
}

.booking-status-facts dt,
.booking-status-facts dd {
  margin: 0;
}

.booking-status-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-status-facts dd {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 700;
}

.booking-status-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.booking-status-progress li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.booking-status-progress span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.booking-status-progress .is-done {
  color: var(--ink);
}

.booking-status-progress .is-done span {
  border-color: var(--sage);
  box-shadow: inset 0 0 0 4px #fff;
  background: var(--sage);
}

.booking-status-note {
  margin-top: 28px;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  color: var(--text);
  font-size: 17px;
}

.booking-status-actions {
  justify-content: flex-start;
}

.booking-change-section {
  padding: 76px 0 0;
}

.booking-change-section .section-head {
  max-width: 760px;
  margin-bottom: 26px;
  text-align: left;
}

.booking-change-section .section-head h2,
.booking-rules .section-head h2 {
  font-size: 38px;
}

.booking-change-form {
  display: grid;
  gap: 20px;
  max-width: 720px;
}

.booking-change-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.booking-change-options legend {
  flex: 0 0 100%;
  margin-bottom: 2px;
  font-weight: 800;
}

.booking-change-options label {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.booking-change-options input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.booking-change-active {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  border: 1px solid rgba(127, 142, 116, 0.38);
  border-radius: 8px;
  padding: 18px;
  background: #f2f6ef;
  color: var(--ink);
}

.booking-change-active > div {
  display: grid;
  gap: 4px;
}

.booking-change-active span {
  color: var(--muted);
  font-size: 13px;
}

.booking-change-active strong {
  color: var(--ink);
  font-size: 15px;
}

.booking-change-active p,
.booking-change-active .button {
  grid-column: 1 / -1;
  margin: 0;
}

.booking-policy-notice {
  max-width: 720px;
  margin: -8px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.booking-dispute-section {
  border-top: 1px solid var(--line);
  margin-top: 76px;
}

.booking-review-section {
  padding: 76px 0 0;
}

.booking-review-section .section-head {
  max-width: 760px;
  margin-bottom: 26px;
  text-align: left;
}

.booking-review-section .section-head h2 {
  font-size: 38px;
}

.booking-review-form {
  display: grid;
  gap: 20px;
  max-width: 720px;
}

.booking-review-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.booking-review-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.booking-review-consent a {
  color: var(--accent-deep);
}

.booking-review-state {
  max-width: 720px;
  border: 1px solid rgba(127, 142, 116, 0.38);
  border-radius: 8px;
  padding: 18px;
  background: #f2f6ef;
  color: var(--ink);
  font-weight: 700;
}

.booking-rules {
  border-top: 1px solid var(--line);
  padding: 74px 0 104px;
}

.booking-rules .section-head {
  margin-bottom: 28px;
  text-align: left;
}

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

.booking-rules-grid article {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
}

.booking-rules-grid h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 20px;
}

.booking-rules-grid p {
  color: var(--text);
  font-size: 15px;
}

.booking-rules-grid .text-link {
  display: inline-block;
  margin-top: 12px;
}

@media (max-width: 720px) {
  .booking-status-shell,
  .booking-rules {
    width: min(calc(100% - 32px), 900px);
  }

  .booking-status-heading {
    display: grid;
  }

  .booking-status-heading h2 {
    font-size: 30px;
  }

  .booking-status-facts,
  .booking-status-progress,
  .booking-rules-grid {
    grid-template-columns: 1fr;
  }

  .booking-status-progress {
    gap: 10px;
  }

  .booking-change-active {
    grid-template-columns: 1fr;
  }

  .booking-change-section .section-head h2,
  .booking-review-section .section-head h2,
  .booking-rules .section-head h2 {
    font-size: 31px;
  }
}

/* Public profiles created from moderated cabinet data */
.dynamic-profile {
  width: min(var(--max), calc(100% - 42px));
  margin: 0 auto;
  padding: 72px 0 104px;
}

.dynamic-profile-back {
  min-height: 36px;
  display: flex;
  align-items: center;
}

.dynamic-profile-back a {
  color: var(--accent-deep);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.dynamic-profile-back a:hover {
  text-decoration: underline;
}

.dynamic-profile-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(38px, 6vw, 76px);
  align-items: center;
  padding: 44px 0 82px;
  border-bottom: 1px solid var(--line);
}

.dynamic-profile-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 24%;
}

.dynamic-profile-intro {
  min-width: 0;
}

.dynamic-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.dynamic-profile-badges span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(127, 142, 116, 0.3);
  border-radius: 999px;
  padding: 6px 10px;
  background: #f2f6ef;
  color: #4d5e44;
  font-size: 13px;
  font-weight: 800;
}

.dynamic-profile-intro h1 {
  margin-top: 10px;
  color: var(--ink);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}

.dynamic-profile-role {
  margin-top: 20px;
  color: var(--accent-deep);
  font-size: 19px;
  font-weight: 800;
}

.dynamic-profile-summary {
  max-width: 720px;
  margin-top: 18px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.55;
}

.dynamic-profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.dynamic-profile-facts div {
  min-width: 0;
  padding: 16px;
  background: #fff;
}

.dynamic-profile-facts div.is-pending {
  background: #fffaf2;
}

.dynamic-profile-facts div.is-pending dd {
  color: #7a5a21;
}

.dynamic-profile-facts dt,
.dynamic-profile-facts dd {
  margin: 0;
}

.dynamic-profile-facts dd small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.specialist-facts dd small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.match-condition-warning {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #b7812d;
  background: #fffaf2;
  color: #6d5428;
  font-size: 13px;
  line-height: 1.45;
}

.dynamic-profile-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dynamic-profile-facts dd {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 700;
}

.dynamic-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.dynamic-profile-availability-note {
  margin: 16px 0 0;
  border-left: 3px solid #b76042;
  padding-left: 14px;
  color: var(--text);
}

.dynamic-profile-availability-note.is-open {
  border-left-color: var(--sage);
}

.dynamic-profile-section {
  padding: 82px 0;
  border-bottom: 1px solid var(--line);
}

.dynamic-profile-section .section-head {
  max-width: 760px;
  margin-bottom: 34px;
  text-align: left;
}

.dynamic-profile-section .section-head h2,
.dynamic-profile-two-columns h2,
.dynamic-profile-booking h2 {
  font-size: clamp(34px, 4vw, 52px);
}

.dynamic-profile-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dynamic-profile-list li {
  min-height: 68px;
  border-left: 3px solid var(--accent);
  padding: 10px 0 10px 18px;
  color: var(--text);
  font-size: 18px;
}

.profile-service-table {
  display: grid;
  gap: 10px;
}

.profile-service-table article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profile-service-table h3,
.profile-service-table p,
.profile-policy-summary h3,
.profile-policy-summary p,
.profile-scope-grid h3,
.profile-scope-grid p {
  margin: 0;
}

.profile-service-table p {
  margin-top: 5px;
  color: var(--muted);
}

.profile-service-table article > div > small {
  display: block;
  max-width: 620px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.profile-service-table article.is-intro {
  border-color: color-mix(in srgb, var(--teal) 32%, var(--line));
  background: color-mix(in srgb, var(--teal) 5%, #fff);
}

.profile-service-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.profile-service-value > strong {
  color: var(--ink);
  font-size: 18px;
  white-space: nowrap;
}

.profile-service-value > strong small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.profile-service-value .button {
  min-height: 44px;
  padding: 10px 15px;
  white-space: nowrap;
}

.profile-policy-summary {
  margin-top: 18px;
  padding: 20px;
  border-left: 4px solid var(--sage);
  background: var(--soft, #f4f7f5);
}

.profile-policy-summary.is-pending {
  border-left-color: #b7812d;
  background: #fffaf2;
}

.profile-policy-summary p {
  margin-top: 8px;
  color: var(--text);
}

.profile-policy-summary small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.profile-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-scope-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profile-scope-grid p,
.profile-scope-grid ul {
  margin: 10px 0 0;
  color: var(--text);
}

.profile-scope-grid ul {
  display: grid;
  gap: 6px;
  padding-left: 20px;
}

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

.profile-trust-item {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profile-trust-item > span {
  width: fit-content;
  padding: 4px 7px;
  border: 1px solid #d9dfdc;
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-trust-item[data-status="verified"] {
  border-color: #a9cfc2;
  background: #f4faf7;
}

.profile-trust-item[data-status="verified"] > span {
  border-color: #a9cfc2;
  color: var(--accent-deep);
}

.profile-trust-item[data-status="expired"],
.profile-trust-item[data-status="review_due"] {
  border-left: 3px solid #c7892f;
  background: #fff9ef;
}

.profile-trust-item h3,
.profile-trust-item p {
  margin: 0;
}

.profile-trust-item a {
  align-self: end;
  color: var(--accent-deep);
  font-weight: 800;
}

.dynamic-profile-two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 7vw, 90px);
}

.dynamic-profile-two-columns article {
  min-width: 0;
}

.dynamic-profile-two-columns h2 {
  margin: 10px 0 22px;
}

.dynamic-profile-two-columns article > p:not(.hero-kicker) {
  margin-top: 14px;
  color: var(--text);
  font-size: 17px;
}

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

.profile-document-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profile-document-preview {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
  background: var(--soft-3);
}

.profile-document-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-document-card > div {
  display: grid;
  gap: 9px;
  padding: 18px;
}

.profile-document-card span,
.profile-document-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-document-card h3 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
}

.profile-evidence-empty {
  max-width: 760px;
  border-left: 3px solid var(--sage);
  padding: 18px 0 18px 20px;
}

.profile-evidence-empty h3 {
  color: var(--ink);
  font-size: 23px;
}

.profile-evidence-empty p {
  margin-top: 8px;
  color: var(--text);
}

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

.profile-principles-grid article {
  min-width: 0;
  border-top: 3px solid var(--sage);
  padding-top: 18px;
}

.profile-principles-grid h3 {
  color: var(--ink);
  font-size: 21px;
}

.profile-principles-grid p {
  margin-top: 10px;
  color: var(--text);
}

.verified-reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.specialist-review-signal {
  display: flex;
  align-items: baseline;
  gap: 9px;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
}

.specialist-review-signal strong { color: var(--accent); font-size: 17px; }
.specialist-review-signal span { color: var(--muted); font-size: 13px; }
.specialist-review-signal.is-collecting strong { color: var(--ink); }

.home-review-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-review-list article {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.home-review-list article > div,
.home-review-list article footer { display: flex; justify-content: space-between; gap: 14px; }
.home-review-list article b { color: var(--accent); }
.home-review-list article > p { flex: 1; margin: 24px 0; line-height: 1.6; }
.home-review-list article footer { padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.home-review-list article footer span { color: var(--muted); }

.booking-review-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.booking-review-choice legend { width: 100%; margin-bottom: 4px; font-weight: 700; }
.booking-review-choice label { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; }
.booking-review-choice input { margin-right: 8px; }

@media (max-width: 820px) {
  .home-review-list { grid-template-columns: 1fr; }
  .home-review-list article { min-height: 0; }
}

.verified-review-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 28px);
  background: #fff;
}

.verified-review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.verified-review-head strong {
  color: var(--ink);
  font-size: 18px;
}

.verified-review-head span {
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 800;
}

.verified-review-card p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

.verified-review-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dynamic-profile-verification {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  border-left: 3px solid var(--sage);
  padding-left: 16px;
}

.dynamic-profile-verification span {
  color: var(--text);
  font-size: 15px;
}

.dynamic-profile-booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}

.dynamic-profile-booking h2 {
  max-width: 760px;
  margin-top: 10px;
}

.dynamic-profile-booking p:not(.hero-kicker) {
  max-width: 700px;
  margin-top: 14px;
  color: var(--text);
}

.dynamic-profile-booking-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.dynamic-profile-missing {
  width: min(760px, calc(100% - 42px));
  min-height: 72vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 20px;
  margin: 0 auto;
}

.dynamic-profile-missing h1 {
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 400;
  line-height: 1.04;
}

.dynamic-profile-missing p:not(.hero-kicker) {
  color: var(--text);
  font-size: 19px;
}

.service-error-page {
  width: min(760px, calc(100% - 42px));
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  margin: 0 auto;
  padding: 64px 0;
}

.service-error-code {
  margin: 0;
  color: var(--soft-2);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: clamp(84px, 18vw, 180px);
  line-height: 0.72;
}

.service-error-page h1 {
  max-width: 700px;
  color: var(--ink);
  font-family: var(--ui-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.03;
}

.service-error-page > p:not(.hero-kicker, .service-error-code) {
  max-width: 650px;
  color: var(--text);
  font-size: 19px;
}

.service-error-page .hero-actions {
  justify-content: flex-start;
}

.service-error-support {
  margin-top: 8px;
  color: var(--accent-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 820px) {
  .dynamic-profile {
    width: min(calc(100% - 32px), var(--max));
    padding-top: 42px;
  }

  .dynamic-profile-hero,
  .dynamic-profile-two-columns,
  .dynamic-profile-booking {
    grid-template-columns: 1fr;
  }

  .dynamic-profile-photo {
    max-width: 520px;
  }

  .dynamic-profile-list,
  .dynamic-profile-facts,
  .verified-reviews-grid,
  .profile-document-grid,
  .profile-principles-grid {
    grid-template-columns: 1fr;
  }

  .dynamic-profile-section,
  .dynamic-profile-booking {
    padding: 62px 0;
  }

  .dynamic-profile-booking-actions {
    justify-content: flex-start;
  }
}

/* Product polish: compact discovery, standalone navigation and mobile profiles */
.journey-navigation.is-standalone {
  gap: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.journey-navigation.is-standalone + .page-hero,
.journey-navigation.is-standalone + .dynamic-profile-back {
  padding-top: 28px;
}

.matching-hero,
.result-hero {
  padding-top: 36px;
  padding-bottom: 32px;
}

.catalog-hero {
  width: min(var(--max), calc(100% - 42px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  column-gap: 52px;
  align-items: end;
  padding: 34px 0 36px;
  text-align: left;
}

.catalog-hero .hero-kicker,
.catalog-hero h1 {
  grid-column: 1;
}

.catalog-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 44px;
}

.catalog-hero > p:not(.hero-kicker) {
  grid-column: 1;
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 17px;
}

.catalog-hero .hero-actions {
  grid-column: 2;
  grid-row: 1 / span 3;
  justify-content: flex-end;
  align-self: end;
  margin: 0;
}

.catalog-section {
  padding-top: 34px;
}

.catalog-section .section-head {
  margin-bottom: 24px;
  text-align: left;
}

.catalog-section .section-head h2 {
  font-size: clamp(34px, 4vw, 48px);
}

.catalog-toolbar {
  gap: 20px;
  margin-bottom: 28px;
  padding: 22px 0;
}

.catalog-quick-filters {
  gap: 8px;
}

.catalog-advanced-filters {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.catalog-advanced-filters summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  color: var(--accent-deep);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}

.catalog-advanced-filters summary span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.catalog-advanced-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  padding: 8px 0 26px;
}

.catalog-advanced-content .filter-group {
  align-content: start;
}

.filter-chip {
  min-height: 44px;
}

.dynamic-profile-mobile-action {
  display: none;
}

@media (max-width: 820px) {
  .profile-service-table article,
  .profile-scope-grid,
  .profile-trust-grid {
    grid-template-columns: 1fr;
  }

  .profile-trust-item {
    min-height: 0;
  }

  .profile-service-value {
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .profile-service-value > strong {
    white-space: normal;
  }

  .profile-service-value > strong small {
    text-align: left;
  }

  .catalog-hero {
    width: min(calc(100% - 32px), var(--max));
    display: block;
    padding: 26px 0 30px;
  }

  .catalog-hero h1 {
    font-size: 38px;
  }

  .catalog-hero .hero-actions {
    justify-content: flex-start;
    margin-top: 24px;
  }

  .catalog-hero .hero-actions .button {
    flex: 1 1 220px;
  }

  .catalog-section {
    padding-top: 28px;
  }

  .catalog-advanced-content {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .dynamic-profile {
    padding-top: 22px;
    padding-bottom: 152px;
  }

  .dynamic-profile-hero {
    gap: 30px;
    padding: 26px 0 48px;
  }

  .dynamic-profile-intro {
    order: 1;
  }

  .dynamic-profile-photo {
    order: 2;
    max-width: 100%;
  }

  .dynamic-profile-photo img {
    max-height: 440px;
    aspect-ratio: 4 / 4.4;
  }

  .dynamic-profile-badges {
    margin-bottom: 16px;
  }

  .dynamic-profile-intro h1 {
    font-size: 44px;
  }

  .dynamic-profile-summary {
    font-size: 18px;
  }

  .dynamic-profile-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .dynamic-profile-actions {
    margin-top: 24px;
  }

  .dynamic-profile-mobile-action {
    position: fixed;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 40;
    display: none;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 38px rgba(68, 49, 61, 0.2);
  }

  .dynamic-profile-mobile-action.is-visible {
    display: grid;
  }

  .dynamic-profile-mobile-action .button {
    min-height: 50px;
    padding: 12px 16px;
  }
}

@media (max-width: 680px) {
  .matching-hero,
  .result-hero {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .catalog-hero h1 {
    font-size: 36px;
  }

  .catalog-quick-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .catalog-quick-filters p {
    display: none;
  }

  .catalog-quick-filters .filter-chip {
    flex: 0 0 auto;
  }

  .catalog-view-options {
    align-items: stretch;
  }

  .catalog-sort {
    width: 100%;
  }

  .match-photo,
  .home-specialist-list .match-photo {
    min-height: 190px;
    max-height: 260px;
  }

  .dynamic-profile-intro h1 {
    font-size: 40px;
  }

  .dynamic-profile-facts div {
    padding: 13px;
  }

  .dynamic-profile-facts dd {
    font-size: 14px;
  }
}
