:root {
  --paper: #f3efe6;
  --ink: #1c1916;
  --line: #c8c1b4;
  --muted: #5c564c;
  --serif: "Cormorant Garamond", Palatino, "Palatino Linotype", serif;
  --sans: Manrope, system-ui, sans-serif;
  --page: 72rem;
  --text: 38rem;
  --gutter: 1.25rem;
  --header: 4.5rem;
  --edge: max(var(--gutter), calc((100% - var(--page)) / 2));
}

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

html {
  background: var(--paper);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: clip;
}

img {
  max-width: 100%;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 30;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.65rem 1rem;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.skip:focus-visible {
  outline-color: var(--paper);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: var(--header);
  padding: 0.5rem var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  flex: none;
  line-height: 0;
}

.logo img {
  height: 2.65rem;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 1.15rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.nav a.nav-cta {
  margin-left: 0.35rem;
  padding: 0 1.1rem;
  min-height: 2.65rem;
  background: #111;
  color: #f7f4ee;
  font-weight: 600;
  text-decoration: none;
}

.nav a.nav-cta:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--header));
  background: var(--paper);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 18%;
}

.sheet {
  position: relative;
  z-index: 1;
  width: 100%;
}

.sheet-paper {
  width: min(100%, calc(var(--edge) + 46rem));
  padding: 1.55rem 1.35rem 1.3rem var(--edge);
  background: var(--paper);
}

h1,
.door,
.chapter-title,
.format h3,
.quiet-title,
.role,
.phone {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 13vw, 6rem);
  line-height: 0.95;
}

.role {
  margin: 0.7rem 0 0;
  max-width: 15em;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  line-height: 1.15;
}

