[hidden] { display: none !important; }
.no-break { white-space: nowrap; }

:root { --rating-star: #fc0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.case__link, .gallery-trigger {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.case__link {
  text-decoration: none;
}

.case__link::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  content: "";
}

.case__link:focus-visible {
  outline-offset: 1px;
}

.case__link:focus-visible::after {
  box-shadow: inset 0 0 0 3px #22708b;
  border-radius: inherit;
}

.landing-section {
  padding-block: var(--section-pad);
}

.section-title {
  color: inherit;
  font-size: var(--type-section-title);
  font-weight: 800;
  line-height: var(--leading-section);
  letter-spacing: calc(-1.04 * var(--u));
}

.section-title--panel {
  font-size: var(--type-panel-title);
  line-height: 1.22;
  letter-spacing: calc(-.82 * var(--u));
}

.section-panel {
  --panel-surface: linear-gradient(118deg, #353031, #292425);
  padding: var(--space-card);
  border-radius: calc(var(--radius-panel) * var(--u));
}

.section-intro {
  color: #f4e9dd;
  font-size: var(--type-lead);
  font-weight: 500;
  line-height: var(--leading-body);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(19 * var(--u)) calc(18 * var(--u));
}

.tint {
  border-radius: calc(var(--radius-card) * var(--u));
  background: var(--tile-bg);
  color: var(--tile-ink);
}

.tint--gold { --tile-bg: #f7ebcf; --tile-ink: #664a25; }
.tint--blue { --tile-bg: #dcedf1; --tile-ink: #284e5d; }
.tint--green { --tile-bg: #e4ede1; --tile-ink: #3d5a49; }
.tint--lavender { --tile-bg: #e8eaf5; --tile-ink: #494768; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: calc(45 * var(--u));
  padding: calc(5 * var(--u)) calc(27 * var(--u));
  border-radius: var(--radius-pill);
  background: #f5e5ba;
  color: #584121;
  font-size: calc(20 * var(--u));
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.price-pair {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: calc(3 * var(--u));
  color: var(--tile-ink);
  white-space: nowrap;
}

.price-pair strong {
  font-size: var(--pair-size, calc(42 * var(--u)));
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.025em;
}

.price-pair s {
  font-size: var(--pair-old-size, calc(16 * var(--u)));
  font-weight: 500;
  line-height: 1.25;
}

.check-mark {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--check-size, calc(24 * var(--u)));
  height: var(--check-size, calc(24 * var(--u)));
  border-radius: 50%;
  background: var(--check-fill, var(--tile-ink, #476751));
  color: #fff;
}

.check-mark::before,
.answer__mark::before {
  width: .43em;
  height: .25em;
  border: solid currentColor;
  border-width: 0 0 1.5px 1.5px;
  transform: translateY(-12%) rotate(-45deg);
  content: "";
}

.photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(11 * var(--u));
}

.comparison-photo {
  --photo-radius: calc(20 * var(--u));
  position: relative;
  min-width: 0;
}

.comparison-photo img {
  width: 100%;
  height: 100%;
  border-radius: var(--photo-radius);
  object-fit: cover;
  object-position: 50% var(--frame-anchor, 50%);
}

.photo-label {
  position: absolute;
  inset: calc(13 * var(--u)) auto auto calc(13 * var(--u));
  display: grid;
  place-items: center;
  min-height: calc(31 * var(--u));
  padding-inline: calc(15 * var(--u));
  border-radius: var(--radius-pill);
  background: #2d2929ed;
  color: var(--white);
  font-size: calc(14 * var(--u));
  font-weight: 600;
  line-height: 1.1;
}

.photo-label--after {
  background: #fce7af;
  color: #4c391f;
}

.photo-reveal__frame {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-radius: var(--photo-radius);
  background: #e6d9cd;
}

.comparison-photo .photo-reveal__frame { height: 100%; }

.photo-reveal__frame:not([data-revealed]) > img {
  filter: blur(clamp(20px, 2.5vw, 36px));
  transform: scale(1.16);
}

.photo-reveal__toggle {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: clamp(44px, 3.5vw, 50px);
  aspect-ratio: 1;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 1px solid #fff9;
  border-radius: 50%;
  background: #fff8e9;
  box-shadow: 0 2px 12px #29211e50;
  color: #302925;
  cursor: pointer;
  pointer-events: auto;
}

.photo-reveal__toggle[aria-pressed="false"] .photo-reveal__slash { display: none; }
.photo-reveal__toggle:active { background: #f7dd9c; }
.case-photo--before .photo-reveal__toggle { inset-block-start: max(50%, 56px); }

@media (hover: hover) and (pointer: fine) {
  .photo-reveal__toggle:hover { background: #ffe6ad; }
}

.button--primary:active {
  box-shadow: 0 calc(3 * var(--u)) var(--button-shadow);
}

.button--primary:disabled {
  opacity: .68;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .case__link:hover { text-decoration: underline; text-underline-offset: .11em; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .button--primary:not(:disabled):hover { background: #ffcf5e; }
}

.doctor-section { padding-block: calc(29 * var(--u)); }

.doctor {
  --panel-surface: linear-gradient(115.95deg, #353031 .6%, #292425 99.4%);
  display: grid;
  grid-template-columns: minmax(0, 438fr) minmax(0, 814fr);
  grid-template-rows: minmax(calc(253 * var(--u)), auto) minmax(calc(225 * var(--u)), auto) minmax(calc(122 * var(--u)), auto);
  grid-template-areas:
    "portrait intro"
    "portrait quote"
    "portrait features";
  gap: calc(21 * var(--u)) calc(36 * var(--u));
  padding: var(--space-card);
  border-radius: calc(var(--radius-panel) * var(--u));
}

.doctor__intro { grid-area: intro; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: calc(13 * var(--u));
  color: #f4d696;
  font-size: calc(18 * var(--u));
  font-weight: 600;
  line-height: calc(26 * var(--u));
}

.eyebrow::before {
  flex: none;
  width: calc(17 * var(--u));
  height: calc(2 * var(--u));
  border-radius: var(--radius-pill);
  background: #e2b663;
  content: "";
}

.doctor__intro h2 {
  margin: calc(10 * var(--u)) 0 0 calc(-4 * var(--u));
  font-size: calc(52 * var(--u));
  font-weight: 800;
  line-height: calc(64 * var(--u));
  letter-spacing: calc(-1.02 * var(--u));
}

.doctor__role {
  margin-top: calc(9 * var(--u));
  color: #f9eee2;
  font-size: calc(21.5 * var(--u));
  font-weight: 500;
  line-height: calc(26 * var(--u));
  letter-spacing: calc(-.09 * var(--u));
}

.doctor__points {
  display: grid;
  gap: calc(8 * var(--u));
  margin-top: calc(12 * var(--u));
  padding-left: calc(20 * var(--u));
  color: #f7ebdd;
  font-size: calc(18.5 * var(--u));
  font-weight: 500;
  line-height: calc(24 * var(--u));
}

.doctor__points li::marker { color: #e6bc72; }

.doctor__portrait {
  position: relative;
  grid-area: portrait;
}

.doctor__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-photo) * var(--u));
  object-fit: cover;
  object-position: 50% 10%;
}

.doctor__experience {
  position: absolute;
  inset: auto auto calc(21 * var(--u)) calc(20 * var(--u));
  display: grid;
  min-width: calc(180 * var(--u));
  min-height: calc(96 * var(--u));
  align-content: center;
  padding: calc(10 * var(--u)) calc(18 * var(--u));
  border-radius: calc(20 * var(--u));
  background: linear-gradient(110deg, #fce7af, #f8cd72);
  color: #584022;
  font-size: calc(17 * var(--u));
  font-weight: 600;
  box-shadow: 0 calc(4 * var(--u)) calc(11 * var(--u)) #271d2130;
}

.doctor__experience strong {
  color: #37281e;
  font-size: calc(40 * var(--u));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.doctor__quote {
  position: relative;
  display: grid;
  grid-area: quote;
  align-content: center;
  padding: calc(21 * var(--u)) calc(32 * var(--u)) calc(21 * var(--u)) calc(49 * var(--u));
  border-radius: calc(var(--radius-card) * var(--u));
  background: var(--cream-panel);
  color: #322823;
  font-size: var(--type-lead);
  font-weight: 500;
  line-height: var(--leading-body);
  letter-spacing: calc(-.19 * var(--u));
}

.doctor__quote::before {
  position: absolute;
  inset: calc(22 * var(--u)) auto calc(22 * var(--u)) calc(24 * var(--u));
  width: calc(4 * var(--u));
  border-radius: var(--radius-pill);
  background: #d6a94d;
  content: "";
}

.doctor__features {
  display: grid;
  grid-area: features;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(14 * var(--u));
}

.doctor__features .tint {
  padding: calc(20 * var(--u)) calc(22 * var(--u)) calc(18.5 * var(--u));
  border-radius: calc(20 * var(--u));
}

.doctor__features .tint--blue { --tile-bg: #d7edf1; --tile-ink: #213c47; }
.doctor__features .tint--lavender { --tile-bg: #e9e8f4; --tile-ink: #3e344c; }

.doctor__features h3 {
  font-size: var(--type-card-title);
  line-height: 1.22;
  letter-spacing: -.012em;
}

.doctor__features p {
  margin-top: calc(8 * var(--u));
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.results__grid {
  display: grid;
  grid-template-columns: minmax(0, 711fr) minmax(0, 604fr);
  gap: calc(21 * var(--u));
  margin-top: calc(48 * var(--u));
}

.results__photos {
  padding: calc(14 * var(--u));
  border-radius: calc(30 * var(--u));
  background: linear-gradient(122deg, #e6f1ee, #d1e6e9);
}

.results__photos .comparison-photo {
  --photo-radius: calc(23 * var(--u));
  aspect-ratio: 336 / 558;
  --frame-anchor: 53%;
}

.results__photos .photo-label {
  inset: calc(19 * var(--u)) auto auto calc(18 * var(--u));
  min-height: calc(35 * var(--u));
  min-width: calc(122 * var(--u));
  font-size: calc(15 * var(--u));
}
.results__photos .photo-label--after { min-width: calc(144 * var(--u)); }

.results__intro {
  display: grid;
  align-content: center;
  min-height: calc(226 * var(--u));
  padding: calc(23 * var(--u)) calc(26 * var(--u));
  border-radius: calc(var(--radius-card) * var(--u));
  background: linear-gradient(105deg, #faefd7, #f4e2bc);
  color: #3d3027;
  font-size: var(--type-lead);
  font-weight: 500;
  line-height: var(--leading-body);
  letter-spacing: calc(-.08 * var(--u));
}

.results__copy h3 {
  margin-top: calc(22 * var(--u));
  font-size: var(--type-subheading);
  line-height: var(--leading-subheading);
  letter-spacing: -.018em;
}

.results__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(calc(123 * var(--u)), auto) minmax(calc(149 * var(--u)), auto);
  gap: calc(12 * var(--u)) calc(14 * var(--u));
  margin-top: calc(20 * var(--u));
  padding: 0;
  list-style: none;
}

.results__list li {
  display: flex;
  align-items: start;
  gap: calc(10 * var(--u));
  padding: calc(18 * var(--u)) calc(14 * var(--u)) calc(15 * var(--u)) calc(16 * var(--u));
  border-radius: calc(20 * var(--u));
  color: #2c2926;
  font-size: calc(18.5 * var(--u));
  font-weight: 600;
  line-height: calc(23 * var(--u));
}

.results__list .tint--blue { --tile-bg: #e3edf0; }
.results__list .tint--lavender { --tile-bg: #eae8f3; }

.treatment {
  --treatment-accent: #754e19;
  --treatment-rule: #d7c6a9;
  padding-block: calc(50 * var(--u)) calc(40 * var(--u));
  background: linear-gradient(168deg, #f8f2e7, #faf7ee 56%, #f9f4e9);
  color: #292521;
}

.treatment__title span { display: block; color: var(--treatment-accent); }

.treatment__visit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "copy art";
  align-items: center;
  margin-top: calc(20 * var(--u));
}

.treatment__visit--prosthesis {
  grid-template-areas: "art copy";
}

.treatment__copy {
  grid-area: copy;
  max-width: calc(505 * var(--u));
}

.treatment__visit--prosthesis .treatment__copy { margin-inline-start: calc(93 * var(--u)); }

.treatment__visit-number {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--u));
  color: var(--treatment-accent);
  font-size: var(--type-label);
  font-weight: 700;
  line-height: 1.25;
}

.treatment__visit-number::before {
  width: calc(20 * var(--u));
  height: 2px;
  background: #b9853e;
  content: "";
}

.treatment__copy h3 {
  margin-block: calc(8 * var(--u)) calc(10 * var(--u));
  font-size: var(--type-subheading);
  font-weight: 700;
  line-height: var(--leading-subheading);
  letter-spacing: -.018em;
}

.treatment__copy h3 ~ p {
  max-width: calc(485 * var(--u));
  color: #49413a;
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.treatment__copy p + p { margin-top: calc(10 * var(--u)); }

.treatment__art {
  --treatment-halo: #b4d2dab3;
  --treatment-halo-line: #b8cbd0a6;
  --treatment-halo-angle: -12deg;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-area: art;
  place-items: center;
  justify-self: center;
  width: min(100%, calc(510 * var(--u)));
  margin-inline-end: calc(40 * var(--u));
  padding-inline: calc(30 * var(--u));
}

.treatment__art::before {
  position: absolute;
  z-index: -1;
  inset: 5% 5% 7%;
  border: 1px solid var(--treatment-halo-line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--treatment-halo) 18%, transparent);
  transform: rotate(var(--treatment-halo-angle));
  content: "";
}

.treatment__art::after {
  position: absolute;
  z-index: -2;
  inset: -10% -8%;
  background: radial-gradient(ellipse, var(--treatment-halo), transparent 70%);
  content: "";
}

.treatment__visit--prosthesis .treatment__art {
  --treatment-halo: #efcf8480;
  --treatment-halo-line: #cf9e588c;
  --treatment-halo-angle: 8deg;
  margin-inline: calc(26 * var(--u)) 0;
}

.treatment__visit--prosthesis .treatment__art::before { inset: 8% 7% 9%; }

.treatment__art img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 calc(13 * var(--u)) calc(16 * var(--u)) #4a3e2324);
}

.treatment__brands {
  margin-top: calc(21 * var(--u));
  padding-block: calc(18 * var(--u));
  border-block: 1px solid var(--treatment-rule);
}

.treatment__brands p {
  color: var(--treatment-accent);
  font-size: var(--type-label);
  font-weight: 700;
  line-height: 1.3;
}

.treatment__brands ul {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: calc(22 * var(--u));
  margin-top: calc(10 * var(--u));
  padding: 0;
  list-style: none;
}

.treatment__brands img {
  width: min(100%, var(--logo-width, calc(144 * var(--u))));
  height: calc(51 * var(--u));
  object-fit: contain;
  object-position: left center;
}

.treatment__logo--short { --logo-width: calc(91 * var(--u)); }
.treatment__logo--compact { --logo-width: calc(112 * var(--u)); }
.treatment__brands li:first-child { --logo-width: calc(128 * var(--u)); }

@media (max-width: 1000px) {
  .treatment { padding-block: 36px; }
  .treatment__visit { gap: 20px; margin-top: 20px; }
  .treatment__visit--prosthesis .treatment__copy { margin-inline-start: 14px; }
  .treatment__art { width: min(86%, 450px); padding-inline: 8px; }
  .treatment__visit .treatment__art { margin-inline: 0; }
  .treatment__art::after { inset-inline: -2%; }
  .treatment__brands { margin-top: 19px; }
}

@media (max-width: 640px) {
  .treatment { padding-block: 24px; }
  .treatment__title { max-width: 345px; }
  .treatment__title span { margin-top: 6px; }
  .treatment__visit {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "art";
    gap: 8px;
    margin-top: 18px;
  }
  .treatment__visit--prosthesis .treatment__copy { margin-inline-start: 0; }
  .treatment__art { width: min(92%, 304px); padding-inline: 12px; }
  .treatment__art::before { inset: 5% 5% 8%; }
  .treatment__visit--prosthesis .treatment__art::before { inset: 7% 5% 7%; }
  .treatment__brands { margin-top: 11px; padding-block: 12px; }
  .treatment__brands ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 10px; margin-top: 7px; }
  .treatment__brands img { height: 35px; }
  .treatment__logo--short { --logo-width: 64px; }
}

.quiz-section {
  padding-block: calc(28 * var(--u)) calc(30 * var(--u));
  scroll-margin-block-start: 10px;
}

.quiz { --panel-surface: linear-gradient(118deg, #373031, #282425); }

.quiz > .section-title { margin-left: calc(-2 * var(--u)); }

.quiz > .section-intro {
  margin: calc(14 * var(--u)) 0 0 calc(2 * var(--u));
}

.quiz-gifts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(14 * var(--u));
  margin-top: calc(21 * var(--u));
  padding: 0;
  list-style: none;
}

.quiz-gift {
  display: grid;
  grid-template-columns: calc(69 * var(--u)) minmax(0, 1fr) auto;
  align-items: start;
  gap: calc(11 * var(--u));
  min-height: calc(112 * var(--u));
  padding: calc(11 * var(--u)) calc(16 * var(--u)) calc(11 * var(--u)) calc(11 * var(--u));
  border-radius: calc(18 * var(--u));
}

.quiz-gift__art {
  display: grid;
  place-items: center;
  min-height: calc(90 * var(--u));
  border-radius: calc(13 * var(--u));
  background: #ffffff66;
}

.quiz-gift__art img {
  width: calc(57 * var(--u));
  height: calc(70 * var(--u));
  object-fit: contain;
}

.quiz-gift h3 {
  margin-top: calc(8 * var(--u));
  color: var(--ink);
  font-size: calc(18 * var(--u));
  font-weight: 600;
  line-height: calc(24 * var(--u));
  letter-spacing: calc(-.11 * var(--u));
}

.quiz-gift .price-pair {
  --pair-size: calc(32 * var(--u));
  --pair-old-size: calc(14.5 * var(--u));
  margin-top: calc(9 * var(--u));
}

.quiz__panel {
  min-height: calc(575 * var(--u));
  margin-top: calc(21 * var(--u));
  padding: calc(24 * var(--u)) calc(24 * var(--u)) calc(58 * var(--u));
  border-radius: calc(var(--radius-photo) * var(--u));
  background: var(--paper);
  color: var(--ink);
  scroll-margin-block-start: 16px;
}

.quiz__panel form {
  display: flex;
  flex-direction: column;
  min-height: calc(493 * var(--u));
}

.quiz__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(12 * var(--u));
  min-height: calc(28 * var(--u));
  color: #6e5127;
  font-size: calc(17 * var(--u));
  font-weight: 600;
}

.quiz__progress {
  display: flex;
  gap: calc(11 * var(--u));
  margin-right: calc(34 * var(--u));
}

.quiz__progress span {
  width: calc(62 * var(--u));
  height: calc(7 * var(--u));
  border-radius: var(--radius-pill);
  background: #e5ddd4;
}
.quiz__progress .is-current { background: #ffc856; }
.quiz__progress .is-complete { background: #b78234; }

.quiz-step {
  padding-bottom: calc(29 * var(--u));
}

.quiz-step__title {
  margin: calc(12 * var(--u)) 0 0 calc(-2 * var(--u));
  font-size: calc(42 * var(--u));
  font-weight: 800;
  line-height: calc(52 * var(--u));
  letter-spacing: calc(-.73 * var(--u));
}

.quiz-step__title:focus, .quiz-success h3:focus { outline: none; }

.quiz-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(18 * var(--u));
  min-width: 0;
  margin: calc(33 * var(--u)) 0 0;
  padding: 0;
  border: 0;
}

[data-step="0"] .quiz-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.answer { position: relative; cursor: pointer; }

.answer--sand { --answer-bg: #f2ede3; }
.answer--blue { --answer-bg: #e7eff1; }
.answer--gold { --answer-bg: #f7efd9; }
.answer--lavender { --answer-bg: #eeeaf3; }
.answer--green { --answer-bg: #e7efe6; }
.answer--slate { --answer-bg: #e9eef4; }

.answer input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.answer__tile {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  min-height: calc(255 * var(--u));
  padding: calc(16 * var(--u)) calc(12 * var(--u)) calc(21 * var(--u));
  border: 1px solid #ddd3c7;
  border-radius: calc(20 * var(--u));
  background: var(--answer-bg);
  height: 100%;
}

.answer input:checked + .answer__tile {
  border-color: #9e6419;
  background: #fbedc5;
  box-shadow: inset 0 0 0 1px #9e6419;
}

.answer input:focus-visible + .answer__tile {
  outline: 2px solid #22708b;
  outline-offset: 3px;
}

.answer__mark {
  position: absolute;
  inset: calc(16 * var(--u)) auto auto calc(16 * var(--u));
  display: grid;
  place-items: center;
  width: calc(28 * var(--u));
  height: calc(28 * var(--u));
  border: 1px solid #938271;
  border-radius: 50%;
  color: #fff;
  font-size: calc(21 * var(--u));
}

.answer__mark::before { visibility: hidden; }

.answer input:checked + .answer__tile .answer__mark {
  border-color: #9e6421;
  background: #9e6421;
}

.answer input:checked + .answer__tile .answer__mark::before { visibility: visible; }

.answer__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  transform: translateY(calc(-5 * var(--u)));
}

.answer__art img {
  width: auto;
  max-width: 82%;
  height: calc(160 * var(--u));
  margin-inline: auto;
  object-fit: contain;
}

[data-step="0"] .answer__art img {
  height: calc(160 * var(--u));
  max-width: calc(185 * var(--u));
}

[data-step="1"] .answer__art img { max-width: 69%; }
[data-step="2"] .answer__art img { height: calc(151 * var(--u)); }

.answer__art-mark {
  position: absolute;
  left: calc(50% + 40 * var(--u));
  bottom: calc(2 * var(--u));
  display: grid;
  place-items: center;
  width: calc(52 * var(--u));
  height: calc(52 * var(--u));
  border: calc(4 * var(--u)) solid var(--paper);
  border-radius: 50%;
  background: #456750;
  color: var(--white);
  font-size: calc(26 * var(--u));
  font-weight: 600;
}

.answer__art-mark--no { background: #9e6421; }
.answer__art-mark--unknown { background: #4b657a; }

.answer__label {
  align-self: end;
  font-size: calc(25 * var(--u));
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
  letter-spacing: -.01em;
}

.quiz-options.quiz-options--list {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: min(100%, calc(620 * var(--u)));
  margin-top: calc(20 * var(--u));
}

.answer--row .answer__tile {
  grid-template: auto / auto minmax(0, 1fr);
  justify-items: start;
  gap: calc(16 * var(--u));
  min-height: calc(61 * var(--u));
  padding: calc(8 * var(--u)) calc(15 * var(--u));
  border-color: transparent;
  border-radius: calc(10 * var(--u));
}

.answer--row:not(:last-child)::after {
  position: absolute;
  inset: auto 0 0;
  border-bottom: 1px solid #e6ded3;
  pointer-events: none;
  content: "";
}

.answer--row:has(> input:is(:checked, :focus-visible))::after,
.answer--row:has(+ .answer--row > input:is(:checked, :focus-visible))::after {
  visibility: hidden;
}

.answer--row .answer__mark { position: static; width: calc(25 * var(--u)); height: calc(25 * var(--u)); }
.answer--row .answer__label { align-self: center; font-size: calc(21 * var(--u)); text-align: start; }

.answer--row input:checked + .answer__tile {
  background: #faf0d7;
  box-shadow: none;
}

@media (max-width: 640px) {
  .quiz-options.quiz-options--list { margin-top: 14px; }
  .answer--row .answer__tile { min-height: 50px; gap: 11px; padding: 8px 9px; }
  .answer--row .answer__mark { width: 20px; height: 20px; }
  .answer--row .answer__label { font-size: 16px; }
}

.quiz__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(12 * var(--u));
  margin-top: auto;
  padding-top: calc(26 * var(--u));
  border-top: 1px solid #e6ded3;
}

.button--compact {
  width: auto;
  min-width: calc(206 * var(--u));
  min-height: calc(58 * var(--u));
  margin-inline-start: auto;
  padding: calc(8 * var(--u)) calc(8 * var(--u)) calc(8 * var(--u)) calc(19 * var(--u));
  border-radius: calc(16 * var(--u));
  box-shadow: 0 calc(3 * var(--u)) var(--button-shadow);
  font-size: calc(20 * var(--u));
  line-height: 1.15;
}

.button--compact:active { box-shadow: 0 calc(1.5 * var(--u)) var(--button-shadow); }
.button--compact[type="submit"] { min-width: calc(374 * var(--u)); }

.button--compact .button__icon {
  width: calc(41 * var(--u));
  height: calc(42 * var(--u));
  border-radius: calc(12 * var(--u));
  transform: none;
}

.button--compact .button__icon svg { width: calc(18 * var(--u)); }

.button--back {
  gap: calc(9 * var(--u));
  min-height: calc(58 * var(--u));
  padding-inline: calc(16 * var(--u));
  border: 1px solid #d6c9bc;
  border-radius: calc(15 * var(--u));
  color: #4a3f36;
  font-size: calc(18 * var(--u));
  font-weight: 600;
  white-space: nowrap;
}

.quiz__actions .button--back { min-width: calc(132 * var(--u)); }

.quiz-contact {
  display: grid;
  grid-template-columns: minmax(0, 782fr) minmax(0, 404fr);
  gap: calc(53 * var(--u));
  margin-top: calc(25 * var(--u));
}

.quiz-contact__description {
  color: #544a43;
  font-size: calc(18 * var(--u));
  font-weight: 500;
  line-height: calc(26 * var(--u));
}

.quiz-contact__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(21 * var(--u));
  margin-top: calc(13 * var(--u));
}

.quiz-field {
  display: grid;
  align-content: start;
  gap: calc(8 * var(--u));
  font-size: calc(17 * var(--u));
  font-weight: 600;
  line-height: 1.25;
}

.quiz-field input {
  width: 100%;
  min-height: calc(59 * var(--u));
  padding: calc(11 * var(--u)) calc(16 * var(--u));
  border: 1px solid #d9cec2;
  border-radius: calc(13 * var(--u));
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: calc(18 * var(--u));
  font-weight: 400;
}

.quiz-field input::placeholder { color: #746a60; }

.quiz-field input:focus-visible,
.quiz-consent input:focus-visible { outline: 2px solid #22708b; outline-offset: 2px; }

.quiz-field input[aria-invalid="true"],
.quiz-consent input[aria-invalid="true"] { border-color: #a53125; outline: 1px solid #a53125; }

.quiz-field__error { color: #a53125; font-size: max(13px, calc(14 * var(--u))); font-weight: 500; }

.quiz-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: calc(13 * var(--u));
  margin-top: calc(23 * var(--u));
  color: #4f453d;
  font-size: calc(16 * var(--u));
  font-weight: 500;
  line-height: 1.35;
}

.quiz-consent input {
  width: calc(23 * var(--u));
  height: calc(23 * var(--u));
  margin: 0;
  accent-color: #8c5a19;
}

.quiz-consent a {
  color: #73501f;
  font-weight: 600;
  text-underline-offset: .18em;
}

.quiz-consent > div { display: grid; gap: calc(5 * var(--u)); }

.quiz-summary {
  min-height: calc(217 * var(--u));
  padding: calc(21 * var(--u)) calc(22 * var(--u));
  border-radius: calc(21 * var(--u));
  background: #e8efe4;
  color: #364b3f;
}

.quiz-summary h4 { font-size: calc(23 * var(--u)); line-height: 1.25; }

.quiz-summary ul {
  display: grid;
  gap: calc(16 * var(--u));
  margin-top: calc(19 * var(--u));
  padding: 0;
  list-style: none;
}

.quiz-summary li {
  --check-size: calc(19 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(10 * var(--u));
  font-size: calc(17 * var(--u));
  font-weight: 500;
  line-height: 1.3;
}

.quiz__test {
  margin-inline-start: auto;
  font-size: max(12px, calc(13.5 * var(--u)));
  color: #695b4d;
  text-align: end;
}

.quiz__test + .button--compact[hidden] + .button--compact { margin-inline-start: 0; }

.quiz-success {
  display: grid;
  min-height: calc(470 * var(--u));
  align-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.quiz-success .check-mark { --check-size: 44px; font-size: 26px; }
.quiz-success h3 { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.1; }
.quiz-success p { font-size: 17px; line-height: 1.4; }

@media (hover: hover) and (pointer: fine) {
  .answer:hover .answer__tile { border-color: #997951; }
  .answer:hover input:checked + .answer__tile { border-color: #9e6419; }
  .answer--row:hover::after,
  .answer--row:has(+ .answer--row:hover)::after { visibility: hidden; }
  .button--back:hover { background: #f3eadc; }
  .quiz-consent a:hover { color: #422910; text-decoration-thickness: 2px; }
}

.specials { padding-bottom: calc(29 * var(--u)); }

.specials__heading { margin-bottom: calc(37 * var(--u)); }

.specials__date {
  display: flex;
  align-items: end;
  gap: calc(22 * var(--u));
}

.specials__date .pill {
  min-width: calc(219 * var(--u));
  margin-bottom: calc(4 * var(--u));
  letter-spacing: 0;
}

.special {
  display: grid;
  min-height: calc(266 * var(--u));
  grid-template-rows: minmax(calc(86 * var(--u)), auto) 1fr;
  padding: calc(23 * var(--u)) calc(25 * var(--u));
  border-radius: calc(24 * var(--u));
}

.special__header {
  display: flex;
  justify-content: space-between;
  gap: calc(14 * var(--u));
  padding-bottom: calc(12 * var(--u));
  border-bottom: 1px solid color-mix(in srgb, currentColor 19%, transparent);
}

.special__header h3 {
  font-size: var(--type-subheading);
  line-height: var(--leading-subheading);
  letter-spacing: -.012em;
}

.special__header .price-pair { padding-top: calc(5 * var(--u)); }

.special__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(126 * var(--u));
  align-items: start;
  gap: calc(14 * var(--u));
  padding-top: calc(18 * var(--u));
}

.special--wide-art .special__body { grid-template-columns: minmax(0, 1fr) calc(198 * var(--u)); }

.special__body p {
  max-width: calc(394 * var(--u));
  color: #384043;
  font-size: var(--type-body);
  font-weight: 500;
  line-height: var(--leading-body);
}

.special__body img {
  width: 100%;
  height: calc(123 * var(--u));
  margin-top: calc(-8 * var(--u));
  object-fit: contain;
}

@media (max-width: 1000px) {
  :root { --section-pad: 24px; --space-card: 19px; }
  .section-title--panel { line-height: var(--leading-section); }
  .section-intro { line-height: 1.35; }
  .doctor-section { padding-block: 20px; }
  .doctor {
    grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "portrait intro" "quote quote" "features features";
    gap: 16px;
  }
  .doctor__portrait { min-height: 310px; }
  .doctor__portrait img { object-position: 50% 26%; }
  .doctor__intro h2 { margin-left: 0; font-size: clamp(34px, 4.8vw, 44px); line-height: 1.06; }
  .doctor__role { font-size: 16px; line-height: 1.33; }
  .doctor__points { margin-top: 10px; font-size: 15px; line-height: 1.35; }
  .doctor__experience { min-width: 125px; min-height: 65px; padding: 8px 12px; font-size: 14px; }
  .doctor__experience strong { font-size: 29px; }
  .doctor__quote { padding: 18px 19px 18px 36px; line-height: 1.45; }
  .doctor__quote::before { inset: 17px auto 17px 17px; width: 3px; }
  .doctor__features .tint { padding: 17px; }
  .results__grid { margin-top: 28px; grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .results__photos .comparison-photo { aspect-ratio: 336 / 510; }
  .results__intro { min-height: 0; padding: 19px; }
  .results__copy h3 { margin-top: 17px; }
  .results__list { grid-template-rows: auto; margin-top: 13px; }
  .results__list li { min-height: 85px; font-size: 17px; line-height: 1.3; }
  .quiz-section { padding-block: 22px; }
  .quiz-gift { grid-template-columns: 43px minmax(0, 1fr); gap: 5px 8px; padding: 9px; }
  .quiz-gift__art { grid-row: span 2; min-height: 64px; align-self: center; }
  .quiz-gift__art img { width: 41px; height: 55px; }
  .quiz-gift h3 { margin-top: 0; font-size: 14px; line-height: 1.28; }
  .quiz-gift .price-pair { display: flex; align-items: baseline; gap: 8px; margin: 0; --pair-size: 24px; --pair-old-size: 12px; }
  .quiz__panel { min-height: 505px; padding: 21px; }
  .quiz__panel form { min-height: 460px; }
  .quiz__progress { margin-right: 0; }
  .quiz-step__title { font-size: clamp(31px, 4.4vw, 42px); line-height: 1.13; }
  .quiz-options { gap: 10px; margin-top: 22px; }
  .answer__tile { min-height: 185px; padding: 12px 9px 14px; }
  .answer__mark { inset: 9px auto auto 9px; width: 23px; height: 23px; font-size: 18px; }
  .answer__art { transform: none; }
  .answer__art img,
  [data-step="0"] .answer__art img,
  [data-step="2"] .answer__art img { max-width: 94%; height: 110px; }
  .answer__art-mark { left: calc(50% + 22px); width: 39px; height: 39px; font-size: 20px; }
  .answer__label { font-size: clamp(16px, 2.4vw, 22px); }
  .quiz-contact { gap: 16px; }
  .quiz-contact__fields { grid-template-columns: 1fr; gap: 12px; }
  .quiz-contact__description br { display: none; }
  .quiz-summary { padding: 14px; min-height: 0; align-self: start; }
  .quiz__test { flex: 1; }
  .button--compact[type="submit"] { min-width: auto; }
  .specials__heading { margin-bottom: 24px; }
  .specials__date { gap: 15px; }
  .specials__date .pill { min-width: 0; min-height: 36px; padding-inline: 16px; font-size: 16px; }
  .special { min-height: 248px; padding: 18px; }
  .special__header h3 { font-size: var(--type-card-title); line-height: 1.18; }
  .special__header h3 br { display: none; }
  .special .price-pair { --pair-size: 34px; --pair-old-size: 14px; }
  .special__body, .special--wide-art .special__body { grid-template-columns: minmax(0, 1fr) 81px; gap: 8px; }
  .special__body p { font-size: 15px; line-height: 1.34; }
  .special__body img { height: 95px; margin: 0; }
}

@media (max-width: 640px) {
  :root { --section-pad: 20px; --space-card: 12px; }
  .section-title { letter-spacing: -.023em; }
  .section-panel, .doctor { border-radius: 22px; }
  .split-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .doctor-section { padding-block: 10px 18px; }
  .doctor {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "portrait" "quote" "features";
    gap: 12px;
  }
  .doctor__intro { padding: 3px 4px; }
  .doctor__eyebrow { gap: 7px; font-size: 13px; line-height: 1.2; }
  .doctor__intro h2 { margin-top: 8px; font-size: clamp(29px, 8.6vw, 42px); }
  .doctor__portrait { min-height: 0; aspect-ratio: 5 / 6; }
  .doctor__portrait img { border-radius: 15px; object-position: 50% 20%; }
  .doctor__experience { inset: auto auto 12px 12px; min-width: 108px; min-height: 59px; border-radius: 12px; }
  .doctor__quote { padding: 15px 13px 15px 26px; border-radius: 15px; }
  .doctor__quote::before { inset: 14px auto 14px 11px; }
  .doctor__features { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .doctor__features .tint { padding: 13px; border-radius: 14px; }
  .doctor__features p { margin-top: 4px; font-size: 15px; }
  .results__grid { margin-top: 17px; }
  .results__photos { gap: 7px; padding: 7px; border-radius: 16px; }
  .results__photos .comparison-photo { --photo-radius: 11px; aspect-ratio: .59; }
  .photo-label, .results__photos .photo-label {
    inset: 5px auto auto 5px;
    min-width: 0;
    min-height: 25px;
    padding-inline: 7px;
    font-size: 11.5px;
  }
  .results__intro { border-radius: 16px; padding: 15px; }
  .results__list { gap: 8px; }
  .results__list li { --check-size: 17px; gap: 6px; padding: 9px; border-radius: 12px; font-size: 14px; line-height: 1.26; }
  .quiz > .section-title, .quiz > .section-intro { margin-left: 2px; margin-right: 2px; }
  .quiz > .section-intro { margin-top: 9px; font-size: 15px; }
  .quiz-section { padding-block: 17px; }
  .quiz-gifts { grid-template-columns: 1fr; gap: 7px; margin-top: 13px; }
  .quiz-gift { grid-template-columns: 41px minmax(0, 1fr) auto; align-items: center; min-height: 62px; border-radius: 12px; }
  .quiz-gift__art { grid-row: auto; min-height: 43px; border-radius: 9px; }
  .quiz-gift__art img { height: 40px; }
  .quiz-gift .price-pair { display: grid; gap: 2px; --pair-size: 22px; }
  .quiz__panel { min-height: 0; margin-top: 12px; padding: 13px; border-radius: 14px; }
  .quiz__panel form { min-height: 0; }
  .quiz__meta { font-size: 14px; }
  .quiz__progress { gap: 5px; }
  .quiz__progress span { width: clamp(18px, 6vw, 36px); height: 5px; }
  .quiz-step { padding-bottom: 15px; }
  .quiz-step__title { margin: 6px 0 0; font-size: clamp(24px, 6.7vw, 34px); }
  .quiz-options, [data-step="0"] .quiz-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
  .answer__tile { min-height: 126px; padding: 10px 4px 11px; border-radius: 12px; }
  .answer__mark { inset: 6px auto auto 6px; width: 19px; height: 19px; font-size: 16px; }
  .answer__art img, [data-step="0"] .answer__art img, [data-step="2"] .answer__art img { max-width: 86%; height: 76px; }
  .answer__art-mark { left: calc(50% + 20px); width: 29px; height: 29px; border-width: 2px; font-size: 14px; }
  .answer__label { font-size: 15px; }
  .quiz__actions { flex-wrap: wrap; column-gap: 8px; padding-top: 13px; }
  .button--back { min-height: 44px; padding-inline: 10px; font-size: 15px; border-radius: 11px; }
  .quiz__actions .button--back { min-width: 0; }
  .button--compact { min-width: 130px; min-height: 46px; padding: 5px 6px 5px 12px; border-radius: 11px; font-size: 16px; }
  .button--compact[type="submit"] { flex: 1; }
  .button--compact .button__icon { width: 34px; height: 34px; border-radius: 8px; }
  .quiz__test { flex-basis: 100%; order: 2; text-align: start; }
  .quiz-contact { grid-template-columns: minmax(0, 1fr); gap: 13px; margin-top: 12px; }
  .quiz-contact__description { font-size: 15px; line-height: 1.35; }
  .quiz-contact__fields { margin-top: 11px; gap: 9px; }
  .quiz-field { gap: 4px; font-size: 15px; }
  .quiz-field input { min-height: 43px; padding: 8px 11px; border-radius: 9px; font-size: 16px; }
  .quiz-consent { gap: 8px; margin-top: 13px; font-size: 14px; }
  .quiz-consent input { width: 19px; height: 19px; }
  .quiz-summary { border-radius: 12px; }
  .quiz-summary h4 { font-size: 18px; }
  .quiz-summary ul { gap: 7px; margin-top: 8px; }
  .quiz-summary li { font-size: 15px; }
  .quiz-success { min-height: 285px; }
  .specials__heading { margin-bottom: 16px; }
  .specials__date { flex-wrap: wrap; gap: 9px; }
  .specials__date .pill { margin: 0; min-height: 30px; font-size: 14px; }
  .special { min-height: 0; grid-template-rows: auto 1fr; padding: 14px; border-radius: 16px; }
  .special__header { padding-bottom: 10px; }
  .special__body { padding-top: 11px; }
}

.text-link {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 50%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: .19em;
}

.arrow-link {
  display: inline-flex;
  align-items: baseline;
  gap: calc(13 * var(--u));
  width: fit-content;
}

.link-icon,
.arrow-link > span:last-child {
  position: relative;
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  border-radius: 0;
  color: inherit;
  vertical-align: middle;
}

.link-icon::before,
.arrow-link > span:last-child::before {
  position: absolute;
  inset: .56em auto auto .04em;
  width: .83em;
  height: 1px;
  background: currentColor;
  transform-origin: 50%;
  transform: rotate(-45deg);
  content: "";
}

.link-icon::after,
.arrow-link > span:last-child::after {
  position: absolute;
  top: .18em;
  left: .43em;
  width: .37em;
  height: .37em;
  border: solid currentColor;
  border-width: 1px 1px 0 0;
  content: "";
}

.section-cards {
  margin-top: calc(46 * var(--u));
}

.stories { padding-bottom: calc(38 * var(--u)); }

.story {
  display: flex;
  flex-direction: column;
  min-height: calc(456 * var(--u));
  padding: calc(15 * var(--u));
}

.story.tint--blue { --tile-bg: #e2edf0; }
.story.tint--gold { --tile-bg: #f5e9ce; }

.story .comparison-photo { aspect-ratio: 309 / 269; }
.story__after { --frame-anchor: 55%; }
.story__after--second { --frame-anchor: 56%; }

.story h3 {
  margin: calc(25 * var(--u)) calc(9 * var(--u)) calc(12 * var(--u));
  color: #1f3138;
  font-size: var(--type-subheading);
  line-height: var(--leading-subheading);
  letter-spacing: -.012em;
}

.story > .gallery-trigger {
  margin: auto calc(9 * var(--u)) calc(15 * var(--u));
  color: #324d50;
  font-size: calc(16 * var(--u));
  font-weight: 600;
  line-height: 1.25;
}

.promises {
  padding-block: calc(29 * var(--u)) calc(38 * var(--u));
}

.promises .section-title span { display: block; color: #72511e; }

.promises__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: calc(21 * var(--u)) calc(20 * var(--u));
  margin-top: calc(42 * var(--u));
}

.promise {
  grid-column: span 2;
  min-height: calc(240 * var(--u));
  padding: calc(17 * var(--u)) calc(24 * var(--u)) calc(10 * var(--u));
}

.promise--wide {
  grid-column: span 3;
  min-height: calc(250 * var(--u));
}

.promise.tint--blue { --tile-bg: #dceef2; }
.promise--wide.tint--blue { --tile-bg: #e4eff0; }

.promise img {
  width: calc(62 * var(--u));
  height: calc(56 * var(--u));
  object-fit: contain;
}

.promise--wide img { width: calc(77 * var(--u)); height: calc(59 * var(--u)); }

.promise h3 {
  margin-top: calc(15 * var(--u));
  font-size: var(--type-card-title);
  line-height: var(--leading-subheading);
  letter-spacing: -.012em;
}

.promise--wide h3 { margin-top: calc(12 * var(--u)); }

.promise p {
  margin-top: calc(10 * var(--u));
  color: #3f4543;
  font-size: var(--type-body);
  font-weight: 500;
  line-height: var(--leading-body);
}

.credentials-section { padding-block: calc(26 * var(--u)); }
.credentials > .section-title { font-size: calc(38 * var(--u)); line-height: calc(51 * var(--u)); }
.credentials > .section-intro { margin: calc(9 * var(--u)) 0 0 calc(3 * var(--u)); }

.credentials__inner {
  display: grid;
  grid-template-columns: minmax(0, 397fr) minmax(0, 323fr) minmax(0, 498fr);
  gap: calc(19 * var(--u));
  min-height: calc(517 * var(--u));
  margin-top: calc(30 * var(--u));
  padding: calc(16 * var(--u));
  border-radius: calc(24 * var(--u));
  background: #fffcf5;
  color: var(--ink);
}

.credentials__bio { padding: calc(16 * var(--u)) calc(9 * var(--u)); }

.credentials__bio h3 {
  font-size: calc(36 * var(--u));
  font-weight: 800;
  line-height: calc(43 * var(--u));
  letter-spacing: -.016em;
}

.credentials__role {
  margin-top: calc(12 * var(--u));
  color: #4f4841;
  font-size: calc(18 * var(--u));
  font-weight: 600;
  line-height: 1.35;
}

.credentials__bio .pill {
  min-height: calc(49 * var(--u));
  margin-top: calc(15 * var(--u));
  padding-inline: calc(17 * var(--u));
  border-radius: calc(17 * var(--u));
  background: #f6e2ab;
  color: #634721;
  font-size: calc(22 * var(--u));
  font-weight: 700;
}

.credentials__member {
  max-width: calc(350 * var(--u));
  margin-top: calc(16 * var(--u));
  color: #515049;
  font-size: var(--type-body);
  font-weight: 500;
  line-height: var(--leading-body);
}

.credentials__bio h4 { margin-top: calc(22 * var(--u)); font-size: calc(22 * var(--u)); line-height: 1.2; }

.education {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: calc(14 * var(--u));
  margin-top: calc(13 * var(--u));
  color: #4b4843;
  font-size: calc(16 * var(--u));
  font-weight: 500;
  line-height: calc(21 * var(--u));
}

.education dt {
  min-height: calc(32 * var(--u));
  color: #805b2a;
  font-weight: 700;
}

.credentials__portrait {
  position: relative;
  min-height: calc(485 * var(--u));
}

.credentials__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: calc(20 * var(--u));
  object-fit: cover;
  object-position: 50% 12%;
}

.credentials__documents { padding-top: calc(9 * var(--u)); }

.credentials__documents h3 {
  margin-left: calc(2 * var(--u));
  font-size: var(--type-card-title);
  line-height: var(--leading-subheading);
  letter-spacing: -.012em;
}

.credential-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(13 * var(--u)) calc(11 * var(--u));
  margin-top: calc(16 * var(--u));
  padding: 0;
  list-style: none;
}

.credential-preview {
  position: relative;
  display: grid;
  place-items: center;
  height: calc(163 * var(--u));
  padding: calc(11 * var(--u)) calc(14 * var(--u));
  border-radius: calc(16 * var(--u));
  background: #f4eee5;
}

.credential-preview img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }

.credential-preview .link-icon {
  position: absolute;
  inset: auto calc(8 * var(--u)) calc(8 * var(--u)) auto;
  width: calc(27 * var(--u));
  height: calc(27 * var(--u));
  border-radius: calc(8 * var(--u));
  background: #fdf8ee;
  color: #704d29;
  font-size: calc(15 * var(--u));
}

.credential-preview .link-icon::before { top: .93em; left: .49em; }
.credential-preview .link-icon::after { top: .53em; left: .89em; }

.credentials__documents > .credentials-cta {
  margin-top: calc(31 * var(--u));
  color: #754f27;
  font-size: calc(16 * var(--u));
  font-weight: 600;
}

.reviews { padding-bottom: calc(44 * var(--u)); }

.reviews__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: calc(18 * var(--u));
}

.reviews .section-title span { display: block; }

.review-rating {
  flex: none;
  gap: calc(9 * var(--u));
  min-width: calc(264 * var(--u));
  min-height: calc(65 * var(--u));
  margin-top: calc(38 * var(--u));
  border-radius: calc(22 * var(--u));
  border: 1px solid #eae5dd;
  background: var(--white);
  color: var(--ink);
  font-size: calc(17 * var(--u));
  text-decoration: none;
}

.review-rating__star { color: var(--rating-star); font-size: calc(23 * var(--u)); }

.reviews__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(20 * var(--u));
  margin-top: calc(43 * var(--u));
}

.review {
  display: flex;
  flex-direction: column;
  min-height: calc(339 * var(--u));
  padding: calc(21 * var(--u)) calc(24 * var(--u)) calc(22 * var(--u));
  border: 1px solid #eae5dd;
  border-radius: calc(var(--radius-card) * var(--u));
  background: var(--white);
  box-shadow: 0 5px 16px #392a1b0c;
}

.review__stars {
  color: var(--rating-star);
  font-size: calc(20 * var(--u));
  line-height: calc(26 * var(--u));
  letter-spacing: calc(1.1 * var(--u));
}

.review h3 {
  margin-top: calc(15 * var(--u));
  color: var(--ink);
  font-size: var(--type-card-title);
  line-height: var(--leading-subheading);
  letter-spacing: -.012em;
}

.review time {
  margin-top: calc(4 * var(--u));
  color: #51524b;
  font-size: var(--type-meta);
  font-weight: 500;
  line-height: 1.4;
}

.review blockquote {
  margin-top: calc(26 * var(--u));
  margin-bottom: calc(15 * var(--u));
  color: #373832;
  font-size: var(--type-lead);
  font-weight: 500;
  line-height: var(--leading-body);
  letter-spacing: calc(-.05 * var(--u));
}

.review__source {
  margin-top: auto;
  color: #625a52;
  font-size: var(--type-meta);
  font-weight: 600;
  line-height: 1.25;
}

.licenses { padding-bottom: calc(38 * var(--u)); }

.licenses__grid {
  display: grid;
  grid-template-columns: minmax(0, 512fr) minmax(0, 803fr);
  gap: calc(21 * var(--u));
  margin-top: calc(47 * var(--u));
}

.license {
  display: flex;
  flex-direction: column;
  min-height: calc(388 * var(--u));
  padding: calc(27 * var(--u)) calc(24 * var(--u)) calc(26 * var(--u));
  border-radius: calc(var(--radius-photo) * var(--u));
  background: linear-gradient(116deg, #e8f0ec, #dce9e1);
  color: #294638;
}

.license__company { font-size: calc(20 * var(--u)); font-weight: 600; line-height: calc(26 * var(--u)); }
.license h3 { margin-top: calc(16 * var(--u)); color: #24382f; font-size: var(--type-subheading); line-height: var(--leading-subheading); letter-spacing: -.015em; }
.license__number { margin-top: calc(25 * var(--u)); font-size: calc(29 * var(--u)); line-height: calc(36 * var(--u)); font-weight: 800; letter-spacing: -.012em; overflow-wrap: anywhere; }
.license__date, .license__office { margin-top: calc(9 * var(--u)); color: #365648; font-size: calc(17 * var(--u)); font-weight: 500; line-height: calc(23 * var(--u)); }
.license__office { max-width: calc(407 * var(--u)); margin-bottom: calc(12 * var(--u)); }

.license__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(14 * var(--u));
  margin-top: auto;
  color: #285248;
  font-size: calc(18 * var(--u));
  font-weight: 600;
  text-decoration: none;
}

.document-list {
  display: grid;
  align-content: start;
  gap: calc(7 * var(--u));
  padding: 0;
  list-style: none;
}

.document-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: calc(16 * var(--u));
  min-height: calc(72 * var(--u));
  padding: calc(12 * var(--u)) calc(25 * var(--u)) calc(12 * var(--u)) calc(22 * var(--u));
  border: 1px solid #e7ddd1;
  border-radius: calc(17 * var(--u));
  background: var(--paper);
  color: #344d49;
  font-size: calc(18 * var(--u));
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.document-format {
  display: inline-grid;
  place-items: center;
  min-width: calc(65 * var(--u));
  min-height: calc(32 * var(--u));
  padding: 3px calc(7 * var(--u));
  border-radius: calc(13 * var(--u));
  background: #f0ece4;
  color: #625448;
  font-size: calc(14 * var(--u));
  font-weight: 600;
  line-height: 1.1;
}

.license__link .document-format { background: #f6faf4; color: #496453; }
.document-link .link-icon { font-size: calc(22 * var(--u)); color: #614b35; }

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: calc(42 * var(--u)) calc(44 * var(--u));
  background: var(--graphite);
  color: #f8efe5;
}

.site-footer::before {
  position: absolute;
  z-index: -1;
  inset: 0 max(calc(40 * var(--u)), (100% - 1360px) / 2) 0 auto;
  width: calc(300 * var(--u));
  background: url("assets/white-swan-logo.svg") no-repeat left calc(-195 * var(--u)) / auto calc(499 * var(--u));
  opacity: .055;
  pointer-events: none;
  content: "";
}

.site-footer__top, .site-footer__bottom { display: grid; align-items: start; }

.site-footer__top {
  grid-template-columns: minmax(0, 405fr) minmax(0, 551fr) minmax(0, 380fr);
  min-height: calc(137 * var(--u));
}

.site-footer__brand img { width: calc(207 * var(--u)); height: auto; }
.site-footer__brand p { margin-top: calc(19 * var(--u)); color: #ebe1d8; font-size: calc(17 * var(--u)); font-weight: 500; line-height: calc(24 * var(--u)); }
.site-footer__contact { font-style: normal; }
.site-footer__phone { color: var(--white); font-size: calc(28 * var(--u)); font-weight: 700; line-height: calc(36 * var(--u)); }
.site-footer__contact p { margin-top: calc(19 * var(--u)); color: #efe4da; font-size: calc(18 * var(--u)); font-weight: 500; line-height: calc(24 * var(--u)); }
.site-footer__contact p + p { margin-top: calc(8 * var(--u)); color: #e1d7cc; font-size: calc(17 * var(--u)); font-weight: 400; }

.footer-rating {
  display: grid;
  align-content: start;
  gap: calc(12 * var(--u));
  min-height: calc(137 * var(--u));
  padding: calc(18 * var(--u)) calc(20 * var(--u));
  border-radius: calc(var(--radius-card) * var(--u));
  background: #f6e7c7;
  color: #59401e;
  text-decoration: none;
}

.footer-rating__score {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: calc(12 * var(--u));
  padding-bottom: calc(10 * var(--u));
  border-bottom: 1px solid #cdb88f;
  font-size: calc(17 * var(--u));
  font-weight: 600;
}

.footer-rating__star {
  display: grid;
  place-items: center;
  width: calc(42 * var(--u));
  height: calc(42 * var(--u));
  border-radius: 50%;
  background: #fcf3dd;
  color: var(--rating-star);
  font-size: calc(21 * var(--u));
}

.footer-rating__score > strong { color: #452f1c; font-size: calc(36 * var(--u)); font-weight: 800; line-height: 1; letter-spacing: -.015em; }

.footer-rating__award {
  gap: calc(7 * var(--u));
  min-width: calc(236 * var(--u));
  min-height: calc(36 * var(--u));
  padding-inline: calc(10 * var(--u));
  background: #fdf5df;
  color: #6c4c21;
  font-size: calc(16 * var(--u));
}

.footer-rating__award img {
  flex: none;
  width: clamp(26px, 1.94em, 32px);
  height: auto;
}

.site-footer__bottom {
  grid-template-columns: minmax(0, 486fr) minmax(0, 575fr) minmax(0, 275fr);
  margin-top: calc(40 * var(--u));
  padding-top: calc(21 * var(--u));
  border-top: 1px solid #6c5d56;
  color: #f0e4d6;
  font-size: calc(15 * var(--u));
  font-weight: 600;
  line-height: calc(21 * var(--u));
}

.site-footer__bottom > * { min-width: 0; padding-right: calc(12 * var(--u)); }
.site-footer__license p { margin-bottom: calc(9 * var(--u)); color: #f8efe5; font-size: calc(17 * var(--u)); }
.site-footer__license a, .site-footer__developer a { color: #e7cda6; overflow-wrap: anywhere; }
.site-footer__policies { display: grid; gap: calc(12 * var(--u)); justify-items: start; }
.site-footer__developer > p { margin-bottom: calc(9 * var(--u)); color: #dccdc1; font-weight: 400; }
.site-footer :focus-visible { outline-color: var(--gold); }
.footer-rating:focus-visible { outline-color: var(--white); }

.modal-open { overflow: hidden; }
.modal-open, .modal-open body { overscroll-behavior: none; }

.content-dialog {
  width: min(960px, 100% - 34px);
  max-width: none;
  max-height: calc(100vh - 44px);
  max-height: min(810px, 100dvh - 44px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 65px #1f17164a;
}

.content-dialog[open] { display: flex; flex-direction: column; }
.content-dialog::backdrop { background: #191413b8; }

.content-dialog__header {
  display: flex;
  flex: none;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 29px;
  border-bottom: 1px solid #e5dbce;
}

.content-dialog__header h2 {
  align-self: center;
  font-size: clamp(23px, 3.1vw, 38px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.018em;
}

.content-dialog__close {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: #eee8dd;
  color: #3b3028;
}

.content-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px 29px 28px;
  overflow: auto;
  overscroll-behavior: contain;
  color: #44392f;
  font-size: 17px;
  line-height: 1.54;
  overflow-wrap: anywhere;
}

.content-dialog__body:focus-visible { outline: 2px solid #22708b; outline-offset: -2px; }
.content-dialog__body article > * + * { margin-top: .9em; }
.content-dialog__body h3 { color: var(--ink); font-size: 1.15em; line-height: 1.24; }
.content-dialog__body ul, .content-dialog__body ol { padding-inline-start: 1.5em; }
.content-dialog__body a { color: #73501f; text-underline-offset: .17em; }
.content-dialog__body > a { display: block; width: fit-content; margin-top: 18px; }

@media (hover: hover) and (pointer: fine) {
  .text-link:hover,
  .document-link:hover .text-link,
  .license__link:hover .text-link,
  .footer-rating:hover .text-link { text-decoration-color: currentColor; text-decoration-thickness: 1.5px; }
  .document-link:hover { border-color: #9c8058; }
  .credential-preview:hover { background: #eadfcf; }
  .content-dialog__close:hover { background: #e1d6c6; }
}

@media (max-width: 1000px) {
  .section-cards { margin-top: 25px; }
  .stories { padding-bottom: var(--section-pad); }
  .story { min-height: 330px; padding: 11px; }
  .story h3 { margin: 15px 3px 14px; line-height: 1.15; }
  .story > .gallery-trigger { margin: auto 3px 6px; }
  .promises { padding-block: var(--section-pad); }
  .promises__grid { gap: 12px; }
  .promise { min-height: 0; padding: 14px; }
  .promise h3 { margin-top: 10px; line-height: 1.15; }
  .promise p { line-height: 1.34; }
  .credentials > .section-title { font-size: clamp(29px, 4.25vw, 38px); line-height: 1.1; }
  .credentials > .section-intro { margin-left: 0; }
  .credentials__inner { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 15px; min-height: 0; margin-top: 18px; }
  .credentials__bio { padding: 5px 3px; }
  .credentials__bio h3 { font-size: clamp(29px, 4.1vw, 36px); line-height: 1.08; }
  .credentials__portrait { min-height: 335px; }
  .credentials__portrait img { object-position: 50% 28%; }
  .credentials__documents { grid-column: 1 / -1; padding-top: 5px; }
  .credentials__documents h3 { margin-left: 0; }
  .credential-list { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; gap: 8px; }
  .credential-preview { height: 120px; padding: 8px; border-radius: 11px; }
  .credentials__documents > .credentials-cta { margin-top: 15px; }
  .reviews { padding-bottom: var(--section-pad); }
  .reviews__list { gap: 12px; }
  .review-rating { min-width: 0; min-height: 45px; margin-top: 12px; padding-inline: 12px; border-radius: 15px; font-size: 14px; }
  .review { min-height: 290px; padding: 15px; }
  .review h3 { line-height: 1.18; }
  .review blockquote { margin-top: 14px; font-size: var(--type-body); line-height: 1.37; }
  .licenses { padding-bottom: var(--section-pad); }
  .licenses__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 13px; }
  .license { min-height: 0; padding: 17px; }
  .license h3 { margin-top: 11px; line-height: 1.15; }
  .license h3 br { display: none; }
  .license__number { margin-top: 14px; font-size: clamp(19px, 3vw, 26px); line-height: 1.15; }
  .license__link { font-size: 16px; }
  .document-link { min-height: 58px; gap: 9px; padding: 8px 11px; font-size: 15px; }
  .document-format { min-width: 45px; min-height: 25px; font-size: 12px; }
  .document-link .link-icon { font-size: 18px; }
  .site-footer { padding-block: 27px; }
  .site-footer__top { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, .93fr); gap: 10px; min-height: 0; }
  .site-footer__brand img { width: 155px; }
  .site-footer__brand p { margin-top: 12px; font-size: 14px; line-height: 1.3; }
  .site-footer__phone { font-size: 20px; line-height: 1.25; }
  .site-footer__contact p, .site-footer__contact p + p { margin-top: 9px; font-size: 14px; line-height: 1.3; }
  .footer-rating { min-height: 0; padding: 13px; border-radius: 16px; }
  .footer-rating__score { gap: 5px 8px; font-size: 13px; }
  .footer-rating__star { width: 27px; height: 27px; font-size: 16px; }
  .footer-rating__score > strong { font-size: 25px; }
  .footer-rating__award { min-width: 0; max-width: 100%; min-height: 25px; font-size: clamp(11px, 1.65vw, 14px); }
  .site-footer__bottom { gap: 9px; margin-top: 23px; padding-top: 16px; font-size: 13px; line-height: 1.35; }
  .site-footer__bottom > * { padding-right: 0; }
  .site-footer__license p { font-size: 14px; }
}

@media (max-width: 640px) {
  .section-cards { margin-top: 16px; }
  .story { min-height: 0; padding: 9px; border-radius: 16px; }
  .story .photo-pair { gap: 7px; }
  .story img { border-radius: 10px; }
  .story h3 { margin: 11px 3px 9px; font-size: var(--type-card-title); }
  .story > .gallery-trigger { margin: 0 3px 4px; font-size: 14px; }
  .promises__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .promise, .promise--wide { grid-column: auto; border-radius: 15px; }
  .promise img { width: 49px; height: 44px; }
  .promise h3, .promise--wide h3 { margin-top: 6px; }
  .promise p { margin-top: 5px; font-size: 15px; }
  .credentials-section { padding-block: 18px; }
  .credentials > .section-title { font-size: clamp(24px, 6.55vw, 34px); }
  .credentials > .section-intro { font-size: 15px; }
  .credentials__inner { grid-template-columns: minmax(0, 1fr); margin-top: 13px; padding: 11px; border-radius: 15px; }
  .credentials__bio h3 br { display: none; }
  .credentials__role { margin-top: 7px; font-size: 15px; }
  .credentials__bio .pill { min-height: 32px; margin-top: 10px; padding-inline: 13px; border-radius: 11px; font-size: 16px; }
  .credentials__member { margin-top: 10px; font-size: 15px; line-height: 1.3; }
  .credentials__bio h4 { margin-top: 15px; font-size: 19px; }
  .education { margin-top: 9px; gap: 9px; font-size: 14px; line-height: 1.32; }
  .education dt { min-height: 0; }
  .credentials__portrait { min-height: 0; aspect-ratio: 5 / 6; }
  .credentials__portrait img { border-radius: 12px; object-position: 50% 22%; }
  .credentials__documents h3 { line-height: 1.2; }
  .credential-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credential-preview { height: 112px; }
  .credentials__documents > .credentials-cta { font-size: 15px; }
  .reviews__header { flex-wrap: wrap; gap: 9px; }
  .review-rating { min-height: 35px; margin: 0; }
  .reviews__list { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .review { min-height: 0; padding: 14px; border-radius: 15px; }
  .review h3 { margin-top: 5px; }
  .review blockquote { margin-top: 10px; margin-bottom: 11px; }
  .licenses__grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .license { padding: 14px; border-radius: 15px; }
  .license__company { font-size: 16px; line-height: 1.22; }
  .license h3 { margin-top: 8px; font-size: var(--type-card-title); }
  .license__number { margin-top: 10px; font-size: 19px; }
  .license__date, .license__office { margin-top: 6px; font-size: 15px; line-height: 1.3; }
  .license__link { font-size: 15px; }
  .document-link { min-height: 48px; border-radius: 10px; font-size: 14px; }
  .site-footer { padding-block: 20px; }
  .site-footer__top, .site-footer__bottom { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .footer-rating { max-width: 360px; }
  .site-footer__bottom { margin-top: 18px; }
  .site-footer__policies { gap: 8px; }
  .content-dialog { width: calc(100% - 22px); max-height: calc(100dvh - 26px); border-radius: 17px; }
  .content-dialog__header { gap: 11px; padding: 14px 14px 12px; }
  .content-dialog__close { width: 38px; height: 38px; }
  .content-dialog__body { padding: 15px 14px 19px; font-size: 15px; }
}

:root {
  --section-gap-extra: calc(14 * var(--u));
}

main > section,
.site-footer {
  margin-block-start: var(--section-gap-extra);
}

.button--header {
  --button-gold: linear-gradient(104deg, #ffc66a, #eda64e);
  justify-content: center;
  min-height: calc(46 * var(--u));
  padding: calc(6 * var(--u)) calc(11 * var(--u));
  border-radius: var(--radius-pill);
  box-shadow: none;
  font-size: calc(15 * var(--u));
  line-height: 1.15;
  text-align: center;
}

.button--header:active { box-shadow: inset 0 0 0 1px #70451f88; }
.button--header strong, .section-cta strong, .credentials-cta strong, .consultation-dialog__submit strong {
  position: relative;
  z-index: 1;
}

.section-cta,
.credentials__documents > .credentials-cta {
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  margin: 26px 0 0;
  color: #241c13;
  font-size: calc(18 * var(--u));
}

.credentials__documents > .credentials-cta {
  margin-top: calc(20 * var(--u));
}

.quiz__slot { display: flow-root; }

.request-dialog,
.content-dialog {
  position: fixed;
}

.request-dialog {
  width: min(1050px, 100% - 40px);
  max-width: none;
  max-height: calc(100dvh - 44px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 25px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 60px #1f17164a;
}

.request-dialog[open] {
  display: flex;
  flex-direction: column;
}

.request-dialog::backdrop { background: #211c1ab5; }

.request-dialog__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.quiz-dialog .quiz__panel {
  min-height: 0;
  margin-top: 0;
  padding-bottom: 27px;
  border-radius: 0;
}

.quiz-dialog .quiz__panel form { min-height: 444px; }

.consultation-dialog {
  width: min(568px, 100% - 38px);
  border-radius: 27px;
}

.consultation-dialog__body { padding: 34px 36px 28px; }

.consultation-dialog__header h2 {
  margin-right: 28px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.consultation-dialog__header h2 span {
  color: #875518;
  white-space: nowrap;
}

.consultation-dialog__header form {
  position: absolute;
  top: 17px;
  right: 17px;
}

.consultation-dialog__header .content-dialog__close {
  width: 42px;
  height: 42px;
}
.consultation-dialog__header .content-dialog__close svg { width: 18px; height: 18px; }

.consultation-dialog__benefits {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 91px;
  align-items: center;
  gap: 12px;
  min-height: 117px;
  margin-top: 19px;
  padding: 15px 20px;
  border-radius: 18px;
  background: #e3eff0;
  color: #244754;
}

.consultation-dialog__benefits ul {
  display: grid;
  gap: 7px;
  padding: 0;
  list-style: none;
}

.consultation-dialog__benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.24;
}

.consultation-dialog__benefits .check-mark {
  --check-size: 16px;
  --check-fill: #c6e1e4;
  color: #315969;
}

.consultation-dialog__benefits img {
  width: 100%;
  height: 86px;
  object-fit: contain;
}

.consultation-dialog__description {
  margin-top: 16px;
  color: #514d4b;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 21px;
}

#consultation-form { margin-top: 22px; }

#consultation-form .quiz-field { gap: 5px; font-size: 16px; }
#consultation-form .quiz-field input { min-height: 52px; border-radius: 12px; }
#consultation-form .quiz-consent { gap: 9px; margin-top: 14px; font-size: 13.5px; }
#consultation-form .quiz-consent input { width: 17px; height: 17px; }

.consultation-dialog__submit.button--compact[type="submit"] {
  width: 100%;
  min-width: 0;
  min-height: 59px;
  margin-top: 16px;
  border-radius: 15px;
  font-size: 18px;
}

.consultation-dialog__submit .button__icon { width: 39px; height: 39px; }

.consultation-dialog__caption {
  margin-top: 12px;
  color: #514d4b;
  font-size: 13.5px;
  line-height: 1.35;
  text-align: center;
}

.consultation-dialog__success { margin-top: 22px; }
.consultation-dialog__success h3 { font-size: 25px; line-height: 1.2; }
.consultation-dialog__success p { margin: 8px 0 15px; line-height: 1.4; }

.local-gallery {
  --photo-radius: 15px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.local-gallery img {
  width: 100%;
  height: min(56dvh, 500px);
  border-radius: var(--photo-radius);
  background: #eee8dd;
  object-fit: contain;
}

.local-gallery figcaption { margin-top: 7px; font-weight: 600; text-align: center; }

.policy-page__inner {
  width: min(860px, 100% - 36px);
  margin: 32px auto;
  line-height: 1.55;
}
.policy-page__inner h1 { margin: 12px 0 19px; line-height: 1.12; }
.policy-page__inner article > * + * { margin-top: .9em; }

@media (max-width: 1000px) {
  :root { --section-gap-extra: 10px; }
}

@media (max-width: 640px) {
  :root { --section-gap-extra: 8px; }
  .header-actions { grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: 7px; }
  .header-actions .button { min-height: 41px; padding: 5px 8px; font-size: 13px; }
  .section-cta, .credentials__documents > .credentials-cta {
    width: 100%;
    margin-top: 24px;
    font-size: 16px;
  }
  .credentials__documents > .credentials-cta { margin-top: 15px; }
  .request-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 26px); border-radius: 19px; }
  .quiz-dialog .quiz__panel { padding: 13px 13px 17px; }
  .quiz-dialog .quiz__panel form { min-height: 0; }
  .consultation-dialog { width: calc(100% - 38px); border-radius: 21px; }
  .consultation-dialog__body { padding: 23px 20px 20px; }
  .consultation-dialog__header h2 { margin-right: 24px; font-size: 25px; line-height: 1.15; }
  .consultation-dialog__header h2 span { display: block; }
  .consultation-dialog__header form { top: 11px; right: 11px; }
  .consultation-dialog__header .content-dialog__close { width: 36px; height: 36px; }
  .consultation-dialog__benefits {
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 6px;
    min-height: 91px;
    margin-top: 17px;
    padding: 11px;
    border-radius: 17px;
  }
  .consultation-dialog__benefits li { gap: 7px; font-size: 13.5px; font-weight: 600; letter-spacing: -.08px; }
  .consultation-dialog__benefits .check-mark { --check-size: 14px; }
  .consultation-dialog__benefits img { height: 65px; }
  .consultation-dialog__description { margin-top: 13px; font-size: 14px; font-weight: 400; line-height: 1.4; }
  #consultation-form { margin-top: 19px; }
  #consultation-form .quiz-field { font-size: 15px; }
  #consultation-form .quiz-field input { min-height: 48px; }
  #consultation-form .quiz-consent { margin-top: 12px; line-height: 1.35; }
  .consultation-dialog__submit.button--compact[type="submit"] { min-height: 53px; margin-top: 17px; font-size: 16px; }
  .consultation-dialog__submit .button__icon { width: 35px; height: 35px; }
  .consultation-dialog__caption { font-size: 12.5px; }
  .local-gallery { --photo-radius: 9px; gap: 7px; }
  .local-gallery img { height: 36dvh; }
  .local-gallery figcaption { font-size: 14px; }
}
