:root {
  --base: #FBF8F4;
  --white: #FFFFFF;
  --clay: #AD5237;      /* 4.9:1 on base and for cream text on clay */
  --clay-deep: #9A4630; /* clay for text on sand (4.7:1) */
  --sand: #EADCCB;
  --sand-soft: #F4ECE3;
  --ink: #2E211B;
  --ink-soft: #6B5A50;
  --line: rgba(46, 33, 27, 0.12);
  --on-clay: #FBF8F4;

  --font: 'Onest', system-ui, sans-serif;

  --radius-card: 28px;
  --radius-photo: 24px;
  --radius-button: 12px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --header-h: 68px;

  color-scheme: light;
}

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

html {
  scrollbar-gutter: stable; /* keeps the page from shifting when the sheet locks scrolling */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }

/* Long Russian words: hyphenate body text, never let headings overflow */
p, li, td, th { hyphens: auto; -webkit-hyphens: auto; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--clay);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.85rem, 4.6vw, 4rem); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
.contact-card :focus-visible { outline-color: var(--on-clay); }
main:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 30;
  padding: 12px 18px;
  background: var(--clay);
  color: var(--on-clay);
  font-weight: 500;
  border-radius: var(--radius-button);
}
.skip-link:focus { top: 12px; }

/* Small labels: sentence case, quiet */
.eyebrow {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clay);
  margin-bottom: 16px;
}

/* Buttons — soft rectangles, never pills */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--clay);
  border-radius: var(--radius-button);
  background: var(--clay);
  color: var(--on-clay);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.button:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.button:active { transform: translateY(1px); }
.button--small { min-height: 42px; padding: 0 18px; font-size: 0.95rem; border-radius: 10px; }
.button--ghost { background: transparent; color: var(--clay); border-color: var(--line); }
.button--ghost:hover { background: var(--white); color: var(--clay-deep); border-color: var(--clay); }
.button--light { background: var(--on-clay); border-color: var(--on-clay); color: var(--clay); }
.button--light:hover { background: var(--white); border-color: var(--white); color: var(--clay-deep); }
.button--outline-light { background: transparent; border-color: rgba(251, 248, 244, 0.6); color: var(--on-clay); }
.button--outline-light:hover { background: var(--on-clay); border-color: var(--on-clay); color: var(--clay); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
a[href^="tel:"], .nowrap { white-space: nowrap; }

.text-link {
  color: var(--clay);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--clay-deep); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 244, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-h);
}
.wordmark {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--clay);
}
.header-nav { display: flex; gap: 4px; margin-left: auto; }
.header-nav a {
  padding: 10px 12px;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: color 0.2s, background-color 0.2s;
}
.header-nav a:hover { color: var(--ink); background: var(--sand-soft); }

/* Placeholders for illustrations and photos */
.illo, .photo {
  display: grid;
  place-items: center;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
}
.illo {
  border: 1.5px dashed rgba(173, 82, 55, 0.4);
  border-radius: 18px;
  color: var(--clay);
}

