:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --ink: #121417;
  --muted: #6b7280;
  --line: #e6e9ef;
  --green: #00a651;
  --green-dark: #008f45;
  --green-soft: #e8f8ef;
  --danger: #e14b4b;
  --shadow: 0 8px 28px rgba(18, 20, 23, 0.08);
  --radius: 18px;
  --nav-h: 68px;
  --top-h: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: "Manrope", system-ui, sans-serif;
  --max: 1160px;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.35rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.5rem;
  --lh-tight: 1.15;
  --lh: 1.5;
  --track: -0.03em;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  line-height: var(--lh);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: var(--track);
  line-height: var(--lh-tight);
  margin: 0;
}

/* ========== SHELL ========== */
.app-shell {
  min-height: 100%;
  display: flex;
  justify-content: center;
  background: var(--bg);
}

.app {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.app-scroll {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px);
  -webkit-overflow-scrolling: touch;
}

/* Mobile top */
.app-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(242, 244, 247, 0.92);
  backdrop-filter: blur(12px);
  padding: 12px 16px 10px;
  border-bottom: 1px solid transparent;
}
.app-top.is-solid { border-bottom-color: var(--line); }

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.brand-logo {
  display: block;
  height: 46px;
  width: auto;
  max-width: min(42vw, 168px);
  object-fit: contain;
  object-position: left center;
}

.desktop-nav { display: none; }

.top-actions { display: flex; align-items: center; gap: 10px; }

.lang-mini {
  display: flex;
  background: var(--surface);
  border-radius: 999px;
  padding: 3px;
  box-shadow: var(--shadow);
}
.lang-mini button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 7px 9px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.lang-mini button.active {
  background: var(--green);
  color: #fff;
}

.btn-top {
  display: none !important;
}

/* Bottom nav — mobile only */
.bottom-nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding: 8px 6px var(--safe-bottom);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.bottom-nav-5 {
  grid-template-columns: repeat(5, 1fr);
}
.bottom-nav-5 .nav-item {
  font-size: 0.6rem;
  gap: 2px;
  border-radius: 12px;
}
.bottom-nav-5 .nav-item svg {
  width: 20px;
  height: 20px;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 14px;
  letter-spacing: 0;
}
.nav-item svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.nav-item.active {
  color: var(--green);
  background: var(--green-soft);
}

/* Content */
.pad { padding: 0 16px 16px; }

.hello {
  margin: 0 0 4px;
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.promo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 168px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 55, 30, 0.72), rgba(0, 25, 15, 0.4) 55%, rgba(0, 40, 25, 0.25)),
    url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1600&q=80") center/cover;
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: fadeUp 0.55s ease both;
}
.promo-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 36rem;
}
.promo h1 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: var(--track);
  line-height: var(--lh-tight);
  color: #fff;
}
.promo-lead {
  margin: 0;
  opacity: 0.92;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  max-width: 32ch;
  color: #fff;
}
.promo-actions {
  display: none;
  margin-top: 12px;
  gap: 8px;
  flex-wrap: wrap;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.sec { margin-top: 20px; }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.sec-head h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: var(--track);
}
.sec-head a {
  color: var(--green);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 2px 16px 6px;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0 14px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(18,20,23,0.04);
  color: var(--ink);
  line-height: 1;
}
.chip svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chip.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,166,81,0.22);
}

.tile-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 132px;
  background: var(--surface);
  border-radius: 18px;
  padding: 14px 12px 14px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
/* Odd last card fills the empty cell in a 2-col grid */
.tile-list > .tile:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  min-height: 0;
  padding: 14px 16px;
  gap: 14px;
}
.tile-list > .tile:last-child:nth-child(odd) .tile-copy {
  flex: 1;
}
.tile-list > .tile:last-child:nth-child(odd) p {
  -webkit-line-clamp: 1;
}
.tile:active {
  transform: scale(0.98);
}
.tile-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  flex-shrink: 0;
}
.tile-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile-copy {
  min-width: 0;
  width: 100%;
}
.tile h4 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: var(--track);
  line-height: 1.25;
}
.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile .chev { display: none; }

