/* v8, 28.11.2026, по замечаниям Насти: два шрифта (Prata для заголовков, Manrope для всего остального), никаких «глав», один левый край,
   крупный читаемый текст без сжатия, галочки вместо номеров, карточки вместо списка, цветные фото. Откат: tmp/v7_before_nastya/. */

@font-face { font-family: "Prata"; src: url("../assets/fonts/prata-cyrillic.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Prata"; src: url("../assets/fonts/prata-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../assets/fonts/manrope-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --black: #100d0a; --bg: #1b1510; --tobacco: #70492d; --brass: #c2aa80; --beige: #e2d5bd; --ivory: #f5eddf; --paper: #f1e8d6; --card: #f7f0e1;
  --ink: #1b1510; --ink-2: #4a3d31; --line-d: rgba(194, 170, 128, .35); --line-l: rgba(53, 37, 27, .2);
  --serif: "Prata", Georgia, serif; --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 72px); --max: 1120px; --nav-h: 68px; --gap: clamp(64px, 9vw, 120px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--black); color: var(--ivory); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
em { font-style: normal; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--ivory); color: var(--ink); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* Заголовки: Prata, обычный интервал, не прописные */
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
h1 { font-size: clamp(30px, 7vw, 56px); line-height: 1.18; }
h2 { font-size: clamp(30px, 5.4vw, 48px); line-height: 1.2; margin-bottom: 28px; }
h3 { font-size: clamp(21px, 2.6vw, 26px); line-height: 1.3; }
h1 em, h2 em { color: var(--brass); }
.overline { margin: 0 0 16px; font: 600 13px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; background: var(--ivory); color: var(--ink); border: 1px solid var(--ivory);
  text-decoration: none; font: 700 14px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; transition: background .3s, color .3s; }
.btn:hover { background: transparent; color: var(--ivory); }
.btn--ink { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn--ink:hover { background: transparent; color: var(--ink); }

/* Шапка */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: calc(var(--nav-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(var(--pad), calc((100% - var(--max)) / 2)) 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.is-solid { background: rgba(16, 13, 10, .95); border-bottom-color: var(--line-d); }
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brass); }
.lockup__mono { width: 36px; height: 36px; flex: none; }
.lockup__txt { display: grid; gap: 4px; }
.lockup__name { font: 400 17px/1 var(--serif); letter-spacing: .06em; text-transform: uppercase; color: var(--ivory); }
.lockup__sub { font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--beige); }
.nav__links { display: none; }
.nav__links a { text-decoration: none; font: 600 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--beige); }
.nav__links a:hover { color: var(--ivory); }
.nav__book { padding: 13px 18px; border: 1px solid var(--brass); color: var(--ivory) !important; }
.nav__toggle { display: grid; gap: 7px; width: 44px; height: 44px; place-content: center; background: none; border: 0; cursor: pointer; padding: 0; }
.nav__toggle span:not(.sr) { width: 24px; height: 2px; background: var(--ivory); transition: transform .3s; }
.nav.is-open { background: var(--black); }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
.nav.is-open .nav__links { display: flex; flex-direction: column; gap: 26px; position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top)) 0 0 0; padding: 40px var(--pad); background: var(--black); }
.nav.is-open .nav__links a { font: 400 30px/1.2 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ivory); }
.nav.is-open .nav__book { align-self: flex-start; margin-top: 8px; font: 700 14px/1 var(--sans) !important; letter-spacing: .06em !important; text-transform: uppercase !important; padding: 16px 22px; }

