:root {
  --paper: #f4f1eb;
  --paper-2: #ebe6dc;
  --ink: #1d2422;
  --ink-2: #4a524f;
  --muted: #7d837f;
  --accent: #3d6b5e;
  --line: rgba(29, 36, 34, .16);
  --serif: 'Spectral', Georgia, serif;
  --sans: 'Onest', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
picture { display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 300; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 64px); margin-inline: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 500; font-size: 15px; transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: transparent; color: var(--paper); }
.text-link { position: relative; font-weight: 500; padding-bottom: 2px; }
.text-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .3s; }
.text-link:hover::after { transform: scaleX(.4); }

/* the «white line» motif: titles run into a thin rule */
.title { display: flex; align-items: center; gap: 28px; margin-bottom: 48px; }
.title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.title h2, .book h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(244, 241, 235, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 36px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font: 400 22px var(--serif); letter-spacing: -0.01em; }
.logo::after { content: ''; width: 28px; height: 1px; background: var(--ink); }
.nav nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); }
.nav-phone { font-weight: 500; font-size: 15px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: end; padding: 72px 0 96px; }
.meta { display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 36px; }
.meta span + span::before { content: ''; display: inline-block; width: 24px; height: 1px; margin: 0 14px 4px 0; background: var(--muted); vertical-align: middle; }
.hero h1 { font-size: clamp(48px, 6.6vw, 98px); line-height: .98; letter-spacing: -0.025em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lead { max-width: 500px; margin-top: 32px; font-size: 18px; color: var(--ink-2); }
.hero-cta { display: flex; align-items: center; gap: 28px; margin-top: 40px; }
.today { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); }
.today-label { font-size: 14px; color: var(--muted); }
.today-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.today-slots a { padding: 5px 12px; border: 1px solid var(--line); font: 500 14px var(--mono); transition: border-color .2s, background .2s; }
.today-slots a:hover { border-color: var(--accent); background: rgba(61, 107, 94, .08); }
.none { font-size: 14px; color: var(--muted); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; animation: rise 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.hero-photo figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
@keyframes rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }

/* principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principles article { padding: 40px 36px 44px 0; }
.principles article + article { padding-left: 36px; border-left: 1px solid var(--line); }
.principles h3 { font-size: 26px; line-height: 1.15; margin-bottom: 14px; }
.principles p { color: var(--ink-2); font-size: 15px; }

/* place */
.place { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; padding: 96px 0 120px; align-items: end; }
.place-big img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.place-side img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 22px; }
.place-side p { font: italic 300 22px/1.4 var(--serif); color: var(--ink-2); }