.tour-list { display: grid; gap: 10px; }
.tour-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.45s ease both;
}
.tour-card .pic {
  width: 86px; height: 86px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(0,166,81,0.35), rgba(0,0,0,0.15)),
    url("https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&fit=crop&w=600&q=70") center/cover;
}
.tour-card .meta {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tour-card h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: var(--track);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tour-card .price { margin-top: 6px; font-weight: 800; font-size: 0.95rem; }
.tour-card .price span { color: var(--muted); font-weight: 500; font-size: 0.75rem; }

/* ===== Catalog page ===== */
.catalog-page { padding-top: 2px; }
.catalog-hero {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 12px;
  flex-wrap: wrap;
}
.catalog-kicker { display: none; }
.catalog-page .page-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}
.catalog-page .page-sub {
  margin: 0;
  max-width: none;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 14px;
}
.catalog-toolbar .filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  max-width: none;
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.filter-field > span {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-left: 2px;
}
.filter-field select {
  width: 100%;
  height: 46px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 32px 0 12px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.catalog-count {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  min-height: 1.2em;
}

.catalog-card {
  position: relative;
  align-items: center;
  grid-template-columns: 88px 1fr 18px;
  gap: 12px;
  padding: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.catalog-card .pic {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}
.tour-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
}
.catalog-card .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 5px;
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  font-weight: 600;
}
.catalog-card .meta-cat {
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.66rem;
}
.meta-days {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}
.meta-days .ico,
.price .ico,
.card-chev .ico {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.catalog-card h4 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.25;
}
.tour-card-lead {
  display: none;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tour-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.catalog-card .price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
}
.catalog-card .price .ico { color: var(--green); }
.price-num { font-weight: 800; }
.price-unit {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.72rem;
}
.badge-diff {
  flex: 0 0 auto;
  background: var(--green-soft);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.card-chev {
  display: grid;
  place-items: center;
  color: #c5cad3;
  align-self: center;
}
.card-chev .ico {
  width: 16px;
  height: 16px;
}

.catalog-empty {
  text-align: center;
  padding: 40px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.catalog-empty h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

/* Mobile header: never show catalog CTA on this page */
body.is-catalog .btn-top { display: none !important; }

@media (max-width: 420px) {
  .catalog-toolbar .filters {
    grid-template-columns: 1fr;
  }
  .filter-field select { height: 48px; }
  .catalog-card {
    grid-template-columns: 80px 1fr 14px;
    gap: 10px;
  }
  .catalog-card .pic {
    width: 80px;
    height: 80px;
  }
}

.info-grid { display: grid; gap: 10px; }
.info {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.info h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: var(--track);
}
.info p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.45;
}

.review {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.review blockquote {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.review cite {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 166, 81, 0.28);
}
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost {
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  border: 0;
}
.btn-block { width: 100%; }

.cta-box {
  margin-top: 22px;
  background: linear-gradient(135deg, #00a651, #007a3d);
  color: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.cta-box h3 {
  margin: 0 0 6px;
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: var(--track);
}
.cta-box p {
  margin: 0 0 14px;
  opacity: 0.92;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.45;
}
.cta-box .btn-primary {
  background: #fff;
  color: var(--green-dark);
  box-shadow: none;
}

.page-title {
  margin: 8px 0 6px;
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: var(--track);
  line-height: var(--lh-tight);
}
.page-sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.45;
}

.filters { display: flex; gap: 8px; margin-bottom: 12px; }
.filters select {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.detail-layout { display: block; }
.detail-page { padding-bottom: 8px; }
.detail-cover {
  position: relative;
  height: 240px;
  margin: 0 16px;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cover-badges {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.cover-badge .ico {
  width: 14px;
  height: 14px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-body {
  padding: 16px 16px 8px;
}
.detail-kicker {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.detail-body .page-title {
  margin: 0 0 8px;
  font-size: 1.55rem;
}
.detail-body .page-sub {
  margin: 0 0 14px;
}

.detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.detail-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.detail-price .ico {
  width: 16px;
  height: 16px;
  color: var(--green);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  align-self: center;
}
.detail-price strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: var(--track);
}
.detail-price span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}
.detail-book-jump {
  flex: 0 0 auto;
  padding: 11px 16px;
  font-size: 0.84rem;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.fact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.fact .ico {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--green);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fact div { min-width: 0; }
.fact span {
  display: block;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fact b {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: var(--track);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-sec { margin-top: 8px; margin-bottom: 18px; }
.detail-sec h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: var(--track);
}
.detail-text {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
}

.itinerary-list { display: grid; gap: 10px; }
.itinerary-day {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--surface);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
  border-top: 0;
}
.day-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.9rem;
}
.itinerary-day h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
}
.itinerary-day p { margin: 0; font-size: var(--fs-sm); }

.panel,
.book-panel {
  margin: 8px 16px 20px;
  background: var(--surface);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.book-head { margin-bottom: 14px; }
.book-head h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: var(--track);
}
.book-head p { margin: 0; font-size: 0.84rem; }
.book-form { display: grid; gap: 12px; }
.book-form .filter-field > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.book-form .filter-field > span .ico {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
}
.book-form input,
.book-form select,
.book-form textarea {
  width: 100%;
  height: 46px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 500;
}
.book-form textarea {
  height: auto;
  padding: 12px;
  resize: vertical;
  min-height: 88px;
}
.book-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.phone-field {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
}
.phone-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 10px 0 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  cursor: pointer;
  box-shadow: none;
  min-width: 108px;
}
.phone-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  flex: 0 0 auto;
}
.phone-code-text {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.phone-chev {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  margin-left: 2px;
}
.phone-input-wrap {
  position: relative;
  min-width: 0;
}
.phone-input-wrap input {
  width: 100%;
  height: 46px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.phone-hint {
  position: absolute;
  right: 10px;
  bottom: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  pointer-events: none;
}
.phone-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  max-height: 240px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(18,20,23,0.14);
  padding: 6px;
}
.phone-option {
  width: 100%;
  display: grid;
  grid-template-columns: 22px 52px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 9px 10px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
}
.phone-option:hover,
.phone-option.is-active {
  background: var(--green-soft);
}
.phone-option img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
}
.phone-option-code {
  font-weight: 800;
  font-size: 0.86rem;
}
.phone-option-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phone-option-len {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--green-dark);
  background: #fff;
  border-radius: 999px;
  padding: 2px 7px;
}
.book-form .btn {
  margin-top: 4px;
  width: 100%;
  min-height: 48px;
  gap: 8px;
}
.book-form .btn .ico {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}
.book-msg {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.panel h3 {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: var(--track);
}
.panel label {
  display: block;
  margin: 12px 0 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.panel input, .panel select, .panel textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  font-size: var(--fs-sm);
  font-weight: 500;
}
.panel .btn { margin-top: 14px; width: 100%; }

@media (max-width: 420px) {
  .fact-grid { gap: 5px; }
  .fact { padding: 7px 8px; gap: 6px; }
  .fact .ico { display: none; }
  .detail-price-row { flex-wrap: wrap; }
  .detail-book-jump { width: 100%; }
  .book-row { grid-template-columns: 1fr; }
  .phone-field { grid-template-columns: auto 1fr; }
}

.muted { color: var(--muted); }
.error { color: var(--danger); }
.success { color: var(--green); }
.loading {
  padding: 24px 0;
  color: var(--muted);
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 500;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 700;
  font-size: var(--fs-sm);
}

.desktop-only { display: none !important; }
.mobile-only { display: block; }

/* Mobile: one CTA in hero, no header catalog button */
@media (max-width: 959px) {
  .btn.btn-top,
  .btn-top {
    display: none !important;
  }
  .top-row {
    gap: 8px;
  }
  .brand-logo {
    height: 42px;
    max-width: min(48vw, 150px);
  }
  .promo-actions {
    display: flex;
    width: 100%;
  }
  .promo-actions .btn {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 12px 14px;
    font-size: 0.84rem;
  }
  .promo-actions .btn-ghost {
    display: none;
  }
  .promo-actions .btn-primary {
    background: #fff;
    color: var(--green-dark);
    box-shadow: none;
  }
  .cta-box {
    padding: 14px;
    border-radius: 18px;
    margin-top: 16px;
  }
  .cta-box h3 { font-size: 1rem; }
  .cta-box p { font-size: 0.8rem; margin-bottom: 10px; }
}

/* =========================================================
   DESKTOP
   ========================================================= */
@media (min-width: 960px) {
  .mobile-only { display: none !important; }
  .desktop-only { display: block !important; }

  body { background: #eef1f5; }

  .app-shell {
    display: block;
    background:
      radial-gradient(900px 420px at 10% -10%, rgba(0,166,81,0.12), transparent 55%),
      radial-gradient(700px 380px at 90% 0%, rgba(0,120,80,0.08), transparent 50%),
      #eef1f5;
  }

  .app {
    max-width: none;
    overflow: visible;
    background: transparent;
    min-height: auto;
  }

  .app-scroll {
    height: auto;
    overflow: visible;
    padding-bottom: 0;
  }

  .bottom-nav { display: none !important; }

  .app-top {
    position: sticky;
    top: 0;
    padding: 0;
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }

  .top-row {
    width: min(var(--max), calc(100% - 3rem));
    margin: 0 auto;
    padding: 14px 0;
    align-items: center;
  }

  .brand-logo {
    height: 54px;
    max-width: 190px;
  }

  .desktop-nav {
    display: flex !important;
    align-items: center;
    gap: 1.75rem;
    margin-left: 2.25rem;
    flex: 1;
  }
  .desktop-nav a {
    color: var(--muted);
    font-weight: 700;
    font-size: var(--fs-sm);
    letter-spacing: -0.01em;
    transition: color 0.2s;
  }
  .desktop-nav a:hover,
  .desktop-nav a.active { color: var(--ink); }

  .btn-top {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 40px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .pad {
    width: min(var(--max), calc(100% - 3rem));
    margin: 0 auto;
    padding: 32px 0 72px;
  }

  .promo {
    min-height: 420px;
    border-radius: 28px;
    padding: 48px 52px;
    justify-content: center;
  }
  .promo-copy { max-width: 34rem; }
  .hello {
    font-size: var(--fs-md);
    margin-bottom: 10px;
  }
  .promo h1 {
    font-size: clamp(2.6rem, 4.2vw, 3.6rem);
    margin-bottom: 14px;
    max-width: 12ch;
  }
  .promo-lead {
    font-size: var(--fs-lg);
    max-width: 38ch;
    line-height: 1.5;
  }
  .promo-actions {
    display: flex !important;
    margin-top: 28px;
    gap: 12px;
  }
  .promo-actions .btn {
    min-width: 168px;
    padding: 14px 22px;
    font-size: var(--fs-sm);
  }

  .sec { margin-top: 56px; }
  .sec-head { margin-bottom: 18px; }
  .sec-head h3 { font-size: 1.5rem; }
  .sec-head a { font-size: var(--fs-sm); }

  .tile-list {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }
  .tile {
    min-height: 168px;
    padding: 20px;
  }
  .tile-list > .tile:last-child:nth-child(odd) {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
    min-height: 168px;
    padding: 20px;
    gap: 10px;
  }
  .tile-list > .tile:last-child:nth-child(odd) p {
    -webkit-line-clamp: 3;
  }
  .tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(18,20,23,0.12);
  }
  .tile-ico {
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
  }
  .tile-ico svg {
    width: 24px;
    height: 24px;
  }
  .tile h4 { font-size: 1.05rem; margin-bottom: 6px; }
  .tile p {
    font-size: 0.84rem;
    -webkit-line-clamp: 3;
  }

  .tour-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .tour-card {
    grid-template-columns: 1fr;
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s;
  }
  .tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(18,20,23,0.12);
  }
  .tour-card .pic {
    width: 100%;
    height: 180px;
    border-radius: 0;
  }
  .tour-card > div:last-child { padding: 16px 16px 18px; }
  .tour-card h4 { font-size: 1.05rem; }

  .catalog-page .page-title {
    font-size: 1.85rem;
  }
  .catalog-page .page-sub {
    font-size: 0.92rem;
  }
  .catalog-hero {
    margin-bottom: 18px;
    align-items: end;
  }
  .catalog-toolbar {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    margin: 22px 0 24px;
    gap: 20px;
  }
  .catalog-toolbar .filters {
    display: flex;
    max-width: none;
    gap: 12px;
  }
  .filter-field { min-width: 200px; }
  .catalog-count {
    font-size: var(--fs-sm);
    padding-bottom: 12px;
  }
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .catalog-card {
    grid-template-columns: 1fr;
    padding: 0;
    overflow: hidden;
  }
  .catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(18,20,23,0.12);
  }
  .catalog-card .pic {
    width: 100%;
    height: 190px;
    border-radius: 0;
  }
  .catalog-card .tour-card-body { padding: 16px 16px 18px; }
  .catalog-card .card-chev { display: none; }
  .catalog-card h4 {
    font-size: 1.12rem;
    -webkit-line-clamp: 2;
    min-height: 2.5em;
  }
  .tour-card-lead {
    display: -webkit-box;
    margin-top: 8px;
  }
  .catalog-card .meta { margin-bottom: 8px; }
  .tour-card-foot { padding-top: 14px; }
  .catalog-card .price { font-size: 1.05rem; }

  .info-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .info { padding: 22px; }
  .info h4 { font-size: 1.1rem; margin-bottom: 8px; }
  .info p { font-size: var(--fs-sm); }

  #reviews-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .review { margin: 0; min-height: 150px; }
  .review blockquote { font-size: var(--fs-md); }

  .cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 32px 36px;
    border-radius: 28px;
    margin-top: 48px;
  }
  .cta-box .btn-primary { width: auto; min-width: 200px; }
  .cta-box h3 { font-size: 1.65rem; margin-bottom: 8px; }
  .cta-box p { margin: 0; font-size: var(--fs-md); }

  .chips {
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    overflow: visible;
  }

  .page-title { font-size: 2.4rem; margin-top: 8px; }
  .page-sub { font-size: var(--fs-md); max-width: 48ch; }

  .filters { max-width: 520px; }

  .detail-layout {
    display: grid !important;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 28px;
    width: min(var(--max), calc(100% - 3rem));
    margin: 28px auto 72px;
    align-items: start;
  }
  .detail-cover {
    margin: 0;
    height: 360px;
    border-radius: 28px;
  }
  .cover-badges { left: 20px; bottom: 20px; }
  .cover-badge { font-size: 0.8rem; padding: 8px 12px; }
  .detail-body {
    padding: 22px 0 0;
  }
  .detail-body .page-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    max-width: 18ch;
  }
  .detail-body .page-sub {
    font-size: var(--fs-md);
    max-width: 48ch;
  }
  .detail-price strong { font-size: 1.6rem; }
  .fact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .fact { padding: 12px 14px; }
  .fact .ico { display: block; width: 16px; height: 16px; }
  .fact b { font-size: 0.9rem; }
  .fact span { font-size: 0.65rem; }
  .detail-sec h3 { font-size: 1.35rem; }
  .detail-text { font-size: 1rem; }
  .detail-book-jump { display: none; }
  .panel,
  .book-panel {
    margin: 0;
    position: sticky;
    top: 88px;
    padding: 24px;
    border-radius: 24px;
  }
  .book-head h3 { font-size: 1.35rem; }
  .book-form input,
  .book-form select { height: 48px; }
  .phone-code-btn,
  .phone-input-wrap input { height: 48px; }
  .phone-code-btn { min-width: 118px; }

  #footer-contacts {
    text-align: left !important;
    margin-top: 48px !important;
    font-size: var(--fs-sm) !important;
  }
}