/* Первый экран */
.hero { position: relative; min-height: 100svh; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding-top: calc(var(--nav-h) + 24px); }
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,13,10,.72) 0, rgba(16,13,10,.58) 38%, rgba(16,13,10,.93) 100%); }
.hero__body { padding-bottom: clamp(32px, 6vw, 64px); }
.hero__body > * { max-width: 880px; }
.hero__body h1 { margin-bottom: 22px; }
.hero__names { margin: 0 0 12px; font: 600 clamp(17px, 2.2vw, 21px)/1.4 var(--sans); }
.hero__lede { max-width: 46ch; margin: 0 0 14px; color: var(--beige); }
.hero__date { margin: 0 0 24px; font: 700 16px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.hero__date span { color: var(--brass); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero__note { font: 600 16px/1.3 var(--sans); color: var(--beige); }

/* Разделы */
.sec { padding: var(--gap) 0; }
.sec--light { background: var(--paper); color: var(--ink); }
.sec--light h2, .sec--light h3 { color: var(--ink); }
.sec--dark { background: var(--bg); }
.about { display: grid; gap: 32px; margin-bottom: clamp(48px, 6vw, 72px); }
.about__text { max-width: 62ch; color: var(--ink-2); }
.about__img { margin: 0; }
.about__img img { width: 100%; border-radius: 2px; }
.topics__title { margin-bottom: 24px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px 48px; }
.checks li { position: relative; padding-left: 36px; font-size: 18px; line-height: 1.5; color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 16px; height: 8px; border-left: 2px solid var(--tobacco); border-bottom: 2px solid var(--tobacco); transform: rotate(-45deg); }

/* Спикеры: три равные карточки, одна линия */
.trio { display: grid; gap: clamp(48px, 7vw, 56px) 36px; }
.sp__ph { margin-bottom: 22px; background: #0c0a08; }
.sp__ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sp__name { margin-bottom: 8px; }
.sp__role { margin: 0 0 16px; font-weight: 600; color: var(--brass); }
.sp p { color: var(--beige); }

/* Формат: фото, затемнение и четыре карточки */
.sec--photo { position: relative; isolation: isolate; background: var(--black); }
.photo__img { position: absolute; inset: 0; z-index: -2; }
.photo__img img { width: 100%; height: 100%; object-fit: cover; }
.photo__veil { position: absolute; inset: 0; z-index: -1; background: rgba(16, 13, 10, .8); }
.lede { max-width: 62ch; margin-bottom: 36px; color: var(--beige); }
.lede b { color: var(--ivory); }
.tiles { display: grid; gap: 16px; }
.tile { padding: 24px 24px 20px; background: rgba(16, 13, 10, .72); border: 1px solid var(--line-d); border-top: 3px solid var(--brass); }
.tile h3 { margin-bottom: 10px; }
.tile p { margin: 0; color: var(--beige); }

/* Участие */
.join { display: grid; gap: 32px; }
.card { padding: clamp(24px, 4vw, 44px); background: var(--card); color: var(--ink); }
.facts { margin: 0 0 24px; border-top: 1px solid var(--line-l); }
.facts div { display: grid; grid-template-columns: minmax(104px, 170px) 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-l); }
.facts dt { font: 600 13px/1.6 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 0; font: 400 clamp(19px, 5vw, 22px)/1.3 var(--serif); }
.card__quote { margin: 0 0 24px; font: 400 19px/1.5 var(--serif); color: var(--ink); }
.card__small { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
.join__img { margin: 0; }
.join__img img { width: 100%; }
.faq { margin-top: clamp(48px, 7vw, 72px); }
.faq details { border-bottom: 1px solid var(--line-d); }
.faq summary { cursor: pointer; list-style: none; min-height: 44px; padding: 18px 0; font: 400 21px/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brass); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: var(--beige); }

.footer { background: var(--black); border-top: 1px solid var(--line-d); padding: 44px max(var(--pad), calc((100% - var(--max)) / 2)) calc(100px + env(safe-area-inset-bottom)); color: var(--beige); font-size: 15px; }
.footer p { margin: 0 0 10px; }
.footer__name { font: 400 18px/1.3 var(--serif); color: var(--ivory); }
.footer__credits { max-width: 640px; font-size: 14px; opacity: .8; }

.sticky-book { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: center; min-height: 54px;
  background: var(--ivory); color: var(--ink); text-decoration: none; font: 700 14px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  transform: translateY(150%); transition: transform .4s; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.sticky-book.is-on { transform: none; }

/* Планшет и десктоп */
@media (min-width: 768px) {
  body { font-size: 18px; }
  .about { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
  .about__img { position: sticky; top: calc(var(--nav-h) + 24px); }
  .checks { grid-template-columns: 1fr 1fr; }
  .trio { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 20px; }
  .join { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .faq { columns: 2; column-gap: 48px; } .faq details { break-inside: avoid; }
  .sticky-book { display: none; }
}
@media (min-width: 1024px) {
  :root { --nav-h: 80px; }
  .nav__toggle { display: none; }
  .nav__links { display: flex; align-items: center; gap: clamp(24px, 2.6vw, 40px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* v9: тени под текстом поверх фотографий (Настя: «надо тени добавить, единственное место где не видно») */
.hero__body h1, .hero__body p, .hero__note, .sec--photo h2, .sec--photo .lede { text-shadow: 0 1px 14px rgba(0,0,0,.9), 0 0 3px rgba(0,0,0,.7); }
.hero__body .btn { text-shadow: none; }
@media (max-width: 700px) { .hero__veil { background: linear-gradient(180deg, rgba(16,13,10,.78) 0, rgba(16,13,10,.66) 40%, rgba(16,13,10,.94) 100%); } }

/* v9: открытка «Участие» как в прошлой версии: рамка, печать, срезанные углы, текст по центру */
.card { position: relative; text-align: center; padding: 64px 26px 40px; box-shadow: 0 50px 90px -40px rgba(0,0,0,.8);
  -webkit-mask: radial-gradient(circle 10px at 0 0, #0000 98%, #000) top left, radial-gradient(circle 10px at 100% 0, #0000 98%, #000) top right, radial-gradient(circle 10px at 0 100%, #0000 98%, #000) bottom left, radial-gradient(circle 10px at 100% 100%, #0000 98%, #000) bottom right;
  -webkit-mask-size: 51% 51%; -webkit-mask-repeat: no-repeat;
  mask: radial-gradient(circle 10px at 0 0, #0000 98%, #000) top left, radial-gradient(circle 10px at 100% 0, #0000 98%, #000) top right, radial-gradient(circle 10px at 0 100%, #0000 98%, #000) bottom left, radial-gradient(circle 10px at 100% 100%, #0000 98%, #000) bottom right;
  mask-size: 51% 51%; mask-repeat: no-repeat; }
.card::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(112, 73, 45, .45); pointer-events: none; }
.card__seal { display: block; width: 58px; height: 58px; margin: -18px auto 14px; transform: rotate(-12deg); filter: drop-shadow(0 4px 6px rgba(74,32,38,.35)); }
.card h2 { margin-bottom: 20px; color: var(--tobacco); }
.card .facts { text-align: left; }
@media (min-width: 768px) { .card { padding: 72px 52px 48px; } }
@media (max-width: 767px) { .facts div { grid-template-columns: 42% minmax(0, 1fr); } }

/* v10: место на первом экране и «Как добраться» */
.hero__place { margin: -8px 0 24px; font: 600 16px/1.4 var(--sans); color: var(--beige); }
.route { display: grid; gap: 28px; }
.route__text { color: var(--ink-2); }
.route__text b { color: var(--ink); font: 400 clamp(22px, 3vw, 28px)/1.3 var(--serif); }
.route__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.route__img { margin: 0; }
.route__img img { width: 100%; border-radius: 2px; }
@media (min-width: 768px) { .route { grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; } }

/* v11, мобильная версия: ничто не шире экрана (iPhone), длинное переносится, сетки с minmax(0,1fr) */
html { overflow-x: hidden; }
.facts div { grid-template-columns: minmax(96px, 42%) minmax(0, 1fr); }
.facts dd, .facts dt, .sp p, .tile p, .route__text, h1, h2, h3 { overflow-wrap: anywhere; }
.facts dd.price, .facts div.price dd { white-space: nowrap; }
.nav { max-width: 100vw; }
.card, .tile, .sp, .about__text, .route__text { min-width: 0; }
@media (min-width: 768px) { .facts div { grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); } }
