/* Kaszowska – public site
   Palette and type follow Magdalena's printed brochure:
   oxblood fields, cool paper-grey pages, a Didone serif and a geometric sans. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/BodoniModa.woff") format("woff");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/BodoniModa-Italic.woff") format("woff");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --oxblood: #641415;
  --oxblood-deep: #4c0f10;
  --paper: #ededeb;
  --porcelain: #f7f6f4;
  --ink: #1d1d1b;
  --blush: #dcbcb2;
  --muted: #5d5654;
  --rule: rgba(29, 29, 27, 0.16);
  --rule-light: rgba(237, 237, 235, 0.22);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 1.6rem + 2.2vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.6rem + 4vw, 5rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --max: 78rem;
  --nav-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 58rem; }
.section { padding-block: var(--section); }

/* ---------------------------------------------------------------- type */
.h2 {
  font-family: var(--serif);
  font-size: var(--step-3);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}
.h3 { font-family: var(--serif); font-size: var(--step-2); line-height: 1.15; }
.marker {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--oxblood);
  margin-bottom: .6rem;
}
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink); }
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 36em; color: var(--muted); }
.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color .2s;
}
.link:hover { text-decoration-color: currentColor; }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: .8rem 1.6rem;
  font-family: var(--sans); font-size: var(--step--1); font-weight: 500; letter-spacing: .06em;
  text-decoration: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--light { background: var(--paper); color: var(--oxblood); }
.btn--light:hover { background: #fff; }
.btn--ghost-light { border-color: var(--rule-light); color: var(--paper); }
.btn--ghost-light:hover { border-color: var(--paper); }
.btn--dark { background: var(--oxblood); color: var(--paper); }
.btn--dark:hover { background: var(--oxblood-deep); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  color: var(--paper);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.nav.is-solid {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--rule);
}
.nav__inner {
  height: 100%; max-width: 90rem; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav__brand { display: block; width: 9.5rem; line-height: 0; opacity: 0; transition: opacity .3s; }
.nav.is-solid .nav__brand, .nav.is-open .nav__brand { opacity: 1; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); font-size: .95rem; }
.nav__links a { text-decoration: none; position: relative; padding-block: .3rem; }
.nav__links a:not(.nav__call)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor;
  transition: right .25s;
}
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { right: 0; }
.nav__call { border: 1px solid currentColor; border-radius: 999px; padding: .45rem 1rem !important; opacity: .95; }
.nav__toggle { display: none; }

@media (max-width: 960px) {
  .nav__brand { opacity: 1; width: 8.5rem; }
  .nav__toggle {
    display: inline-flex; align-items: center; gap: .6rem;
    background: none; border: 0; padding: .5rem 0; cursor: pointer; font-size: .95rem; letter-spacing: .04em;
  }
  .nav__toggle-bars, .nav__toggle-bars::before {
    display: block; width: 1.4rem; height: 1px; background: currentColor; position: relative; transition: transform .25s;
  }
  .nav__toggle-bars::before { content: ""; position: absolute; top: 6px; }
  .nav__toggle-bars { transform: translateY(-3px); }
  .nav.is-open .nav__toggle-bars { transform: rotate(45deg); }
  .nav.is-open .nav__toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 0; z-index: -1;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .2rem;
    padding: 2rem var(--gutter) 3rem;
    background: var(--oxblood); color: var(--paper);
    font-family: var(--serif); font-size: 2rem; line-height: 1.3;
    visibility: hidden; opacity: 0; transform: translateY(-.5rem);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .nav__links a::after { display: none; }
  .nav__call { margin-top: 1.5rem; font-family: var(--sans); font-size: 1.05rem; }
  /* backdrop-filter would make the bar the containing block of the fixed menu panel,
     squashing it to the bar's height after scrolling – so drop it while the menu is open. */
  .nav.is-open { background: var(--oxblood); color: var(--paper); box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav__links { overflow-y: auto; overscroll-behavior: contain; }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
}

/* ----------------------------------------------------------------- hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  min-height: 100svh;
  background: var(--oxblood);
  color: var(--paper);
}
.hero__panel {
  grid-column: 1; grid-row: 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 3rem;
  padding: calc(var(--nav-h) + clamp(1.5rem, 5vh, 4rem)) clamp(1.5rem, 4.5vw, 4.5rem) clamp(2rem, 6vh, 4.5rem);
}
.hero__mark { width: min(100%, 31rem); line-height: 0; margin-left: -.4rem; }
.hero__kicker { font-size: var(--step--1); letter-spacing: .04em; color: var(--blush); margin-bottom: 1.1rem; }
.hero__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.9rem);
  line-height: 1.12;
  max-width: 17em;
  text-wrap: balance;
}
.hero__text { margin-top: 1.25rem; max-width: 30em; color: color-mix(in srgb, var(--paper) 82%, var(--oxblood)); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__photo { grid-column: 2; grid-row: 1; position: relative; background: #141514; overflow: hidden; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

/* the one orchestrated moment: the mark draws in, then the copy settles */
@media (prefers-reduced-motion: no-preference) {
  .hero__mark { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; clip-path: inset(0 0 0 0); }
  .hero__copy { animation: fade 1s .45s ease-out both; }
  .hero__photo img { animation: settle 1.6s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { clip-path: inset(100% 0 0 0); transform: translateY(1.5rem); } to { clip-path: inset(0); transform: none; } }
  @keyframes fade { from { opacity: 0; transform: translateY(.75rem); } to { opacity: 1; transform: none; } }
  @keyframes settle { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto; min-height: 0; }
  .hero__photo { grid-column: 1; grid-row: 1; height: 72svh; min-height: 26rem; }
  .hero__photo::after {
    content: ""; position: absolute; inset: auto 0 0; height: 40%;
    background: linear-gradient(to bottom, transparent, var(--oxblood));
  }
  .hero__panel { grid-column: 1; grid-row: 2; padding-top: 0; margin-top: -6.5rem; position: relative; gap: 2rem; }
  .hero__mark { width: min(78%, 22rem); }
}

/* ---------------------------------------------------------------- about */
.about__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.about__photo { position: sticky; top: calc(var(--nav-h) + 2rem); }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.about__body .h2 { margin-bottom: 2rem; }
.about__text .lead { color: var(--ink); }
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule);
}
.facts__item { display: flex; flex-direction: column; gap: .5rem; }
.facts__item dd { order: -1; }
.facts dd { font-family: var(--serif); font-size: var(--step-3); line-height: 1; color: var(--oxblood); }
.facts dt { color: var(--muted); font-size: var(--step--1); max-width: 16em; }
@media (max-width: 760px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { position: static; max-width: 26rem; }
}

