/* Level up — прототип «красивая схема»: общий файл стилей всех страниц. Без цветов бренда и без движения. */
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-Variable.ttf") format("truetype"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #faf8f4;
  --ink: #1f1d1a;
  --grey: rgba(31, 29, 26, .55);
  --line: rgba(31, 29, 26, .14);
  --accent: #9a7b4f;            /* только линия, без заливок */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, "Helvetica Neue", Arial, sans-serif;
  --col: 62ch;
  --gap: 48px;                  /* половина воздуха между секциями: 96 px на 390 */
  --side: 22px;
}
@media (min-width: 900px) { :root { --gap: 56px; --side: 64px; } }

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--sans); -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: var(--col); }
h1, h2, h3 { font-family: var(--serif); font-weight: 350; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: 32px; }
h2 { font-size: 28px; max-width: 22ch; }
h3 { font-size: 22px; }
@media (min-width: 900px) { h1 { font-size: 54px; } h2 { font-size: 40px; } h3 { font-size: 26px; } }
b, strong { font-weight: 600; }

/* ——— шапка: тонкая, одна строка имени и кнопки, меню строкой с прокруткой вбок ——— */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand btn" "menu menu"; align-items: center; column-gap: 12px; padding: 10px var(--side) 0; }
.top .brand { grid-area: brand; }
.top .btn-line { grid-area: btn; }
.top .menu { grid-area: menu; margin: 0 calc(-1 * var(--side)); }
.brand { font: 400 18px/1 var(--serif); text-decoration: none; }
.btn-line { display: inline-block; font: 500 14px/1 var(--sans); padding: 10px 14px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; background: transparent; color: var(--ink); cursor: pointer; }
.menu { display: flex; gap: 20px; overflow-x: auto; white-space: nowrap; padding: 6px var(--side) 10px; scrollbar-width: none; font-size: 14px; }
.menu::-webkit-scrollbar { display: none; }
.menu a { text-decoration: none; color: var(--grey); padding: 4px 0; }
.menu a[aria-current] { color: var(--ink); border-bottom: 1px solid var(--accent); }
@media (min-width: 900px) {
  .top { grid-template-columns: auto 1fr auto; grid-template-areas: "brand menu btn"; padding: 12px var(--side); column-gap: 32px; }
  .top .menu { margin: 0; padding: 0; justify-content: flex-end; }
}

/* ——— секции ——— */
main > section, .page-head { padding: var(--gap) var(--side); }
.wrap { max-width: 1180px; margin: 0 auto; }
.kick { font: 400 11px/1.4 var(--sans); font-variant: small-caps; letter-spacing: .08em; text-transform: lowercase; color: var(--grey); margin: 0 0 14px; }
.lead-p { font-size: 19px; }
.quiet { color: var(--grey); font-size: 17px; }
.more { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.more::after { content: " →"; }
.back::before { content: "← "; }
.back { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 18px; }
figure { margin: 0; }
figcaption { font-size: 12px; color: var(--grey); margin-top: 8px; }
.full, .ph.full { margin-left: calc(-1 * var(--side)); margin-right: calc(-1 * var(--side)); width: calc(100% + 2 * var(--side)); max-width: none; }
@media (min-width: 900px) { .full, .ph.full { margin-left: 0; margin-right: 0; width: 100%; } }
.ph { width: 100%; object-fit: cover; }
/* тёмные фото на светлой странице: край растворяется в фоне, не прямоугольник */
.ph.soft { -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent); mask-composite: intersect; }
.nophoto { border: 1px dashed var(--grey); color: var(--grey); font-size: 13px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; aspect-ratio: 4 / 3; }

/* ——— первый экран ——— */
.hero { padding-top: 0 !important; }
.hero .ph { height: 46vh; min-height: 300px; }
.hero-text { padding-top: 26px; }
.hero h1 { max-width: 16ch; }
.btn { display: inline-block; background: var(--ink); color: var(--bg); font: 500 16px/1 var(--sans); padding: 16px 22px; border-radius: 999px; text-decoration: none; margin-top: 6px; }
@media (min-width: 900px) {
  .hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
  .hero .ph { height: 78vh; order: 2; }
  .hero .full { margin: 0; }
  .hero-text { padding-top: var(--gap); }
}

