:root {
  color-scheme: light;
  --paper: #f3f7f5;
  --surface: #fff;
  --ink: #143d43;
  --muted: #637c80;
  --brand: #176b70;
  --brand-dark: #104b55;
  --aqua: #dcefed;
  --line: #dce8e5;
  --warm: #e6b873;
  --coral: #bb6952;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #fff;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(20, 61, 67, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--brand);
}

.brand__mark svg {
  width: 27px;
  height: 27px;
}

.brand__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.brand__name {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.045em;
}

.brand__caption {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.1vw, 29px);
}

.primary-navigation a,
.site-footer nav a {
  color: #526e72;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
  transition: color 150ms ease;
}

.primary-navigation a:hover,
.site-footer nav a:hover {
  color: var(--brand);
}

.menu-toggle {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button--header {
  min-height: 42px;
  flex: 0 0 auto;
  color: #fff;
  background: var(--brand-dark);
}

.button--header:hover {
  background: var(--brand);
}

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

.button--primary:hover:not(:disabled) {
  background: var(--brand-dark);
}

.button--text {
  min-height: 42px;
  padding-inline: 4px;
  color: var(--brand-dark);
  background: transparent;
}

.button--text:hover {
  color: var(--brand);
}

.button--light {
  color: var(--brand-dark);
  background: #fff;
}

.button--light:hover {
  background: #eaf4f1;
}

.button--quiet {
  border-color: var(--line);
  color: var(--brand-dark);
  background: #fff;
}

.button--danger {
  color: var(--coral);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.hero-section {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 77% 55%, rgba(188, 220, 213, 0.4), transparent 32rem),
    linear-gradient(110deg, #f5f8f5 0%, #eff6f2 61%, #e3f0ed 100%);
}

.hero-section__inner {
  display: grid;
  min-height: 590px;
  grid-template-columns: minmax(0, 0.86fr) minmax(440px, 1.14fr);
  align-items: center;
  gap: clamp(36px, 7vw, 86px);
  padding-block: 62px 68px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-block: 16px;
}

.eyebrow,
.card-kicker {
  margin: 0;
  color: var(--brand);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
}

.eyebrow--light {
  color: #a9d2ca;
}

.hero-copy h1 {
  max-width: 560px;
  margin: 22px 0 14px;
  font-family: var(--serif);
  font-size: clamp(51px, 6vw, 74px);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.99;
}

.hero-copy h1 em {
  color: var(--brand);
  font-weight: 400;
}

.hero-copy__lead {
  margin: 0;
  color: var(--brand-dark);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.hero-copy__body {
  max-width: 420px;
  margin: 12px 0 0;
  color: #60777a;
  font-size: 13px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 23px;
  margin-top: 27px;
}

.hero-note {
  display: flex;
  max-width: 400px;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
  color: #718488;
  font-size: 9px;
  line-height: 1.55;
}

.hero-note__icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #c7ddd7;
  border-radius: 50%;
  color: var(--brand);
  font-size: 17px;
}

.hero-visual {
  display: grid;
  min-width: 0;
  place-items: center;
  margin: 0;
}

.hero-visual img {
  display: block;
  width: min(100%, 425px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: contain;
}

.section-pad {
  padding-block: 94px;
}

.story-section {
  background: #fff;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(45px, 8vw, 100px);
}

.image-frame {
  position: relative;
  padding: 0 24px 24px 0;
}

.image-frame::after {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: 68%;
  height: 66%;
  border: 1px solid #9fc7bd;
  content: "";
}

.image-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 1.25;
  border-radius: 5px;
  object-fit: cover;
}

.image-note {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 37px;
  padding: 8px 11px;
  color: #fff;
  background: var(--brand-dark);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.story-copy h2,
.section-intro h2,
.impact-heading h2,
.contact-card h2 {
  margin: 16px 0 17px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 1.06;
}

.story-copy > p:not(.eyebrow) {
  max-width: 520px;
  color: #647a7d;
  font-size: 12px;
  line-height: 1.85;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.inline-link:hover {
  color: var(--brand-dark);
}

.impact-section {
  padding-block: 69px 74px;
  color: #fff;
  background: var(--brand-dark);
}

.impact-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 35px;
}

.impact-heading h2 {
  margin-bottom: 0;
  font-size: clamp(31px, 4vw, 42px);
}

.impact-heading > p {
  max-width: 275px;
  margin: 0 0 3px;
  color: #c2d7d3;
  font-size: 10px;
  line-height: 1.65;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(219, 239, 232, 0.23);
}

.impact-item {
  display: grid;
  gap: 7px;
  padding: 20px 18px 0 0;
}

.impact-item + .impact-item {
  padding-left: 22px;
  border-left: 1px solid rgba(219, 239, 232, 0.23);
}

.impact-item strong {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.impact-item strong span {
  color: #e5bd7f;
}

.impact-item > span {
  color: #c1d7d2;
  font-size: 9px;
}

.process-section {
  background: #f3f7f5;
}

.section-intro {
  max-width: 660px;
  margin-bottom: 35px;
}

.section-intro h2 {
  margin-bottom: 11px;
}

.section-intro > p:last-child {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.section-intro--row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-intro--row > p {
  max-width: 290px;
  margin-bottom: 5px;
}

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

.process-card {
  position: relative;
  min-height: 210px;
  padding: 20px 19px;
  border: 1px solid #e0eae5;
  border-radius: 8px;
  background: #fff;
}

.process-card__number {
  position: absolute;
  top: 19px;
  right: 19px;
  color: #a5b8b1;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.process-card__icon,
.service-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--brand);
  background: #e8f2ee;
}

.process-card__icon svg {
  width: 25px;
  height: 25px;
}

.process-card h3 {
  margin: 22px 0 7px;
  font-size: 12px;
  font-weight: 700;
}

.process-card p {
  margin: 0;
  color: #718286;
  font-size: 10px;
  line-height: 1.65;
}

.services-section {
  background: #fff;
}

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

.service-card {
  display: flex;
  min-height: 235px;
  align-items: flex-start;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-card:hover {
  border-color: #bfd8d0;
  box-shadow: 0 14px 32px rgba(22, 76, 73, 0.07);
  transform: translateY(-3px);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card__label {
  margin: 17px 0 6px;
  color: #83989a;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.11em;
}

.service-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.service-card > p:not(.service-card__label) {
  margin: 8px 0 16px;
  color: #6b7f82;
  font-size: 10px;
  line-height: 1.65;
}

.service-card > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--brand);
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
}

.service-card > a:hover {
  color: var(--brand-dark);
}

.booking-section {
  color: #fff;
  background:
    radial-gradient(ellipse at 84% 16%, rgba(52, 128, 129, 0.24), transparent 26rem),
    var(--brand-dark);
}

.booking-intro {
  margin-bottom: 27px;
}

.booking-intro h2 {
  margin-bottom: 0;
}

.booking-intro > p {
  color: #c1d7d2 !important;
}

.booking-app {
  padding: 18px 24px 8px;
  border-radius: 10px;
  color: var(--ink);
  background: #fbfcfa;
  box-shadow: 0 24px 60px rgba(3, 31, 37, 0.2);
}

.screen-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 5px;
  border: 1px solid #e1eae5;
  border-radius: 8px;
  background: #f2f6f3;
  scrollbar-width: thin;
}

.screen-nav button {
  display: inline-flex;
  min-height: 39px;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  color: #61777a;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
}

.screen-nav button span {
  color: #91a49d;
  font-size: 8px;
  font-weight: 750;
}

.screen-nav button[aria-current="true"] {
  color: #fff;
  background: var(--brand-dark);
}

.screen-nav button[aria-current="true"] span {
  color: #b7d4c9;
}

.save-status {
  display: flex;
  min-height: 33px;
  align-items: center;
  gap: 7px;
  color: #7d9089;
  font-size: 9px;
}

.save-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6fa082;
}

.screen {
  min-height: 330px;
  padding: 22px 0 37px;
}

.screen-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 5px 0 19px;
}

.screen-heading h3 {
  margin: 7px 0 5px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.screen-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid #e9dfca;
  border-radius: 30px;
  color: #795f31;
  background: #fbf5e8;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.demo-badge > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warm);
}

.filter-card,
.panel,
.agenda-date-panel {
  padding: 18px;
  border: 1px solid #e0e9e4;
  border-radius: 8px;
  background: #fff;
}

.filter-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.6fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 20px;
}

