:root {
  color-scheme: light;
  --ink: #0b1020;
  --muted: #667085;
  --line: #dbe4f0;
  --surface: #ffffff;
  --page: #f7faff;
  --blue: #1768f2;
  --blue-dark: #0d4fd2;
  --blue-soft: #eaf2ff;
  --shadow-lg: 0 24px 70px rgba(28, 71, 137, 0.13);
  --shadow-md: 0 14px 34px rgba(28, 71, 137, 0.1);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.page-shell {
  width: min(100%, 1540px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 0 clamp(28px, 4.5vw, 76px);
  border-bottom: 1px solid rgba(219, 228, 240, 0.78);
}

.header-main {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
}

.brand {
  color: var(--blue);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.055em;
}

.brand:focus-visible,
.top-nav-button:focus-visible,
.destination-card:focus-visible,
.search-button:focus-visible {
  outline: 3px solid rgba(23, 104, 242, 0.26);
  outline-offset: 4px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-nav-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #526078;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: color 180ms ease, background-color 180ms ease;
}

.top-nav-button:hover {
  color: var(--ink);
  background: #f2f6fc;
}

.top-nav-button.is-active {
  color: var(--blue);
  background: var(--blue-soft);
}

.top-nav-button.is-promoted {
  padding: 8px 12px;
  border: 2px solid var(--blue);
  background: var(--blue-soft);
  color: var(--blue-dark);
  box-shadow: 0 4px 12px rgba(23, 104, 242, 0.12);
}

.top-nav-button.is-promoted:hover {
  background: var(--blue);
  color: #fff;
}

.header-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #526078;
  font-size: 14px;
  font-weight: 600;
}

.header-note .material-symbols-rounded {
  color: var(--blue);
  font-size: 20px;
}

.markdown-content {
  max-width: 760px;
  color: #4d586c;
  font-size: 16px;
  line-height: 1.7;
}

.markdown-content > :first-child {
  margin-top: 0;
}

.markdown-content > :last-child {
  margin-bottom: 0;
}

.markdown-content h1 {
  display: none;
}

.markdown-content h2,
.markdown-content h3 {
  margin: 26px 0 10px;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.markdown-content p {
  margin: 0 0 14px;
}

.markdown-content ul {
  margin: 10px 0 18px;
  padding-left: 22px;
}

.markdown-content li + li {
  margin-top: 6px;
}

.markdown-content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #e8eef8;
  color: #33425a;
  font-size: 0.9em;
}

.markdown-content a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-page-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.document-page {
  width: min(100%, 980px);
  flex: 1;
  padding: clamp(56px, 8vw, 110px) clamp(28px, 4.5vw, 76px) 90px;
}

.document-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(52px, 7vw, 90px);
  color: #667085;
  font-size: 14px;
  font-weight: 700;
}

.document-back:hover {
  color: var(--blue);
}

.document-back .material-symbols-rounded {
  font-size: 20px;
}

.document-page h1 {
  margin: 16px 0 32px;
  font-size: clamp(50px, 7vw, 92px);
  line-height: 1;
  letter-spacing: -0.065em;
}

.document-page .markdown-content {
  font-size: clamp(16px, 1.4vw, 19px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 520px;
  padding: clamp(42px, 5vw, 76px) clamp(28px, 4.5vw, 76px) 90px;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 740px;
  transform: translateY(-80px);
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 790px;
  margin: 20px 0 25px;
  font-size: clamp(58px, 7vw, 106px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.mode-description {
  max-width: 620px;
  margin: 0;
  color: #4d586c;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.55;
}

.hero-art {
  position: absolute;
  z-index: 1;
  top: -188px;
  right: -55px;
  width: min(54vw, 760px);
  height: min(54vw, 760px);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.search-zone {
  position: relative;
  z-index: 3;
  width: calc(100% - clamp(56px, 9vw, 152px));
  margin: -150px auto 0;
  border: 1px solid #d6e0ee;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
}

.category-search-zone {
  overflow: hidden;
}

.category-search-zone .search-form {
  min-height: 118px;
}

.search-form {
  display: grid;
  min-height: 118px;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 18px 36px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.input-icon {
  color: #7a8799;
  font-size: 33px;
}

#search-input {
  width: 100%;
  min-width: 0;
  padding: 16px 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 26px);
}

#search-input::placeholder {
  color: #a0a9b7;
}

.search-zone:focus-within {
  border-color: rgba(23, 104, 242, 0.55);
  box-shadow: 0 24px 72px rgba(23, 104, 242, 0.18);
}

.search-button {
  display: inline-flex;
  min-width: 222px;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 34px;
  border: 0;
  border-radius: 24px;
  background: var(--theme, var(--blue));
  box-shadow: 0 13px 27px rgba(23, 104, 242, 0.23);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.search-button:hover {
  background: var(--theme-dark, var(--blue-dark));
  box-shadow: 0 17px 34px rgba(23, 104, 242, 0.3);
  transform: translateY(-2px);
}

.search-button:active {
  transform: translateY(0);
}

.destinations {
  padding: 44px clamp(28px, 4.5vw, 76px) 76px;
}

.home-destinations {
  position: relative;
  z-index: 3;
  margin-top: -150px;
  padding-bottom: 24px;
}

html[data-mode="sites"] .destinations {
  padding-top: 32px;
}

html[data-mode="sites"] .results-heading {
  display: none;
}

.results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 35px;
}

.results-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 3.7vw, 52px);
  letter-spacing: -0.045em;
}

