.a8-hero {
  --hero-surface: #f9faf7;
  --hero-gap: clamp(14px, 1.25vw, 20px);
  --hero-radius: 26px;
  display: grid;
  grid-template-columns: minmax(0, 2.27fr) minmax(0, 1fr);
  gap: var(--hero-gap);
  margin-block-start: 24px;
}

.a8-hero-main {
  position: relative;
  container-type: inline-size;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 476px;
  overflow: hidden;
  border-radius: var(--hero-radius);
  background: linear-gradient(105deg, var(--hero-surface) 42%, #edf3ee);
}

.a8-hero-copy {
  position: relative;
  z-index: 1;
  width: 61%;
  padding: 40px 12px 54px clamp(28px, 3vw, 46px);
}

.a8-hero h1 {
  font-size: 50px;
  font-size: clamp(36px, 5.55cqw, 56px);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -.048em;
}

.a8-hero h1 span {
  display: block;
}

.a8-hero-intro {
  max-width: 38ch;
  margin-block-start: 22px;
  color: #37413f;
  font-size: clamp(17px, 1.34vw, 20px);
  line-height: 1.5;
  text-wrap: pretty;
}

.a8-hero-intro span {
  white-space: nowrap;
}

.a8-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-block-start: 27px;
}

.a8-hero .a8-hero-book {
  min-height: 54px;
  padding-inline-start: 20px;
  gap: 16px;
  font-size: 15px;
  font-weight: 620;
  transition: background-color .16s ease;
}

.a8-hero-book:hover {
  background-color: var(--strong);
}

.a8-hero .a8-hero-book .button-arrow {
  width: 36px;
  height: 36px;
}

.a8-hero-phone,
.a8-hero-address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 560;
}

.a8-hero-phone .icon,
.a8-hero-address .icon {
  width: 18px;
  height: 18px;
  color: var(--strong);
}