.field-group {
  min-width: 0;
}

.field-group label,
.field-label {
  display: block;
  margin-bottom: 7px;
  color: #516b6e;
  font-size: 9px;
  font-weight: 700;
}

.select-wrap {
  position: relative;
}

.select-wrap select,
.field-group input {
  width: 100%;
  min-height: 41px;
  padding: 0 11px;
  border: 1px solid #dce7e1;
  border-radius: 6px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font-size: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.select-wrap select {
  padding-right: 34px;
  appearance: none;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  color: #678083;
  pointer-events: none;
  transform: translateY(-56%);
}

.select-wrap select:focus,
.field-group input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 107, 112, 0.11);
}

.date-options {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: #9dbbb3 #eef4f1;
  scrollbar-width: thin;
}

.date-options::-webkit-scrollbar {
  height: 6px;
}

.date-options::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #9dbbb3;
}

.date-options::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #eef4f1;
}

.date-option {
  display: grid;
  flex: 0 0 clamp(84px, 10vw, 112px);
  min-height: 59px;
  justify-items: center;
  align-content: center;
  gap: 1px;
  padding: 4px 2px;
  border: 1px solid #e0e8e2;
  border-radius: 6px;
  color: #718286;
  background: #fff;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.date-option:hover:not(:disabled),
.slot-option:hover,
.free-slot-card:hover {
  border-color: #91b9ae;
  transform: translateY(-1px);
}

.date-option:disabled {
  border-color: #edf1ef;
  color: #a9b2af;
  background: #f5f7f6;
  cursor: not-allowed;
  opacity: 0.72;
}

.date-option[aria-pressed="true"] {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

.date-weekday,
.date-month {
  font-size: 8px;
  font-weight: 600;
  text-transform: capitalize;
}

.date-number {
  font-size: 16px;
  font-weight: 750;
  line-height: 1.15;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-heading h4,
.booking-form h4 {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.free-slots-heading {
  margin: 22px 0 11px;
}

.free-slots-heading .button {
  min-height: 37px;
  font-size: 9px;
}

.free-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.free-slot-card {
  display: flex;
  min-height: 65px;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 12px;
  border: 1px solid #dfe9e3;
  border-radius: 7px;
  color: var(--brand-dark);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, transform 150ms ease;
}

.free-slot-card strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.free-slot-card span {
  color: #718689;
  font-size: 8px;
  font-weight: 650;
}

.empty-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border: 1px dashed #d7e4de;
  border-radius: 7px;
  color: #718286;
  background: #fff;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(270px, 0.9fr);
  align-items: start;
  gap: 12px;
}

.booking-options,
.booking-form {
  display: grid;
  gap: 16px;
}

.booking-form {
  gap: 12px;
}

.booking-form h4 {
  margin-top: -7px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.selected-time {
  margin: 0;
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--brand-dark);
  background: #edf5f1;
  font-size: 9px;
  line-height: 1.5;
}

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

.slot-option {
  min-height: 36px;
  border: 1px solid #dce7e1;
  border-radius: 6px;
  color: var(--brand-dark);
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease, transform 140ms ease;
}

.slot-option[aria-pressed="true"] {
  border-color: var(--brand-dark);
  color: #fff;
  background: var(--brand-dark);
}

.patient-fields,
.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 95px;
  align-items: end;
  gap: 9px;
}

.search-form {
  grid-template-columns: minmax(0, 1fr) 110px auto;
  margin-bottom: 12px;
}

.search-form .button {
  min-width: 135px;
  min-height: 39px;
  font-size: 9px;
}

.field-group input::placeholder {
  color: #a1b0ab;
}

.submit-button {
  width: 100%;
  min-height: 43px;
  margin-top: 2px;
  font-size: 9px;
}

.form-status {
  min-height: 0;
  margin: 0;
  color: var(--brand-dark);
  font-size: 9px;
  line-height: 1.5;
}

.form-status:not(:empty) {
  padding: 8px 10px;
  border-radius: 6px;
  background: #edf5f1;
}

.appointment-list {
  display: grid;
  gap: 8px;
}

.appointment-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid #e0e9e4;
  border-radius: 7px;
  background: #fff;
}

.appointment-time {
  color: var(--brand);
  font-family: var(--serif);
  font-size: 20px;
}

.appointment-details h3 {
  margin: 0 0 3px;
  font-size: 10px;
  font-weight: 700;
}

.appointment-details p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.appointment-details .appointment-date {
  margin-top: 2px;
  color: #8c9d99;
  font-size: 8px;
}

.status-badge,
.count-badge {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 20px;
  color: #536d70;
  background: #eff3ef;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.status-marcada {
  color: #276557;
  background: #e6f2e9;
}

.status-cancelada,
.status-faltou {
  color: #985243;
  background: #faebe6;
}

.status-compareceu {
  color: #456580;
  background: #eaf0f7;
}

.appointment-actions {
  display: flex;
  grid-column: 2 / -1;
  flex-wrap: wrap;
  gap: 6px;
}

.appointment-actions .button {
  min-height: 30px;
  padding-inline: 9px;
  font-size: 8px;
}

.agenda-heading {
  align-items: center;
}

.agenda-heading .button {
  flex: 0 0 auto;
}

.agenda-date-panel {
  margin-bottom: 11px;
}

.agenda-date-panel .date-options {
  max-width: 480px;
  margin-top: 12px;
}

.absence-section {
  margin-top: 25px;
}

.absence-section .section-heading {
  align-items: end;
  margin-bottom: 10px;
}

.absence-section h4 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.section-side-note {
  color: #849698;
  font-size: 8px;
}

.absence-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.absence-card {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e0e9e4;
  border-radius: 7px;
  background: #fff;
}

.absence-card span {
  color: #64797b;
  font-size: 8px;
  font-weight: 650;
}

.absence-card strong {
  color: var(--brand-dark);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.gallery-section {
  background: #f5f8f6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 12px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  border-radius: 7px;
  background: #dcefed;
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.16;
  object-fit: cover;
  transition: transform 350ms ease;
}

.gallery-card--wide img {
  aspect-ratio: 1.55;
}

.gallery-card:hover img {
  transform: scale(1.025);
}

.gallery-card figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  width: fit-content;
  padding: 8px 11px;
  border-radius: 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.93);
  font-size: 9px;
  font-weight: 700;
}

