/* Shine! Adventures — основной стиль. Шрифты системные, без внешних файлов. */
:root {
  --paper: #eef1ee;
  --paper-2: #e3e8e4;
  --ink: #1b2a35;
  --ink-soft: #4c5b66;
  --rule: #c5cdc8;
  --marking: #f2b807;
  --marking-dark: #8a6a00;
  --sign: #1d6b4f;
  --asphalt: #33404a;
  --white: #ffffff;

  --display: "Avenir Next Condensed", "Bahnschrift Condensed", "Bahnschrift", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, "Helvetica Neue", Arial, sans-serif;
  --text: "PT Serif", Georgia, "Noto Serif", "Droid Serif", "Times New Roman", serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.68 var(--text);
  font-kerning: normal;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--marking); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--sign); }
:focus-visible { outline: 3px solid var(--marking); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.005em; font-stretch: condensed; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.45rem; line-height: 1.15; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 40em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--marking); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Шапка */
.top { background: var(--paper); border-bottom: 1px solid var(--rule); position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font: 700 1.6rem/1 var(--display); font-stretch: condensed; }
.brand span { font: 400 .78rem/1.2 var(--ui); color: var(--ink-soft); display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav a { font: 500 .98rem/1 var(--ui); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--marking); color: var(--ink); }
.menu { display: none; }
@media (max-width: 820px) { .nav--wide { display: none; } .menu { display: block; } }

@media (max-width: 820px) {
  .menu summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font: 600 .95rem/1 var(--ui); padding: 10px 12px; border: 1px solid var(--rule); border-radius: 4px; background: var(--white); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary::before { content: ""; width: 16px; height: 10px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
  .menu .nav { display: none; }
  .menu[open] .nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px; }
  .menu[open] .nav ul { flex-direction: column; gap: 0; }
  .menu[open] .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
}

