:root {
  --blue: #00166d;
  --cyan: #00b1df;
  --cyan-rgb: 0, 177, 223;
  --ice: #f8fdff;
  --line: rgba(var(--cyan-rgb), 0.28);
  --text: #284766;
  --muted: #61798d;
  --cyan-soft: rgba(var(--cyan-rgb), 0.1);
  --cyan-pale: #ccf7ff;
  --coral: #ff7d68;
  --sun: #f6c85f;
  --champagne: #f7d989;
  --champagne-soft: #fff7df;
  --champagne-line: #e6bd55;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ice);
  color: var(--blue);
  font-family: Inter, Manrope, Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
li,
td,
th {
  color: var(--text);
  line-height: 1.7;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  color: var(--blue);
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  color: var(--blue);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.16;
}

button,
input,
select,
textarea {
  font: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.version-bar {
  background: var(--blue);
  color: white;
  font-size: 12px;
}

.version-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.version-bar span {
  color: white;
}

.version-bar b {
  color: var(--cyan-pale);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
}

.brand-logo {
  width: 218px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.nav-links a {
  border-bottom: 2px solid transparent;
  padding: 8px 0;
}

.nav-links a.active,
.nav-links a:hover {
  border-color: var(--cyan);
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.button,
.chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 14px 22px;
}

.button.cyan,
.chip-button.active {
  background: var(--cyan);
  color: white;
}

.button.outline,
.chip-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--blue);
}

.button.light {
  background: white;
  color: var(--blue);
}

.button.small {
  padding: 10px 14px;
  font-size: 13px;
}

.button.ghost {
  background: transparent;
  color: var(--blue);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  flex: 0 0 auto;
  padding: 2px;
}

.lang-toggle button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 7px;
}

.lang-toggle button.active {
  background: var(--blue);
  color: white;
}

.hero {
  position: relative;
  overflow: hidden;
  background: white;
}

.hero::before {
  position: absolute;
  inset: 0 0 0 45%;
  content: "";
  background:
    linear-gradient(90deg, white 0%, rgba(255, 255, 255, 0.78) 28%, rgba(255, 255, 255, 0) 60%),
    url("assets/reference/virtus-ways-hero.png") 46% center / cover no-repeat;
}

.hero-grid {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(0, 22, 109, 0.94), rgba(0, 177, 223, 0.68)),
    url("assets/reference/guide-hong-kong-hiking.png") center / cover;
  color: white;
  padding: 98px 0;
}

.page-hero h1 {
  max-width: 760px;
  color: white;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 1.03;
}

.page-hero .lead {
  max-width: 680px;
  font-size: 21px;
  line-height: 1.65;
}

.page-hero.community-bg {
  background:
    linear-gradient(120deg, rgba(0, 22, 109, 0.92), rgba(0, 177, 223, 0.5)),
    url("assets/reference/community-circle.png") center / cover;
}

.page-hero.shop-bg {
  background:
    linear-gradient(120deg, rgba(0, 22, 109, 0.92), rgba(0, 177, 223, 0.58)),
    url("assets/reference/virtus-ways-hero.png") center / cover;
}

.page-hero p,
.page-hero .lead {
  color: var(--cyan-pale);
}

.eyebrow,
.small-title,
.tag {
  display: none;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: none;
  margin: 0 0 24px;
  border: 1px solid #a8e6f2;
  border-radius: 999px;
  background: #e9faff;
  color: #007fa3;
  padding: 9px 16px;
}

.lead {
  max-width: 680px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

section {
  padding: 84px 0;
}

.section-white {
  background: white;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cyan);
}

