/* ilovesaratov.shop — статический сайт о Саратове для путешественника
   Без JavaScript: весь смысл в HTML, всё оформление — CSS. */

:root {
  --ink: #16232E;
  --ink-2: #43565F;
  --ink-3: #7A8A91;
  --river: #12607F;
  --river-dark: #0C465D;
  --river-soft: #E4F0F5;
  --sand: #B8792A;
  --sand-soft: #F7EEDF;
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --line: #E6DFD4;
  --shadow: 0 1px 2px rgba(22, 35, 46, .05), 0 8px 24px rgba(22, 35, 46, .07);
  --radius: 14px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Piazzolla, "PT Serif", Georgia, "Times New Roman", serif;
  line-height: 1.18;
  text-wrap: balance;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; font-family: inherit; font-weight: 600; }

p { margin: 0 0 1.1em; max-width: 74ch; }
a { color: var(--river); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sand); }
img { max-width: 100%; display: block; }
strong { font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 800px; }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 243, .93);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 66px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: Piazzolla, Georgia, serif;
  font-weight: 700;
  font-size: 1.16rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand .heart { color: var(--sand); font-size: 1.25em; line-height: 1; }

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }

.site-nav a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
}

.site-nav a:hover { background: var(--river-soft); color: var(--river-dark); }
.site-nav a[aria-current="page"] { background: var(--river); color: #fff; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}

.hero.compact { min-height: 42vh; }

.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 30, 42, .30) 0%, rgba(12, 30, 42, .20) 40%, rgba(10, 26, 36, .86) 100%);
}

.hero .wrap { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 46px; }
.hero h1 { color: #fff; margin-bottom: .35em; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }

.hero p.lead {
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  color: rgba(255, 255, 255, .93);
  max-width: 62ch;
  margin-bottom: 1.4em;
}

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 14px;
}

