:root {
  --bg: #ffffff;
  --fg: #1c1f23;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #b45309;
  --accent-soft: #fff7ed;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(255,255,255,.96); z-index: 10;
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.logo { font-weight: 700; font-size: 20px; color: var(--fg); letter-spacing: .2px; }
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.main-nav a { color: var(--fg); font-size: 15px; opacity: .85; }
.main-nav a:hover { opacity: 1; }

/* main */
main.wrap { padding-top: 24px; padding-bottom: 48px; min-height: 60vh; }

h1 { font-size: 28px; line-height: 1.25; margin: 8px 0 12px; }
h2 { font-size: 20px; margin: 28px 0 10px; }
.lead { font-size: 17px; color: #374151; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }

.hero { padding: 12px 0 4px; }
.block { margin-top: 28px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 14px; color: var(--fg); background: #fff;
}
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip.active { background: var(--accent-soft); border-color: var(--accent); }
.chip .count { color: var(--muted); font-size: 12px; }

/* items */
.items { list-style: none; margin: 12px 0 0; padding: 0; }
.item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item-title { font-size: 17px; font-weight: 600; color: var(--fg); }
.item-title:hover { color: var(--accent); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; font-size: 13px; }
.tag { border-radius: 6px; padding: 2px 8px; background: #f3f4f6; color: #374151; }
.tag.city { background: #eef2ff; color: #3730a3; }
.tag.spec { background: #ecfdf5; color: #065f46; }
.tag.budget { background: var(--accent-soft); color: #9a3412; }
.date { color: var(--muted); }
.excerpt { margin: 4px 0 0; color: #374151; }

/* item page */
.item-full h1 { margin-top: 4px; }
.item-full .body {
  white-space: pre-line;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafafa;
  overflow-wrap: anywhere;
}

/* buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 0;
  font-size: 16px;
  cursor: pointer;
}
.btn:hover { background: #92400e; text-decoration: none; }
.btn-wide { width: 100%; }

/* pagination */
.pagination { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 22px; }
.pagination a { font-weight: 600; }

/* tariffs */
.tariffs { width: 100%; border-collapse: collapse; margin-top: 12px; }
.tariffs th, .tariffs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tariffs th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* forms */
.pay-form { max-width: 420px; margin-top: 16px; }
.pay-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.pay-form input {
  width: 100%; padding: 11px 12px; font-size: 16px;
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px;
}
.pay-form input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.error { color: #b91c1c; font-size: 14px; }

/* result */
.result { max-width: 560px; }

/* contacts / static */
.contacts dt { font-weight: 600; margin-top: 10px; }
.contacts dd { margin: 2px 0 0; }

/* filters */
.filters { margin: 8px 0 4px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0; }
.footer-links a { color: var(--muted); }

@media (max-width: 640px) {
  h1 { font-size: 23px; }
  .header-row { height: auto; padding: 10px 0; flex-wrap: wrap; }
  .main-nav { gap: 12px; }
}

/* ссылки на превью и служебные элементы */
a.excerpt { display: block; margin: 4px 0 0; color: #374151; }
a.excerpt:hover { color: var(--accent); }
.chip-reset { border-style: dashed; }
.links-list { margin: 8px 0 0; padding-left: 20px; }
.links-list li { margin: 4px 0; }