.two {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.two.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.three,
.four,
.card-grid,
.shop-grid,
.topic-grid,
.media-grid,
.offer-grid {
  display: grid;
  gap: 18px;
}

.three {
  grid-template-columns: repeat(3, 1fr);
}

.four {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid,
.topic-grid {
  grid-template-columns: repeat(2, 1fr);
}

.shop-grid,
.media-grid,
.offer-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.panel,
.product-card,
.media-card,
.event-panel,
.topic-card,
.testimonial-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 26px;
  box-shadow: 0 8px 24px rgba(0, 22, 109, 0.06);
}

.card h3,
.panel h3,
.product-card h3,
.media-card h3,
.topic-card h3,
.testimonial-card h3 {
  font-size: 24px;
  line-height: 1.16;
}

.card.sky,
.panel.sky {
  background: var(--cyan-soft);
}

.card.dark,
.panel.dark {
  border: 0;
  background: var(--blue);
  color: white;
}

.card.dark p,
.panel.dark p,
.panel.dark li {
  color: white;
}

.vip-card {
  border-color: var(--champagne-line);
  background: linear-gradient(145deg, var(--champagne-soft) 0%, var(--champagne) 100%);
}

.icon-badge {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: #e9faff;
  color: var(--cyan);
  font-weight: 900;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f0fbff;
  padding: 18px;
}

.tile {
  min-height: 102px;
  border-radius: 8px;
  background: white;
  padding: 16px;
  font-weight: 900;
}

.tile::before,
.rule {
  display: block;
  width: 42px;
  height: 8px;
  margin-bottom: 22px;
  border-radius: 99px;
  background: var(--cyan);
  content: "";
}

.filter-panel {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 28px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 26px;
  box-shadow: 0 12px 32px rgba(0, 22, 109, 0.08);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-input,
.text-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--blue);
  padding: 14px 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 22, 109, 0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 16px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.media-thumb,
.product-thumb,
.video-frame {
  display: grid;
  min-height: 190px;
  margin: -26px -26px 22px;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, #eef3f6 0%, #e2e9ee 100%);
  color: #8aa0af;
  font-weight: 900;
}

.video-frame {
  min-height: 320px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.carousel-shell {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--cyan) transparent;
}

.carousel-item {
  min-width: min(420px, 86vw);
  scroll-snap-align: start;
}

.carousel-controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.carousel-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--blue);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
}

.app-screen {
  display: none;
  margin-top: 28px;
}

.app-screen.active {
  display: block;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.drawer,
.modal {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: none;
}

.drawer.open,
.modal.open {
  display: block;
}

.modal-backdrop,
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 22, 109, 0.48);
}

.modal-panel,
.drawer-panel {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 880px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  margin: 0 auto;
  border-radius: 8px;
  background: white;
  padding: 32px;
  box-shadow: 0 22px 58px rgba(0, 22, 109, 0.24);
}

.drawer-panel {
  right: 0;
  left: auto;
  width: min(440px, calc(100vw - 32px));
  height: calc(100vh - 36px);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--blue);
  cursor: pointer;
  font-weight: 900;
}

.footer {
  border-top: 1px solid var(--line);
  background: white;
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.footer-grid > div:not(:first-child) {
  padding-top: 76px;
}

.footer a,
.footer p {
  color: var(--muted);
}

.footer .footer-brand-copy {
  max-width: 360px;
  margin-top: 18px;
  color: var(--blue);
}

.footer .footer-brand-copy b {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
}

.newsletter {
  border-bottom: 1px solid var(--line);
  background: var(--cyan-soft);
  padding: 48px 0;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.newsletter-form input {
  min-width: min(360px, 100%);
  flex: 1;
}

.page-lines {
  display: grid;
  gap: 18px;
  padding: 52px 0;
}

.page-lines span {
  display: block;
  max-width: 240px;
  border-top: 2px solid var(--line);
}

.watermark {
  border-top: 1px solid var(--line);
  background: var(--blue);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  padding: 16px;
  text-align: center;
}

.watermark a {
  color: var(--cyan-pale);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  box-shadow: 0 16px 36px rgba(0, 22, 109, 0.22);
}

.empty-state {
  display: none;
  margin-top: 22px;
}

.empty-state.active {
  display: block;
}

.developer-notes,
[hidden] {
  display: none !important;
}

@media (max-width: 1040px) {
  .nav-links {
    order: 4;
    width: 100%;
    overflow-x: auto;
    padding: 6px 0 2px;
    scrollbar-width: thin;
    white-space: nowrap;
  }

  .hero::before {
    position: relative;
    display: block;
    height: 330px;
    inset: auto;
    background-position: 46% center;
  }

  .hero-grid,
  .two,
  .two.reverse,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .footer-grid > div:not(:first-child) {
    padding-top: 0;
  }

  .hero-grid {
    padding: 58px 0 72px;
  }

  .three,
  .four,
  .shop-grid,
  .media-grid,
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 660px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .version-bar .wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    width: 166px;
  }

  .nav-actions {
    flex-wrap: wrap;
  }

  .nav-links {
    display: flex;
    align-items: center;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
  }

  .hero::before {
    height: 240px;
    background-position: 0 0, 50% 52%;
    background-size: auto, 132% auto;
  }

  .page-hero {
    padding: 70px 0;
  }

  h1 {
    font-size: 43px;
    line-height: 1.03;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 43px;
    line-height: 1.03;
  }

  .lead,
  .hero .lead,
  .page-hero .lead {
    font-size: 20px;
    line-height: 1.6;
  }

  .card-grid,
  .topic-grid,
  .tile-grid,
  .three,
  .four,
  .shop-grid,
  .media-grid,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .floating-cta {
    right: 14px;
    bottom: 14px;
  }

}

@media print {
  .version-bar,
  .site-header,
  .floating-cta,
  .developer-notes {
    display: none !important;
  }

  body {
    background: white;
  }
}
