/* Лира Устюжанина — one light page, one reading column, no decoration */
:root {
  --ground: #F4EBE1;
  --paper: #FBF7F2;
  --ink: #2E1E17;
  --soft: #66503F;
  --clay: #A44F37;
  --clay-deep: #8F4129;
  --line: rgba(46, 30, 23, .16);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Golos Text", system-ui, sans-serif;

  --m: clamp(18px, 4vw, 40px);
  --col: 680px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-feature-settings: "lnum" 1; caret-color: var(--clay); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: #E9C9B6; color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--clay-deep); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p, ul, table { margin: 0; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
section { scroll-margin-top: 72px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  background: var(--clay); color: #fff; text-decoration: none; border-radius: 8px; font: 500 16px/1 var(--sans);
  transition: background-color .2s var(--ease);
}
.btn:hover { background: var(--clay-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 10px var(--m); background: var(--ground); }
.bar__name { font: 600 22px/1 var(--serif); color: var(--ink); text-decoration: none; margin-right: auto; white-space: nowrap; }
.bar__nav { display: none; gap: 22px; }
.bar__nav a { color: var(--soft); text-decoration: none; font-size: 15px; }
.bar__nav a:hover { color: var(--ink); text-decoration: underline; }

/* one column */
.page { max-width: calc(var(--col) + 2 * var(--m)); margin: 0 auto; padding: 0 var(--m); }

.hero { padding: 12px 0 8px; display: grid; gap: 22px; }
.hero__photo { order: -1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 25%; border-radius: 8px; }
.hero h1 { font-size: clamp(38px, 6vw, 54px); }
.hero__lead { margin-top: 14px; font-size: 19px; line-height: 1.5; }
.hero__facts { margin-top: 14px; color: var(--soft); }
.hero .btn { margin-top: 22px; }

.block { padding-top: 72px; }
.block h2, .contact h2 { font-size: clamp(30px, 4vw, 38px); margin-bottom: 18px; }
.block p + p { margin-top: 14px; }
.note { margin-top: 18px; color: var(--soft); }

.req { padding-left: 1.1em; display: grid; gap: 12px; }
.req li::marker { color: var(--clay); }
.req b { font-weight: 500; }

.prices { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.prices th, .prices td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: baseline; }
.prices tr:first-child th, .prices tr:first-child td { border-top: 1px solid var(--line); }
.prices td { text-align: right; white-space: nowrap; font-weight: 500; }

.edu { list-style: none; padding: 0; display: grid; gap: 18px; }
.edu li { display: grid; gap: 4px; }
.link { all: unset; justify-self: start; cursor: pointer; color: var(--clay-deep); text-decoration: underline; text-underline-offset: .2em; min-height: 32px; display: inline-flex; align-items: center; }
.link:hover { color: var(--ink); }
.link:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.contact { margin-top: 80px; padding: 36px clamp(22px, 4vw, 44px) 40px; background: var(--paper); border-radius: 8px; }
.contact__act { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.contact__phone { font-size: 18px; color: var(--ink); }
.contact__where { margin-top: 20px; color: var(--soft); font-size: 16px; }

.foot { max-width: calc(var(--col) + 2 * var(--m)); margin: 0 auto; padding: 40px var(--m) calc(96px + env(safe-area-inset-bottom)); color: var(--soft); font-size: 14px; }

/* phone dock */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 15;
  min-height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 8px;
  background: var(--clay); color: #fff; text-decoration: none; font-weight: 500;
  box-shadow: 0 8px 24px rgba(46, 30, 23, .22); /* taste-skill-ignore: floating dock */
  transform: translateY(150%); transition: transform .4s var(--ease);
}
.dock.is-on { transform: none; }
.dock:hover { color: #fff; }

/* document viewer */
.viewer { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(30, 18, 13, .95); color: #fff; }
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: transparent; }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--m); padding-top: max(12px, env(safe-area-inset-top)); }
.viewer__bar p { font: 600 20px/1.2 var(--serif); }
.viewer__close { all: unset; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.14); }
.viewer__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.viewer__close svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 1.8; }
.viewer__stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px 12px max(20px, env(safe-area-inset-bottom)); overflow: auto; }
.viewer__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* the one moment of motion: the first screen settles in */
.js .hero { animation: settle .8s var(--ease) both; }
@keyframes settle { from { opacity: 0; transform: translateY(10px); } }

@media (min-width: 860px) {
  :root { --col: 760px; }
  .bar__nav { display: flex; }
  .hero { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; padding-top: 48px; }
  .hero__photo { order: 0; aspect-ratio: 4 / 5; }
  .foot { padding-bottom: 40px; }
  .dock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero { animation: none; }
  html { scroll-behavior: auto; }
}