.contact-section {
  padding-block: 24px 72px;
  background: #f5f8f6;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: 45px;
  padding: clamp(25px, 5vw, 49px);
  border-radius: 9px;
  color: #fff;
  background: var(--brand-dark);
}

.contact-card h2 {
  margin: 12px 0 11px;
  font-size: clamp(30px, 4vw, 40px);
}

.contact-card > div:first-child > p:last-child {
  max-width: 390px;
  margin: 0;
  color: #c2d7d3;
  font-size: 10px;
  line-height: 1.65;
}

.contact-details {
  display: grid;
  justify-items: start;
  gap: 13px;
}

.contact-details p {
  display: grid;
  gap: 5px;
  margin: 0;
}

.contact-details p span {
  color: #a9d2ca;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.contact-details p a {
  color: #fff;
  font-size: 11px;
  text-decoration: none;
}

.site-footer {
  padding-block: 24px;
  background: #fff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 18px 30px;
}

.brand--footer .brand__mark {
  width: 35px;
  height: 35px;
  border-radius: 11px;
}

.brand--footer .brand__mark svg {
  width: 23px;
  height: 23px;
}

.brand--footer .brand__name {
  font-size: 14px;
}

.brand--footer .brand__caption {
  font-size: 8px;
}

.site-footer__inner > p {
  max-width: 270px;
  margin: 0;
  color: #768a8c;
  font-size: 8px;
  line-height: 1.6;
}

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

