:root {
  --bg: #f4f5f7;
  --surface: #fff;
  --ink: #1a1d23;
  --muted: #5c6370;
  --line: #e3e6eb;
  --brand: #1d4ed8;
  --brand-dark: #1e3a8a;
  --ok: #047857;
  --shadow: 0 10px 30px rgba(26, 29, 35, 0.08);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
  --header: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.skip {
  position: absolute; left: -999px; top: 8px;
}
.skip:focus { left: 8px; z-index: 80; background: #fff; padding: 8px 12px; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

.mast {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.mast .row {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn {
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-right: auto;
}
.logo b {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
}
.head-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8f9fb;
  flex: 1;
  max-width: 540px;
  overflow: hidden;
}
.head-search input {
  border: 0;
  background: transparent;
  padding: 11px 14px;
  min-width: 0;
  flex: 1;
}
.head-search .split { width: 1px; height: 26px; background: var(--line); }
.search-round {
  width: 40px;
  height: 40px;
  margin: 4px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}
.tools { display: flex; gap: 16px; font-size: 0.84rem; font-weight: 700; color: var(--muted); }
.tools a:hover { color: var(--brand); }

.menu-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 18px 0 22px;
  box-shadow: var(--shadow);
}
.menu-panel.open { display: block; }
.menu-panel .grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 28px;
}
.menu-panel h4 { margin: 0 0 8px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.menu-panel a { display: block; padding: 5px 0; font-weight: 650; }
.menu-panel a:hover { color: var(--brand); }

.cats { background: #fff; border-bottom: 1px solid var(--line); }
.cats .wrap {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 11px 0;
  font-size: 0.86rem;
  font-weight: 700;
}
.cats a { white-space: nowrap; }
.cats a:hover, .cats a.is-on { color: var(--brand); }

.crumb { font-size: 0.82rem; color: var(--muted); padding: 14px 0 10px; }
.crumb a:hover { color: var(--brand); }

.hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  color: #fff;
}
.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(17,24,39,.18), rgba(17,24,39,.32));
}
.hero-inner { position: relative; z-index: 1; min-height: 360px; padding: 28px 0 118px; }
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero h1 { margin: 14px 0 0; font-size: clamp(1.55rem, 3vw, 2.15rem); max-width: 16ch; }

.search-panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-top: -92px;
  position: relative;
  z-index: 3;
  padding: 6px 16px 16px;
}
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a {
  padding: 13px 12px;
  font-weight: 700;
  color: #6b7280;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.tabs a.is-on, .tabs a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.subnav { display: flex; gap: 16px; flex-wrap: wrap; padding: 12px 2px; font-size: 0.9rem; font-weight: 700; color: #6b7280; }
.subnav a.is-on { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); padding-bottom: 4px; }

.search {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr auto;
  gap: 8px;
  align-items: end;
}
.search label {
  display: grid;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.search input, .search select, .field {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8f9fb;
  width: 100%;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
}
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn.block { width: 100%; }

.section { padding: 42px 0; }
.section h1, .section h2 { margin: 0 0 8px; font-size: 1.45rem; }
.lead { color: var(--muted); max-width: 72ch; margin: 0 0 22px; }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 16px; }
.link-more { font-weight: 800; color: var(--brand); }
.link-more:hover { text-decoration: underline; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--brand); color: #fff;
  font-size: 0.72rem; font-weight: 800;
  padding: 4px 8px; border-radius: 999px;
}
.card .body { padding: 14px; display: grid; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 1.05rem; }
.meta { color: var(--muted); font-size: 0.86rem; }
.price { margin-top: auto; font-weight: 800; color: var(--brand); }
.price small { font-weight: 500; color: var(--muted); }

.trek {
  display: grid;
  grid-template-columns: 230px 1fr 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-height: 160px;
}
a.trek:hover { box-shadow: var(--shadow); }
.trek .media img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }
.trek .body { padding: 16px; }
.trek .side { padding: 16px; border-left: 1px solid var(--line); text-align: right; display: grid; align-content: center; gap: 8px; }
.level { display: flex; gap: 4px; justify-content: end; }
.level i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.level i.on { background: var(--brand); }

.promo-row { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 14px; }
.promo {
  position: relative; min-height: 220px; border-radius: 12px; overflow: hidden; color: #fff;
  display: grid; align-content: end; padding: 18px;
}
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.62)); }
.promo > * { position: relative; z-index: 1; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 18px; }
.pill {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 14px; font-weight: 700; font-size: 0.86rem; cursor: pointer;
}
.pill.is-on, .pill:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.itin { font-size: 0.88rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }

.idea {
  position: relative; min-height: 168px; border-radius: 12px; overflow: hidden; color: #fff;
  display: grid; align-content: end; padding: 14px;
}
.idea img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.idea::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.58)); }
.idea > * { position: relative; z-index: 1; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust article { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.trust h3 { margin: 0 0 6px; font-size: 1rem; }
.editorial { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; }
.editorial img { border-radius: 12px; height: 280px; width: 100%; object-fit: cover; }
.newsletter {
  background: var(--brand); color: #fff; border-radius: 12px; padding: 24px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.newsletter input { border: 0; border-radius: 8px; padding: 11px 14px; min-width: 220px; }

.page { padding: 12px 0 48px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 26px; }
.box h1 { margin: 0 0 10px; }
.box h2 { font-size: 1.12rem; margin: 22px 0 8px; }
.box p { color: #374151; }
.detail { display: grid; grid-template-columns: 1.4fr .75fr; gap: 22px; align-items: start; }
.hero-pic { width: 100%; height: 340px; object-fit: cover; border-radius: 12px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; position: sticky; top: 84px; }
.days { list-style: none; margin: 0; padding: 0; }
.days li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.days b { display: block; margin-bottom: 4px; }
.form-grid { display: grid; gap: 10px; }
.form-grid input, .form-grid select, .form-grid textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; background: #fff;
}
.ok { display: none; background: #ecfdf5; border: 1px solid #6ee7b7; color: var(--ok); padding: 12px; border-radius: 8px; }
.ok.show { display: block; }
.count { font-weight: 700; color: var(--brand); margin-bottom: 14px; }

.toast {
  position: fixed; bottom: 16px; right: 16px; background: #111827; color: #fff;
  padding: 12px 16px; border-radius: 8px; display: none; z-index: 60;
}
.toast.show { display: block; }

footer { background: #111827; color: #e5e7eb; padding: 40px 0 18px; margin-top: 8px; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 24px; }
footer h4 { margin: 0 0 10px; }
footer a { color: #cbd5e1; display: block; margin: 6px 0; font-size: 0.9rem; }
footer a:hover { color: #fff; }
.legal { border-top: 1px solid #374151; margin-top: 22px; padding-top: 12px; color: #94a3b8; font-size: 0.8rem; }

@media (max-width: 980px) {
  .head-search, .tools { display: none; }
  .search, .grid-3, .promo-row, .trust, .editorial, .foot, .trek, .detail, .menu-panel .grid4 {
    grid-template-columns: 1fr 1fr;
  }
  .trek, .detail { grid-template-columns: 1fr; }
  .trek .side { border-left: 0; border-top: 1px solid var(--line); text-align: left; }
  .newsletter, .section-head { flex-direction: column; align-items: start; }
}
@media (max-width: 640px) {
  .search, .grid-2, .grid-3, .promo-row, .trust, .editorial, .foot, .menu-panel .grid4 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.card { transition: none; }
}