.photo {
  position: relative;
  background: linear-gradient(135deg, #E6D6C4, #D7C3AE);
  color: var(--ink);
  border-radius: var(--radius-photo);
  overflow: hidden;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Hero / introduction */
.hero { padding: clamp(40px, 7vw, 96px) 0 var(--section); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero h1 { max-width: 17ch; }
.lead {
  max-width: 46ch;
  margin-bottom: 32px;
  font-size: clamp(1.08rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
}
.hero-note { margin: 24px 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.hero-media { position: relative; }
.photo--hero { aspect-ratio: 4 / 5; }
.photo--hero img { object-position: 50% 40%; }
.illo--hero {
  position: absolute;
  left: clamp(-56px, -4vw, -16px);
  bottom: clamp(24px, 5vw, 56px);
  width: clamp(120px, 14vw, 168px);
  aspect-ratio: 1;
  background: var(--base);
  border-style: dashed;
  box-shadow: 0 18px 40px -20px rgba(46, 33, 27, 0.35);
}

/* Sections */
.section { padding: 0 0 var(--section); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 1.05rem; }
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
}
.section-head--split h2 { margin: 0; }

/* Treatments panel */
.panel {
  --clay: var(--clay-deep);
  background: var(--sand);
  border-radius: var(--radius-card);
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px);
}
/* Price list: section title left, rows right; 8px rhythm */
.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(154, 70, 48, 0.3);
}
.panel-head h2 { margin: 0; }
.panel-lead { margin: 16px 0 0; font-size: 1.125rem; line-height: 1.5; font-weight: 500; color: var(--clay-deep); }
.illo--menu { width: 112px; flex: none; aspect-ratio: 1; border-color: rgba(154, 70, 48, 0.35); }

.price-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: baseline;
  gap: 16px 48px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(154, 70, 48, 0.3);
}
.price-section:last-child { border-bottom: 0; padding-bottom: 0; }
.price-section > h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.33;
  color: var(--clay-deep);
  hyphens: manual;
  /* stays in view while its rows scroll past; releases at the section's end */
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.price-group + .price-group { margin-top: 40px; }
.price-group h4 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.price-sub { margin: -8px 0 8px; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-soft); }
.price-group ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.price-group li { padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.price-section:first-of-type .price-group ul { border-top: 0; }
.price-group:last-child li:last-child { border-bottom: 0; padding-bottom: 0; }
.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.menu-name, .menu-note, .checklist li { hyphens: manual; -webkit-hyphens: manual; text-wrap: pretty; }
.menu-price {
  flex: none;
  white-space: nowrap;
  font-weight: 500;
  color: var(--clay-deep);
  font-variant-numeric: tabular-nums;
}
.menu-note { margin: 4px 0 0; max-width: 34em; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-soft); }

/* Rows with extra information open the bottom sheet */
button.menu-row {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.menu-row--more .menu-name { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(154, 70, 48, 0.35); text-underline-offset: 4px; transition: text-decoration-color 0.2s; }
.menu-row--more:hover .menu-name { text-decoration-color: var(--clay-deep); }
.menu-more { display: inline-block; vertical-align: -2px; color: var(--clay-deep); transition: transform 0.2s; }
.menu-row--more:hover .menu-more { transform: translateX(2px); }
.menu-row--more:focus-visible { outline-offset: 6px; border-radius: 4px; }
.group-more { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(154, 70, 48, 0.35); text-underline-offset: 4px; transition: text-decoration-color 0.2s; }
.group-more:hover { text-decoration-color: var(--clay-deep); }
.group-more:hover .menu-more { transform: translateX(2px); }

/* Bottom sheet */
.sheet {
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden; /* the browser default is auto: the panel sliding in from below would add a second scrollbar */
}
.sheet[open] { display: flex; align-items: flex-end; justify-content: center; }
.sheet::backdrop { background: rgba(46, 33, 27, 0.45); opacity: 0; transition: opacity 0.4s ease; }
.sheet.is-open::backdrop { opacity: 1; }
.sheet-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--base);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  box-shadow: 0 -12px 40px -16px rgba(46, 33, 27, 0.35);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-sheet);
}
.sheet.is-open .sheet-panel { transform: translateY(0); }
.sheet.is-dragging .sheet-panel { transition: none; }
html:has(.sheet[open]) { overflow: hidden; }

.sheet-handle {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 24px;
  margin-bottom: -24px;
  display: grid;
  place-items: center;
}
.sheet-handle::before { content: ""; width: 40px; height: 4px; border-radius: 2px; background: rgba(251, 248, 244, 0.85); box-shadow: 0 0 0 1px rgba(46, 33, 27, 0.12); }
.sheet-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(251, 248, 244, 0.92);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s;
}
.sheet-close:hover { background: var(--white); }
.sheet-banner { aspect-ratio: 16 / 9; border-radius: 0; }
.sheet-content { padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom)); }
.sheet-content .sheet-title { margin: 0 0 8px; font-size: clamp(1.5rem, 5vw, 2rem); color: var(--clay-deep); }
.sheet-meta { margin: 0 0 24px; color: var(--ink-soft); }
.sheet-content p:not(.sheet-meta) { color: var(--ink-soft); hyphens: manual; -webkit-hyphens: manual; text-wrap: pretty; }
.sheet-content h3 { margin: 32px 0 8px; font-size: 1.0625rem; font-weight: 600; }
.sheet-list { list-style: none; margin: 0 0 16px; padding: 0; color: var(--ink-soft); }
.sheet-list li { position: relative; padding: 4px 0 4px 20px; hyphens: manual; }
.sheet-list li::before { content: ""; position: absolute; left: 2px; top: calc(4px + 0.8em - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--clay-deep); }
.sheet-book { width: 100%; margin-top: 16px; }