.a8-hero-phone:hover,
.a8-hero-address:hover {
  color: var(--strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.a8-hero-address {
  display: none;
}

.a8-hero-doctor {
  position: absolute;
  inset: 0 0 0 auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 47%;
}

.a8-hero-photo {
  min-height: 0;
  overflow: hidden;
  mask-image:
    linear-gradient(90deg, transparent 1%, rgb(0 0 0 / .36) 14%, #000 38%),
    linear-gradient(180deg, #000 74%, rgb(0 0 0 / .75) 84%, rgb(0 0 0 / .12) 96%, transparent);
  mask-composite: intersect;
}

.a8-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.a8-hero-caption a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 85px;
  padding: 8px clamp(16px, 1.75vw, 27px) 17px 13%;
}

.a8-hero-caption a:focus-visible {
  outline-offset: -4px;
}

.a8-hero-caption strong {
  display: block;
  margin-bottom: 5px;
  color: #203e33;
  font-size: clamp(16px, 1.26vw, 20px);
  font-weight: 660;
  line-height: 1.24;
}

.a8-hero-caption span {
  display: block;
  color: #40594e;
  font-size: 14px;
  line-height: 1.46;
  text-wrap: pretty;
}

.a8-hero-caption .a8-hero-profile-arrow {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid #bbd5c8;
  border-radius: 50%;
  background: #f7fbf8;
  color: var(--strong);
}

.a8-hero-caption .icon { width: 19px; height: 19px; }

.a8-hero-caption a:hover strong {
  color: var(--strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.a8-hero-aside {
  display: grid;
  grid-template-rows: .95fr 1.05fr;
  gap: var(--hero-gap);
  min-width: 0;
}

.a8-hero-card {
  border-radius: var(--hero-radius);
  min-width: 0;
}

.a8-hero-card .a8-card-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  font-weight: 640;
  font-size: 15px;
  line-height: 1.2;
}

.a8-card-action .icon {
  width: 18px;
  height: 18px;
  transition: transform .16s ease;
}

.a8-hero-card:hover .a8-card-action {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.a8-hero-card:hover .a8-card-action .icon {
  transform: translateX(3px);
}

.a8-hero-history {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 17px;
  padding: clamp(22px, 2.15vw, 32px);
  color: white;
  background: var(--primary);
}

.a8-history-year {
  display: block;
  font-size: clamp(30px, 3.11vw, 47px);
  letter-spacing: -.05em;
  line-height: 1.08;
  font-weight: 570;
}

.a8-hero-history p {
  max-width: 28ch;
  margin-block-start: 12px;
  font-size: 16px;
  line-height: 1.46;
}

.a8-hero-technology {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38%;
  align-items: center;
  gap: 3px;
  padding: 23px 13px 22px clamp(22px, 2.15vw, 32px);
  color: var(--ink);
  background: white;
}

.a8-technology-title span {
  display: block;
}

.a8-technology-title span:first-child {
  color: #485550;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.25;
}

.a8-technology-title span:last-child {
  margin-block-start: 4px;
  font-size: clamp(29px, 2.55vw, 39px);
  font-weight: 595;
  letter-spacing: -.045em;
  line-height: 1;
}

.a8-technology-copy p {
  margin: 11px 0 17px;
  max-width: 27ch;
  color: #37413f;
  font-size: 15px;
  line-height: 1.45;
  text-wrap: pretty;
}

.a8-hero-technology .a8-card-action {
  color: var(--strong);
}

.a8-crown-art {
  width: calc(100% + 18px);
  max-width: none;
  margin-inline-start: -12px;
  pointer-events: none;
}

@media (min-width: 1001px) and (max-width: 1210px) {
  .a8-hero-main {
    min-height: 452px;
  }
  .a8-hero-copy {
    width: 62%;
    padding-inline-start: 30px;
  }
  .a8-hero-actions {
    column-gap: 11px;
  }
  .a8-hero .a8-hero-book {
    gap: 10px;
    padding-inline-start: 15px;
  }
  .a8-hero-technology {
    grid-template-columns: minmax(0, 1fr) 35%;
  }
}

@media (max-width: 1000px) {
  .a8-hero {
    grid-template-columns: minmax(0, 1fr);
    margin-block-start: 19px;
  }
  .a8-hero-main {
    min-height: 400px;
  }
  .a8-hero-copy {
    padding: 27px 12px 26px 29px;
  }
  .a8-hero-actions {
    margin-block-start: 22px;
  }
  .a8-hero-aside {
    grid-template: auto / repeat(2, minmax(0, 1fr));
  }
  .a8-hero-history {
    padding: 24px;
  }
}

@media (min-width: 641px) and (max-width: 740px) {
  .a8-hero-actions {
    column-gap: 7px;
  }
  .a8-hero .a8-hero-book {
    gap: 6px;
    padding-inline-start: 13px;
    min-height: 50px;
    font-size: 14px;
  }
  .a8-hero .a8-hero-book .button-arrow {
    width: 26px;
    height: 26px;
  }
  .a8-hero-phone {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .a8-hero {
    --hero-radius: 22px;
    --hero-gap: 12px;
    margin-block-start: 16px;
  }
  .a8-hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }
  .a8-hero-copy {
    width: 100%;
    padding: 22px 21px 5px;
  }
  .a8-hero h1 {
    font-size: clamp(29px, 8vw, 43px);
    line-height: 1.06;
    letter-spacing: -.045em;
  }
  .a8-hero h1 span {
    display: inline;
    white-space: nowrap;
  }
  .a8-hero-intro {
    margin-block-start: 14px;
    font-size: 16px;
    line-height: 1.46;
  }
  .a8-hero-actions {
    column-gap: 9px;
    margin-block-start: 17px;
  }
  .a8-hero .a8-hero-book {
    padding: 6px 6px 6px 13px;
    gap: 6px;
    font-size: 14px;
    min-height: 50px;
  }
  .a8-hero .a8-hero-book .button-arrow {
    width: 25px;
    height: 25px;
  }
  .a8-hero .a8-hero-book .button-arrow .icon {
    width: 16px;
    height: 16px;
  }
  .a8-hero-phone, .a8-hero-address {
    font-size: 14px;
  }
  .a8-hero-phone {
    gap: 4px;
  }
  .a8-hero-phone .icon {
    width: 16px;
    height: 16px;
  }
  .a8-hero-doctor {
    position: static;
    width: 100%;
    grid-template-rows: clamp(216px, 55vw, 303px) auto;
  }
  .a8-hero-photo {
    justify-self: center;
    width: min(100%, 485px);
    mask-image:
      linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent),
      linear-gradient(180deg, transparent, #000 29px, #000 73%, rgb(0 0 0 / .68) 86%, transparent);
  }
  .a8-hero-caption a {
    padding: 8px 21px 17px;
  }
  .a8-hero-aside {
    grid-template: auto / minmax(0, 1fr);
  }
  .a8-hero-history {
    gap: 14px;
    padding: 19px 20px;
  }
  .a8-history-year {
    font-size: 34px;
  }
  .a8-hero-history p {
    margin-block-start: 8px;
    max-width: 32ch;
  }
  .a8-hero-technology {
    padding: 17px 12px 17px 20px;
    gap: 4px;
    grid-template-columns: minmax(0, 1fr) 36%;
  }
  .a8-technology-copy p {
    margin-block: 8px 12px;
  }
}

@media (max-width: 600px) {
  .a8-hero-address {
    display: inline-flex;
    margin-block-start: 1px;
    color: #495650;
  }
}

@media (max-width: 359px) {
  .a8-hero-copy {
    padding-inline: 15px;
  }
  .a8-hero-actions {
    column-gap: 8px;
  }
  .a8-hero .a8-hero-book {
    gap: 7px;
    padding-inline-start: 12px;
  }
  .a8-hero .a8-hero-book .button-arrow {
    display: none;
  }
  .a8-hero-phone .icon {
    display: none;
  }
  .a8-hero-caption a {
    padding-inline: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a8-hero .a8-hero-book, .a8-card-action .icon {
    transition: none;
  }
}

#request-dialog.a8-booking {
  width: 520px;
  background: white;
}

.a8-booking .dialog-head h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 31px);
  font-weight: 570;
}

.a8-booking .dialog-head h2:focus {
  outline: none;
}

.a8-booking .dialog-head {
  gap: 12px;
}

.a8-booking .form-demo-note {
  margin: 0;
  border: 0;
  padding: 11px 13px;
  border-radius: 11px;
}

.a8-booking .request-context {
  margin: 0;
}

.a8-booking label.consent-control {
  min-height: 44px;
  align-items: center;
}

.a8-booking .a8-booking-call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  color: var(--strong);
  font-size: 15px;
  font-weight: 640;
}

.a8-booking .a8-booking-call:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.a8-booking .form-submit {
  padding-inline: 18px;
}

@media (max-width: 640px) {
  #request-dialog.a8-booking {
    max-height: calc(100dvh - 18px);
  }
  .a8-booking form {
    gap: 11px;
    margin-top: 13px;
  }
}