.tour-card.is-opening,
.catalog-card.is-opening {
  opacity: 0.72;
  transform: scale(0.985);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* ===== News & rental cards ===== */
.news-list,
.home-equip {
  display: grid;
  gap: 12px;
}
.news-card,
.equip-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  animation: fadeUp 0.45s ease both;
}
.news-card .pic,
.equip-card .pic,
.pic-empty {
  width: 86px;
  height: 86px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(0,166,81,0.28), rgba(0,40,20,0.12)),
    #d9ebe0 center/cover;
  flex-shrink: 0;
}
.news-card .meta,
.equip-card .meta {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.news-card h4,
.equip-card h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
}
.news-card .lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.equip-card.catalog-card,
.news-card.catalog-card {
  grid-template-columns: 1fr;
  padding: 0;
  overflow: hidden;
}
.equip-card.catalog-card .pic,
.news-card.catalog-card .pic {
  width: 100%;
  height: 160px;
  border-radius: 0;
}
.news-detail .news-hero {
  width: 100%;
  height: min(42vw, 280px);
  border-radius: 18px;
  background: #d9ebe0 center/cover;
  margin: 8px 0 16px;
}
.news-body {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
  line-height: 1.65;
  font-size: 0.98rem;
  color: var(--text);
}
@media (min-width: 760px) {
  .news-list,
  .home-equip {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-card,
  .equip-card:not(.catalog-card) {
    grid-template-columns: 110px 1fr;
  }
  .news-card .pic,
  .equip-card:not(.catalog-card) .pic {
    width: 110px;
    height: 110px;
  }
}

/* ===== Routes map page ===== */
body.is-map-page .app-scroll {
  overflow: hidden;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.is-map-page .app-top {
  flex-shrink: 0;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid var(--line);
}
body.is-map-page #app-content {
  flex: 1;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.routes-map-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px 10px;
  box-sizing: border-box;
  overflow: hidden;
}
.routes-map-frame {
  position: relative;
  flex: 1;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  background: #d7e6de;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 10px 28px rgba(18, 40, 28, 0.1);
  border: 1px solid rgba(0, 100, 60, 0.08);
}
.routes-map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #d7e6de;
}
.routes-map-frame .leaflet-control-zoom {
  border: 0 !important;
  box-shadow: 0 8px 20px rgba(18,20,23,0.12) !important;
  border-radius: 12px !important;
  overflow: hidden;
  margin: 12px !important;
}
.routes-map-frame .leaflet-control-zoom a {
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  color: var(--ink) !important;
}
.routes-map-frame .leaflet-control-attribution {
  background: rgba(255,255,255,0.75) !important;
  border-radius: 8px 0 0 0;
  margin: 0 !important;
  font-size: 9px !important;
}
.routes-float-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  border: 0;
  background: rgba(255,255,255,0.96);
  color: var(--green);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(18,20,23,0.14);
  backdrop-filter: blur(10px);
}
.routes-float-btn.is-on {
  background: var(--green);
  color: #fff;
}
.routes-shelf {
  flex-shrink: 0;
  background: transparent;
}
.routes-shelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 8px;
}
.routes-shelf-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: var(--track);
}
.routes-shelf-sub {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
.routes-cards {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.routes-cards::-webkit-scrollbar { display: none; }
.routes-card {
  flex: 0 0 min(78vw, 280px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  border: 1px solid rgba(18,20,23,0.06);
  background: var(--surface);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(18,20,23,0.07);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.routes-card:active { transform: scale(0.985); }
.routes-card.is-active {
  border-color: rgba(0,166,81,0.45);
  box-shadow:
    0 0 0 3px rgba(0,166,81,0.12),
    0 10px 26px rgba(0,100,50,0.12);
  background: linear-gradient(180deg, #fbfffc 0%, #f3fbf6 100%);
}
.routes-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.routes-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.routes-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0,166,81,0.12);
  flex-shrink: 0;
}
.routes-card-price {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.routes-card h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: var(--track);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.routes-card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
}
.routes-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}
.routes-card-days {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.routes-open {
  font-size: 0.74rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 6px 14px rgba(0,166,81,0.25);
}
@media (min-width: 960px) {
  body.is-map-page .app-scroll {
    padding-bottom: 0;
  }
  .routes-map-page {
    flex-direction: row;
    padding: 16px 20px 20px;
    gap: 16px;
    height: calc(100dvh - var(--top-h, 64px));
  }
  .routes-map-frame {
    flex: 1;
    min-height: 0;
    border-radius: 24px;
  }
  .routes-shelf {
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--surface);
    border-radius: 22px;
    padding: 16px 12px 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(18,20,23,0.05);
  }
  .routes-cards {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: none;
    gap: 10px;
    padding: 0;
    flex: 1;
    min-height: 0;
  }
  .routes-card {
    flex: 0 0 auto;
    width: 100%;
  }
}



