/*
 * Прогулка — the landing page. The page itself reads like a walk: the hero shows a
 * real request and the route the agent built for it, "how it works" is a dotted route
 * with five stops, and the evaluation numbers sit on a scoreboard. Everything is light:
 * white sections, one barely tinted band, colour only where the route is.
 */

/* the landing breathes wider than the cabinet pages */
.landing { --page-max: 1280px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--rule);
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(12px) saturate(1.4);
}
.site-header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.site-nav { display: flex; gap: 2px; }
.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav a:hover { background: var(--paper-deep); color: var(--ink); }
.site-actions { display: flex; gap: 8px; margin-left: auto; }

@media (max-width: 900px) {
  .site-nav { display: none; }
}
/* a 375px phone has room for the logo and both buttons only when they tighten up */
@media (max-width: 480px) {
  .site-header-inner { gap: 12px; }
  .site-actions .btn { min-height: 38px; padding: 0 12px; }
}

/* ---------- hero ---------- */

.hero { position: relative; isolation: isolate; padding: 64px 0 96px; overflow: hidden; }
/* a field-notebook dot grid that fades out away from the map */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, #e6e1d6 1px, transparent 1.5px) 0 0 / 22px 22px;
  mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 20%, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 56px;
  align-items: center;
}

.hero-copy { display: grid; justify-items: start; gap: 22px; }
.hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-copy > :nth-child(n + 4) { animation-delay: 240ms; }
.hero-copy .lead { max-width: 52ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-note { color: var(--muted); }
.hero-sources {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 2px dotted var(--rule-strong);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.hero-sources span {
  margin-right: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* the cards hang off the map's left edge into the gap, over the part of the map the route leaves empty */
.hero-preview { position: relative; margin: 0; padding-bottom: 120px; animation: rise 0.8s 0.15s ease-out both; }

.preview-map {
  position: relative;
  aspect-ratio: 1520 / 1280;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}
.preview-map img { width: 100%; height: 100%; object-fit: cover; }
.preview-credit {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.85);
  font-size: 0.7rem;
  color: var(--muted);
}

.preview-request,
.preview-plan {
  position: absolute;
  left: -40px;
  margin: 0;
  border: 1px solid var(--rule);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.preview-request {
  top: -20px;
  width: min(20rem, 52%);
  padding: 16px 18px;
  border-radius: 18px 18px 18px 4px;
  font: italic 400 1.04rem/1.45 var(--serif);
  color: var(--ink);
  animation: rise 0.6s 0.5s ease-out both;
}
.preview-label {
  margin-bottom: 4px;
  font: 600 0.72rem/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.preview-plan {
  bottom: 0;
  display: grid;
  gap: 10px;
  width: min(22.5rem, 60%);
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  animation: rise 0.6s 0.75s ease-out both;
}
.preview-title { font: 600 1.2rem/1.25 var(--serif); text-wrap: balance; }

.preview-stats { display: flex; }
.preview-stats div { display: flex; flex-direction: column-reverse; padding: 0 14px; border-left: 1px solid var(--rule); white-space: nowrap; }
.preview-stats div:first-child { padding-left: 0; border-left: 0; }
.preview-stats dd { font: 600 1.25rem/1.2 var(--serif); }
.preview-stats dt { font-size: 0.78rem; color: var(--muted); }

.preview-stops {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.preview-stops li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 0.92rem; }
.stop-n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--route);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
}
.src { padding: 1px 6px; border-radius: 5px; font: 600 0.7rem/1.5 var(--mono); }
.src-osm { background: #e3f0db; color: #2d5a1c; }
.src-wikipedia { background: #eceae5; color: #111; font-family: var(--serif); font-size: 0.8rem; }
.src-wikivoyage { background: #ddeaf4; color: #1b5480; }
.preview-more { font-size: 0.86rem; color: var(--muted); }

@media (max-width: 1080px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-preview { margin-left: 40px; }
}

@media (max-width: 640px) {
  .hero-preview { margin-left: 0; padding-bottom: 0; }
  .preview-request { display: none; }
  .preview-plan { position: relative; left: 0; width: auto; margin: -48px 12px 0; }
}

/* ---------- sections ---------- */

.section { padding: 96px 0; }
.section-head { display: grid; gap: 10px; max-width: 720px; margin-bottom: 52px; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
}

/* how it works: five stops on a dotted route */
.walk { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.walk::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 22px;
  /* from the first number to the last: the last column starts where its number is */
  right: calc((100% - 4 * 32px) / 5 - 22px);
  height: 4px;
  background: radial-gradient(circle, var(--route) 1.7px, transparent 2.2px) 0 50% / 10px 4px repeat-x;
}
.walk-stop { position: relative; display: grid; align-content: start; gap: 18px; }
.walk-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--route);
  box-shadow: 0 1px 6px rgb(0 0 0 / 0.2);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
/* the first stop is "you": the ink start pin of the map */
.walk-stop:first-child .walk-num { background: var(--ink); }
.walk-text { display: grid; gap: 8px; }
.walk-text h3 { font: 600 1.25rem/1.25 var(--serif); }
.walk-text p { color: var(--ink-soft); }
.walk-text .walk-meta { font: 500 0.78rem/1.4 var(--mono); color: var(--muted); }

@media (max-width: 1080px) {
  .walk { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .walk::before {
    top: 22px;
    bottom: 22px;
    left: 20px;
    right: auto;
    width: 4px;
    height: auto;
    background: radial-gradient(circle, var(--route) 1.7px, transparent 2.2px) 50% 0 / 4px 10px repeat-y;
  }
  .walk-stop { grid-template-columns: 44px minmax(0, 1fr); gap: 20px; }
  .walk-text { max-width: 60ch; padding-top: 8px; }
}

/* why: the evaluation as a scoreboard on the one tinted band */
.why { background: var(--paper); border-block: 1px solid var(--rule); }
.why-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.why-copy { display: grid; gap: 18px; }

.score {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.score th, .score td { padding: 18px 22px; border-top: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.score thead th {
  border-top: 0;
  padding-block: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.score thead th.is-agent { color: var(--route-deep); }
.score tbody th { width: 42%; font-weight: 500; color: var(--ink-soft); }
.score tbody th small { display: block; font-size: 0.84rem; font-weight: 400; color: var(--muted); }
.score td { font: 500 2.3rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--muted); white-space: nowrap; }
.score td.is-agent { background: var(--route-wash); color: var(--ink); }
.unit { margin-left: 6px; font: 500 0.9rem var(--sans); color: var(--muted); }
/* walking distance drawn as a dotted route of proportional length */
.km-bar {
  display: block;
  width: calc(var(--km) / 19 * 100%);
  height: 4px;
  margin-top: 12px;
  background: radial-gradient(circle, var(--muted) 1.5px, transparent 2px) 0 50% / 8px 4px repeat-x;
}
.is-agent .km-bar { background-image: radial-gradient(circle, var(--route) 1.5px, transparent 2px); }
.score-note { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }
.score-note code { font: 0.86rem var(--mono); }

@media (max-width: 1080px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 640px) {
  .score th, .score td { padding: 14px; }
  .score td { font-size: 1.8rem; }
}

/* you: four features, each with a small real-looking sample */
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature:hover { border-color: var(--rule-strong); box-shadow: var(--shadow); }
.feature h3 { font: 600 1.35rem/1.25 var(--serif); }
.feature p { color: var(--ink-soft); }

.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.demo-chips span {
  padding: 6px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.demo-chips [data-level="plain"] { border-color: #eeb8a6; background: var(--route-tint); color: var(--route-deep); }
.demo-chips [data-level="strong"] { border-color: var(--route); background: var(--route); color: #fff; }
.demo-chips [data-level="avoid"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.demo-chips [data-level="more"] { border-color: #b9d9c4; background: var(--green-tint); color: var(--green); }
.demo-chips [data-level="less"] { border-style: dashed; color: var(--muted); }

.demo-memory, .demo-trips { display: grid; margin-top: 8px; border-top: 1px solid var(--rule); }
.demo-memory li, .demo-trips li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.demo-memory li { font: italic 400 1.05rem/1.4 var(--serif); }
.demo-trips li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.demo-trips b { font: 600 1.02rem var(--serif); }
.demo-trips span { font-size: 0.88rem; color: var(--muted); }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
}

/* call to action */
.cta { padding-top: 0; }
.cta-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 40px;
  padding: 52px 56px;
  overflow: hidden;
  border: 1px solid #f2d6cb;
  border-radius: 28px;
  background: var(--route-wash);
}
.cta-box > div:first-child { display: grid; gap: 8px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  .cta-box { grid-template-columns: minmax(0, 1fr); padding: 36px 28px; }
}

/* ---------- footer ---------- */

.site-footer { padding: 56px 0 48px; border-top: 1px solid var(--rule); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.footer-about { display: grid; justify-items: start; align-content: start; gap: 10px; color: var(--ink-soft); }
.footer-about .brand-name { font: 600 1.5rem/1 var(--serif); color: var(--ink); }
.footer-title {
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-list { display: grid; gap: 6px; color: var(--ink-soft); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