@media (min-width: 721px) {
  .sheet-panel { margin-bottom: 24px; border-radius: var(--radius-card); }
  .sheet-content { padding-left: 40px; padding-right: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet-panel, .sheet::backdrop { transition-duration: 0.01s; }
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
}
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--portrait img { object-position: 50% 100%; }
.about-text > p { color: var(--ink-soft); font-size: 1.05rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--clay);
  border-bottom: 2px solid var(--clay);
  transform: rotate(-45deg);
}
.name-story-inner {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}
.name-story h2 { margin: 8px 0 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.name-story p { margin: 0; font-size: 1.15rem; color: var(--ink-soft); text-wrap: balance; }
.illo--note { width: 88px; aspect-ratio: 1; border-radius: 14px; }

/* Visit: hours + map + address */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "address map"
    "hours map";
  gap: 16px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 36px);
}
.card--hours { grid-area: hours; }
.card--address { grid-area: address; }
.card--map { grid-area: map; padding: 0; overflow: hidden; min-height: 440px; background: var(--sand-soft); }
.card--map iframe { width: 100%; height: 100%; border: 0; display: block; }
.card--address address { font-style: normal; font-size: 1.1rem; font-weight: 500; margin-bottom: 8px; }
.card--address p, .card--hours p { color: var(--ink-soft); margin: 0 0 16px; }
.card--address h3 { margin-top: 24px; }
.card--address h3:first-child { margin-top: 0; }
.card--address strong { color: var(--ink); font-weight: 500; }


/* Contact */
.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  background: var(--clay);
  color: var(--on-clay);
  border-radius: var(--radius-card);
  padding: clamp(36px, 7vw, 88px);
}
.contact-card h2 { color: var(--on-clay); }
.contact-card p { max-width: 44ch; font-size: 1.08rem; margin-bottom: 28px; }
.illo--contact {
  width: clamp(140px, 18vw, 220px);
  aspect-ratio: 1;
  border-color: rgba(251, 248, 244, 0.55);
  color: var(--on-clay);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  font-size: 0.95rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer h3 { font-size: 0.95rem; letter-spacing: 0; margin-bottom: 8px; }
.site-footer p { margin: 0; color: var(--ink-soft); }
.footer-brand .wordmark { display: inline-block; margin-bottom: 6px; }
.site-footer a { text-underline-offset: 3px; }
.smallprint { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.875rem; }

/* Scroll reveal: only where supported and wanted; content is visible otherwise */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    @keyframes reveal {
      from { opacity: 0; transform: translateY(28px); }
      to { opacity: 1; transform: none; }
    }
  }
}

/* Tablet */
@media (max-width: 960px) {
  .hero-grid, .about { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; }
  .illo--hero { left: auto; right: -12px; }
  .photo--portrait { max-width: 480px; }
  .section-head--split { grid-template-columns: 1fr; }
  .price-section { grid-template-columns: 1fr; padding: 32px 0; }
  .price-section > h3 {
    top: var(--header-h);
    z-index: 1;
    margin: -8px 0 0;
    padding: 8px 0;
    background: var(--sand);
  }
  .visit-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "address" "hours" "map";
  }
  .card--map { min-height: 0; aspect-ratio: 4 / 3; }
  .contact-card { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; }
  .header-nav, .header-book { display: none; }
  .hero .actions .button, .contact-card .actions .button { flex: 1 1 100%; }
  .card--map { aspect-ratio: 1; }
  .panel-head { padding-bottom: 32px; }
  .illo--menu { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