/* ——— две колонки: текст + фото ——— */
.two { display: grid; gap: 28px; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; } .two.flip > :first-child { order: 2; } }
.face { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.face img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.ifs { list-style: none; padding: 0; margin: 18px 0; }
.ifs li { padding: 10px 0; border-top: 1px solid var(--line); max-width: var(--col); }
.ifs li:last-child { border-bottom: 1px solid var(--line); }

/* ——— обещаю / не обещаю ——— */
.vow { list-style: none; padding: 0; margin: 0 0 22px; font: 300 24px/1.3 var(--serif); }
.vow li { padding: 4px 0; }
.not { border-left: 1px solid var(--accent); padding-left: 16px; max-width: var(--col); }
blockquote { margin: 22px 0 0; font: italic 300 20px/1.4 var(--serif); max-width: 34ch; }

/* ——— истории ——— */
.stories { display: grid; gap: 30px; margin-top: 26px; }
@media (min-width: 900px) { .stories { grid-template-columns: 1fr 1fr; gap: 40px 64px; } }
.story p { margin: 0; }
.story q { font-family: var(--serif); font-style: italic; }

/* ——— сокровище кондора ——— */
.huge { font: 200 120px/1 var(--serif); letter-spacing: -.03em; margin: 22px 0 8px; }
@media (min-width: 900px) { .huge { font-size: 180px; } }
.condor-img { width: 100%; max-height: 70vh; object-fit: cover; }
details { margin-top: 20px; max-width: var(--col); }
details:not([open]) > :not(summary) { display: none; }
main > section { scroll-margin-top: 96px; }
summary { cursor: pointer; color: var(--grey); font-size: 14px; }

/* ——— профиль трёх подъёмов (живая штука) ——— */
.profile { width: 100%; max-width: 980px; margin: 26px 0 8px; }
.profile svg { width: 100%; height: auto; overflow: visible; }
.profile .ln { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 1.3s ease-out; }
.profile.on .ln { stroke-dashoffset: 0; }
.profile text { font: 400 14px var(--sans); fill: var(--grey); }
.profile .pk { font-size: 16px; fill: var(--ink); }
@media (max-width: 899px) { .profile text { font-size: 30px; } .profile .pk { font-size: 34px; } .profile .rest { font-size: 28px; } }

/* ——— карточки дней: вбок ——— */
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-top: 22px; scrollbar-width: thin; }
.card { flex: 0 0 72%; scroll-snap-align: start; max-width: 300px; text-decoration: none; }
.card img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.card .n { font: 300 30px/1 var(--serif); margin: 10px 0 2px; }
.card .t { font-size: 15px; }
.card .w { font-size: 12px; color: var(--grey); font-variant: small-caps; letter-spacing: .08em; }

/* ——— день ——— */
.alt { font: 200 64px/1 var(--serif); margin: 0 0 10px; letter-spacing: -.02em; }
.alt small { font-size: 20px; color: var(--grey); }
@media (min-width: 900px) { .alt { font-size: 88px; } }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.two > *, .pair > * { min-width: 0; }
.pair img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.term { border-left: 1px solid var(--accent); padding-left: 16px; margin-top: 22px; }

/* ——— портал (живая штука) ——— */
.gate { position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-height: 80vh; background: var(--ink); }
@media (min-width: 900px) { .gate { aspect-ratio: 16 / 9; } }
.gate .half { position: absolute; top: 0; bottom: 0; width: 50%; background-size: cover; background-repeat: no-repeat; transition: transform 1.3s ease-in-out; }
.gate .l { left: 0; background-position: 0% 50%; background-size: 200% 100%; }
.gate .r { right: 0; background-position: 100% 50%; background-size: 200% 100%; }
.gate.open .l { transform: translateX(-62%); }
.gate.open .r { transform: translateX(62%); }
.gate .behind { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--bg); text-align: center; padding: 20px; }
.gate .behind b { font: 300 40px/1.1 var(--serif); }
.word { font: 200 56px/1 var(--serif); margin: 22px 0 6px; }
@media (min-width: 900px) { .word { font-size: 96px; } }

/* ——— продлить ——— */
.ext { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
@media (min-width: 900px) { .ext { grid-template-columns: repeat(4, 1fr); } }
.ext img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.ext h3 { font-size: 18px; margin: 10px 0 4px; }
.ext p { font-size: 14px; color: var(--grey); }
.days { display: flex; gap: 22px; font: 300 24px/1 var(--serif); margin: 10px 0 18px; }

/* ——— внутри ——— */
.grid2 { display: grid; gap: 26px; margin-top: 22px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; gap: 36px 64px; } }
.grid2 h3 { font-size: 20px; margin-bottom: 6px; }
.grid2 p { margin: 0; }