/* Главный экран с фото */
.hero { position: relative; color: var(--white); background: var(--asphalt); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,38,.05) 0%, rgba(20,30,38,.15) 40%, rgba(20,30,38,.8) 100%); }
.hero .wrap { position: relative; z-index: 1; min-height: min(78vh, 720px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; padding-bottom: clamp(32px, 6vw, 64px); }
.hero h1 { max-width: 14em; margin-bottom: .3em; text-shadow: 0 1px 18px rgba(0,0,0,.25); }
.hero p { max-width: 34em; font-size: 1.12rem; margin: 0; }
.hero--tour .wrap { min-height: min(68vh, 620px); }
.hero .kicker { font: 600 .95rem/1.3 var(--ui); margin-bottom: 14px; color: var(--white); display: flex; align-items: center; gap: 10px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero .kicker::before { content: ""; width: 28px; height: 4px; background: var(--marking); flex: none; }

/* Табло выездов */
.board { background: var(--asphalt); color: #e9eeea; padding: clamp(28px, 5vw, 48px) 0; }
.board h2 { color: var(--white); margin-bottom: .2em; }
.board .note { font: .92rem/1.5 var(--ui); color: #b8c3c0; margin-bottom: 22px; }
.board table { width: 100%; border-collapse: collapse; font: 1rem/1.35 var(--ui); font-variant-numeric: tabular-nums; }
.board th { text-align: left; font-weight: 500; color: #9fb0ad; font-size: .85rem; padding: 0 12px 10px 0; border-bottom: 1px solid #55636c; }
.board td { padding: 14px 12px 14px 0; border-bottom: 1px solid #45525b; vertical-align: top; }
.board td:first-child { color: var(--marking); white-space: nowrap; }
.board a { color: var(--white); text-decoration-color: rgba(242,184,7,.6); }
.board a:hover { color: var(--marking); }
.status { display: inline-block; font-size: .85rem; padding: 2px 8px; border-radius: 3px; background: #44525b; white-space: nowrap; }
.status--open { background: var(--sign); color: var(--white); }
.status--few { background: var(--marking); color: var(--ink); }
@media (max-width: 640px) {
  .board thead { display: none; }
  .board tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid #45525b; }
  .board td { border: 0; padding: 0; }
  .board td:nth-child(2) { grid-column: 1 / -1; font-size: 1.08rem; }
  .board td:nth-child(3) { color: #b8c3c0; }
}

/* Секции */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.section--alt { background: var(--paper-2); }
.lead { font-size: 1.22rem; line-height: 1.6; }
.muted { color: var(--ink-soft); }
.small { font: .9rem/1.5 var(--ui); }

/* Список туров */
.tours { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 28px; margin-top: 32px; }
.tour { grid-column: span 4; text-decoration: none; color: var(--ink); display: block; }
.tour:nth-child(1), .tour:nth-child(2), .tour:nth-child(n+6) { grid-column: span 6; }
.tour figure { margin: 0 0 14px; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; }
.tour:nth-child(1) figure, .tour:nth-child(2) figure, .tour:nth-child(n+6) figure { aspect-ratio: 16 / 10; }
.tour figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tour:hover figure img { transform: scale(1.03); }
.tour h3 { margin-bottom: .2em; }
.tour:hover h3 { text-decoration: underline; text-decoration-color: var(--marking); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.tour p { font: .95rem/1.45 var(--ui); color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .tour, .tour:nth-child(1), .tour:nth-child(2), .tour:nth-child(n+6) { grid-column: span 6; } }
@media (max-width: 600px) { .tours { gap: 32px; } .tour, .tour:nth-child(1), .tour:nth-child(2), .tour:nth-child(n+6) { grid-column: 1 / -1; } }

/* Делаем / не делаем */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); }
.split h3 { padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.split ul { list-style: none; margin: 0; padding: 0; }
.split li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.split .no li { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(76,91,102,.45); }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }

/* Журнал: список */
.posts { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.posts li { display: grid; grid-template-columns: 9.5em 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.posts time { font: .92rem/1.6 var(--ui); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.posts h3 { margin: 0 0 .25em; }
.posts h3 a { text-decoration: none; }
.posts h3 a:hover { text-decoration: underline; text-decoration-color: var(--marking); }
.posts p { margin: 0; color: var(--ink-soft); }
@media (max-width: 600px) { .posts li { grid-template-columns: 1fr; gap: 4px; } }

/* Страница тура: факты */
.facts { background: var(--white); border-bottom: 1px solid var(--rule); }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.facts div { padding: 18px 18px 18px 0; border-right: 1px solid var(--rule); margin-right: 18px; }
.facts div:last-child { border-right: 0; }
.facts dt { font: .8rem/1.3 var(--ui); color: var(--ink-soft); margin-bottom: 4px; }
.facts dd { margin: 0; font: 700 1.2rem/1.2 var(--display); font-stretch: condensed; }
@media (max-width: 860px) { .facts dl { grid-template-columns: repeat(2, 1fr); } .facts div { border-right: 0; border-bottom: 1px solid var(--rule); margin-right: 0; } .facts div:last-child { grid-column: 1 / -1; border-bottom: 0; } }

.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 9px 0 9px 28px; border-bottom: 1px solid var(--rule); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 14px; height: 4px; background: var(--marking); }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 210px; gap: 8px; margin-top: 28px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery img:first-child { grid-row: span 2; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } .gallery img:first-child { grid-column: 1 / -1; grid-row: span 1; } }

/* Маршрут по дням: дорога с разметкой */
.road { position: relative; margin-top: 36px; padding-left: 64px; }
.road::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 24px; background: var(--asphalt); border-radius: 2px; }
.road::after { content: ""; position: absolute; left: 25px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(180deg, var(--marking) 0 14px, transparent 14px 26px); }
.stop { position: relative; padding: 0 0 40px; }
.stop:last-child { padding-bottom: 8px; }
.stop::before { content: ""; position: absolute; left: -56px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 4px solid var(--marking); z-index: 1; }
.section--alt .stop::before { background: var(--paper-2); }
.stop .day { font: 600 .9rem/1.3 var(--ui); color: var(--marking-dark); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.stop h3 { margin-bottom: .35em; }
.stop p { max-width: 38em; }
.stop img { margin-top: 14px; max-width: 640px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 600px) { .road { padding-left: 48px; } .road::before { left: 6px; width: 20px; } .road::after { left: 15px; } .stop::before { left: -48px; } }

/* Включено */
.included { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); }
@media (max-width: 760px) { .included { grid-template-columns: 1fr; } }
.included h3 { font-size: 1.3rem; }
.included ul { margin: 0; padding-left: 1.1em; }
.included li { margin-bottom: .4em; }

/* Варианты и цены */
.prices { width: 100%; border-collapse: collapse; margin-top: 24px; font-family: var(--ui); font-size: 1rem; }
.prices th, .prices td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prices th { font: 700 1.3rem/1.15 var(--display); font-stretch: condensed; width: 26%; }
.prices td.sum { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; width: 18%; }
.prices td { color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 640px) {
  .prices, .prices tbody, .prices tr, .prices th, .prices td { display: block; width: auto; }
  .prices tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .prices th, .prices td { border: 0; padding: 2px 0; }
}

.callout { border-left: 6px solid var(--marking); background: var(--white); padding: 22px 24px; margin: 32px 0 0; }
.callout p:last-child { margin: 0; }

.more { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; font-family: var(--ui); }

/* Статья */
.article-head { padding: clamp(40px, 7vw, 80px) 0 24px; }
.article-head time, .article-head .meta { font: .95rem/1.4 var(--ui); color: var(--ink-soft); }
.article-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 16em; margin-top: 10px; }
.article { padding-bottom: clamp(48px, 8vw, 96px); }
.article .body { max-width: 38em; }
.article .body h2 { font-size: 1.8rem; margin-top: 1.6em; }
.article .body ul, .article .body ol { padding-left: 1.2em; }
.article .body li { margin-bottom: .45em; }
.article figure { margin: 0 0 32px; }
.article figure img { width: 100%; max-height: 560px; object-fit: cover; }
.article figcaption { font: .88rem/1.4 var(--ui); color: var(--ink-soft); margin-top: 8px; }
.file { display: inline-flex; gap: 10px; align-items: baseline; font-family: var(--ui); padding: 12px 16px; background: var(--white); border: 1px solid var(--rule); text-decoration: none; }
.file small { color: var(--ink-soft); }

/* Вопросы */
.faq { border-top: 1px solid var(--rule); max-width: 46em; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font: 700 1.3rem/1.2 var(--display); font-stretch: condensed; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 1.6rem/1 var(--ui); color: var(--marking-dark); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 18px; }

/* Подвал */
.foot { background: var(--ink); color: #c9d3d6; padding: 48px 0 32px; font: .95rem/1.6 var(--ui); }
.foot a { color: #e8eef0; text-decoration-color: rgba(242,184,7,.5); }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 6px; }
.foot .base { margin-top: 36px; padding-top: 18px; border-top: 1px solid #39505d; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #93a4ab; font-size: .85rem; }
.foot .mark { font: 700 1.5rem/1 var(--display); color: var(--white); margin-bottom: 10px; font-stretch: condensed; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > div:first-child { grid-column: 1 / -1; } }

/* 404 */
.lost { min-height: 62vh; display: grid; align-items: center; }
.lost .wrap { width: 100%; }
.lost .sign { display: inline-block; background: var(--sign); color: var(--white); padding: 18px 26px; border: 4px solid var(--white); outline: 2px solid var(--sign); border-radius: 8px; font: 700 1.5rem/1.2 var(--display); font-stretch: condensed; margin-bottom: 28px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .top, .foot, .board { display: none; } body { background: #fff; } }