.site-footer nav a {
  font-size: 8px;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 13px;
  border-top: 1px solid #e8eeea;
  color: #8b9a98;
  font-size: 8px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(23, 107, 112, 0.32);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .site-header__inner {
    gap: 17px;
  }

  .primary-navigation {
    gap: 14px;
  }

  .primary-navigation a {
    font-size: 10px;
  }

  .brand__caption {
    max-width: 180px;
  }

  .hero-section__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(370px, 1.1fr);
    gap: 38px;
  }

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

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }

  .container {
    width: min(100% - 36px, 610px);
  }

  .site-header__inner {
    min-height: 70px;
  }

  .menu-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    align-content: center;
    justify-items: center;
    gap: 5px;
    margin-left: auto;
    border: 1px solid #d9e7e1;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 17px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--brand-dark);
  }

  .primary-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px 18px 15px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 16px 20px rgba(20, 61, 67, 0.08);
  }

  .primary-navigation.is-open {
    display: flex;
  }

  .primary-navigation a {
    padding: 12px 3px;
    border-bottom: 1px solid #edf1ed;
    font-size: 12px;
  }

  .button--header {
    min-height: 39px;
    padding-inline: 11px;
    font-size: 9px;
  }

  .hero-section__inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 49px 56px;
  }

  .hero-copy h1 {
    font-size: clamp(50px, 11vw, 68px);
  }

  .hero-visual {
    width: min(100% - 15px, 540px);
    justify-self: center;
  }

  .section-pad {
    padding-block: 67px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 37px;
  }

  .story-visual {
    width: min(100%, 540px);
  }

  .story-copy h2,
  .section-intro h2,
  .impact-heading h2 {
    font-size: 38px;
  }

  .impact-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-item {
    min-height: 98px;
    padding: 15px 10px 12px 0;
    border-bottom: 1px solid rgba(219, 239, 232, 0.2);
  }

  .impact-item + .impact-item {
    padding-left: 14px;
    border-left: 1px solid rgba(219, 239, 232, 0.2);
  }

  .impact-item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .section-intro--row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

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

  .service-card {
    min-height: 245px;
    padding: 16px;
  }

  .booking-app {
    padding: 12px 15px 4px;
  }

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

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

  .gallery-card--wide {
    grid-column: 1 / -1;
  }

  .gallery-card--wide img {
    aspect-ratio: 1.75;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .site-footer__inner > p {
    grid-row: 2;
  }

  .site-footer nav {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

@media (max-width: 500px) {
  .container {
    width: calc(100% - 28px);
  }

  .brand__caption {
    max-width: 130px;
    font-size: 8px;
  }

  .brand__mark {
    width: 37px;
    height: 37px;
    border-radius: 12px;
  }

  .brand__name {
    font-size: 15px;
  }

  .button--header {
    max-width: 115px;
    min-height: 37px;
    gap: 5px;
    padding-inline: 8px;
    font-size: 8px;
  }

  .menu-toggle {
    width: 36px;
    height: 37px;
  }

  .hero-section__inner {
    padding-block: 41px 48px;
  }

  .hero-copy h1 {
    font-size: clamp(45px, 12vw, 57px);
  }

  .hero-copy__lead {
    font-size: 15px;
  }

  .hero-copy__body {
    font-size: 12px;
  }

  .hero-actions {
    gap: 8px 14px;
  }

  .hero-actions .button {
    min-height: 42px;
    padding-inline: 13px;
    font-size: 9px;
  }

  .hero-note {
    margin-top: 24px;
  }

  .hero-visual {
    width: calc(100% - 8px);
  }

  .hero-visual img {
    width: min(100%, 340px);
    aspect-ratio: 1;
  }

  .section-pad {
    padding-block: 55px;
  }

  .story-copy h2,
  .section-intro h2,
  .impact-heading h2 {
    font-size: 33px;
  }

  .impact-section {
    padding-block: 52px;
  }

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

  .process-card {
    min-height: 175px;
  }

  .service-card {
    min-height: 215px;
  }

  .booking-intro h2 {
    font-size: 32px;
  }

  .booking-app {
    width: calc(100% + 8px);
    margin-left: -4px;
    padding-inline: 10px;
  }

  .screen-nav {
    margin-inline: -3px;
  }

  .screen-nav button {
    min-height: 35px;
    flex: 0 0 auto;
    padding-inline: 10px;
    font-size: 8px;
  }

  .screen-nav button span {
    display: none;
  }

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

  .screen-heading h3 {
    font-size: 25px;
  }

  .filter-card,
  .panel,
  .agenda-date-panel {
    padding: 13px;
  }

  .filter-card {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .date-options {
    gap: 4px;
  }

  .date-option {
    min-height: 54px;
  }

  .date-weekday,
  .date-month {
    font-size: 7px;
  }

  .date-number {
    font-size: 14px;
  }

  .free-slots-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .free-slot-card {
    min-height: 59px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 9px;
  }

  .free-slot-card strong {
    font-size: 18px;
  }

  .free-slot-card span {
    font-size: 7px;
  }

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

  .patient-fields,
  .search-form {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 7px;
  }

  .search-form .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .appointment-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 7px 9px;
    padding: 10px;
  }

  .appointment-time {
    align-self: start;
    padding-top: 1px;
    font-size: 18px;
  }

  .appointment-card > .status-badge,
  .appointment-actions {
    grid-column: 2;
    justify-self: start;
  }

  .appointment-actions {
    margin-top: -1px;
  }

  .agenda-heading .button {
    align-self: flex-start;
  }

  .absence-section .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

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

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

  .gallery-card--wide {
    grid-column: auto;
  }

  .gallery-card img,
  .gallery-card--wide img {
    aspect-ratio: 1.4;
  }

  .contact-section {
    padding-bottom: 45px;
  }

  .contact-card {
    padding: 23px 18px;
  }

  .contact-card h2 {
    font-size: 32px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .site-footer__inner > p,
  .site-footer nav {
    grid-column: auto;
    grid-row: auto;
  }
}