/* ------------------------------------------------------- section header */
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem;
  align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head__intro { color: var(--muted); max-width: 32em; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- services */
.services { background: var(--porcelain); }
.service-list { list-style: none; border-top: 1px solid var(--rule); }
.service {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(7rem, 2fr);
  gap: .5rem 3rem; padding-block: 1.6rem; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.service__title { font-family: var(--serif); font-size: var(--step-1); line-height: 1.25; }
.service__desc { color: var(--muted); max-width: 38em; }
.service__price { text-align: right; white-space: nowrap; color: var(--oxblood); font-weight: 500; }
.services__more { margin-top: 2rem; }
@media (max-width: 760px) {
  .service { grid-template-columns: 1fr auto; }
  .service__desc { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------------------------------------------------------- office offer */
.offer { background: var(--oxblood); color: var(--paper); padding-block: var(--section); }
.offer__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.offer__subtitle { font-family: var(--serif); font-style: italic; font-size: var(--step-1); color: var(--blush); }
.offer__layout { display: grid; grid-template-columns: minmax(14rem, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); }
.offer__tabs { display: flex; flex-direction: column; align-self: start; position: sticky; top: calc(var(--nav-h) + 2rem); border-top: 1px solid var(--rule-light); }
.offer__tab {
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule-light);
  padding: 1.05rem 0; cursor: pointer;
  font-family: var(--serif); font-size: var(--step-1); line-height: 1.25;
  color: color-mix(in srgb, var(--paper) 78%, var(--oxblood));
  transition: color .2s, padding-left .25s;
}
.offer__tab:hover { color: var(--paper); }
.offer__tab[aria-selected="true"] { color: var(--paper); padding-left: 1.25rem; box-shadow: inset 2px 0 0 var(--blush); }
.offer__panel-title { font-family: var(--serif); font-size: var(--step-3); line-height: 1.1; margin-bottom: 1rem; }
.offer__panel-sub { font-family: var(--serif); font-style: italic; color: var(--blush); font-size: var(--step-1); margin-bottom: 1rem; }
.offer__intro { font-size: var(--step-1); line-height: 1.55; max-width: 34em; }
.offer__info { margin-top: 1rem; color: var(--blush); }
.offer__services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--rule-light); }
.offer__service h4 { font-family: var(--serif); font-style: italic; font-size: var(--step-1); line-height: 1.3; margin-bottom: .35rem; }
.offer__area { font-size: var(--step--1); color: var(--blush); margin-bottom: .6rem; letter-spacing: .02em; }
.offer__desc { color: color-mix(in srgb, var(--paper) 84%, var(--oxblood)); font-size: .98rem; }
.offer__desc ul { margin-top: .5rem; padding-left: 1.1rem; }
.offer__desc li + li { margin-top: .25rem; }
.offer__panel:focus-visible { outline-offset: 8px; }
.offer__panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .offer__panel:not([hidden]) { animation: fade .45s ease-out; }
}
/* the panel heading duplicates the tab on desktop; keep it for mobile + no-JS */
.js .offer__panel-title { display: none; }
@media (max-width: 860px) {
  .offer__layout { grid-template-columns: 1fr; }
  .offer__tabs {
    position: static; flex-direction: row; overflow-x: auto; gap: .5rem; border: 0;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none;
  }
  .offer__tabs::-webkit-scrollbar { display: none; }
  .offer__tab {
    flex: 0 0 auto; border: 1px solid var(--rule-light); border-radius: 999px;
    padding: .55rem 1.1rem; font-family: var(--sans); font-size: .95rem;
  }
  .offer__tab[aria-selected="true"] { padding-left: 1.1rem; box-shadow: none; background: var(--paper); color: var(--oxblood); }
  .js .offer__panel-title { display: block; font-size: var(--step-2); }
  .offer__services { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- training */
.training__intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: end; }
.training__intro .marker { grid-column: 1 / -1; margin-bottom: -1rem; }
.training__headline {
  font-family: var(--serif); font-size: var(--step-4); line-height: 1; letter-spacing: -0.02em;
  color: var(--oxblood); text-wrap: balance;
}
.course-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.course-meta dt { font-size: var(--step--1); color: var(--muted); }
.course-meta dd { font-weight: 500; line-height: 1.4; }
@media (max-width: 860px) { .training__intro { grid-template-columns: 1fr; } }

.trainer {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 18rem);
  gap: 2rem clamp(2rem, 4vw, 4rem); margin-top: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 4vw, 3.5rem); background: var(--porcelain);
}
.trainer__mark { color: var(--oxblood); width: 100%; line-height: 0; }
.trainer__role { color: var(--oxblood); margin: .3rem 0 1rem; }
.trainer__body p:last-child { color: var(--muted); max-width: 36em; }
.trainer__stats { list-style: none; display: flex; flex-direction: column; gap: .9rem; align-self: center; }
.trainer__stats li { padding-left: 1.1rem; border-left: 1px solid var(--oxblood); line-height: 1.4; }
@media (max-width: 860px) {
  .trainer { grid-template-columns: 4.5rem 1fr; }
  .trainer__stats { grid-column: 1 / -1; }
}

