/* Dětská ordinace MUDr. Josefa Tenory – Kostelec na Hané
   Static redesign, version 3. Palette and type direction: deep cobalt
   picture-book paper, butter and tomato stamps, Bricolage + Literata. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/bricolage-600.woff2") format("woff2");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/bricolage-700.woff2") format("woff2");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/bricolage-800.woff2") format("woff2");
}

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/literata-400.woff2") format("woff2");
}

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/literata-600.woff2") format("woff2");
}

:root {
  --navy-950: #07142f;
  --navy-900: #0b1c46;
  --navy-800: #102a5e;
  --navy-700: #183a7a;
  --cream: #f7efdd;
  --cream-2: #efe3cb;
  --cream-3: #e3d4b6;
  --paper-card: #fffaf0;
  --cream-blue: #dfe6f5;
  --cream-blue-dim: #c3cde5;
  --cream-blue-label: #b9c6e4;
  --ink: #101a33;
  --ink-soft: #565353;
  --butter: #f8c94e;
  --butter-soft: #fbe7b0;
  --tomato: #c23a24;
  --tomato-dark: #a6301d;
  --tomato-soft: #f6dcd5;
  --leaf: #86b971;
  --sky: #a7c7e7;
  --line: rgba(16, 26, 51, .16);
  --line-cream: rgba(247, 239, 221, .24);
  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "Literata", Georgia, serif;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --radius: 2px;
  --shadow-hard: 10px 10px 0 var(--butter);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .98;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
}

::selection {
  background: var(--butter);
  color: var(--navy-950);
}

:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.section--news :focus-visible,
.section--contact :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--butter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: .75rem 1rem;
  background: var(--butter);
  color: var(--navy-950);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(1200px, 100% - (2 * var(--gutter)));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 28, 70, .97);
  border-bottom: 1px solid var(--line-cream);
  backdrop-filter: blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 78px;
}

.brand {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.brand img {
  width: clamp(132px, 12vw, 168px);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(.85rem, 1.8vw, 1.65rem);
  margin-left: auto;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .015em;
}

.nav a {
  position: relative;
  padding: .4rem 0;
  color: var(--cream);
  text-decoration: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--butter);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}


.menu-toggle {
  display: none;
  align-items: center;
  gap: .6rem;
  margin-left: auto;
  padding: .55rem .7rem;
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--line-cream);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.menu-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}

.site-header[data-open] .menu-toggle__bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-header[data-open] .menu-toggle__bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(2.8rem, 6vw, 5.2rem) 0 0;
  background: var(--navy-900);
  color: var(--cream);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(420px, 46vw, 760px);
  aspect-ratio: 1;
  right: -16%;
  top: -24%;
  border: 1px solid rgba(247, 239, 221, .18);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(280px, 30vw, 520px);
  aspect-ratio: 1;
  right: 2%;
  top: 6%;
  border: 1px dashed rgba(248, 201, 78, .24);
  border-radius: 50%;
  pointer-events: none;
}

.hero__dots {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(circle at 1px 1px, rgba(247, 239, 221, .17) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding-bottom: clamp(2.8rem, 5vw, 4.2rem);
}

.hero__copy > * {
  animation: rise .58s cubic-bezier(.2, .7, .2, 1) both;
}

.hero__copy > :nth-child(1) { animation-delay: .02s; }
.hero__copy > :nth-child(2) { animation-delay: .07s; }
.hero__copy > :nth-child(3) { animation-delay: .13s; }
.hero__copy > :nth-child(4) { animation-delay: .19s; }
.hero__copy > :nth-child(5) { animation-delay: .25s; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.15rem;
  color: var(--butter);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  background: var(--butter);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(248, 201, 78, .18);
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.75rem, 1.4rem + 6vw, 6.3rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.05em;
  animation-name: rise-solid;
}

.hero__lead {
  max-width: 54ch;
  margin: 1.5rem 0 0;
  color: var(--cream-blue);
  font-size: clamp(1.02rem, .98rem + .25vw, 1.16rem);
  line-height: 1.62;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .9rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn--butter {
  background: var(--butter);
  color: var(--navy-950);
  border-color: var(--butter);
  box-shadow: 5px 5px 0 rgba(247, 239, 221, .32);
}

.btn--butter:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(247, 239, 221, .4);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-cream);
}

.btn--ghost:hover {
  background: rgba(247, 239, 221, .08);
  border-color: var(--cream);
  transform: translateY(-2px);
}

.hero__address {
  margin: 1.35rem 0 0;
  font-size: .86rem;
  color: var(--cream-blue-dim);
}

.hero__address a {
  text-decoration-color: var(--butter);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.today {
  position: relative;
  width: 100%;
  padding: clamp(1.25rem, 2.2vw, 1.7rem);
  background: var(--cream);
  color: var(--navy-950);
  border: 2px solid var(--navy-950);
  box-shadow: var(--shadow-hard);
  transform: rotate(1.2deg);
  animation: stamp .6s .18s cubic-bezier(.2, .7, .2, 1) both;
}

.today__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
}

.today__label {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.today__badge {
  padding: .22rem .5rem;
  background: var(--navy-900);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.today.is-closed .today__badge {
  background: var(--tomato);
}

.today__day {
  margin: 1rem 0 .3rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}

.today__hours {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

.today__note {
  min-height: 2.4em;
  margin: .55rem 0 1rem;
  color: var(--ink-soft);
  font-size: .79rem;
  line-height: 1.45;
}

.today__call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}

.today__call span {
  transition: transform .2s ease;
}

.today__call:hover span {
  transform: translateX(4px);
}


.hero__facts {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 2.8rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line-cream);
  animation: rise .6s .46s cubic-bezier(.2, .7, .2, 1) both;
}

.hero__facts p {
  margin: 0;
  color: var(--cream-blue-dim);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero__facts strong {
  margin-right: .3rem;
  color: var(--butter);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hero__facts .hero__fact-new {
  color: var(--butter);
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  overflow: clip;
  padding: clamp(4rem, 8vw, 7.4rem) 0;
}

.section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(160px, 270px);
  gap: 1.5rem;
  align-items: end;
  padding-bottom: 1.2rem;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
  border-bottom: 1px solid var(--line);
}

.section-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .72;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(16, 26, 51, .34);
}

@supports not (-webkit-text-stroke: 1px black) {
  .section-num {
    color: rgba(16, 26, 51, .14);
  }
}

.kicker {
  margin: 0 0 .35rem;
  color: var(--tomato-dark);
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(2rem, 1.2rem + 2.7vw, 3.6rem);
  font-weight: 800;
}

.section-note {
  margin: 0 0 .25rem;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: right;
}

.section--news,
.section--contact,
.section--pricing {
  background: var(--navy-900);
  color: var(--cream);
  --ink: var(--cream);
  --ink-soft: var(--cream-blue-dim);
  --line: var(--line-cream);
  --tomato-dark: var(--butter);
}

.section--news::before,
.section--contact::before,
.section--pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(247, 239, 221, .12) 1px, transparent 0);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(105deg, transparent 20%, #000 65%, #000 100%);
  mask-image: linear-gradient(105deg, transparent 20%, #000 65%, #000 100%);
  pointer-events: none;
}

.section--news > .wrap,
.section--contact > .wrap,
.section--pricing > .wrap {
  position: relative;
  z-index: 1;
}

.section--news .section-num,
.section--contact .section-num,
.section--pricing .section-num {
  -webkit-text-stroke-color: rgba(247, 239, 221, .34);
}

/* ---------- Hours ---------- */

