@font-face {
  font-family: "Studio Serif";
  src: url("assets/fonts/studio-serif-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Studio Serif";
  src: url("assets/fonts/studio-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --serif: "Studio Serif", Georgia, serif;
  --ink: #302d2b;
  --soft: #595550;
  --wine: #633e49;
  --paper: #f7f5ee;
  --rule: #c7c3b8;
  --mirror: #e1e4dc;
  font-synthesis: none;
}
.brand {
  font: 400 clamp(30px, 2.8vw, 43px)/1 var(--serif);
  letter-spacing: .02em;   /* «LPG LAB» is set in capitals: a little air between them (the name in lower case was set tight) */
  white-space: nowrap;
}
.wordmark { gap: clamp(12px, 1.3vw, 23px); }
.descriptor {
  padding: 0;
  border: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--soft);
}
.nav a, .intro .inline, .booking-maps a { min-width: 44px; min-height: 44px; }
.nav a:last-child { color: var(--wine); border-bottom: 0; }
.nav .book-nav, .actions .inline, .visit-copy .inline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .27em;
  text-decoration-color: #9e8c86;
}
.studio-home .hero h1 {
  margin: 0;
  font: 400 clamp(46px, min(6.6vw, 11.5svh), 109px)/.99 var(--serif);
  letter-spacing: -.028em;
}
.studio-home .intro .music-quote {
  margin-top: clamp(12px, 1.5vw, 23px);
  color: #514047;
  font: italic 400 clamp(19px, 1.85vw, 29px)/1.25 var(--serif);
  letter-spacing: -.01em;
}
.button {
  color: #fffaf4;
  background: var(--wine);
  border-radius: 2px;
  font-weight: 400;
}
.intro .inline, .visit-copy .inline { padding-block: 0; border: 0; color: var(--ink); }
.scene .key {
  color: #493f3f;
  font-family: var(--sans);
  font-weight: 400;
}