.hero .eyebrow { color: #F0C486; }

/* ---------- Кнопки ---------- */

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .97rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .12s ease, background .12s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sand); color: #fff; }
.btn-primary:hover { background: #A26A21; color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-quiet { border-color: var(--line); background: var(--surface); color: var(--river-dark); }
.btn-quiet:hover { border-color: var(--river); color: var(--river-dark); }

/* ---------- Секции ---------- */

section.band { padding: 68px 0; }
section.band.tight { padding: 46px 0; }
section.band.alt { background: var(--surface); border-block: 1px solid var(--line); }
section.band.deep { background: var(--river-dark); color: #F2F7F9; }
section.band.deep h2, section.band.deep h3 { color: #fff; }
section.band.deep a { color: #9BD4E8; }

.section-head { max-width: 74ch; margin-bottom: 34px; }
.section-head p { color: var(--ink-2); margin-bottom: 0; }
section.band.deep .section-head p { color: rgba(242, 247, 249, .82); }

/* ---------- Сетки и карточки ---------- */

.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card img { width: 100%; height: 210px; object-fit: cover; }
.card .card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .3em; }
.card p { font-size: .96rem; color: var(--ink-2); margin-bottom: .8em; }
.card p:last-child { margin-bottom: 0; }

.card-tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 8px;
}

/* Карточка-ссылка на раздел */
.nav-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform .14s ease, border-color .14s ease;
}

.nav-card:hover { transform: translateY(-3px); border-color: var(--river); color: inherit; }
.nav-card h3 { margin-bottom: .25em; }
.nav-card p { font-size: .95rem; color: var(--ink-2); margin: 0; }
.nav-card .arrow { color: var(--river); font-weight: 600; display: inline-block; margin-top: 12px; font-size: .92rem; }

/* ---------- Развёрнутая карточка достопримечательности ---------- */

.poi {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.poi:nth-child(even) .poi-media { order: 2; }
.poi-media { min-height: 300px; }
.poi-media img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.poi-body { padding: 30px 34px; }
.poi-body h3 { font-size: 1.45rem; margin-bottom: .35em; }
.poi-body p { font-size: .99rem; color: var(--ink-2); }

.facts { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }

.facts li {
  display: flex;
  gap: 12px;
  font-size: .92rem;
  padding: 4px 0;
  color: var(--ink-2);
}

.facts li b {
  flex: 0 0 116px;
  color: var(--ink-3);
  font-weight: 500;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding-top: 2px;
}

/* ---------- Полоса-панорама ---------- */

.pano { position: relative; }
.pano img { width: 100%; height: clamp(180px, 26vw, 320px); object-fit: cover; }

.pano figcaption {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: .74rem;
  color: rgba(255, 255, 255, .85);
  background: rgba(10, 26, 36, .45);
  padding: 3px 9px;
  border-radius: 6px;
}

/* ---------- Факты и статистика ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}

section.band.deep .stat { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }

.stat .num {
  font-family: Piazzolla, Georgia, serif;
  font-size: 2.05rem;
  font-weight: 700;
  color: var(--river);
  line-height: 1.1;
  display: block;
}

section.band.deep .stat .num { color: #F0C486; }
.stat .label { font-size: .89rem; color: var(--ink-2); }
section.band.deep .stat .label { color: rgba(242, 247, 249, .8); }

/* ---------- Таблицы ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  margin: 0 0 30px;
}

table { border-collapse: collapse; width: 100%; font-size: .95rem; }

th {
  text-align: left;
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  background: var(--sand-soft);
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
td:first-child { color: var(--ink); font-weight: 500; }
tr:last-child td { border-bottom: none; }
td .price { white-space: nowrap; font-weight: 600; color: var(--ink); }

/* ---------- Врезка ---------- */

.callout {
  background: var(--river-soft);
  border-left: 3px solid var(--river);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 26px 0;
}

.callout.warm { background: var(--sand-soft); border-left-color: var(--sand); }
.callout p:last-child { margin-bottom: 0; }
.callout h4 { margin-bottom: .4em; }

/* ---------- Люди ---------- */

.person {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.person img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; filter: saturate(.92); }
.person .person-body { padding: 20px 22px 24px; }
.person h3 { margin-bottom: .1em; font-size: 1.16rem; }
.person .years { font-size: .84rem; color: var(--ink-3); display: block; margin-bottom: .7em; }
.person p { font-size: .94rem; color: var(--ink-2); margin-bottom: .6em; }

.person .link-saratov {
  font-size: .86rem;
  color: var(--river-dark);
  background: var(--river-soft);
  border-radius: 8px;
  padding: 9px 12px;
  display: block;
  margin-top: 12px;
}

/* ---------- FAQ ---------- */

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.faq-item h3 { font-size: 1.18rem; margin-bottom: .45em; }
.faq-item p:last-child { margin-bottom: 0; }
.faq-item p { color: var(--ink-2); }

.faq-toc { list-style: none; padding: 0; margin: 0 0 40px; columns: 2; column-gap: 34px; }
.faq-toc li { margin-bottom: 9px; break-inside: avoid; font-size: .95rem; }

/* ---------- Маршруты, списки ---------- */

.route { counter-reset: step; list-style: none; padding: 0; margin: 0; }

.route li {
  position: relative;
  padding: 0 0 22px 52px;
  border-left: 2px solid var(--line);
  margin-left: 16px;
}

.route li:last-child { border-left-color: transparent; padding-bottom: 0; }

.route li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -17px;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--river);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .9rem;
  font-weight: 600;
}

.route li h4 { margin-bottom: .2em; }
.route li p { font-size: .95rem; color: var(--ink-2); margin-bottom: 0; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 9px; color: var(--ink-2); }
.checklist li::before { content: "→"; position: absolute; left: 0; color: var(--sand); font-weight: 700; }

dl.meta { margin: 0; }
dl.meta dt { font-weight: 600; margin-top: 14px; }
dl.meta dd { margin: 0; color: var(--ink-2); }

/* ---------- Подвал ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .74);
  padding: 54px 0 30px;
  font-size: .93rem;
  margin-top: 0;
}

.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #F0C486; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .grid { gap: 34px; }

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .84rem;
  color: rgba(255, 255, 255, .55);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.credit { font-size: .78rem; color: var(--ink-3); margin-top: 8px; }

/* ---------- Мелочи ---------- */

.breadcrumbs { font-size: .86rem; color: var(--ink-3); padding: 18px 0 0; }
.breadcrumbs a { color: var(--ink-3); }
.updated { font-size: .84rem; color: var(--ink-3); }

.pill {
  display: inline-block;
  font-size: .78rem;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--river-soft);
  color: var(--river-dark);
  font-weight: 600;
  margin-right: 6px;
}

.pill.free { background: #E3F1E7; color: #2A6B41; }

@media (max-width: 820px) {
  .poi { grid-template-columns: 1fr; }
  .poi:nth-child(even) .poi-media { order: 0; }
  .poi-media, .poi-media img { min-height: 230px; height: 230px; }
  .poi-body { padding: 24px 22px; }
  .faq-toc { columns: 1; }
  .hero { min-height: 58vh; }
  .site-header .wrap { min-height: 58px; padding-block: 8px; }
  .site-nav { margin-left: 0; width: 100%; }
  body { font-size: 16px; }
}
