/* ===== Агора — общая дизайн-система ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #F4EFE7;
  --bg-card: #FBF8F2;
  --ink: #1F1B17;
  --ink-2: #5C5349;
  --muted: #928A7E;
  --line: #E2D9CC;
  --accent: #9A7040;
  --accent-2: #B98B54;
  --accent-soft: rgba(154, 112, 64, 0.10);
  --accent-line: rgba(154, 112, 64, 0.30);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --maxw: 940px;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); background: var(--bg); color: var(--ink);
  line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-top: 64px; /* под фикс-хедер */
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: .2px; }

/* ---- header ---- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 50;
  background: rgba(244, 239, 231, 0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--serif); font-size: 27px; color: var(--ink); line-height: 1; }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 15px; color: var(--ink-2); transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); font-weight: 600; }
.nav .btn-sm { color: #F6F1E9; }
.btn-sm {
  display: inline-block; background: var(--ink); color: #F6F1E9; font-weight: 600; font-size: 14.5px;
  padding: 9px 18px; border-radius: 100px; transition: transform .15s, background .2s;
}
.btn-sm:hover { transform: translateY(-1px); background: #322b23; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .2s; }

/* ---- buttons ---- */
.btn {
  display: inline-block; background: var(--ink); color: #F6F1E9; font-weight: 600; font-size: 16px;
  padding: 15px 30px; border-radius: 100px; transition: transform .15s, background .2s; border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); background: #322b23; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--accent-line); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.gold { background: #E8C79A; color: #241E17; }