.price-heading h2, .booking-contact h2 {
  font: 400 clamp(44px, 4.5vw, 70px)/1.03 var(--serif);
  letter-spacing: -.03em;
}
.price-leaf caption {
  color: var(--ink);
  font: 400 clamp(30px, 2.7vw, 42px)/1.02 var(--serif);
  letter-spacing: -.032em;
}
.visit-copy h3 {
  margin: 0;
  font: 400 clamp(27px, 2.35vw, 38px)/1.1 var(--serif);
  letter-spacing: -.024em;
  text-wrap: balance;
}
.booking-call {
  color: var(--ink);
  font: 400 clamp(24px, 2.2vw, 35px)/1.2 var(--sans);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.booking-channels { column-gap: 24px; }
.booking-channels a {
  padding: 0;
  color: var(--wine);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: #a28f94;
  text-underline-offset: .32em;
}
.booking-address {
  font: 400 clamp(25px, 2.4vw, 39px)/1.12 var(--serif);
  letter-spacing: -.027em;
}
.policy { color: var(--ink); background: var(--paper); }
.policy h1, .policy h2 { font-family: var(--serif); font-weight: 400; }
:focus-visible { outline-color: var(--wine); }

@media (hover: hover) {
  .mobile-bar .write summary:hover { background: var(--wine-deep); }
  .booking-channels a:hover, .actions .inline:hover, .visit-copy .inline:hover {
    background: transparent;
    color: var(--wine);
    text-decoration-color: currentColor;
  }
}
@media (min-width: 651px) and (max-width: 960px) {
  .studio-home .hero .actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
}
@media (max-width: 650px) {
  .head { height: 59px; }
  .nav .mobile-price::after { content: none; }
  .hero > .scene { background-color: var(--wall); }
  .studio-home .intro { padding-block: 18px 28px; }
  .studio-home .hero h1 { font-size: clamp(44px, 11.8vw, 72px); line-height: 1.02; }
  .studio-home .intro .music-quote { margin-top: 9px; font-size: clamp(18px, 4.65vw, 23px); }
  .studio-home .actions { margin-top: 14px; column-gap: 17px; flex-wrap: wrap; }
  .studio-home .actions .button { padding-inline: 16px; }
  .price-heading h2, .booking-contact h2 { font-size: clamp(40px, 10.4vw, 58px); }
  .booking-call { font-size: clamp(23px, 6vw, 30px); }
  .booking-address { font-size: clamp(24px, 6.2vw, 32px); }
  .mobile-bar .quick { font-weight: 400; }
  .mobile-bar .call { color: var(--ink); background: transparent; border-color: var(--rule); }
  .menu-list { background: var(--paper); border-color: var(--rule); }
}

/* ---- D1 and direction B (docs/TASK-studio-design.md), 24.11.2026 ---- */
.booking-contact .booking-sub {
  margin: .3em 0 0;
  font: 500 16px/1.4 var(--sans);
  color: var(--booking-muted, var(--soft));
}
/* The «не слышно?» hint sits on the box's shelf, over the picture only, never over text or buttons; it stays in the
   accessibility tree (a live region): invisible while empty, its text set to announce it. */
.studio-home .stage .box-note {
  position: absolute;
  left: 22%;
  right: 22%;
  top: 86%;
  bottom: auto;
  width: auto;
  transform: none;
  text-align: center;
  z-index: 4;
}   /* a fixed box anchored at its top left: clearing the text moves nothing (no layout shift) */
.studio-home .box-note { opacity: 0; transition: opacity .3s ease; background: var(--wine-deep); color: var(--on-wine); font-size: var(--t-body); }
.studio-home .box-note.on { opacity: 1; }
@media (max-width: 650px) {
  /* the phone's stage is taller than the scene that shows it: keep the hint at the bottom of what is visible. Its two
     lines (63 px) end 6 px above the 28 px fade into the page: at -52px the second line was cut off by that fade */
  .studio-home .stage .box-note { top: calc(min(101vw, 528px) - 97px); left: 26%; right: 10px; }   /* the key is on the left */
  .studio-home .head .descriptor { display: none; }   /* the h1 says what the place is */
  .mobile-bar { transition: transform .25s ease, visibility 0s; }
  .mobile-bar.away { transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }   /* the booking block shows the same contacts */
}
@media (prefers-reduced-motion: reduce) {
  .mobile-bar, .mobile-bar.away, .studio-home .box-note { transition: none; }
}

/* ---- D2: one warm visual system taken from the box (docs/TASK-studio-design.md), 24.11.2026 ----
   Colours sampled from the warm still: ivory and cream of the case, the powder-pink velvet, the brass rim, the dark
   brown of its shadows. The owner: «явно теплее лучше». Text sizes on a short scale; body text never under 15 px. */
:root {
  --ink: #3a2e29;           /* text */
  --soft: #5e4d44;          /* secondary text: 6.4–7 : 1 on the backgrounds below */
  --wine: #6e4441;          /* the action: the velvet, darkened (white text 7.9 : 1) */
  --wine-deep: #573532;
  --paper: #f6efe6;         /* ivory */
  --cream: #efe4d6;         /* the case */
  --velvet: #b08f86;
  --brass: #c9ad8d;
  --rule: #d9c9b6;
  --sheet: #fbf7f0;         /* the price sheet */
  --wall: #e8dece;          /* behind the box picture on phones */
  --veil: rgba(246, 239, 230, .86);   /* ivory veil under the key's label on phones */
  --on-wine: #fffaf4;       /* text on the action colour */
  --mirror: var(--cream);
  --t-label: 14px;
  --t-body: 16px;
  --t-lead: clamp(18px, 1.45vw, 21px);
  --t-h3: clamp(27px, 2.5vw, 38px);
  --t-h2: clamp(42px, 4.6vw, 72px);
}
body.studio-home { color: var(--ink); }
.studio-home .head { background: var(--paper); border-color: var(--rule); }
.studio-home .descriptor { font-size: 13px; color: var(--soft); }
.studio-home .intro .music-quote { color: var(--wine); font-size: var(--t-lead); }
.studio-home .button { background: var(--wine); color: var(--on-wine); }
.studio-home .nav .book-nav, .studio-home .nav a:last-child { color: var(--wine); }


/* prices: ivory plaster; heading, the sheet across, then the action and the note before a first session side by side */
.studio-home .prices-panel {
  background-color: var(--paper);
  background-image: url("assets/images/plaster.png"), linear-gradient(115deg, #f9f4ec, var(--paper) 70%, #f1e6d8);
  border-top: 1px solid var(--rule);
}
.studio-home .prices-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "heading heading" "rates rates" "action note";
  gap: clamp(20px, 2.4vw, 36px) clamp(30px, 4vw, 72px);
  align-items: start;
}
.studio-home .price-heading { grid-area: heading; margin-bottom: 0; }
.studio-home .price-heading h2, .studio-home .booking-contact h2 { font-size: var(--t-h2); }
.studio-home .price-main { grid-area: rates; }
.studio-home .price-sheet { background: var(--sheet); border: 1px solid var(--rule); border-block: 1px solid var(--brass); box-shadow: none; }
.studio-home .price-leaf caption { font-size: var(--t-h3); color: var(--ink); }
.studio-home .price-leaf thead th { font-size: var(--t-label); color: var(--soft); font-weight: 500; }
.studio-home .price-leaf tbody th, .studio-home .price-leaf tbody td { font-size: var(--t-body); color: var(--ink); }
.studio-home .price-leaf tbody td:last-child { color: var(--wine); font-weight: 500; }
.studio-home .price-leaf + .price-leaf, .studio-home .price-leaf thead th { border-color: var(--rule); }
.studio-home .price-leaf tbody td, .studio-home .price-leaf tbody th { border-color: #e7dccd; }
/* the sheet's own rule closes the tables: no second line just above it (on phones the tables stand one above the other,
   so only the last one ends at that rule and «Тело» keeps its closing line) */
.studio-home .price-leaf:last-child tbody tr:last-child > * { border-bottom: 0; }
@media (min-width: 651px) { .studio-home .price-leaf tbody tr:last-child > * { border-bottom: 0; } }
/* the newcomer's offer, its own strip under both tables */
.studio-home .first-visit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 22px;
  margin: clamp(16px, 1.6vw, 24px) 0 0;
  padding-top: clamp(14px, 1.4vw, 20px);
  border-top: 1px solid var(--brass);
  color: var(--ink);
  font: 500 var(--t-lead)/1.4 var(--sans);
}
.studio-home .first-visit strong { display: inline; margin: 0; color: var(--wine); font-weight: 600; }
.studio-home .rate-actions {
  grid-area: action;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
}
.studio-home .rate-actions p { font: 400 var(--t-body)/1.5 var(--sans); color: var(--soft); max-width: 46ch; }
.studio-home .rate-actions .course-line em { display: block; font: italic 400 var(--t-lead)/1.35 var(--serif); color: var(--wine); }   /* the hero line's voice */
.studio-home .visit-note { grid-area: note; margin: 0; padding-top: 0; border-top: 0; }
.studio-home .visit-copy { padding: 0; }
.studio-home .visit-copy h3 { font-size: var(--t-h3); }
.studio-home .visit-copy .caution { font-size: var(--t-body); color: var(--soft); max-width: 34ch; }
.studio-home .rate-actions .result-note { margin-top: -6px; }   /* the honest note stays with the course line (docs/research/russia-legal.md) */
/* the butterfly is the key's own shape: pressed into the plaster, not stuck on it */
.studio-home .price-heading::after { mix-blend-mode: multiply; opacity: .55; }

/* booking: the case's cream again, warm (it was a cold grey-green), never stretched to the whole screen */
.studio-home .booking {
  --booking-muted: var(--soft);
  --hairline: var(--brass);
  background-color: var(--cream);
  background-image: url("assets/images/plaster.png"), linear-gradient(115deg, #f3eadf 26%, #e9dccc);
  border-color: var(--rule);
}
.studio-home .booking:target { min-height: 0; }
.studio-home .booking:target .booking-grid { flex: none; }
.studio-home .booking-grid { align-items: start; padding-block: clamp(44px, 5vw, 80px); }
.studio-home .booking-grid::before { mix-blend-mode: multiply; opacity: .8; align-self: center; width: min(72%, 230px); justify-self: center; }
.studio-home .booking-sub { font-size: var(--t-body); color: var(--soft); }
.studio-home .booking-call { color: var(--ink); font-size: var(--t-h3); }
.studio-home .booking-channels a { color: var(--wine); font-size: var(--t-body); text-decoration-color: var(--velvet); }
.studio-home .booking-visit { padding-top: 0; }   /* its first line level with «Твой выход» */
.studio-home .booking-visit h3 { margin-top: 10px; font: 500 var(--t-body)/1.4 var(--sans); color: var(--soft); letter-spacing: 0; text-transform: none; }   /* a label, not a shout */
.studio-home .booking-address { font-size: var(--t-h3); color: var(--ink); }
.studio-home .booking-hours { font-size: var(--t-body); color: var(--soft); }
.studio-home .booking-maps a { font-size: var(--t-body); }
.studio-home .booking-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; border-color: var(--rule); color: var(--soft); font-size: var(--t-label); }
/* who runs the site (149-ФЗ, art. 10): her name, status and e-mail; a row of its own, one row with the rest when wide */
.studio-home .booking-footer > a { justify-self: start; }   /* the link is as wide as its words, not as the row */
.studio-home .booking-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 18px; margin: 0; padding-top: 8px; line-height: 1.45; }
@media (min-width: 1101px) {
  .studio-home .booking-footer { grid-template-columns: minmax(0, 1fr) auto auto; }
  .studio-home .booking-legal { grid-column: auto; padding-top: 0; }
}