.where {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.anna {
  padding: clamp(2.4rem, 6vh, 4rem) 0 clamp(1rem, 3vh, 2rem);
}

.col,
.measure,
.footer-inner {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin-left: var(--edge);
  margin-right: auto;
}

.col {
  width: min(var(--text), calc(100% - 2 * var(--gutter)));
}

.lede {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.5;
}

.quiet-title {
  margin: 2.4rem 0 0;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  line-height: 1.05;
}

.facts {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

.facts li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.facts li:last-child {
  border-bottom: 1px solid var(--line);
}

.chapter {
  padding-top: clamp(3.5rem, 8vh, 6rem);
  scroll-margin-top: calc(var(--header) + 0.5rem);
}

.door {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: clamp(1.85rem, 4.2vw, 3.35rem);
  line-height: 1;
  scroll-margin-top: calc(var(--header) + 0.75rem);
}

.door--ink {
  background: var(--ink);
  color: var(--paper);
}

.door--line {
  background: var(--paper);
  color: var(--ink);
}

.num {
  flex: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
}

.door-label {
  min-width: 0;
}

.format {
  margin-top: clamp(2rem, 5vh, 3.25rem);
}

.format h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.02;
}

.format-lead h3 {
  font-size: clamp(2.25rem, 4.4vw, 3.45rem);
}

.format p {
  margin: 0;
}

.format p + p {
  margin-top: 0.85rem;
}

.frame {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin: clamp(2.2rem, 6vh, 4rem) auto 0 var(--edge);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
}

.frame figcaption {
  max-width: var(--text);
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.chapter-end {
  margin-top: clamp(2rem, 5vh, 3.25rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 0.25rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
}

.btn:hover {
  background: var(--paper);
  color: var(--ink);
}

.online-lead {
  margin: 1.7rem 0 1.35rem;
  font-size: 1.2rem;
  line-height: 1.5;
}

.chapter-title {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 0.98;
}

.intro {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.voices {
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.voice {
  padding: 1.45rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.who {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 600;
}

.voice blockquote {
  margin: 0;
  font-style: normal;
}

.voice blockquote p {
  margin: 0;
}

#kontakt {
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
}

#kontakt .lede {
  margin-top: 1rem;
}

.phone {
  display: inline-block;
  margin: 1.15rem 0 0.35rem;
  color: var(--ink);
  font-size: clamp(2.5rem, 8vw, 4.25rem);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.phone:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.sms-note,
.salon,
address {
  color: var(--muted);
  font-style: normal;
}

.sms-note {
  margin: 0.35rem 0 1rem;
}

.salon {
  margin: 1.75rem 0 0;
}

.salon a,
.footer-inner a {
  color: var(--ink);
}

address {
  margin: 1.6rem 0 0;
  line-height: 1.45;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding: 1.4rem 0 2rem;
}

.footer-inner img {
  height: 1.7rem;
  width: auto;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-top: 0.65rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.1rem 0.85rem;
  }

  .hero-photo {
    object-position: center 8%;
  }

  .sheet-paper {
    width: 100%;
  }
}

.subpage {
  padding-top: clamp(2rem, 5vh, 3.4rem);
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
}

.page-kicker {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.page-title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.96;
}

.subpage .lede {
  margin-top: 1rem;
}

.subpage .col a:not(.btn):not(.phone) {
  font-weight: 600;
}

.catalog {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin: clamp(2.2rem, 6vh, 3.6rem) auto 0 var(--edge);
}

.course {
  display: grid;
  grid-template-columns: minmax(12rem, 17.5rem) minmax(0, 1fr);
  gap: 0.35rem 2.5rem;
  padding: 1.65rem 0 1.8rem;
  border-top: 1px solid var(--line);
}

.course:last-child {
  border-bottom: 1px solid var(--line);
}

.course h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.02;
}

.course-kind {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.4;
}

.price {
  margin: 0.9rem 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  line-height: 1;
}

.price-note {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.course-body p {
  margin: 0;
}

.topics {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.topics li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}

.modules {
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.module {
  padding: 1.15rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.module h2 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  line-height: 1.05;
}

.module p {
  margin: 0;
}

.dates {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.dates li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
}

.dates li:last-child {
  border-bottom: 1px solid var(--line);
}

.subpage .chapter-title {
  margin-top: 2.6rem;
}

.subpage .phone {
  margin-top: 0.85rem;
}

.crumbs {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumbs li {
  display: flex;
  align-items: center;
}

.crumbs li + li::before {
  content: "/";
  margin: 0 0.45rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.crumbs [aria-current="page"] {
  color: var(--muted);
  font-weight: 500;
}

.table-wrap {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin: clamp(2.2rem, 6vh, 3.6rem) auto 0 var(--edge);
}

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

.courses-table th,
.courses-table td {
  padding: 0.9rem 1rem 0.9rem 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.courses-table th {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.courses-table tbody tr:last-child td {
  border-bottom: 1px solid var(--line);
}

.courses-table a {
  color: var(--ink);
  font-weight: 600;
}

.courses-table .price-cell {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.1;
  white-space: nowrap;
}

.qa {
  margin-top: 2.8rem;
}

.qa-title {
  margin: 2.2rem 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  line-height: 1.12;
}

.qa p {
  margin: 0.7rem 0 0;
}

.also {
  margin-top: 2.2rem;
}

.also p {
  margin: 0.7rem 0 0;
}

.course-page .price {
  margin-top: 1.1rem;
}

@media (max-width: 720px) {
  :root {
    --header: 11.25rem;
  }

  .course {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .courses-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .courses-table,
  .courses-table tbody,
  .courses-table tr,
  .courses-table th,
  .courses-table td {
    display: block;
    width: 100%;
  }

  .courses-table tr {
    padding: 0.85rem 0 1.1rem;
    border-top: 1px solid var(--line);
  }

  .courses-table tbody tr:last-child {
    border-bottom: 1px solid var(--line);
  }

  .courses-table td {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0.4rem 0;
    border-top: 0;
  }

  .courses-table tbody tr:last-child td {
    border-bottom: 0;
  }

  .courses-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
  }

  .courses-table .price-cell {
    font-size: 1.5rem;
  }
}

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