:root {
  --green: #153e35;
  --green-dark: #0c2a25;
  --gold: #b8944d;
  --ivory: #f4efe5;
  --paper: #fbf8f1;
  --ink: #17221f;
  --muted: #6f756f;
  --line: rgba(21, 62, 53, .18);
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.55; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 16px; background: var(--ivory); color: var(--green); }
.skip-link:focus { top: 18px; }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 88px; padding: 0 clamp(24px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; color: var(--ivory); border-bottom: 1px solid rgba(244,239,229,.16); transition: background .3s, height .3s, box-shadow .3s; }
.site-header.scrolled { height: 72px; background: rgba(12,42,37,.94); backdrop-filter: blur(14px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; font-family: var(--serif); font-size: 18px; letter-spacing: .06em; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand small { margin-bottom: 5px; color: var(--gold); font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: .42em; }
nav { display: flex; gap: 34px; }
nav a { position: relative; text-decoration: none; font-size: 13px; letter-spacing: .08em; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--gold); transition: right .25s; }
nav a:hover::after, nav a:focus-visible::after, nav a.active::after { right: 0; }
.menu-button { display: none; background: transparent; border: 0; padding: 8px; }
.menu-button span:not(.sr-only) { display: block; width: 26px; height: 1px; margin: 6px; background: var(--ivory); }

.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; grid-template-columns: 1fr; align-items: center; padding: 150px clamp(24px, 7vw, 120px) 90px; background-color: var(--green-dark); background-image: linear-gradient(90deg, rgba(7,28,24,.94) 0%, rgba(12,42,37,.82) 48%, rgba(12,42,37,.42) 100%), url("assets/gallery-dialogue-of-eras.jpg"); background-size: cover; background-position: center; color: var(--ivory); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(rgba(244,239,229,.75) .55px, transparent .7px); background-size: 7px 7px; mask-image: linear-gradient(90deg, #000, transparent 72%); }
.hero-orbit { position: absolute; border: 1px solid rgba(184,148,77,.26); border-radius: 50%; pointer-events: none; }
.hero-orbit-one { width: 58vw; height: 58vw; right: -20vw; top: -25vw; }
.hero-orbit-two { width: 34vw; height: 34vw; right: -7vw; bottom: -18vw; }
.hero-copy { position: relative; z-index: 2; max-width: 920px; }
.eyebrow { margin: 0 0 24px; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; }
.eyebrow.dark { color: #8f6d2f; }
h1, h2, h3 { margin-top: 0; font-family: var(--serif); font-weight: 400; line-height: 1.04; }
h1 { margin-bottom: 32px; font-size: clamp(48px, 6.4vw, 102px); letter-spacing: -.035em; }
.hero-lead { max-width: 700px; margin: 0 0 40px; color: rgba(244,239,229,.78); font-size: clamp(18px, 1.55vw, 24px); }
.hero-actions { display: flex; align-items: center; gap: 34px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 25px; border: 1px solid; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .07em; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-gold { border-color: var(--gold); background: var(--gold); color: var(--green-dark); }
.button-gold:hover { background: #caa65d; }
.text-link { color: var(--ivory); text-underline-offset: 6px; font-size: 14px; }
.scroll-note { position: absolute; bottom: 31px; left: clamp(24px, 7vw, 120px); color: rgba(244,239,229,.48); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl; }

.section { position: relative; padding: clamp(90px, 11vw, 170px) clamp(24px, 7vw, 120px); }
.section-index { position: absolute; top: 46px; right: clamp(24px, 7vw, 120px); color: rgba(21,62,53,.35); font-family: var(--serif); font-size: 15px; }
.section-index.light { color: rgba(244,239,229,.42); }
.manifesto { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; background: var(--ivory); }
.manifesto h2, .section-title h2, .principles h2, .contact h2 { font-size: clamp(42px, 5vw, 76px); letter-spacing: -.025em; }
.manifesto-copy { padding-top: 44px; }
.manifesto-copy p { max-width: 720px; color: #4d5753; font-size: 18px; }
.manifesto-copy .lead { margin-top: 0; color: var(--green); font-family: var(--serif); font-size: clamp(25px, 2.6vw, 38px); line-height: 1.25; }

.directions { background: var(--paper); }
.section-title { max-width: 900px; margin-bottom: 72px; }
.section-title > p:last-child { max-width: 610px; color: var(--muted); font-size: 18px; }
.direction-list { border-top: 1px solid var(--line); }
.direction { display: grid; grid-template-columns: 80px minmax(220px, .9fr) minmax(300px, 1.15fr) minmax(170px, .55fr); gap: 34px; align-items: start; padding: 35px 0 38px; border-bottom: 1px solid var(--line); transition: padding .25s, background .25s; }
.direction:hover { padding-left: 18px; padding-right: 18px; background: rgba(244,239,229,.7); }
.direction-number { color: var(--gold); font-family: var(--serif); font-size: 17px; }
.direction h3 { margin: 0; color: var(--green); font-size: 29px; line-height: 1.15; }
.direction p { margin: 0; color: #5f6965; }
.direction-tag { color: #8f6d2f; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }

.principles { overflow: hidden; background-color: var(--green-dark); background-image: linear-gradient(rgba(7,28,24,.8), rgba(7,28,24,.86)), url("assets/gallery-principles.jpg"); background-size: cover; background-position: center; color: var(--ivory); }
.principles::before { content: "РА"; position: absolute; right: -35px; top: 5px; color: rgba(184,148,77,.055); font-family: var(--serif); font-size: clamp(240px, 35vw, 600px); line-height: 1; }
.principles-intro { position: relative; z-index: 1; max-width: 860px; margin-bottom: 84px; }
.principles-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(244,239,229,.18); border-left: 1px solid rgba(244,239,229,.18); }
.principle { min-height: 300px; padding: 36px 28px; border-right: 1px solid rgba(244,239,229,.18); border-bottom: 1px solid rgba(244,239,229,.18); }
.principle strong { color: var(--gold); font-family: var(--serif); font-size: 15px; font-weight: 400; }
.principle h3 { margin: 56px 0 18px; font-size: 27px; }
.principle p { margin: 0; color: rgba(244,239,229,.63); font-size: 14px; }

.partnership { background: var(--ivory); }
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.partner { min-height: 320px; padding: 42px; background: var(--ivory); transition: background .25s; }
.partner:hover { background: #eee7da; }
.partner > span { color: #8f6d2f; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.partner h3 { max-width: 480px; margin: 70px 0 20px; color: var(--green); font-size: 35px; }
.partner p { max-width: 540px; color: #66706c; }

.contact { min-height: 650px; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 9vw; background-color: var(--green); background-image: linear-gradient(90deg, rgba(7,28,24,.54), rgba(7,28,24,.84) 55%, rgba(7,28,24,.92)), url("assets/gallery-contact.jpg"); background-size: cover; background-position: center; color: var(--ivory); }
.contact-art { position: relative; width: min(38vw, 480px); aspect-ratio: 1; }
.contact-art span { position: absolute; border: 1px solid rgba(184,148,77,.55); }
.contact-art span:nth-child(1) { inset: 4%; border-radius: 50%; }
.contact-art span:nth-child(2) { inset: 18%; transform: rotate(45deg); }
.contact-art span:nth-child(3) { inset: 32%; border-radius: 50%; background: rgba(184,148,77,.14); }
.contact-copy { max-width: 820px; }
.contact-lead { max-width: 640px; margin: 0 0 44px; color: rgba(244,239,229,.68); font-size: 18px; }
.contact-people { display: flex; flex-wrap: wrap; gap: 20px 56px; margin: 0 0 36px; padding: 0; list-style: none; }
.contact-people li { display: flex; flex-direction: column; gap: 6px; }
.contact-people strong { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.contact-people span { color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.contact-phone { display: inline-block; margin-bottom: 24px; font-family: var(--serif); font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.contact-phone:hover { color: var(--gold); }
.contact-links { display: flex; flex-wrap: wrap; gap: 34px; }

footer { min-height: 150px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; padding: 28px clamp(24px, 7vw, 120px); background-color: #071c18; background-image: linear-gradient(rgba(7,28,24,.92), rgba(7,28,24,.96)), url("assets/gallery-principles.jpg"); background-size: cover; background-position: 75% 62%; color: rgba(244,239,229,.62); font-size: 12px; }
.footer-brand { display: flex; align-items: center; gap: 15px; color: var(--ivory); }
.footer-brand img { border-radius: 50%; }
.footer-brand p { display: flex; flex-direction: column; margin: 0; }
.footer-brand strong { font-family: var(--serif); font-size: 17px; font-weight: 400; }
.footer-brand span { margin-top: 5px; color: var(--gold); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
footer a { text-underline-offset: 5px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-header { height: 72px; }
  .menu-button { display: block; z-index: 2; }
  nav { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; visibility: hidden; opacity: 0; background: rgba(12,42,37,.98); transition: opacity .25s, visibility .25s; }
  nav.open { visibility: visible; opacity: 1; }
  nav a { font-family: var(--serif); font-size: 30px; }
  .hero { grid-template-columns: 1fr; padding-top: 135px; }
  .manifesto { grid-template-columns: 1fr; gap: 22px; }
  .manifesto-copy { padding-top: 0; }
  .direction { grid-template-columns: 48px 1fr; }
  .direction p, .direction-tag { grid-column: 2; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .contact-art { display: none; }
}

@media (max-width: 640px) {
  .brand { font-size: 14px; }
  .brand img { width: 44px; height: 44px; }
  .hero { min-height: 92svh; padding-bottom: 70px; }
  h1 { font-size: clamp(44px, 13vw, 64px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .scroll-note { display: none; }
  .section { padding-top: 96px; padding-bottom: 96px; }
  .section-index { top: 30px; }
  .direction { grid-template-columns: 36px 1fr; gap: 18px; }
  .direction h3 { font-size: 24px; }
  .principles-grid, .partner-grid { grid-template-columns: 1fr; }
  .principles { background-position: 42% center; }
  .principle { min-height: 250px; }
  .partner { min-height: auto; padding: 30px; }
  .partner h3 { margin-top: 44px; font-size: 29px; }
  .contact { background-image: linear-gradient(rgba(7,28,24,.74), rgba(7,28,24,.9)), url("assets/gallery-contact.jpg"); background-position: 76% center; }
  footer { grid-template-columns: 1fr; gap: 20px; }
}

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