:root {
  color-scheme: light;
  --paper: #f4efe5;
  --paper-light: #faf7f0;
  --ink: #1d2a23;
  --green: #43624e;
  --green-dark: #294234;
  --terracotta: #b65a3c;
  --line: rgba(29, 42, 35, 0.22);
  --muted: #6b716b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .22; background-image: radial-gradient(rgba(29,42,35,.22) .55px, transparent .55px); background-size: 7px 7px; mix-blend-mode: multiply; z-index: 10; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 16px; }

.site-header, main > section, footer { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.site-header { min-height: 90px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; font: 700 22px/1 var(--serif); text-decoration: none; letter-spacing: .01em; }
.brand span { display: grid; place-items: center; width: 38px; height: 38px; background: var(--green); color: var(--paper); border-radius: 50%; font: 700 13px/1 var(--serif); }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a, .header-phone { font-size: 14px; font-weight: 700; text-decoration: none; }
.site-header nav a:hover, .header-phone:hover { color: var(--terracotta); }
.header-phone { justify-self: end; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
h1 { margin-bottom: 28px; font-size: clamp(3.25rem, 6.3vw, 6.7rem); line-height: .94; max-width: 850px; }
h2 { margin-bottom: 22px; font-size: clamp(2.6rem, 4.6vw, 5rem); line-height: 1; }
h3 { margin-bottom: 8px; font-size: clamp(1.65rem, 2.5vw, 2.5rem); line-height: 1.08; }

.hero { min-height: calc(100vh - 90px); padding: 72px 0 82px; display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(340px, .62fr); gap: clamp(48px, 7vw, 110px); align-items: center; }
.hero-copy > p { max-width: 660px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--green-dark); }
.actions { margin-top: 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button { min-height: 54px; padding: 14px 20px 14px 24px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid var(--green); text-decoration: none; font-size: 15px; font-weight: 700; transition: background .2s ease, color .2s ease, transform .2s ease; }
.button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.button-primary { background: var(--green); color: var(--paper-light); }
.button-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.text-action { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; text-underline-offset: 6px; }
.hero-facts { margin: 55px 0 0; padding-top: 24px; max-width: 650px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; border-top: 1px solid var(--line); }
.hero-facts div { display: grid; gap: 4px; }
.hero-facts dt { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .11em; }
.hero-facts dd { margin: 0; font: 400 26px/1.2 var(--serif); }
.hero-facts small { font: 14px/1 var(--sans); color: var(--muted); }

figure { margin: 0; }
.portrait-media { width: min(100%, 480px); justify-self: end; }
.media-shell { position: relative; overflow: hidden; background: var(--green-dark); }
.media-shell-portrait { aspect-ratio: 464 / 824; }
.media-shell-portrait img, .media-shell-portrait video, .media-shell-wide video { width: 100%; height: 100%; object-fit: cover; }
.media-shell video { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
.media-shell.is-ready video { opacity: 1; }
.video-control { position: absolute; right: 14px; bottom: 14px; z-index: 3; min-width: 92px; min-height: 44px; padding: 10px 14px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(244,239,229,.65); background: rgba(29,42,35,.82); color: var(--paper-light); font: 700 12px/1 var(--sans); cursor: pointer; backdrop-filter: blur(7px); }
.portrait-media figcaption { padding: 14px 0; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.portrait-media figcaption span { color: var(--muted); }

.documentary, .formats, .teacher, .contact { padding-block: clamp(90px, 10vw, 150px); border-top: 1px solid var(--line); }
.section-intro { margin-bottom: 54px; display: grid; grid-template-columns: 1.1fr .7fr; gap: 40px; align-items: end; }
.section-intro h2 { margin-bottom: 0; max-width: 760px; }
.section-intro p { margin-bottom: 8px; color: var(--muted); max-width: 500px; }
.media-shell-wide { aspect-ratio: 16 / 9; }
.media-fallback { position: absolute; inset: 0; padding: 8%; display: flex; flex-direction: column; justify-content: space-between; color: var(--paper); background: var(--green-dark); }
.media-fallback span { font-size: 13px; text-transform: uppercase; letter-spacing: .15em; }
.media-fallback strong { font: 400 clamp(2.5rem, 5vw, 5.5rem)/.95 var(--serif); max-width: 620px; }
.wide-media figcaption { padding-top: 14px; color: var(--muted); font-size: 13px; text-align: right; }

.format-list { border-top: 1px solid var(--ink); }
.format-list article { min-height: 190px; padding: 32px 0; display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 32px; align-items: center; border-bottom: 1px solid var(--line); }
.format-number { align-self: start; color: var(--terracotta); font: 700 13px/1 var(--sans); letter-spacing: .1em; }
.format-type { margin-bottom: 6px; color: var(--green); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.format-list article > div > p:last-child { margin-bottom: 0; color: var(--muted); }
.format-price { margin: 0; min-width: 160px; text-align: right; }
.format-price strong, .format-price span { display: block; }
.format-price strong { font: 400 28px/1.2 var(--serif); }
.format-price span { color: var(--muted); font-size: 13px; }

.teacher { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1fr); gap: clamp(50px, 9vw, 140px); align-items: center; }
.teacher-portrait { max-width: 480px; aspect-ratio: 3 / 4; overflow: hidden; }
.teacher-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.teacher-copy > p { max-width: 650px; font-size: 1.25rem; }
.teacher-copy dl { margin: 46px 0 0; border-top: 1px solid var(--line); }
.teacher-copy dl div { padding: 17px 0; display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.teacher-copy dt { color: var(--muted); }
.teacher-copy dd { margin: 0; font-weight: 700; text-align: right; }

.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr); gap: 60px; background: var(--green); color: var(--paper-light); width: 100%; max-width: none; padding-inline: max(32px, calc((100vw - var(--max)) / 2)); }
.contact h2 { max-width: 750px; }
.contact p { max-width: 680px; color: rgba(250,247,240,.8); }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; }
.contact .button-primary { background: var(--paper-light); color: var(--green-dark); border-color: var(--paper-light); }
.contact .button-primary:hover { background: var(--paper); }
.contact-phone { color: var(--paper-light); font: 400 25px/1.2 var(--serif); text-underline-offset: 6px; }

footer { min-height: 170px; padding-block: 46px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
footer p { margin: 0; color: var(--muted); font-size: 13px; }
footer > a:last-child { justify-self: end; font-size: 13px; text-underline-offset: 5px; }
.mobile-actions { display: none; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

.policy-header { grid-template-columns: 1fr 1fr; }
.policy-page { width: min(880px, calc(100% - 48px)); margin: 0 auto; padding: 80px 0 130px; }
.policy-page article { padding: clamp(30px, 6vw, 78px); background: var(--paper-light); border: 1px solid var(--line); }
.policy-page h1 { font-size: clamp(2.7rem, 6vw, 5.6rem); }
.policy-page h2 { margin: 55px 0 14px; font-size: 2rem; }
.policy-page a { text-underline-offset: 4px; }
.policy-back { display: inline-block; margin-bottom: 55px; font-size: 14px; font-weight: 700; }

@media (max-width: 900px) {
  .site-header, main > section, footer { width: min(100% - 36px, var(--max)); }
  .site-header { grid-template-columns: 1fr auto; min-height: 78px; }
  .site-header nav { display: none; }
  .hero { min-height: auto; padding: 58px 0 90px; grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .portrait-media { justify-self: center; width: min(100%, 500px); }
  .section-intro, .teacher, .contact { grid-template-columns: 1fr; }
  .section-intro { gap: 18px; }
  .teacher-portrait { max-width: 600px; }
  .contact { width: 100%; padding-inline: 24px; }
  footer { grid-template-columns: 1fr auto; }
  footer p { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: 70px; }
  body::before { opacity: .12; }
  .site-header, main > section, footer { width: calc(100% - 28px); }
  .site-header { min-height: 70px; }
  .brand { font-size: 19px; }
  .brand span { width: 34px; height: 34px; }
  .site-header { grid-template-columns: 1fr; }
  .header-phone { display: none; }
  h1 { font-size: clamp(3.1rem, 15vw, 4.8rem); }
  h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero { padding-top: 46px; gap: 54px; }
  .hero-facts { grid-template-columns: 1fr; gap: 16px; }
  .actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .button, .text-action { width: 100%; justify-content: center; }
  .documentary, .formats, .teacher, .contact { padding-block: 82px; }
  .format-list article { grid-template-columns: 42px minmax(0, 1fr); gap: 14px; }
  .format-price { grid-column: 2; min-width: 0; text-align: left; }
  .teacher { gap: 45px; }
  .teacher-copy dl div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .teacher-copy dd { text-align: left; }
  .contact { width: 100%; padding-inline: 18px; }
  footer { min-height: 200px; grid-template-columns: 1fr; align-content: center; }
  footer > a:last-child { justify-self: start; }
  .mobile-actions { position: fixed; inset: auto 0 0; z-index: 20; display: grid; grid-template-columns: 1.2fr .8fr; box-shadow: 0 -10px 30px rgba(29,42,35,.15); }
  .mobile-actions a { min-height: 64px; display: grid; place-items: center; background: var(--green); color: var(--paper-light); font-size: 14px; font-weight: 700; text-decoration: none; }
  .mobile-actions a + a { background: var(--paper-light); color: var(--green-dark); border-top: 1px solid var(--line); }
  .policy-page { width: calc(100% - 28px); padding-top: 40px; }
  .policy-page article { padding: 28px 22px; }
  .policy-header { grid-template-columns: 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
