/* Путевой журнал — визуальный язык сайта.
   Кремовая бумага, глубокий зелёный, терракота. Крупная типографика, много воздуха,
   фото как главный носитель настроения. */

:root {
  --paper: #fbf6ec;
  --paper-2: #f4ecdc;
  --ink: #1b2a26;
  --ink-soft: #46564f;
  --pine: #14564e;
  --pine-dark: #0d3b35;
  --terracotta: #d9663a;
  --sand: #e6d7bd;
  --sky: #bcd8d3;
  --line: #e2d8c5;
  --card: #fffdf8;
  --shadow: 0 10px 30px rgba(27, 42, 38, 0.08);
  --radius: 18px;
  --serif: Georgia, 'Times New Roman', 'PT Serif', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--pine); text-decoration-color: var(--sky); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.logo {
  font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: -0.2px;
  color: var(--pine-dark); text-decoration: none; display: flex; align-items: center; gap: 9px;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--terracotta), var(--pine-dark));
  display: inline-grid; place-items: center; color: #fff; font-size: 15px; font-family: var(--sans);
}
.nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--terracotta); }

/* ---------- Обложка ---------- */
.hero {
  position: relative; min-height: 460px; display: grid; align-items: end;
  color: #fff; overflow: hidden; border-radius: 0 0 26px 26px;
}
.hero img.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(13, 59, 53, 0.15) 0%, rgba(13, 59, 53, 0.55) 55%, rgba(10, 40, 36, 0.88) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 40px 0 34px; }
.hero .kicker { color: var(--sky); }
.hero h1 {
  font-family: var(--serif); font-size: clamp(30px, 5vw, 54px); line-height: 1.08;
  margin: 10px 0 14px; letter-spacing: -0.6px; max-width: 19ch; color: #fff;
}
.hero p.lead { font-size: clamp(16px, 2vw, 19px); max-width: 62ch; color: #eef3ee; margin: 0 0 20px; }

.kicker {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--terracotta);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 7px;
  background: rgba(255, 253, 248, 0.14); border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 14px; border-radius: 100px; font-size: 14px; color: #fff;
  backdrop-filter: blur(4px);
}
.chip b { font-family: var(--serif); font-size: 16px; }
.chip.dark { background: var(--paper-2); border-color: var(--line); color: var(--ink); }
.chip.dark b { color: var(--pine-dark); }

/* ---------- Секции ---------- */
.section { padding: 54px 0; }
.section.tight { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 34px); margin: 6px 0 0; letter-spacing: -0.4px; }
.section-head .more { font-size: 15px; }

h2 { font-family: var(--serif); font-size: clamp(23px, 3vw, 30px); letter-spacing: -0.3px; margin: 44px 0 14px; }
h3 { font-family: var(--serif); font-size: 21px; margin: 28px 0 10px; }
p { margin: 0 0 16px; }
.lead { font-size: 19px; color: var(--ink); }

/* ---------- Сетка карточек ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(27, 42, 38, 0.13); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .dist {
  position: absolute; left: 12px; top: 12px;
  background: rgba(13, 59, 53, 0.86); color: #fff; border-radius: 100px;
  padding: 5px 12px; font-size: 13px; font-weight: 600;
}
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 20px; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--terracotta); }
.card-meta { color: var(--ink-soft); font-size: 14px; display: flex; gap: 12px; flex-wrap: wrap; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.price { font-family: var(--serif); font-size: 17px; color: var(--pine-dark); }

/* ---------- Статья ---------- */
.article-body { padding: 42px 0 30px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 18px; }
.article-body li { margin-bottom: 10px; }
.article-body b { color: var(--pine-dark); }

.chips-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }

.note {
  background: var(--paper-2); border-left: 4px solid var(--terracotta);
  padding: 16px 18px; border-radius: 0 12px 12px 0; margin: 22px 0; font-size: 16px;
}

