/* Fonts */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-display-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-display-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-display-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/playfair-display-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/playfair-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f2ede4;
  --surface: #f7f3eb;
  --beige: #e9e0d2;
  --line: #e2d8c7;
  --line-strong: rgba(23, 21, 17, 0.28);
  --text: #171511;
  --muted: #6b6252;
  --dark: #171511;
  --on-dark: #f2ede4;
  --on-dark-muted: #a89e8d;
  --line-dark: rgba(242, 237, 228, 0.16);
  --accent: #8e2b3a;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --section-pad: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::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(--text);
  font: 400 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open,
body:has(.lightbox[open]) {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 18px;
  height: 18px;
}

.icon-arrow {
  flex: none;
  width: 26px;
  height: 10px;
  transition: transform 0.3s var(--ease);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--dark);
  color: var(--on-dark);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--light {
  color: var(--on-dark-muted);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.section-title em {
  font-style: italic;
}

.section-head {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head__line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}

.link-arrow:hover {
  color: var(--text);
}

.link-arrow:hover .icon-arrow,
.btn:hover .icon-arrow {
  transform: translateX(4px);
}

.link-arrow--light {
  color: var(--on-dark-muted);
}

.link-arrow--light:hover {
  color: var(--on-dark);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn--dark {
  background: var(--dark);
  color: var(--on-dark);
}

.btn--dark:hover {
  background: var(--accent);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.btn--light {
  background: var(--on-dark);
  color: var(--dark);
}

.btn--light:hover {
  background: #fff;
}

.btn--outline-light {
  border-color: var(--line-dark);
  color: var(--on-dark);
}

.btn--outline-light:hover {
  border-color: var(--on-dark);
}

/* Header */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(242, 237, 228, 0.88);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.3s;
}

.header.is-scrolled::before,
body.menu-open .header::before {
  opacity: 1;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.logo span {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  gap: clamp(18px, 2.2vw, 30px);
}

.nav__link {
  position: relative;
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav__link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__footer {
  display: none;
}

.header__cta {
  min-height: 42px;
  padding: 0 20px;
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
}

.burger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.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 {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 80px));
  background:
    radial-gradient(90% 70% at 85% 15%, #e6d6cc 0%, rgba(230, 214, 204, 0) 60%),
    linear-gradient(180deg, #ece3da 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: clamp(40px, 6vw, 96px);
}

.hero__content {
  align-self: center;
  padding-bottom: clamp(56px, 8vw, 104px);
}

.hero__title {
  margin: 24px 0 28px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 6.4vw, 92px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero__title em {
  color: var(--accent);
  font-style: italic;
}

.hero__lead {
  max-width: 460px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  margin-inline: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s var(--ease) infinite;
}

.hero__media {
  position: relative;
  justify-self: end;
  width: min(100%, 520px, calc((100svh - var(--header-h) - 150px) * 0.9));
  min-width: min(100%, 360px);
}

.hero__arch {
  position: absolute;
  inset: 20% 0 0;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #d8c2b1 0%, #e3d3c4 65%, #e9ddd0 100%);
}

.hero__arch::before {
  content: "";
  position: absolute;
  inset: -14px -14px 0;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.hero__portrait {
  position: relative;
  width: 100%;
}

.hero--page {
  border-bottom: 1px solid var(--line);
}

.hero--page .hero__inner {
  grid-template-columns: minmax(0, 1fr);
}

.hero--page .hero__content {
  padding-top: 0;
  border-top: 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}

.breadcrumbs a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.badge {
  position: absolute;
  top: 4%;
  right: -36px;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 10px 30px rgba(23, 21, 17, 0.08);
}

.badge__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 26s linear infinite;
}

.badge__ring text {
  fill: var(--text);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.badge__mark {
  font-family: var(--font-serif);
  font-size: 28px;
  font-style: italic;
}

.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-block: 18px;
  border-block: 1px solid var(--line);
  background: var(--bg);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 24px);
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__star {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* Dark band */

.band {
  background: var(--dark);
  color: var(--on-dark);
}

.band__content {
  padding-block: var(--section-pad);
}

.band__lead {
  max-width: 520px;
  margin-top: 24px;
  color: var(--on-dark-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
}

.feature {
  padding: 0 24px;
  border-left: 1px solid var(--line-dark);
}

.feature:first-child {
  padding-left: 0;
  border-left: 0;
}

.feature__icon {
  width: 28px;
  height: 28px;
}

.feature__title {
  margin: 20px 0 10px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.feature__text {
  color: var(--on-dark-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* About */

.about__inner {
  display: grid;
  grid-template:
    "head content" auto
    "summary content" 1fr
    / minmax(0, 5fr) minmax(0, 6fr);
  column-gap: clamp(48px, 8vw, 112px);
}

.about__head {
  grid-area: head;
}

.about__content {
  grid-area: content;
}

.about__summary {
  grid-area: summary;
  align-self: end;
}

.about__head .section-title {
  margin-top: 20px;
}

.about__studio {
  margin-top: clamp(56px, 8vw, 104px);
}

.about__text {
  max-width: 540px;
  color: var(--muted);
}

.about__text p + p {
  margin-top: 16px;
}

.checklist {
  max-width: 540px;
  margin: 20px 0 24px;
}

.checklist li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 2px;
  width: 11px;
  height: 11px;
  background: var(--accent);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.stats strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 400;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Works */

.works {
  padding-top: 0;
}

.gallery {
  display: grid;
  gap: 16px;
}

.gallery--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gallery--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery--6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.work {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--beige);
  cursor: zoom-in;
}

.work--square {
  aspect-ratio: 1;
}

.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

@media (hover: hover) {
  .work:hover img {
    transform: scale(1.05);
  }
}

/* Prices */

.prices {
  background: var(--surface);
}

.prices__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.price-group {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  background: var(--bg);
}

.price-group__title {
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
}

.price-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.price-list li:last-child {
  border-bottom: 0;
}

.price-list__name small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.price-list__price {
  font-family: var(--font-serif);
  font-size: 18px;
  white-space: nowrap;
}

.price-group__subtitle {
  margin: 28px 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.price-note {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  padding: 16px 18px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.price-note .icon {
  color: var(--accent);
}

.price-note--included {
  margin-top: 16px;
}

/* Course */

.course__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(40px, 7vw, 104px);
}

.course__head .section-title {
  margin-top: 20px;
}

.course__lead {
  max-width: 600px;
  color: var(--muted);
}

.course__points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: 36px;
}

.course__points li {
  padding: 20px 0 24px;
  border-top: 1px solid var(--line);
}

.course__points h3 {
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.course__points p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.program {
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(24px, 4.5vw, 64px);
  background: var(--beige);
}

.program__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  gap: 0 clamp(24px, 3vw, 40px);
  counter-reset: topic;
}

.program__list li {
  position: relative;
  padding: 16px 0 16px 44px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  counter-increment: topic;
}

.program__list li::before {
  content: counter(topic, decimal-leading-zero);
  position: absolute;
  top: 15px;
  left: 0;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
}

.program__list strong {
  display: block;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
}

.course__block {
  margin-top: clamp(64px, 8vw, 112px);
}

.course__block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.course__block-head p {
  max-width: 380px;
  color: var(--muted);
}

.course__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.course__subtitle em {
  font-style: italic;
}

.course__block--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

.course__block--split .course__block-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: block;
  margin-bottom: 0;
}

.course__block--split .course__block-head p {
  margin-top: 16px;
}

.course__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.course__cta-text {
  max-width: 640px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.25;
}

.course__more {
  margin-top: 24px;
}

/* FAQ */

.faq {
  padding-top: 0;
}

.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(40px, 7vw, 104px);
}

.faq__head .section-title {
  margin: 20px 0 20px;
}

.faq__lead {
  color: var(--muted);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item:first-child {
  border-top: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item[open] .faq__icon::after {
  transform: rotate(0deg);
}

.faq__item p {
  max-width: 640px;
  padding: 0 48px 24px 0;
  color: var(--muted);
}

.faq__item p a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contacts */

.contacts {
  padding-block: var(--section-pad);
  background: var(--dark);
  color: var(--on-dark);
}

.contacts__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 104px);
}

.contacts .section-title {
  margin-top: 20px;
  font-size: clamp(38px, 5vw, 68px);
}

.contacts__lead {
  max-width: 460px;
  margin-top: 24px;
  color: var(--on-dark-muted);
}

.contact-links {
  margin-top: 36px;
  border-top: 1px solid var(--line-dark);
}

.contact-links li {
  border-bottom: 1px solid var(--line-dark);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
}

.contact-link__icon {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 13px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-link__body {
  display: grid;
  flex: 1;
  min-width: 0;
}

.contact-link__name {
  color: var(--on-dark-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-link__value {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.35;
}

.contact-link .icon-arrow {
  color: var(--on-dark-muted);
}

.contact-link:hover .contact-link__icon {
  border-color: var(--on-dark);
  background: var(--on-dark);
  color: var(--dark);
}

.contact-link:hover .icon-arrow {
  color: var(--on-dark);
  transform: translateX(4px);
}

.contacts__info {
  margin-top: 40px;
}

.contacts__info div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 14.5px;
}

.contacts__info dt {
  color: var(--on-dark-muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  line-height: 2;
  text-transform: uppercase;
}

.contacts__info small {
  display: block;
  margin-top: 2px;
  color: var(--on-dark-muted);
  font-size: 13px;
}

.contacts__map {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 20px;
}

.contacts__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 1px solid var(--line-dark);
  background: #24211c;
}

@media (hover: none) {
  .contacts__map iframe {
    pointer-events: none;
  }
}

/* Footer */

.footer {
  padding: clamp(56px, 7vw, 80px) 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.footer__brand p {
  max-width: 340px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.socials a:hover {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--on-dark);
}

.footer__title {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer__col li + li {
  margin-top: 10px;
}

.footer__col li {
  font-size: 14px;
}

.footer__col a {
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer__bottom a:hover {
  color: var(--text);
}

.footer__bottom {
  flex-wrap: wrap;
}

/* Cookie consent */

.consent {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 45;
  display: grid;
  gap: 16px;
  width: min(440px, calc(100% - 32px));
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(23, 21, 17, 0.16);
}

.consent__text {
  font-size: 13px;
  line-height: 1.55;
}

.consent__text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent__actions {
  display: flex;
  gap: 8px;
}

.consent__actions .btn {
  flex: 1;
  min-height: 44px;
  padding: 0 16px;
}

.consent-open .mobile-cta {
  display: none;
}

/* Legal page */

.legal {
  max-width: 760px;
  padding-block: 40px 96px;
}

.legal h1 {
  margin: 40px 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 400;
  line-height: 1.15;
}

.legal h2 {
  margin: 40px 0 12px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
}

.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.7;
}

.legal p + p,
.legal ul + p {
  margin-top: 12px;
}

.legal ul {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-left: 20px;
  list-style: disc;
}

.legal a:not(.btn, .logo) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal__date {
  color: var(--muted);
  font-size: 13px;
}

.legal .btn {
  margin-top: 16px;
}

/* Mobile CTA */

.mobile-cta {
  display: none;
}

/* Lightbox */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgba(23, 21, 17, 0.92);
}

.lightbox__figure {
  max-width: min(88vw, 640px);
}

.lightbox__image {
  width: 100%;
  max-height: 78dvh;
  object-fit: contain;
}

.lightbox__btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(242, 237, 228, 0.3);
  border-radius: 50%;
  color: var(--on-dark);
  transition: border-color 0.2s, background-color 0.2s;
}

.lightbox__btn:hover {
  border-color: var(--on-dark);
  background: rgba(242, 237, 228, 0.08);
}

.lightbox__btn--close {
  top: 20px;
  right: 20px;
}

.lightbox__btn--prev,
.lightbox__btn--next {
  top: 50%;
  margin-top: -24px;
}

.lightbox__btn--prev {
  left: 20px;
}

.lightbox__btn--next {
  right: 20px;
}

/* Reveal */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  from {
    opacity: 0.6;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(3);
  }
}

/* Responsive */

@media (max-width: 960px) {
  :root {
    --header-h: 64px;
  }

  .burger {
    display: block;
  }

  .header__cta {
    margin-left: auto;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    margin: 0;
    padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--bg);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-family: var(--font-serif);
    font-size: clamp(26px, 7vw, 34px);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link.is-active {
    color: var(--accent);
  }

  .nav__footer {
    display: grid;
    gap: 16px;
  }

  .nav__address {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .hero__media {
    order: -1;
    justify-self: center;
    width: min(78%, 400px);
    min-width: 0;
  }

  .hero__content {
    padding-top: clamp(28px, 5vw, 40px);
    border-top: 1px solid var(--line);
  }

  .badge {
    right: -24px;
  }

  .faq__inner,
  .contacts__inner,
  .course__intro,
  .course__block--split {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__inner {
    grid-template: "head" "content" "summary" / minmax(0, 1fr);
    row-gap: 32px;
  }

  .contacts__map iframe {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 4.4;
  }

  .gallery--5,
  .gallery--3,
  .gallery--6 {
    grid-template-columns: none;
    grid-auto-columns: 36%;
    grid-auto-flow: column;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .gallery::-webkit-scrollbar {
    display: none;
  }

  .gallery > li {
    scroll-snap-align: start;
  }

  .course__intro {
    gap: 32px;
  }

  .program__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(9, auto);
  }

  .course__block--split {
    gap: 0;
  }

  .course__block--split .course__block-head {
    position: static;
    margin-bottom: 28px;
  }
}

@media (max-width: 720px) {
  .header__cta {
    display: none;
  }

  .burger {
    margin-left: auto;
  }

  .section-head {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .section-head__line {
    display: none;
  }

  .section-head .section-title {
    flex-basis: 100%;
  }

  .hero__actions .btn {
    flex: 1 1 220px;
  }

  .course__cta .btn,
  .course__more {
    width: 100%;
  }

  .badge {
    right: -40px;
    width: 96px;
    height: 96px;
  }

  .badge__mark {
    font-size: 22px;
  }

  .prices__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .feature,
  .feature:first-child {
    padding: 28px 0 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .stats {
    gap: 16px;
  }

  .stats span {
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  .gallery--5,
  .gallery--3,
  .gallery--6 {
    grid-auto-columns: 64%;
    gap: 10px;
  }

  .course__points,
  .program__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .program__list {
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .faq__item p {
    padding-right: 0;
  }

  .contacts__info div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-cta {
    position: fixed;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 40;
    display: block;
    transform: translateY(calc(100% + 32px));
    transition: transform 0.4s var(--ease);
  }

  .mobile-cta.is-visible {
    transform: none;
  }

  .mobile-cta .btn {
    width: 100%;
    box-shadow: 0 12px 32px rgba(23, 21, 17, 0.28);
  }

  .lightbox__btn--prev,
  .lightbox__btn--next {
    top: auto;
    bottom: calc(24px + env(safe-area-inset-bottom));
    margin-top: 0;
  }

  .lightbox__btn--prev {
    left: calc(50% - 60px);
  }

  .lightbox__btn--next {
    right: calc(50% - 60px);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
