:root {
  --bg: #f6f0e7;
  --bg-2: #efe6d9;
  --paper: #fffaf3;
  --ink: #2a221d;
  --muted: #6f625a;
  --accent: #a3352d;
  --accent-dark: #842820;
  --gold: #b38b4d;
  --line: rgba(42, 34, 29, .12);
  --radius: 22px;
  --shadow: 0 20px 50px -24px rgba(60, 35, 20, .35);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, .fact b, .badge strong, .contact-list a { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(42px, 6.4vw, 84px); }
h2 { font-size: clamp(34px, 4.4vw, 58px); }
h3 { font-size: 26px; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--accent); }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: #e9c9a0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px; border: 1.5px solid var(--accent);
  background: var(--accent); color: #fff; text-decoration: none;
  font: 600 16px/1 var(--sans); cursor: pointer;
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
  box-shadow: 0 10px 24px -12px rgba(163, 53, 45, .7);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--small { padding: 11px 20px; font-size: 15px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.header.is-scrolled { background: rgba(246, 240, 231, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 50%, transparent 7px, var(--accent) 7.5px 9px, transparent 9.5px),
              repeating-conic-gradient(from 0deg, var(--accent) 0 6deg, transparent 6deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 19px, transparent 19.5px);
          mask: radial-gradient(circle, #000 19px, transparent 19.5px);
  opacity: .9;
}
.logo__text { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1; }
.logo__text small { display: block; white-space: nowrap; font: 500 11px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; position: relative; white-space: nowrap; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1.5px; background: var(--accent); transition: right .3s; }
.nav a:not(.btn):hover::after { right: 0; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, top .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(48px, 7vw, 90px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 85% 20%, rgba(179, 139, 77, .18), transparent 70%),
              radial-gradient(40% 40% at 10% 90%, rgba(163, 53, 45, .08), transparent 70%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__media { position: relative; justify-self: center; width: min(100%, 460px); }
.arch { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 540 / 720; position: relative; z-index: 1; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.badge {
  position: absolute; z-index: 2; background: var(--paper); border-radius: 18px; padding: 14px 20px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.2;
}
.badge strong { font-family: var(--serif); font-size: 30px; color: var(--accent); }
.badge span { font-size: 14px; color: var(--muted); }
.badge--hero { left: -28px; bottom: 40px; }

/* Facts */
.facts { border-block: 1px solid var(--line); background: var(--bg-2); }
.facts__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 34px 28px; display: flex; align-items: center; gap: 18px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact b { font-family: var(--serif); font-size: 52px; font-weight: 600; color: var(--accent); line-height: 1; white-space: nowrap; }
.fact span { font-size: 15px; color: var(--muted); line-height: 1.45; }

/* About */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__main { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
blockquote {
  margin: 28px 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--accent);
  font: italic 500 clamp(24px, 2.4vw, 30px)/1.3 var(--serif);
}
.tags { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--paper); }

/* Classes */
.classes { background: var(--paper); }
.classes__grid {
  display: grid; gap: 20px;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  grid-template-areas: "text a b c";
}
.classes__text { grid-area: text; align-self: center; padding-right: 20px; }
.classes__text .big { font: 500 clamp(24px, 2.4vw, 32px)/1.3 var(--serif); }
.classes__text p:not(.big) { color: var(--muted); }
.classes__photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.classes__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.classes__photo:hover img { transform: scale(1.04); }
.classes__photo--a { grid-area: a; }
.classes__photo--b { grid-area: b; }
.classes__photo--c { grid-area: c; }
.classes__photo--a, .classes__photo--b, .classes__photo--c { aspect-ratio: 3/4; }
.classes__photo--a img { object-position: 50% 0; }
.classes__photo--b img { object-position: 50% 30%; }
.classes__photo--c img { object-position: 50% 20%; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 28px 0 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 26px; display: grid; gap: 2px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline b { font: 600 22px/1.2 var(--serif); font-variant-numeric: lining-nums; }
.timeline span { color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* Learning */
.learn { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); margin-top: clamp(48px, 7vw, 88px); align-items: start; }
.learn h3 { font-size: clamp(28px, 3vw, 36px); }
.steps { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 18px; background: var(--bg); border-radius: 18px; }
.steps li::before {
  content: counter(step); grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font: 600 22px/1 var(--serif); font-variant-numeric: lining-nums;
}
.steps b { font-size: 17px; }
.steps span { color: var(--muted); font-size: 15.5px; }
.note { font: italic 500 clamp(22px, 2.2vw, 28px)/1.35 var(--serif); padding-left: 22px; border-left: 2px solid var(--accent); }
.clip { margin: 0; display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 28px; align-items: center; }
.clip__video { margin: 0; }
.clip video { width: 100%; height: auto; aspect-ratio: 9/16; object-fit: cover; border-radius: 18px; background: #000; box-shadow: var(--shadow); display: block; }
.clip figcaption { margin-top: 12px; font: italic 500 17px/1.35 var(--serif); color: var(--muted); }
.clip__text { margin: 0; color: var(--muted); }
.clip__body .note { font-size: clamp(20px, 1.8vw, 24px); margin-bottom: 20px; }

/* Video */
.video-section { background: #2c2420; color: #f3e9dc; position: relative; overflow: hidden; }
.video__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.video-section p { color: #d5c7b6; }
.video__meta { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #e9c9a0 !important; }
.video__player { margin: 0; }
.video__player video { width: 100%; height: auto; aspect-ratio: 16/9; border-radius: var(--radius); background: #000; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); display: block; }

/* Directions */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line); transition: transform .35s, box-shadow .35s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 4/3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 26px 26px 30px; }
.card__num { font: 600 14px var(--sans); color: var(--gold); letter-spacing: .1em; }
.card h3 { margin-top: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

/* Gallery */
.works { background: var(--bg-2); }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--accent); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }
.gallery { columns: 4 240px; column-gap: 16px; }
.gallery__item {
  break-inside: avoid; margin: 0 0 16px; border-radius: 16px; overflow: hidden; cursor: zoom-in;
  display: block; width: 100%; padding: 0; border: 0; background: var(--bg); position: relative;
}
.gallery__item img { width: 100%; transition: transform .7s, filter .4s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item[hidden] { display: none; }
.gallery__more { text-align: center; margin-top: 28px; }

/* Contacts */
.contacts__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: stretch; }
.contacts__card { background: var(--paper); border-radius: 28px; padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.contacts__card::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
  border: 1px dashed rgba(163, 53, 45, .3);
}
.contact-list { list-style: none; padding: 0; margin: 8px 0 32px; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list small { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a { font: 600 clamp(22px, 2.4vw, 28px)/1.25 var(--serif); text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.ci { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; }
.ci svg, .callbar svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }
.groups { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.groups__title { font: 500 24px/1.25 var(--serif); margin-bottom: 8px; }
.group {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px;
  background: var(--paper); text-decoration: none; border: 1px solid var(--line); transition: border-color .25s, transform .25s;
}
.group:hover { border-color: var(--accent); transform: translateX(4px); }
.group__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #0077ff; color: #fff; display: grid; place-items: center; font: 700 14px var(--sans); }
.group b { display: block; font-size: 17px; }
.group small { color: var(--muted); font-size: 14px; word-break: break-all; }
.group__arrow { margin-left: auto; color: var(--accent); font-size: 20px; }

/* Footer */
.footer { padding: 28px 0 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { text-decoration: none; }

/* Mobile call bar */
.callbar {
  display: none; position: fixed; z-index: 40; left: 16px; right: 16px; bottom: 16px;
  padding: 16px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 14px 30px -10px rgba(163, 53, 45, .8);
  transform: translateY(140%); transition: transform .35s;
}
.callbar svg { stroke: #fff; }
.callbar.is-visible { transform: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 15, 12, .94); display: grid; place-items: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lb__img { max-width: min(calc(100vw - 160px), 1400px); max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); width: auto; height: auto; object-fit: contain; border-radius: 10px; user-select: none; }
.lb__btn { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 32px; line-height: 1; cursor: pointer; transition: background .2s; }
.lb__btn:hover { background: rgba(255, 255, 255, .22); }
.lb__close { top: 14px; right: 14px; }
.lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: 14px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1200px) {
  .nav { gap: 22px; }
}
@media (max-width: 1080px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 8px 16px 24px; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .25);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 18px; }
  .burger { display: block; }
  .header.menu-open { background: var(--bg); }
  .video__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero__grid, .about__grid, .learn, .contacts__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; }
  .hero__media { width: min(100%, 400px); }
  .badge--hero { left: -8px; }
  .classes__grid { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "text text text" "a b c"; }
  .classes__text { padding-right: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; }
  .cards .card:last-child .card__img { aspect-ratio: 16/8; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .facts__grid { grid-template-columns: 1fr; }
  .fact { padding: 22px 4px; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .fact b { font-size: 42px; min-width: 92px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .clip { grid-template-columns: 1fr; gap: 20px; }
  .clip__video { max-width: 240px; }
  .classes__grid { grid-template-columns: 1fr; grid-template-areas: "text" "a" "b" "c"; }
  .classes__photo--a, .classes__photo--b, .classes__photo--c { aspect-ratio: 4/5; }
  .cards { grid-template-columns: 1fr; }
  .cards .card:last-child .card__img { aspect-ratio: 4/3; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery__item { margin-bottom: 10px; border-radius: 12px; }
  .steps li { grid-template-columns: 40px 1fr; padding: 14px; }
  .steps li::before { width: 40px; height: 40px; font-size: 19px; }
  .callbar { display: flex; }
  .footer { padding-bottom: 96px; }
  .lb__prev, .lb__next { top: auto; bottom: 8px; transform: none; }
  .lb__img { max-width: calc(100vw - 32px); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