/* ---------- Климат ---------- */
.climate { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; margin: 20px 0 10px; }
.climate .m {
  border-radius: 12px; padding: 12px 4px 10px; text-align: center;
  color: #10302b; display: flex; flex-direction: column; gap: 2px;
  border: 2px solid transparent;
}
.climate .m b { font-size: 16px; font-family: var(--serif); line-height: 1.1; }
.climate .m span { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.7; }
.climate .m.best { border-color: var(--pine-dark); background-image: linear-gradient(180deg, rgba(13, 59, 53, 0.08), rgba(13, 59, 53, 0)); }
.climate-legend { font-size: 13.5px; color: var(--ink-soft); max-width: 66ch; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; margin: 18px 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--paper-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
td:last-child, th:last-child { text-align: right; }
tbody tr:hover { background: rgba(188, 216, 211, 0.18); }
.total-row td { font-weight: 700; background: rgba(20, 86, 78, 0.06); }

/* ---------- FAQ ---------- */
details.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; margin-bottom: 10px;
}
details.faq summary {
  cursor: pointer; font-weight: 600; font-family: var(--serif); font-size: 17.5px;
  list-style: none; display: flex; justify-content: space-between; gap: 14px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--terracotta); font-size: 22px; line-height: 1; }
details.faq[open] summary::after { content: '–'; }
details.faq p { margin: 10px 0 0; color: var(--ink-soft); }

/* ---------- Фото объектов ---------- */
.poi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.poi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.poi img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.poi figcaption { padding: 10px 12px; font-size: 13.5px; color: var(--ink-soft); }
.poi figcaption b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 3px; }

/* ---------- Прочее ---------- */
.hub-list { display: grid; gap: 14px; }
.hub-row {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px;
  text-decoration: none; color: inherit;
}
.hub-row:hover { border-color: var(--sky); }
.hub-row img { width: 76px; height: 60px; object-fit: cover; border-radius: 10px; }
.hub-row .t { font-family: var(--serif); font-size: 18px; }
.hub-row .s { color: var(--ink-soft); font-size: 14px; }
.hub-row .p { font-family: var(--serif); color: var(--pine-dark); white-space: nowrap; }

.breadcrumbs { font-size: 14px; color: var(--ink-soft); padding: 18px 0 0; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs span { opacity: 0.5; margin: 0 6px; }

.credit { font-size: 12px; color: var(--ink-soft); opacity: 0.75; margin-top: 6px; }

/* ---------- Оглавление и мета статьи ---------- */
.article-meta {
  font-size: 13px; color: var(--ink-soft); border-bottom: 1px solid var(--line);
  padding-bottom: 12px; margin: 0 0 22px;
}
.toc {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 22px; margin: 0 0 30px;
}
.toc-title {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--terracotta); font-weight: 700; margin-bottom: 10px;
}
.toc ol { margin: 0; padding-left: 20px; font-size: 15.5px; }
.toc li { margin-bottom: 6px; }
.toc a { text-decoration: none; border-bottom: 1px dotted var(--sky); }

/* ---------- Скачиваемые файлы ---------- */
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.download {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--pine);
  border-radius: 12px; padding: 16px 18px; color: inherit;
}
.download:hover { border-color: var(--sky); border-left-color: var(--terracotta); }
.download b { font-family: var(--serif); font-size: 17px; color: var(--pine-dark); }
.download span { font-size: 13.5px; color: var(--ink-soft); }

.site-footer {
  margin-top: 60px; background: var(--pine-dark); color: #dfe9e4; padding: 44px 0 30px;
}
.site-footer a { color: var(--sky); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px; }
.site-footer h4 { font-family: var(--serif); font-size: 17px; margin: 0 0 10px; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.site-footer li { margin-bottom: 7px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.18); margin-top: 30px; padding-top: 16px; font-size: 13px; opacity: 0.8; }

/* ---------- Адаптив ---------- */
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .hero { min-height: 400px; }
  .climate { grid-template-columns: repeat(6, 1fr); }
  .hub-row { grid-template-columns: 64px 1fr; }
  .hub-row .p { grid-column: 2; }
  .nav { gap: 14px; font-size: 14px; }
}
