@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/inter-regular.ttf") format("truetype");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/inter-medium.ttf") format("truetype");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/inter-bold.ttf") format("truetype");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/inter-black.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --green: #174b4b;
  --paper: #faf9f6;
  --ink: #171717;
  --muted: #66645f;
}

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

html {
  min-width: 280px;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

p,
h1,
h2 {
  margin: 0;
}

.page-width {
  width: calc(100% - 128px);
  max-width: 1312px;
  margin-inline: auto;
}

.site-header,
.doctor {
  background: var(--green);
}

.header-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 351px 233px;
  height: 104px;
}

.header-layout::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgb(255 255 255 / 25%);
  content: "";
}

.brand {
  margin-top: 34px;
  font-size: 27px;
  font-weight: 700;
  line-height: 32.4px;
}

.city {
  margin-top: 42px;
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
}

.opening-status {
  align-self: start;
  height: 40px;
  margin-top: 30px;
  padding: 11px 15px;
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.55px;
}

.doctor-layout {
  display: grid;
  grid-template-areas: "intro portrait" "note portrait";
  grid-template-columns: minmax(0, 1fr) 500px;
  grid-template-rows: 437px 54px;
  column-gap: 64px;
  row-gap: 75px;
  height: 646px;
}

.doctor-intro {
  grid-area: intro;
  padding-top: 34px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.96px;
}

h1 {
  margin-top: 46px;
  margin-left: -8px;
  font-size: 122px;
  font-weight: 900;
  line-height: 110px;
  letter-spacing: -7.93px;
}

h1 span,
.credentials span,
.launch-note span,
h2 span,
.clinic-address span {
  display: block;
}

.credentials {
  margin-top: 47px;
  font-size: 27px;
  font-weight: 500;
  line-height: 36px;
}

.portrait {
  position: relative;
  grid-area: portrait;
  align-self: start;
  display: block;
  height: 582px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 6px;
}

.portrait img {
  position: absolute;
  top: -1.93%;
  left: 0;
  display: block;
  width: 100%;
  height: 128.87%;
}

.launch-note {
  grid-area: note;
  align-self: start;
  font-size: 18px;
  line-height: 27px;
}

.appointment {
  color: var(--ink);
  background: var(--paper);
}

.appointment-layout {
  display: grid;
  grid-template-columns: 470px minmax(0, 1fr) 316px;
  column-gap: 54px;
  height: 152px;
}

h2 {
  margin-top: 37px;
  font-size: 25px;
  font-weight: 700;
  line-height: 32px;
}

.clinic-address {
  margin-top: 39px;
  font-size: 15px;
  font-style: normal;
  line-height: 23px;
}

.booking {
  margin-top: 24px;
}

.booking-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: 0.8px;
}

.phone-button {
  display: block;
  height: 62px;
  margin-top: 10px;
  padding: 19px 20px 15px;
  border-radius: 5px;
  color: #fff;
  background: var(--ink);
  font-size: 23px;
  font-weight: 500;
  line-height: 28px;
  text-decoration: none;
  white-space: nowrap;
}

.phone-button:hover {
  background: #303030;
}

.phone-button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.site-footer {
  color: #d8d7d2;
  background: var(--ink);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
  padding-top: 21px;
  padding-bottom: 21px;
  font-size: 12px;
  line-height: 16px;
}

.copyright {
  width: 216px;
  flex-shrink: 0;
}

@media (min-width: 1200px) and (max-width: 1339px) {
  .appointment-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr) 290px;
    column-gap: 32px;
  }
}

@media (max-width: 1199px) {
  .page-width {
    width: calc(100% - 48px);
    max-width: 640px;
  }

  .header-layout {
    grid-template-columns: minmax(0, 1fr) 152px;
    grid-template-rows: 25px 16px;
    row-gap: 6px;
    height: 88px;
    padding-top: 20px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
    font-size: 20px;
    line-height: 25px;
  }

  .city {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
    font-size: 12px;
    line-height: 16px;
  }

  .opening-status {
    grid-column: 2;
    grid-row: 1 / 3;
    margin-top: 3px;
    padding: 8px 11px;
    font-size: 9px;
    line-height: 12px;
    letter-spacing: 0.45px;
  }

  .opening-status span {
    display: block;
  }

  .doctor-layout {
    grid-template-areas: "intro" "portrait" "note";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 0;
    height: auto;
    padding-bottom: 53px;
  }

  .doctor-intro {
    padding-top: 24px;
  }

  .eyebrow {
    font-size: 10px;
    line-height: 16px;
    letter-spacing: 0.8px;
  }

  h1 {
    margin-top: 26px;
    margin-left: -5px;
    font-size: clamp(64px, 20.5128vw, 80px);
    line-height: 0.925;
    letter-spacing: -0.065em;
  }

  .credentials {
    margin-top: 26px;
    font-size: clamp(17px, 5.1282vw, 20px);
    line-height: 1.35;
  }

  .portrait {
    height: auto;
    aspect-ratio: 342 / 390;
    margin-top: 32px;
  }

  .launch-note {
    margin-top: 31px;
    font-size: 16px;
    line-height: 24px;
  }

  .appointment-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    height: auto;
    padding-top: 27px;
    padding-bottom: 28px;
  }

  h2 {
    margin-top: 0;
    font-size: 23px;
    line-height: 29px;
  }

  .clinic-address {
    margin-top: 21px;
    font-size: 14px;
    line-height: 21px;
  }

  .booking {
    margin-top: 25px;
  }

  .phone-button {
    height: 58px;
    margin-top: 11px;
    padding: 16px 8px 15px;
    font-size: 22px;
    line-height: 27px;
    text-align: center;
  }

  .footer-layout {
    display: block;
    min-height: 110px;
    padding-top: 20px;
    padding-bottom: 19px;
    font-size: 11px;
    line-height: 16px;
  }

  .copyright {
    width: auto;
    margin-top: 24px;
    line-height: 15px;
  }
}

@media (max-width: 359px) {
  .header-layout {
    grid-template-columns: minmax(0, 1fr) 128px;
    column-gap: 8px;
  }

  .brand {
    font-size: 17px;
  }

  .opening-status {
    padding-inline: 9px;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 0.5px;
  }

  .phone-button {
    font-size: 20px;
  }
}