/* ——— цифры ——— */
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; margin-top: 22px; }
@media (min-width: 900px) { .nums { grid-template-columns: repeat(3, 1fr); gap: 32px 48px; } }
.nums b { display: block; font: 300 40px/1 var(--serif); }
.nums span { font-size: 14px; color: var(--grey); }

/* ——— что входит ——— */
.incl { list-style: none; padding: 0; margin: 18px 0; max-width: var(--col); }
.incl li { padding: 11px 0; border-top: 1px solid var(--line); }
.incl li:last-child { border-bottom: 1px solid var(--line); }

/* ——— с чем ты приедешь (живая штука) ——— */
.ask-box { max-width: 520px; margin-top: 20px; }
.ask-box label { display: block; font-size: 14px; color: var(--grey); margin-bottom: 8px; }
.ask-box input { width: 100%; font: 400 18px/1.4 var(--sans); padding: 12px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); outline: none; margin-bottom: 18px; }
.ask-box .hint { font-size: 14px; color: var(--grey); margin-top: 12px; min-height: 1.5em; }

/* ——— финал ——— */
.closing { text-align: left; }
.closing .ph { height: 50vh; min-height: 260px; }

/* ——— «Как устроено»: подменю, остановки, вопросы ——— */
.subnav { display: flex; gap: 18px; overflow-x: auto; white-space: nowrap; font-size: 14px; padding: 4px 0; scrollbar-width: none; }
.subnav a { text-decoration: none; color: var(--grey); }
.stops { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 22px; }
@media (min-width: 900px) { .stops { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.stops img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 10px; }
.stops .nm { font: 400 21px/1.2 var(--serif); display: block; }
.stops .hi { display: block; font: 300 28px/1.2 var(--serif); margin-top: 4px; }
.stops .dd { display: block; font-size: 13px; color: var(--grey); margin-top: 4px; }
.faq details { border-top: 1px solid var(--line); margin: 0; padding: 14px 0; max-width: var(--col); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { color: var(--ink); font-size: 17px; list-style: none; }
.faq summary::after { content: " +"; color: var(--grey); }
.faq details p { margin: 10px 0 0; }
.steps { display: grid; gap: 18px; margin: 18px 0; }
@media (min-width: 900px) { .steps { grid-template-columns: 1fr 1fr; max-width: 760px; } }
.steps b { display: block; font: 300 22px/1.2 var(--serif); }

/* ——— подвал по стандарту ——— */
.foot { border-top: 1px solid var(--line); padding: 64px var(--side) 28px; font-size: 15px; }
.foot-grid { display: grid; gap: 30px; max-width: 1180px; margin: 0 auto 36px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
.foot h4 { font: 400 11px/1.4 var(--sans); font-variant: small-caps; letter-spacing: .08em; text-transform: lowercase; color: var(--grey); margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0 0 8px; }
.foot a { text-decoration: none; }
.foot .fname { font: 400 24px/1.2 var(--serif); margin: 0 0 8px; }
.foot .lv-end { max-width: 1180px; margin: 0 auto; }

/* ——— карта сайта /map/: путь гостя на один экран ——— */
.proto-note { font-size: 11px; color: var(--grey); margin: 0 0 18px; max-width: none; }
.map h1 { font-size: 30px; margin-bottom: .4em; }
@media (min-width: 900px) { .map h1 { font-size: 40px; } }
.where { margin: 0 0 4px; font-size: 17px; max-width: none; }
.where b { font-weight: 400; color: var(--grey); }
.flow { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); gap: 0 44px; } }
.flow li { position: relative; }
@media (min-width: 900px) { .flow li + li::before { content: "→"; position: absolute; left: -32px; top: 70px; color: var(--accent); font-size: 20px; } }
.flow a { text-decoration: none; display: block; }
.flow img { width: 100%; height: 150px; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .flow img { height: 160px; } }
.flow .ch { font-size: 11px; color: var(--grey); font-variant: small-caps; letter-spacing: .08em; margin: 8px 0 2px; display: block; }
.flow .nm { font: 400 19px/1.2 var(--serif); display: block; }
.flow .ln1 { font-size: 13px; line-height: 1.35; color: var(--grey); display: block; margin-top: 3px; }
.flow .mk { font-size: 13px; display: block; margin-top: 3px; }
.path { font-size: 13px; color: var(--grey); margin: 16px 0 0; max-width: none; }
.props { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }
.props li { padding: 5px 0; }
.props a { text-decoration: none; border-bottom: 1px solid var(--line); }
.map h2 { font-size: 20px; margin: 30px 0 4px; max-width: none; }
.map details { max-width: none; }
.map details li { font-size: 14px; padding: 4px 0; }