.hours-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}

.hours-card {
  padding: clamp(1.1rem, 2.5vw, 2rem);
  background: var(--paper-card);
  border: 2px solid var(--navy-950);
  box-shadow: 9px 9px 0 var(--butter);
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.hours th,
.hours td {
  padding: .95rem .7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.hours thead th {
  padding-top: 0;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hours tbody th {
  width: 8.5rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.hours tbody td:nth-child(2) {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
}

.hours tbody td:nth-child(2) span {
  display: block;
}

.hours tbody td:nth-child(3) {
  width: 31%;
  color: var(--ink-soft);
  font-size: .8rem;
  line-height: 1.45;
}

.hours tbody tr:last-child th,
.hours tbody tr:last-child td {
  border-bottom: 0;
}

.hours tbody tr.is-today {
  background: var(--butter-soft);
}

.hours tbody tr.is-today th {
  position: relative;
}

.hours tbody tr.is-today th::after {
  content: "dnes";
  display: inline-block;
  margin-left: .5rem;
  padding: .15rem .38rem;
  background: var(--navy-900);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: .2em;
}

.hours tbody tr.is-holiday {
  background: var(--tomato-soft);
}

.hours tbody tr.is-holiday th {
  position: relative;
}

.hours tbody tr.is-holiday th::after {
  content: "svátek";
  display: inline-block;
  margin-left: .5rem;
  padding: .15rem .38rem;
  background: var(--tomato);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: .2em;
}

.hours-legend {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .76rem;
  line-height: 1.5;
}

.hours-legend__mark {
  flex: 0 0 auto;
  width: .75rem;
  height: .75rem;
  margin-top: .18rem;
  background: var(--butter);
  border: 1.5px solid var(--navy-950);
}

.quick {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  background: var(--navy-900);
  color: var(--cream);
  box-shadow: 8px 8px 0 var(--tomato);
}

.quick h3 {
  margin-bottom: 1.1rem;
  color: var(--butter);
  font-size: 1.45rem;
  font-weight: 700;
}

.quick dl {
  margin: 0;
}

.quick dl > div {
  padding: .75rem 0;
  border-top: 1px solid var(--line-cream);
}

.quick dt {
  margin-bottom: .15rem;
  color: var(--cream-blue-label);
  font-family: var(--font-display);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.quick dd {
  margin: 0;
  font-size: .93rem;
  line-height: 1.5;
}

.quick a {
  color: var(--cream);
  text-decoration-color: var(--butter);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.quick__note {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line-cream);
  color: var(--cream-blue-dim);
  font-size: .78rem;
  line-height: 1.55;
}

/* ---------- News ---------- */

.news {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  max-width: 920px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--cream);
  color: var(--navy-950);
  --ink-soft: #565353;
  --tomato-dark: #a6301d;
  --line: rgba(16, 26, 51, .16);
  border: 2px solid var(--navy-950);
  box-shadow: 10px 10px 0 var(--butter);
}

.news__date {
  padding: 1rem .75rem;
  background: var(--tomato);
  color: var(--cream);
  border: 2px solid var(--navy-950);
  text-align: center;
  transform: rotate(-2deg);
}

.news__date span {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .82;
}

.news__date small {
  display: block;
  margin-top: .45rem;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.news__tag {
  margin: 0 0 .4rem;
  color: var(--tomato-dark);
  font-family: var(--font-display);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.news h3 {
  margin-bottom: .8rem;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.04;
}

.news__body p:last-child {
  max-width: 62ch;
  margin: 0;
  font-size: .98rem;
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about__text p {
  max-width: 60ch;
}

.about__lead {
  font-size: clamp(1.08rem, 1rem + .3vw, 1.22rem);
  line-height: 1.6;
}

.about__lead::first-letter {
  float: left;
  margin: .02em .1em 0 0;
  color: var(--tomato);
  font-family: var(--font-display);
  font-size: 3.5em;
  font-weight: 800;
  line-height: .78;
}

.about__greeting {
  margin: 1.6rem 0 0;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.03em;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.services a {
  display: inline-block;
  padding: .42rem .8rem;
  background: var(--cream);
  border: 1.5px solid var(--navy-900);
  box-shadow: 2px 2px 0 var(--butter);
  color: inherit;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.services a:hover {
  background: var(--butter);
  box-shadow: 3px 3px 0 var(--navy-900);
  transform: translate(-1px, -1px);
}

.gallery {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  grid-template-rows: auto auto auto;
  gap: .9rem;
}

.gallery__item {
  position: relative;
  margin: 0;
}

.gallery__item--tall {
  grid-row: 1 / 3;
}

.gallery__item:nth-child(4) {
  grid-column: 1 / 3;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid var(--navy-950);
  box-shadow: 5px 5px 0 rgba(11, 28, 70, .16);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease;
}

.gallery__item--tall img {
  aspect-ratio: 4 / 5;
}

.gallery__item:not(.gallery__item--tall):not(:nth-child(4)) img {
  aspect-ratio: 4 / 3;
}

.gallery__item:nth-child(4) img {
  aspect-ratio: 3.4 / 1;
}

.gallery__item:hover img {
  transform: scale(1.02);
  box-shadow: 8px 8px 0 var(--butter);
}

/* ---------- Team ---------- */

.team {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: stretch;
}

.person {
  display: flex;
  gap: 1.4rem;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  background: var(--paper-card);
  border: 2px solid var(--navy-950);
  box-shadow: 8px 8px 0 rgba(11, 28, 70, .14);
}

.person__art {
  display: grid;
  flex: 0 0 124px;
  place-items: center;
  align-self: flex-start;
  padding: .7rem;
  background: var(--cream-2);
  border: 1.5px solid var(--navy-950);
}

.person__art img {
  width: 100%;
  max-width: 104px;
  height: auto;
}

.person__body {
  min-width: 0;
}

.person__role {
  margin: 0 0 .3rem;
  color: var(--tomato-dark);
  font-family: var(--font-display);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.person h3 {
  margin-bottom: .85rem;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 700;
}

.person p {
  font-size: .92rem;
  line-height: 1.62;
}

.person__stamp {
  display: inline-block;
  margin: .35rem 0 0;
  padding: .35rem .6rem;
  background: var(--butter);
  border: 1.5px solid var(--navy-950);
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.person--nurse {
  flex-direction: column;
  justify-content: space-between;
  background: var(--navy-900);
  color: var(--cream);
  box-shadow: 8px 8px 0 var(--tomato);
}

.person--nurse .person__art {
  align-self: stretch;
  width: 100%;
  background: var(--cream);
}

.person--nurse .person__art img {
  max-width: 130px;
  margin-inline: auto;
}

.person--nurse .person__role {
  color: var(--butter);
}

.person--nurse h3 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact__intro h2 {
  font-size: clamp(2.5rem, 1.4rem + 4vw, 4.6rem);
  font-weight: 800;
  line-height: .94;
}

.contact__intro p {
  max-width: 38ch;
  margin-top: 1rem;
  color: var(--cream-blue);
}

.contact__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: clamp(1.15rem, 2vw, 1.6rem);
  background: rgba(247, 239, 221, .035);
  border: 1px solid var(--line-cream);
  color: var(--cream);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}

.contact-card--address {
  grid-column: 1 / 3;
}

.contact-card__label {
  color: var(--butter);
  font-family: var(--font-display);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.contact-card strong {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.6vw, 1.42rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.contact-card small {
  color: var(--cream-blue-dim);
  font-size: .78rem;
  line-height: 1.4;
}

.contact-card:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--navy-950);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--butter);
}

.contact-card:hover .contact-card__label {
  color: var(--tomato-dark);
}

.contact-card:hover small {
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 2.6rem 0 3rem;
  background: var(--navy-950);
  border-top: 1px solid var(--line-cream);
  color: var(--cream-blue-dim);
}

.footer__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: start;
}

.footer__logo {
  width: 148px;
  height: auto;
  opacity: .92;
}

.footer__legal {
  max-width: 62ch;
  margin: 0;
  font-size: .76rem;
  line-height: 1.65;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  justify-content: flex-end;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer__nav a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.footer__nav a:hover {
  border-color: var(--butter);
}


/* ---------- News list ---------- */

.news-list {
  display: grid;
  gap: 1.4rem;
}

.news__date--new {
  background: var(--butter);
  color: var(--navy-950);
}

.news__date--new span {
  font-size: 3rem;
}

/* ---------- Services detail ---------- */

.services-detail {
  display: grid;
  gap: 1.25rem;
}

.service-block {
  padding: clamp(1.2rem, 2.5vw, 2rem);
  background: var(--paper-card);
  border: 2px solid var(--navy-950);
  box-shadow: 8px 8px 0 var(--butter);
}

.service-block h3 {
  margin-bottom: .7rem;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700;
}

.service-block h4 {
  margin: 1.5rem 0 .45rem;
  color: var(--tomato-dark);
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.service-block p {
  max-width: 72ch;
}

.service-block p + p {
  margin-top: .6rem;
}

.service-list {
  display: grid;
  gap: .45rem;
  margin: .6rem 0 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 1.15rem;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .42rem;
  height: .42rem;
  background: var(--butter);
  border: 1px solid var(--navy-950);
  border-radius: 50%;
}

.service-list--columns {
  display: block;
  columns: 2;
  column-gap: 2.4rem;
}

.service-list--columns li {
  margin-bottom: .45rem;
  break-inside: avoid;
}

.service-sub {
  margin: 1.15rem 0 .3rem;
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
}

/* ---------- Pricing ---------- */

.price-card {
  padding: clamp(1.1rem, 2.5vw, 2rem);
  background: var(--paper-card);
  color: var(--navy-950);
  --ink-soft: #565353;
  --line: rgba(16, 26, 51, .16);
  border: 2px solid var(--navy-950);
  box-shadow: 9px 9px 0 var(--butter);
}

.price-list {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.price-list th,
.price-list td {
  padding: .7rem .5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-list thead th {
  padding-top: 0;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.price-list tbody th {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 400;
}

.price-list tbody td {
  width: 8rem;
  text-align: right;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.price-list tbody tr:last-child th,
.price-list tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-solid {
  from {
    transform: translateY(22px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes stamp {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(4deg) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(1.2deg) scale(1);
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head,
    .hours-card,
    .quick,
    .news,
    .about__text,
    .gallery__item,
    .person,
    .contact__intro,
    .contact-card {
      animation: rise .6s linear both;
      animation-timeline: view();
      animation-range: entry 4% cover 26%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(290px, .75fr);
  }

  .nav {
    gap: .8rem;
    font-size: .76rem;
  }
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .today {
    max-width: 430px;
    transform: rotate(.6deg);
  }

  .section-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .section-note {
    display: none;
  }

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

  .quick {
    position: static;
    box-shadow: 6px 6px 0 var(--tomato);
  }

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

  .gallery {
    max-width: 680px;
  }

  .service-list--columns {
    columns: 1;
  }

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

  .person--nurse {
    flex-direction: row;
    align-items: center;
  }

  .person--nurse .person__art {
    align-self: center;
    width: auto;
    flex: 0 0 170px;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .footer__nav {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .header__inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.2rem;
    background: var(--navy-950);
    border-bottom: 1px solid var(--line-cream);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .32);
  }

  .site-header[data-open] .nav {
    display: flex;
  }

  .nav a {
    padding: .85rem 0;
    border-bottom: 1px solid var(--line-cream);
    font-size: .95rem;
  }

  .nav a::after {
    display: none;
  }
}

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

  .hero {
    padding-top: 2.4rem;
  }

  .hero::before {
    right: -55%;
    top: -10%;
  }

  .hero__grid {
    padding-bottom: 2.4rem;
  }

  .hero__facts {
    gap: .35rem 1.4rem;
  }

  .hero__facts p {
    font-size: .7rem;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .section-head {
    gap: .9rem;
    align-items: start;
  }

  .section-num {
    font-size: 2.6rem;
    line-height: .85;
  }

  .section h2 {
    font-size: clamp(1.75rem, 7.5vw, 2.6rem);
  }

  .hours {
    display: block;
  }

  .hours thead {
    display: none;
  }

  .hours tbody,
  .hours tr {
    display: block;
  }

  .hours tbody tr {
    display: grid;
    grid-template-columns: 5.2rem minmax(0, 1fr);
    gap: 0 .6rem;
    padding: .85rem .55rem;
    border-bottom: 1px solid var(--line);
  }

  .hours tbody tr:last-child {
    border-bottom: 0;
  }

  .hours tbody th,
  .hours tbody td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }

  .hours tbody th {
    font-size: 1rem;
  }

  .hours tbody td:nth-child(2) {
    font-size: .95rem;
  }

  .hours tbody td:nth-child(3) {
    grid-column: 2;
    width: auto;
    margin-top: .2rem;
    font-size: .74rem;
  }

  .hours tbody tr.is-today th::after,
  .hours tbody tr.is-holiday th::after {
    display: none;
  }

  .hours tbody tr.is-today {
    box-shadow: inset 4px 0 0 var(--navy-900);
  }

  .hours tbody tr.is-holiday {
    box-shadow: inset 4px 0 0 var(--tomato);
  }

  .news {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .news__date {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    width: fit-content;
    padding: .45rem .8rem;
    transform: rotate(-1.5deg);
  }

  .news__date span {
    font-size: 2.1rem;
  }

  .news__date small {
    margin: 0;
  }

  .service-list--columns {
    columns: 1;
  }

  .price-list th,
  .price-list td {
    padding: .6rem .35rem;
  }

  .price-list tbody td {
    width: 5.6rem;
    font-size: .92rem;
  }

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

  .gallery__item--tall,
  .gallery__item:nth-child(4) {
    grid-row: auto;
    grid-column: auto;
  }

  .gallery__item--tall img,
  .gallery__item:not(.gallery__item--tall):not(:nth-child(4)) img,
  .gallery__item:nth-child(4) img {
    aspect-ratio: 4 / 3;
  }

  .person {
    flex-direction: column;
  }

  .person__art {
    flex: 0 0 auto;
    align-self: stretch;
  }

  .person__art img {
    margin-inline: auto;
  }

  .person--nurse {
    flex-direction: column;
    align-items: stretch;
  }

  .person--nurse .person__art {
    width: auto;
    flex: 0 0 auto;
  }

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

  .contact-card--address {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .today {
    max-width: calc(100% - 6px);
    box-shadow: 6px 6px 0 var(--butter);
    transform: none;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 11.5vw, 3rem);
  }

  .brand img {
    width: 128px;
  }

  .footer__logo {
    width: 132px;
  }
}