.curriculum { margin-top: clamp(4rem, 8vw, 7rem); }
.curriculum .h3 { margin-bottom: 2rem; max-width: 20em; }
.curriculum__list {
  list-style: none; counter-reset: mod; columns: 2; column-gap: clamp(2rem, 6vw, 6rem);
  border-top: 1px solid var(--rule);
}
.curriculum__list li {
  counter-increment: mod; break-inside: avoid;
  display: grid; grid-template-columns: 2.5rem 1fr; padding: .85rem 0; border-bottom: 1px solid var(--rule);
}
.curriculum__list li::before { content: counter(mod, decimal-leading-zero); font-family: var(--serif); color: var(--oxblood); }
@media (max-width: 760px) { .curriculum__list { columns: 1; } }

.package { margin-top: clamp(4rem, 8vw, 7rem); }
.package .h3 { margin-bottom: 2rem; }
.package__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2.5rem 3rem; }
.package__list h4 { font-family: var(--serif); font-size: var(--step-1); margin-bottom: .4rem; }
.package__list p { color: var(--muted); font-size: .98rem; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.5rem; margin-top: clamp(4rem, 8vw, 7rem); align-items: stretch; }
.plan {
  display: flex; flex-direction: column; gap: .6rem;
  padding: clamp(1.75rem, 3vw, 2.75rem); border: 1px solid var(--rule); background: var(--porcelain);
}
.plan--featured { background: var(--oxblood); color: var(--paper); border-color: var(--oxblood); }
.plan__flag { font-family: var(--serif); font-style: italic; color: var(--blush); font-size: var(--step-1); }
.plan__name { font-family: var(--serif); font-size: var(--step-2); line-height: 1.15; }
.plan__duration { color: var(--muted); }
.plan--featured .plan__duration, .plan--featured .plan__desc { color: color-mix(in srgb, var(--paper) 80%, var(--oxblood)); }
.plan__price { margin-top: .75rem; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.plan__amount { font-family: var(--serif); font-size: var(--step-3); line-height: 1; }
.plan__unit { font-size: var(--step--1); letter-spacing: .04em; }
.plan__desc { font-size: .98rem; color: var(--muted); }
.plan__features { list-style: none; margin: 1rem 0 1.75rem; border-top: 1px solid var(--rule); flex: 1; }
.plan--featured .plan__features, .plan--featured .plan__features li { border-color: var(--rule-light); }
.plan__features li { padding: .6rem 0 .6rem 1.4rem; border-bottom: 1px solid var(--rule); position: relative; line-height: 1.45; }
.plan__features li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: .55rem; height: 1px; background: currentColor; }
.plan .btn { align-self: flex-start; }