.selection-count {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--theme-soft, var(--blue-soft));
  color: var(--theme, var(--blue));
  font-size: 13px;
  font-weight: 800;
}

.selection-count:empty {
  display: none;
}

.destination-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(var(--columns, 4), minmax(0, 1fr));
}

.destination-card {
  position: relative;
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px clamp(22px, 2.5vw, 38px) 28px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background-color 180ms ease, transform 180ms ease;
}

.destination-card:last-child {
  border-right: 0;
}

.destination-card:hover {
  z-index: 1;
  background: #f8fbff;
  transform: translateY(-5px);
}

.destination-card.is-selected {
  background: var(--item-soft);
}

.card-top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.card-logo {
  display: grid;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--item-soft);
  color: var(--item-color);
  place-items: center;
}

.card-logo .material-symbols-rounded {
  font-size: 31px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 32;
}

.card-action {
  display: grid;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  place-items: center;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.destination-card:hover .card-action,
.destination-card.is-selected .card-action {
  border-color: var(--item-color);
  background: var(--item-color);
  color: #fff;
}

.card-name {
  margin: 0 0 12px;
  font-size: clamp(25px, 2.35vw, 36px);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.card-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-footer {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
  color: #8994a7;
  font-size: 12px;
  font-weight: 700;
}

.card-cta {
  color: var(--item-color);
}

.status-message {
  display: none;
  margin: 28px 0 0;
  padding: 17px 20px;
  border: 1px solid #f1d697;
  border-radius: 16px;
  background: #fffaf0;
  color: #7c5a16;
  line-height: 1.55;
}

.status-message.is-visible {
  display: block;
}

.blocked-links {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.blocked-links.is-visible {
  display: flex;
}

.blocked-link {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(28px, 4.5vw, 76px);
  border-top: 1px solid var(--line);
  color: #798599;
  font-size: 13px;
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.privacy-note .material-symbols-rounded {
  color: var(--blue);
  font-size: 19px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

html[data-mode="sites"] {
  --theme: #1768f2;
  --theme-dark: #0d4fd2;
  --theme-soft: #eaf2ff;
}

html[data-mode="shop"] {
  --theme: #10a96b;
  --theme-dark: #078755;
  --theme-soft: #eaf9f2;
}

html[data-mode="web"] {
  --theme: #f34d3f;
  --theme-dark: #d6382c;
  --theme-soft: #fff0ee;
}

@media (max-width: 1100px) {
  .header-note {
    display: none;
  }

  .hero {
    min-height: 490px;
    grid-template-columns: 1fr 0.78fr;
  }

  .hero-art {
    right: -110px;
    width: 650px;
    height: 650px;
  }

  .destination-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .destination-card:nth-child(2n) {
    border-right: 0;
  }

  .destination-card:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 72px;
    padding-block: 12px;
  }

  .header-note {
    display: none;
  }

  .header-main {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav-button {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 460px;
    padding-top: 38px;
    padding-bottom: 110px;
    grid-template-columns: 1fr;
  }

  .hero h1 {
    margin-top: 15px;
    font-size: clamp(52px, 15vw, 78px);
  }

  .hero-copy {
    transform: translateY(-28px);
  }

  .hero-art {
    top: -28px;
    right: -230px;
    width: 520px;
    height: 520px;
    opacity: 0.42;
  }

  .search-zone {
    margin-top: -110px;
    border-radius: 24px;
  }

  .home-destinations {
    margin-top: -110px;
  }

  .search-form {
    min-height: 96px;
    padding: 14px 14px 14px 22px;
  }

  .input-icon {
    font-size: 27px;
  }

  .search-button {
    min-width: 116px;
    min-height: 64px;
    padding: 15px 20px;
    border-radius: 18px;
  }

  .search-button .material-symbols-rounded {
    display: none;
  }

  .destinations {
    padding-top: 36px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 18px;
  }

  .header-main {
    width: 100%;
    gap: 10px;
  }

  .top-nav {
    gap: 0;
  }

  .top-nav-button {
    padding: 9px 7px;
    font-size: 12px;
  }

  .hero {
    min-height: 430px;
  }

  .hero h1 {
    font-size: clamp(47px, 16vw, 65px);
  }

  .mode-description {
    max-width: 310px;
    font-size: 16px;
  }

  .search-zone {
    width: calc(100% - 28px);
  }

  .search-form {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .search-button {
    min-width: 0;
    min-height: 52px;
    grid-column: 1 / -1;
    border-radius: 16px;
  }

  #search-input {
    font-size: 17px;
  }

  .results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .destination-grid {
    grid-template-columns: 1fr;
  }

  .destination-card,
  .destination-card:nth-child(2n) {
    min-height: 240px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .destination-card:first-child {
    border-top: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