/* prices */
.prices { padding-bottom: 120px; }
.prices-grid { display: grid; grid-template-columns: 1fr 380px; gap: 72px; align-items: start; }
.pg + .pg { margin-top: 40px; }
.pg h3 { font-size: 24px; margin-bottom: 8px; }
.row { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 16px; }
.row-name { transition: color .2s; }
.dots { flex: 1; border-bottom: 1px dotted rgba(29, 36, 34, .3); transform: translateY(-4px); }
.row-price { font: 500 15px var(--mono); white-space: nowrap; }
.plus { position: relative; flex: none; width: 22px; height: 22px; border: 1px solid var(--line); align-self: center; transition: background .2s, border-color .2s; }
.plus::before, .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .25s; }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.row:hover .row-name { color: var(--accent); }
.row:hover .plus { border-color: var(--ink); }
.row[aria-pressed="true"] .plus { background: var(--accent); border-color: var(--accent); }
.row[aria-pressed="true"] .plus::before, .row[aria-pressed="true"] .plus::after { background: #fff; }
.row[aria-pressed="true"] .plus::after { transform: translate(-50%, -50%) rotate(0); }
.row[aria-pressed="true"] .row-name { color: var(--accent); }

.receipt-wrap { position: sticky; top: 100px; }
.receipt { position: relative; padding: 28px 26px 30px; background: #fffdf8; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 18px 40px rgba(29, 36, 34, .09); font: 13px/1.5 var(--mono); }
.receipt::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; background: linear-gradient(135deg, #fffdf8 50%, transparent 50%) 0 0 / 14px 14px repeat-x, linear-gradient(225deg, #fffdf8 50%, transparent 50%) 0 0 / 14px 14px repeat-x; }
.r-mini { display: none; }
.r-head { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); color: var(--muted); }
.r-head b { font: 400 20px var(--serif); color: var(--ink); }
.r-items { list-style: none; margin: 0; padding: 12px 0 0; }
.r-items li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; animation: print .3s ease both; }
.r-items b { font-weight: 500; white-space: nowrap; }
@keyframes print { from { opacity: 0; transform: translateY(-6px); } }
.r-empty { padding: 16px 0 4px; color: var(--muted); text-align: center; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.r-total b { font-size: 22px; font-weight: 500; }
.r-note { margin: 12px 0 20px; color: var(--muted); font-size: 12px; }
.receipt .btn { font-family: var(--sans); }

/* doctors */
.doctors { padding: 110px 0; background: var(--paper-2); }
.doctors-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.doc-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.doc-row { display: grid; grid-template-columns: 1fr 90px 230px; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.doc-row b { display: block; font: 400 24px/1.2 var(--serif); }
.doc-row small { color: var(--muted); font-size: 14px; }
.doc-headrow { padding: 0 0 12px; font-size: 13px; color: var(--muted); }
.days { display: flex; gap: 4px; }
.days i { display: grid; place-items: center; width: 34px; height: 30px; font: normal 12px var(--mono); color: rgba(29, 36, 34, .32); border: 1px solid transparent; }
.days i.on { color: var(--ink); border-color: var(--line); background: var(--paper); }

/* first visit */
.visit { padding: 120px 0; }
.visit-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.bar { display: flex; gap: 3px; height: 10px; margin-bottom: 36px; }
.bar i { flex: var(--w); background: var(--accent); opacity: .35; transform-origin: left; }
.bar i:nth-child(2) { opacity: .6; }
.bar i:nth-child(3) { opacity: .85; }
.bar i:nth-child(4) { opacity: 1; }
.reveal.in .bar i { animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.reveal.in .bar i:nth-child(2) { animation-delay: .15s; }
.reveal.in .bar i:nth-child(3) { animation-delay: .3s; }
.reveal.in .bar i:nth-child(4) { animation-delay: .45s; }
@keyframes grow { from { transform: scaleX(0); } }
.steps { margin: 0; }
.steps > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps dt { font: 400 22px/1.2 var(--serif); }
.steps dd { margin: 0; color: var(--ink-2); }
.steps dd span { display: block; font: 500 13px var(--mono); color: var(--accent); margin-bottom: 2px; }
.visit-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* quote */
.quote { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; padding: 40px 0 130px; }
.quote-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(.2); }
.quote blockquote { margin: 0; }
.quote p { font: 300 clamp(24px, 2.6vw, 34px)/1.35 var(--serif); }
.quote footer { margin-top: 24px; font-size: 15px; color: var(--ink-2); }
.quote footer span { color: var(--muted); }

/* booking */
.book { padding: 110px 0; background: var(--ink); color: var(--paper); }
.book-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.book-info dl { margin: 40px 0 0; }
.book-info dl div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(244, 241, 235, .16); }
.book-info dt { color: rgba(244, 241, 235, .55); font-size: 14px; }
.book-info dd { margin: 0; }
.book-form { display: grid; gap: 26px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { margin-bottom: 12px; font-size: 13px; color: rgba(244, 241, 235, .55); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: flex; flex-direction: column; align-items: flex-start; padding: 9px 14px; border: 1px solid rgba(244, 241, 235, .22); background: none; color: var(--paper); font-size: 15px; transition: border-color .2s, background .2s, color .2s; }
.chip small { font-size: 12px; opacity: .6; }
.chip:hover { border-color: var(--paper); }
.chip.on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip-t { font: 500 14px var(--mono); }
.book .none { color: rgba(244, 241, 235, .55); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.book-form label { display: grid; gap: 6px; font-size: 13px; color: rgba(244, 241, 235, .55); }
.book-form label span { opacity: .6; }
.book-form input, .book-form textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(244, 241, 235, .3); background: none; color: var(--paper); font: 17px var(--sans); resize: vertical; transition: border-color .2s; }
.book-form input:focus, .book-form textarea:focus { outline: none; border-color: var(--paper); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.form-foot p { font: italic 300 20px var(--serif); }
.status { min-height: 20px; font-size: 14px; color: #a9cbbf; }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 36px 0 44px; font-size: 13px; color: var(--muted); }
.footer .logo { color: var(--ink); font-size: 18px; }
.footer a { color: var(--ink); border-bottom: 1px solid var(--line); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .nav nav { display: none; }
  .nav-phone { margin-left: auto; }
  .hero, .prices-grid, .doctors-grid, .visit-grid, .book-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { max-width: 520px; }
  .receipt-wrap { position: static; max-width: 440px; }
  .doc-photo { max-width: 420px; }
  .r-mini { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--ink); color: var(--paper); font: 500 14px var(--mono); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); transition: transform .3s, opacity .3s; }
  .r-mini[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; }
  .quote { grid-template-columns: 200px 1fr; gap: 40px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .nav-phone { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding: 44px 0 64px; }
  .meta { margin-bottom: 24px; }
  .hero-cta { flex-wrap: wrap; gap: 20px; }
  .today { margin-top: 40px; }
  .principles { grid-template-columns: 1fr; }
  .principles article, .principles article + article { padding: 28px 0; border-left: 0; }
  .principles article + article { border-top: 1px solid var(--line); }
  .place { grid-template-columns: 1fr; padding: 64px 0 80px; }
  .title { margin-bottom: 32px; gap: 18px; }
  .prices { padding-bottom: 80px; }
  .row { font-size: 15px; flex-wrap: wrap; }
  .row-name { flex: 1 1 100%; }
  .dots { display: none; }
  .row-price { margin-right: auto; }
  .doctors, .visit, .book { padding: 80px 0; }
  .doc-row { grid-template-columns: 1fr auto; row-gap: 10px; }
  .doc-row .days { grid-column: 1 / -1; }
  .doc-headrow { display: none; }
  .days i { width: 100%; }
  .steps > div { grid-template-columns: 1fr; gap: 4px; }
  .quote { grid-template-columns: 1fr; gap: 28px; padding: 0 0 80px; }
  .quote-photo { max-width: 200px; }
  .fields { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: flex-start; }
  .book-info dl div { grid-template-columns: 90px 1fr; }
  .footer { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