/* the key's label: readable, beside the key, never over the lid */
.studio-home .scene .key { color: var(--ink); }
.studio-home .scene .key span { font-size: var(--t-body); line-height: 1.25; }

@media (hover: hover) {
  .studio-home .button:hover { background: var(--wine-deep); }
}
@media (max-width: 900px) {
  .studio-home .prices-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "rates" "action" "note"; }
  .studio-home .visit-note { display: block; padding-top: 22px; border-top: 1px solid var(--rule); }
}
@media (max-width: 650px) {
  .studio-home .hero { background: var(--paper); }
  .studio-home .hero > .scene::after { background: linear-gradient(transparent, var(--paper)); }
  .studio-home .first-visit { flex-direction: column; gap: 2px; }
  .studio-home .booking-grid { padding-block: 40px 20px; gap: 22px 8px; }
  .studio-home .booking-footer { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }   /* the bar may stay without JS */
  .js .studio-home .booking-footer { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }   /* it steps aside here */
  .studio-home .mobile-bar { background: var(--paper); border-color: var(--rule); }
  .studio-home .mobile-bar .write summary { color: var(--on-wine); background: var(--wine); border-color: var(--wine); }
  .studio-home .mobile-bar .write[open] summary { background: var(--wine-deep); }
  /* the label above the key, on the strip of wall left of the lid: two short lines, no plate under them (a plate
     covered the box's corner); small enough to stay clear of the mirror's glass down to 320 px */
  .studio-home .scene .key span { left: calc(50% - 13.3cqw); width: min-content; white-space: normal; text-align: left;
    transform: none; font-size: var(--t-label); line-height: 1.3; }
}
.studio-home .button, .studio-home .intro .inline { font-size: var(--t-body); }   /* actions read at body size */
.studio-home .nb { white-space: nowrap; }             /* a time range never breaks at its dash */
.studio-home .first-visit .sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* read aloud, not shown */
.studio-home .prices-panel { color: var(--ink); --paper-ink: var(--ink); }
.studio-home .booking { color: var(--ink); --booking-ink: var(--ink); }
@media (max-width: 380px) {   /* the narrowest phones: the address takes the whole width, the tulip steps out */
  .studio-home .booking-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "contact" "address"; }
  .studio-home .booking-grid::before { display: none; }
  :root { --t-h2: clamp(36px, 11.2vw, 42px); }   /* «Подари себе сеанс» on one line down to 320 px */
}