/* --------------------------------------------------------------- prices */
.prices { background: var(--porcelain); }
.price-search { margin-bottom: 2rem; }
.price-search label { display: block; font-size: var(--step--1); color: var(--muted); margin-bottom: .4rem; }
.price-search input {
  width: 100%; font: inherit; font-size: var(--step-1); padding: .8rem 0; background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; color: inherit;
}
.price-search input:focus { outline: none; border-bottom-color: var(--oxblood); box-shadow: 0 1px 0 var(--oxblood); }
.price-search__empty { margin-top: 1.25rem; color: var(--muted); }
.price-cats { border-top: 1px solid var(--rule); }
.price-cat { border-bottom: 1px solid var(--rule); }
.price-cat summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.35rem 0;
}
.price-cat summary::-webkit-details-marker { display: none; }
.price-cat summary h3 { font-family: var(--serif); font-size: var(--step-2); line-height: 1.2; transition: color .2s; }
.price-cat summary:hover h3 { color: var(--oxblood); }
.price-cat__count { color: var(--muted); font-size: var(--step--1); white-space: nowrap; display: inline-flex; align-items: center; gap: .75rem; }
.price-cat__count::after {
  content: ""; width: .55rem; height: .55rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: translateY(-.15rem) rotate(45deg); transition: transform .25s;
}
.price-cat[open] .price-cat__count::after { transform: translateY(.1rem) rotate(-135deg); }
.price-list { list-style: none; padding-bottom: 1.5rem; }
.price-row { display: flex; align-items: baseline; gap: .75rem; padding: .55rem 0; }
.price-row__name { flex: 0 1 auto; }
.price-row__name small { display: block; color: var(--muted); font-size: var(--step--1); line-height: 1.4; }
.price-row__lead { flex: 1 1 2rem; min-width: 1.5rem; border-bottom: 1px dotted color-mix(in srgb, var(--ink) 35%, transparent); transform: translateY(-.3rem); }
.price-row__price { flex: 0 0 auto; text-align: right; font-weight: 500; color: var(--oxblood); white-space: nowrap; }
.price-row[hidden] { display: none; }
.price-row mark { background: var(--blush); color: inherit; padding: 0 .1em; }

/* -------------------------------------------------------------- gallery */
.gallery { padding-bottom: calc(var(--section) * .8); }
.gallery__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2.5rem; }
.gallery__controls { display: flex; gap: .5rem; }
.round-btn {
  width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--rule); background: transparent;
  font-family: var(--serif); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background-color .2s, color .2s;
}
.round-btn:hover { background: var(--ink); color: var(--paper); }
.gallery__strip {
  list-style: none; display: flex; gap: clamp(.75rem, 1.5vw, 1.25rem);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scrollbar-width: none; padding-bottom: .5rem;
}
.gallery__strip::-webkit-scrollbar { display: none; }
.gallery__strip li { flex: 0 0 auto; scroll-snap-align: start; }
.gallery__item { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__item img { height: clamp(18rem, 52vh, 34rem); width: auto; object-fit: cover; transition: filter .3s; }
.gallery__item:hover img { filter: brightness(1.05) contrast(1.02); }
.gallery__caption { font-size: var(--step--1); color: var(--muted); margin-top: .5rem; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(20, 8, 8, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 8rem); max-height: calc(100vh - 7rem); width: auto; height: auto; object-fit: contain; }
.lightbox__caption { position: absolute; bottom: 1.25rem; left: 0; right: 0; text-align: center; color: var(--paper); font-size: var(--step--1); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: none; border: 0; color: var(--paper); cursor: pointer;
  font-family: var(--serif); font-size: 2.5rem; line-height: 1; width: 3.5rem; height: 3.5rem;
}
.lightbox__close { top: .75rem; right: .75rem; }
.lightbox__nav--prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: .75rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox img { max-width: 100vw; }
  .lightbox__nav { top: auto; bottom: .5rem; transform: none; }
}