.btn.gold:hover { background: #F0D4AC; }

/* ---- generic sections ---- */
section { padding: 62px 0; border-top: 1px solid var(--line); }
section.first { border-top: none; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
h1.big { font-family: var(--serif); font-size: clamp(40px, 7vw, 66px); line-height: 1.02; letter-spacing: -.5px; }
h2.serif { font-size: clamp(32px, 5vw, 46px); line-height: 1.06; letter-spacing: -.5px; margin-bottom: 20px; }
h3.serif { font-size: clamp(26px, 4vw, 34px); line-height: 1.1; }
.lead { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 32px); line-height: 1.28; }
.prose { font-size: 18px; color: var(--ink-2); max-width: 700px; }
.prose p + p { margin-top: 15px; }
.prose b { color: var(--ink); font-weight: 600; }
.center { text-align: center; }
.center .prose, .center .lead { margin-left: auto; margin-right: auto; }

/* ---- hero ---- */
.hero { padding: 72px 0 60px; text-align: center; }
.hero .lead { max-width: 760px; margin: 0 auto; }
.hero .sub { font-size: 17px; color: var(--ink-2); max-width: 560px; margin: 22px auto 0; }
.cta-row { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.note { font-size: 14px; color: var(--muted); }
.note b { color: var(--ink-2); font-weight: 600; }
.pill-line { margin-top: 18px; font-size: 14.5px; color: var(--accent); font-weight: 600; letter-spacing: .02em; }

/* ---- step cards ---- */
.steps { margin-top: 28px; display: grid; gap: 14px; }
.step { background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; }
.step .n { font-family: var(--serif); font-size: 30px; color: var(--accent); line-height: 1; width: 44px; text-align: center; }
.step h4 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.step p { font-size: 15.5px; color: var(--ink-2); }

/* ---- callout ---- */
.callout { margin-top: 26px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 16px; padding: 26px 28px; }
.callout .lbl { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.callout .q { font-family: var(--serif); font-size: clamp(22px, 3.2vw, 28px); line-height: 1.25; color: var(--ink); }

/* ---- teaser cards (homepage hub) ---- */
.tgrid { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tcard { background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: border-color .18s, transform .15s; display: block; }
.tcard:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.tcard h4 { font-family: var(--serif); font-size: 24px; margin-bottom: 6px; }
.tcard p { font-size: 15px; color: var(--ink-2); }
.tcard .go { margin-top: 12px; font-size: 14.5px; color: var(--accent); font-weight: 600; }

/* ---- chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { background: var(--bg-card); border: 1px solid var(--accent-line); color: var(--ink); font-size: 15px; padding: 9px 16px; border-radius: 100px; }
.chip.more { border-style: dashed; color: var(--muted); }

/* ---- problem blocks (program) ---- */
.problem { border-top: 1px solid var(--line); padding: 46px 0; }
.problem:first-of-type { border-top: none; padding-top: 8px; }
.problem .pnum { font-family: var(--serif); font-size: 20px; color: var(--accent); margin-bottom: 8px; }
.problem h3 { margin-bottom: 14px; }
.problem .q { font-family: var(--serif); font-size: clamp(21px, 3vw, 26px); line-height: 1.3; color: var(--ink); max-width: 760px; }
.problem .why { margin-top: 14px; font-size: 16.5px; color: var(--ink-2); max-width: 720px; }
.positions { margin-top: 22px; display: grid; gap: 12px; }
.pos { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.pos .name { font-weight: 600; font-size: 16.5px; margin-bottom: 3px; }
.pos .name em { color: var(--accent); font-style: normal; font-weight: 500; }
.pos .claim { font-size: 15.5px; color: var(--ink-2); }
.pos .cost { font-size: 14.5px; color: var(--muted); margin-top: 7px; }
.pos .cost b { color: var(--ink-2); font-weight: 600; }
.youq { margin-top: 20px; padding-left: 18px; border-left: 3px solid var(--accent); font-size: 16.5px; color: var(--ink); }
.youq b { color: var(--accent); }

/* ---- lists ---- */
.need { margin-top: 24px; display: grid; gap: 12px; max-width: 700px; }
.need li { list-style: none; padding-left: 30px; position: relative; font-size: 17px; color: var(--ink-2); }
.need li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.need li b { color: var(--ink); font-weight: 600; }

/* ---- facts ---- */
.facts { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fact { background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.fact .big { font-family: var(--serif); font-size: 28px; color: var(--ink); margin-bottom: 4px; }
.fact .lbl { font-size: 14.5px; color: var(--ink-2); }

/* ---- photo grid (venue) ---- */
.photos { margin-top: 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.photos .ph { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-card); aspect-ratio: 4/3; }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.placeholder { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 14px; padding: 16px; background: repeating-linear-gradient(45deg, #F4EFE7, #F4EFE7 12px, #EFE8DD 12px, #EFE8DD 24px); }

/* ---- organizer (about) ---- */
.org { margin-top: 28px; display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: start; }
.org .photo { aspect-ratio: 1; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-card); }
.org .photo.placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; text-align: center; padding: 12px; }
.org .name { font-family: var(--serif); font-size: 30px; margin-bottom: 4px; }
.org .role { color: var(--accent); font-size: 15px; font-weight: 600; margin-bottom: 14px; }

/* ---- form ---- */
.apply-sec { background: var(--ink); color: #EFE8DD; border-top: none; }
.apply-sec .kicker { color: #C8A578; }
.apply-sec h2, .apply-sec .lead { color: #F6F1E9; }
.apply-sec .prose { color: #C4BBAE; }
form { margin-top: 30px; max-width: 620px; display: grid; gap: 18px; }
.field label { display: block; font-size: 14.5px; font-weight: 500; margin-bottom: 7px; color: #E4DCCF; }
.field .req { color: #C8A578; }
.field .opt { color: #8A7F70; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: #F6F1E9;
  background: #2A241E; border: 1px solid #43392E; border-radius: 12px; padding: 13px 15px; transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #C8A578; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field ::placeholder { color: #8A7F70; }
details.more { border-top: 1px solid #3A322A; padding-top: 14px; }
details.more summary { cursor: pointer; color: #C8A578; font-size: 15px; font-weight: 500; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "＋ "; }
details.more[open] summary::before { content: "－ "; }
details.more > .field { margin-top: 16px; }
form .btn { margin-top: 4px; justify-self: start; }
.formnote { font-size: 13.5px; color: #9A8F7F; }
.reassure { font-size: 14.5px; color: #C4BBAE; background: #2A241E; border: 1px solid #43392E; border-radius: 12px; padding: 14px 16px; margin-top: 6px; }
.reassure b { color: #E8C79A; }
.thanks { display: none; margin-top: 30px; max-width: 620px; background: #2A241E; border: 1px solid #43392E; border-radius: 16px; padding: 30px 28px; }
.thanks.on { display: block; }
.thanks h3 { font-family: var(--serif); font-size: 30px; color: #F6F1E9; margin-bottom: 10px; }
.thanks p { color: #C4BBAE; font-size: 16px; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding: 46px 0 40px; color: var(--muted); font-size: 14px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand .fserif { font-family: var(--serif); font-size: 26px; color: var(--ink); margin-bottom: 6px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a { color: var(--ink-2); }
.foot-nav a:hover { color: var(--ink); }
.foot-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---- sticky mobile CTA ---- */
.sticky-cta { display: none; }

/* ---- responsive ---- */
@media (max-width: 760px) {
  .nav { position: fixed; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px; transform: translateY(-120%); transition: transform .25s; z-index: 49; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:last-child { border-bottom: none; }
  .nav .btn-sm { text-align: center; margin-top: 10px; padding: 13px; }
  .burger { display: block; }
  .tgrid, .facts { grid-template-columns: 1fr; }
  .photos { grid-template-columns: 1fr; }
  .org { grid-template-columns: 1fr; gap: 18px; }
  .org .photo { max-width: 220px; }
  .hero { padding: 48px 0 44px; }
  section { padding: 48px 0; }
  .step { grid-template-columns: 34px 1fr; gap: 12px; padding: 18px; }
  body.has-sticky { padding-bottom: 76px; }
  .sticky-cta { display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 48;
    background: rgba(244,239,231,0.94); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 12px 16px; }
  .sticky-cta .btn { display: block; text-align: center; width: 100%; }
}
