:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #171512;
  --muted: #69645f;
  --line: rgba(23, 21, 18, 0.14);
  --stone: #f1f0ee;
  --dark: #232323;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  display: block;
  width: 100%;
}

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

.site-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.78fr);
  align-items: stretch;
  gap: clamp(28px, 5vw, 84px);
  padding: 96px clamp(20px, 5vw, 84px) 36px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 790px;
}

.kicker {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2.6vw, 40px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin-top: 24px;
  font-size: clamp(46px, 5.4vw, 76px);
  line-height: 0.96;
}

h2 {
  font-size: clamp(32px, 4.8vw, 72px);
  line-height: 0.96;
}

p {
  line-height: 1.7;
}

.hero-list,
.learn-list,
.master-list,
.price-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-list {
  display: grid;
  gap: 10px;
  max-width: 560px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
}

.hero-list li,
.learn-list li,
.master-list li,
.price-card li {
  position: relative;
  padding-left: 22px;
}

.hero-list li::before,
.learn-list li::before,
.master-list li::before,
.price-card li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 50%;
}

.button {
  width: fit-content;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  margin-top: 18px;
  padding: 0 24px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-price {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: fit-content;
  margin-top: 26px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--line);
}

.hero-price span {
  color: var(--muted);
  font-size: clamp(19px, 1.8vw, 28px);
  font-weight: 700;
  line-height: 1;
  text-decoration: line-through;
}

.hero-price strong {
  color: var(--ink);
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 800;
  line-height: 0.9;
}

.button.dark {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.hero-media {
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.hero-media img {
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.section {
  padding: clamp(72px, 10vw, 140px) clamp(20px, 5vw, 84px);
  border-top: 1px solid var(--line);
}

.section-title {
  max-width: 900px;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.lessons {
  background: var(--paper);
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.lesson-grid article {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 54px);
  background: var(--paper);
}

.lesson-grid span,
.audience-list span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.lesson-grid h2 {
  max-width: 620px;
}

.audience {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 96px);
  color: var(--paper);
  background: var(--dark);
}

.audience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: transparent;
}

.audience-list article {
  min-height: 260px;
  padding: clamp(22px, 3vw, 38px);
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(255, 253, 248, 0.16);
}

.audience-list p {
  margin: 18px 0 0;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.28;
}

.audience-list .wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  min-height: auto;
  background: #f4f3f1;
  color: var(--ink);
}

.audience-list .wide p {
  color: rgba(23, 21, 18, 0.78);
  font-size: clamp(18px, 2vw, 27px);
}

.audience .kicker,
.audience-list span {
  color: rgba(255, 253, 248, 0.64);
}

.audience .kicker {
  color: #fff;
}

.audience-list span {
  display: block;
  font-size: clamp(52px, 7vw, 104px);
  line-height: 0.85;
  font-weight: 500;
}

.learn {
  background: var(--paper);
}

.learn-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(32px, 6vw, 96px);
}

.learn-content {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 900px;
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.55;
}

.learn-list {
  display: grid;
  gap: 12px;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.42;
}

.price-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 460px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(72px, 10vw, 140px) clamp(20px, 5vw, 84px);
  color: var(--paper);
  background: var(--dark);
}

.price-section h2 {
  max-width: 820px;
}

.price-section p {
  color: rgba(255, 253, 248, 0.7);
}

.price-card {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 253, 248, 0.22);
}

.price-card p {
  margin: 0 0 20px;
  font-weight: 800;
  text-transform: uppercase;
}

.price {
  display: grid;
  gap: 8px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.18);
}

.price span {
  color: rgba(255, 253, 248, 0.48);
  font-size: 24px;
  font-weight: 700;
  text-decoration: line-through;
}

.price strong {
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 1;
}

.price-card ul {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  color: rgba(255, 253, 248, 0.78);
}

.price-card li::before {
  background: var(--stone);
}

.master {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  background: #ffffff;
}

.master-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #fff;
}

.master-image img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.master-list {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  color: var(--muted);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.5;
}

.works {
  background: var(--paper);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gallery img {
  aspect-ratio: 1 / 1;
  height: 100%;
  object-fit: cover;
  background: #eee;
}

.gallery img:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.faq-list {
  display: grid;
  border-top: 1px solid var(--line);
}

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

summary {
  cursor: pointer;
  padding: 22px 0;
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 700;
  list-style: none;
}

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

details p {
  max-width: 800px;
  margin: -8px 0 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.footer {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 56px 20px;
  color: rgba(255, 253, 248, 0.72);
  background: var(--dark);
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer a,
.footer button {
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-dialog {
  width: min(920px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.legal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}

.legal-panel {
  position: relative;
  overflow: hidden;
  max-height: min(820px, calc(100vh - 28px));
  background: #fff;
  border: 1px solid var(--line);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.legal-content {
  overflow: auto;
  max-height: min(820px, calc(100vh - 28px));
  padding: clamp(28px, 5vw, 58px);
  padding-right: clamp(28px, 5vw, 76px);
}

.legal-content h2 {
  margin-bottom: 28px;
  font-size: clamp(34px, 5vw, 64px);
}

.legal-content h3 {
  margin: 30px 0 10px;
  font-size: 20px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.legal-content ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

@media (max-width: 980px) {
  nav {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .hero,
  .audience,
  .learn-layout,
  .price-section,
  .master {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 520px;
  }

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

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
  }

  .logo {
    font-size: 13px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 13px;
    font-size: 12px;
  }

  .hero {
    padding-top: 92px;
    gap: 34px;
  }

  h1 {
    font-size: 48px;
  }

  .kicker {
    font-size: 25px;
    line-height: 1.08;
  }

  .hero-list {
    font-size: 16px;
  }

  .learn-list,
  .master-list {
    font-size: 16px;
    line-height: 1.4;
  }

  .lead {
    font-size: 16px;
    line-height: 1.55;
  }

  summary {
    font-size: 18px;
    line-height: 1.3;
  }

  details p {
    font-size: 15px;
  }

  .button {
    width: 100%;
  }

  .hero-media {
    min-height: 390px;
  }

  .lesson-grid,
  .audience-list,
  .audience-list .wide {
    grid-template-columns: 1fr;
  }

  .lesson-grid article,
  .audience-list article {
    min-height: 240px;
  }

  .audience-list .wide {
    grid-column: auto;
  }

  .price-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .gallery {
    gap: 6px;
  }
}