/* -------------------------------------------------------------- contact */
.contact { background: var(--paper); padding-block: var(--section); border-top: 1px solid var(--rule); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 7vw, 7rem); }
.contact__text { color: var(--muted); margin-top: 1.25rem; max-width: 30em; }
.contact__phone {
  display: inline-block; margin-top: 2rem;
  font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1.05;
  color: var(--oxblood); text-decoration: none; letter-spacing: -0.01em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s;
}
.contact__phone:hover { background-size: 100% 1px; }
.contact__list { margin-top: 2.5rem; display: grid; gap: 1.1rem; }
.contact__list > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; }
.contact__list dt { color: var(--muted); font-size: var(--step--1); padding-top: .2rem; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

.contact__form { display: grid; gap: 1.25rem; align-content: start; background: var(--porcelain); padding: clamp(1.5rem, 4vw, 3rem); }
.field label { display: block; font-size: var(--step--1); color: var(--muted); margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 0;
  padding: .55rem 0; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--oxblood); box-shadow: 0 1px 0 var(--oxblood); }
.field [aria-invalid="true"] { border-bottom-color: #a1121a; }
.field__error { color: #a1121a; font-size: var(--step--1); margin-top: .35rem; }
.field__error:empty { display: none; }
.field__hint { font-size: var(--step--1); color: var(--muted); margin-top: -.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; align-items: start; }
.field--check input { width: 1.1rem; height: 1.1rem; margin-top: .3rem; accent-color: var(--oxblood); }
.field--check label { margin: 0; font-size: var(--step--1); line-height: 1.5; }
.field--check .field__error { grid-column: 2; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__form .btn { justify-self: start; margin-top: .5rem; }
.form-status { padding: 1rem 1.2rem; background: var(--paper); border-left: 2px solid #a1121a; }
.form-status--ok { border-left-color: var(--oxblood); color: var(--oxblood); }

/* --------------------------------------------------------------- footer */
.footer { background: var(--ink); color: color-mix(in srgb, var(--paper) 80%, var(--ink)); padding-block: 4rem 3rem; font-size: var(--step--1); }
.footer__grid { display: grid; grid-template-columns: 12rem 1fr 1fr auto; gap: 2rem 3rem; align-items: end; }
.footer__logo { width: 12rem; color: var(--paper); line-height: 0; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__copy { opacity: .7; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- 404 */
.notfound { min-height: 100svh; display: grid; place-content: center; text-align: center; gap: 1.5rem; background: var(--oxblood); color: var(--paper); padding: 2rem; }
.notfound .h2 { max-width: 14em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Bodoni Moda has an optical-size axis (6 = sturdy text cut, 96 = hairline display cut).
   Browsers pick a high value from the px size, which makes thin strokes vanish at
   heading sizes, so it is set explicitly: sturdy for anything up to ~2rem,
   moderate for big display lines. */
body { font-optical-sizing: none; }
.service__title, .offer__tab, .offer__service h4, .offer__panel-sub, .package__list h4,
.price-cat summary h3, .h3, .plan__name, .plan__flag, .marker, .offer__subtitle,
.curriculum__list li::before {
  font-variation-settings: "opsz" 9;
  font-weight: 500;
}
@media (max-width: 960px) { .nav__links { font-variation-settings: "opsz" 9; font-weight: 500; } .nav__call { font-weight: 400; } }
.h2, .hero__title, .offer__panel-title, .training__headline,
.contact__phone, .facts dd, .plan__amount {
  font-variation-settings: "opsz" 26;
  font-weight: 480;
}

.contact__list dd { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .trainer { grid-template-columns: 1fr; }
  .trainer__mark { width: 3.5rem; }
  .price-cat summary h3 { font-size: var(--step-1); }
  .price-cat summary { padding: 1.1rem 0; }
  .service__title { font-size: 1.2rem; }
}

/* Logos are single-colour SVGs used as masks, so they take the text colour. */
.logo { display: block; width: 100%; background-color: currentColor; -webkit-mask: var(--logo) no-repeat center / contain; mask: var(--logo) no-repeat center / contain; }
.logo--wordmark { --logo: url("../img/logo-wordmark.svg"); aspect-ratio: 187.4 / 25; }
.logo--stacked  { --logo: url("../img/logo-last-name.svg"); aspect-ratio: 150.8 / 94.11; }
.logo--initials { --logo: url("../img/logo-initials.svg"); aspect-ratio: 158.74 / 179.15; }
.logo--main     { --logo: url("../img/logo-main.svg"); aspect-ratio: 187.74 / 106.39; }
.contact__cc { font-family: var(--sans); font-size: .38em; font-weight: 500; letter-spacing: .04em; vertical-align: 1.35em; margin-right: .35em; }
