/* Borzhavatour landing. Colours follow the logo. */
:root {
  --spruce: #1C4637;      /* logo dark green: hero, headings */
  --spruce-deep: #143428;
  --meadow: #4F7D44;      /* logo hill green: ridge fill */
  --sun: #E9A23B;         /* logo sun: ridge line, prices */
  --mist: #E4EBE6;        /* page background */
  --paper: #F6F8F6;       /* panels */
  --ink: #17332C;
  --muted: #4A615A;
  --berry: #3A3570;       /* links */
  --mark: #C8382E;        /* trail-marker red, used once per route */
  --rule: #C9D5CE;
  --measure: 66ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Commissioner", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
}
a { color: var(--berry); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; color: var(--spruce); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 0.9em; }

/* ---------- top bar ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(16px, 4vw, 48px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--mist); text-decoration: none; font-weight: 600; }
.brand img { border-radius: 50%; }
.langs { display: flex; gap: 4px; }
.langs a {
  color: var(--mist); text-decoration: none; font-weight: 500; font-size: 0.9rem;
  padding: 6px 10px; border-radius: 999px; border: 1px solid transparent;
}
.langs a[aria-current="page"] { border-color: rgba(228, 235, 230, 0.55); }
.langs a:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- hero: the ridge is the signature ---------- */
.hero {
  background: var(--spruce);
  color: var(--mist);
  padding: 120px clamp(16px, 4vw, 48px) 0;
  overflow: hidden;
}
.hero-text { max-width: 760px; }
.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 0.45em;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 58ch; color: #D5E0D9; }
.reply { font-size: 0.92rem; color: #A9BDB3; margin-top: 12px; }

.ridge-wrap { position: relative; margin: 40px calc(-1 * clamp(16px, 4vw, 48px)) 0; }
.ridge { display: block; width: 100%; height: clamp(170px, 26vw, 320px); }
.ridge-labels { position: absolute; left: 0; right: 0; top: 0; height: clamp(170px, 26vw, 320px); }
.rl { position: absolute; font-weight: 600; font-size: 0.95rem; color: var(--mist); white-space: nowrap; line-height: 1; }
.rl.peak { transform: translate(-50%, calc(-100% - 14px)); padding-bottom: 0; }
.rl.peak::after { content: ""; position: absolute; left: 50%; top: calc(100% + 4px); width: 1.5px; height: 10px; background: var(--sun); }
.rl.end-l { transform: translate(10px, calc(-100% - 10px)); }
.rl.end-r { transform: translate(calc(-100% - 10px), calc(-100% - 10px)); }
.ridge-fill { fill: var(--meadow); }
.ridge-line { fill: none; stroke: var(--sun); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ridge-wrap figcaption {
  background: var(--meadow); color: #E8F0E4;
  font-size: 0.88rem; padding: 0 clamp(16px, 4vw, 48px) 18px;
}
@media (prefers-reduced-motion: no-preference) {
  .ridge-line { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 2.4s ease-out 0.2s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 1rem;
}
.btn-tg { background: var(--sun); color: var(--spruce-deep); }
.btn-tg:hover { background: #F2B455; }
.btn-wa { border: 2px solid currentColor; color: inherit; }
.hero .btn-wa { color: var(--mist); }
.hero .btn-wa:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- blocks ---------- */
main { padding: 0 clamp(16px, 4vw, 48px); }
.block { max-width: 1100px; margin: 0 auto; padding: 72px 0 8px; }
.intro { max-width: var(--measure); color: var(--muted); margin: 12px 0 28px; }

/* routes as rows, profiles on one common scale */
.route {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px;
  padding: 28px 0; border-top: 1px solid var(--rule);
}
.route:last-of-type { border-bottom: 1px solid var(--rule); }
.route-text { max-width: var(--measure); }
.route h3 { font-size: 1.45rem; color: var(--spruce); }
.path { color: var(--muted); font-weight: 500; margin: 4px 0 10px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; font-weight: 500; }

.mini { display: block; width: 100%; height: 64px; }
.mini-fill { fill: #B9CDB2; }
.mini-line { fill: none; stroke: var(--meadow); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.mini .base { stroke: var(--rule); vector-effect: non-scaling-stroke; }
dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 10px; }
dl div { display: flex; flex-direction: column-reverse; }
dt { font-size: 0.8rem; color: var(--muted); line-height: 1.3; }
dd { margin: 0; font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--spruce); }
.meta { font-size: 0.92rem; color: var(--muted); margin: 0; }
.diff { font-weight: 600; color: var(--ink); margin-right: 10px; }
.diff::before {
  content: ""; display: inline-block; width: 22px; height: 10px; margin-right: 8px; vertical-align: 0;
  border-radius: 2px; background: linear-gradient(#fff 0 33%, var(--mark) 33% 67%, #fff 67%);
  box-shadow: inset 0 0 0 1px #B9C6BF;
}

/* tours */
.offer {
  background: var(--spruce); color: var(--mist);
  border-radius: 20px; padding: clamp(22px, 4vw, 36px); margin: 28px 0 8px;
}
.offer h3 { font-size: 1.5rem; margin-bottom: 10px; }
.offer p { max-width: var(--measure); color: #D5E0D9; }
.tours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.tours li { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; border-top: 1px solid var(--rule); }
.tours h3 { color: var(--spruce); margin-bottom: 4px; }
.tours p { margin: 0; color: var(--muted); }
.tours .price { color: var(--spruce); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* getting there */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.way { background: var(--paper); border-radius: 14px; padding: 22px; }
.way h3 { color: var(--spruce); margin-bottom: 10px; }
.way ol { margin: 0; padding-left: 1.2em; }
.way li { margin-bottom: 8px; }

/* safety */
.safety p { max-width: var(--measure); }
.safety h2 { margin-bottom: 18px; }

/* contact */
.contact { padding-bottom: 72px; }
.contact > p { max-width: var(--measure); margin-top: 12px; }
.contact .btn-wa { color: var(--spruce); }
.contact .btn-wa:hover { background: rgba(28, 70, 55, 0.06); }
.small { font-size: 0.95rem; color: var(--muted); margin-top: 22px; }

footer { background: var(--spruce-deep); color: #A9BDB3; padding: 26px clamp(16px, 4vw, 48px); font-size: 0.9rem; }
footer p { margin: 0; max-width: 1100px; margin-inline: auto; }

/* mobile contact dock */
.dock { display: none; }

@media (max-width: 860px) {
  .route { grid-template-columns: 1fr; gap: 16px; }
  .tours { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { padding-bottom: 76px; }
  .hero { padding-top: 96px; }
  .rl { font-size: 0.8rem; }
  .rl.peak.vv { transform: translate(calc(-100% + 6px), calc(-100% - 14px)); }
  .rl.peak.vv::after { left: calc(100% - 6px); }
  dl { grid-template-columns: repeat(2, 1fr); }
  .dock {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 5;
    background: var(--spruce); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    color: var(--mist);
  }
  .dock-actions { margin: 0; flex-wrap: nowrap; gap: 8px; }
  .dock .btn { flex: 1; min-height: 44px; padding: 0 10px; font-size: 0.92rem; }
  .dock .btn-wa { color: var(--mist); }
}
