:root {
  --ink: #1d2935;
  --muted: #607181;
  --line: #dfe6ec;
  --paper: #f7f9fb;
  --brand: #1f6f64;
  --brand-2: #275b9f;
  --accent: #d98b32;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(18, 36, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 98px;
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  background: var(--paper);
  overflow-wrap: break-word;
  height: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid rgba(217, 139, 50, 0.75);
  outline-offset: 3px;
}

a {
  color: var(--brand-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(18, 36, 55, 0.04);
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  min-width: 230px;
  max-width: 100%;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  min-width: 0;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 20px;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}

.nav a {
  color: var(--ink);
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
}

.nav a[aria-current='page'],
.nav a:hover {
  background: #e9f2f0;
  color: var(--brand);
  text-decoration: none;
}

.hero {
  background:
    linear-gradient(90deg, rgba(20, 43, 55, 0.88), rgba(31, 111, 100, 0.72)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='620' viewBox='0 0 1400 620'%3E%3Crect width='1400' height='620' fill='%23d9e4e8'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.45'%3E%3Cpath d='M0 90c180 40 250-65 420-20s250 115 430 65 310-120 550-45'/%3E%3Cpath d='M0 210c240-80 360 80 560 25s420-25 840 80'/%3E%3Cpath d='M0 425c250 80 430-100 660-55s430 120 740 20'/%3E%3Cpath d='M170 0c40 190-30 310 25 620M460 0c-35 170 85 310 35 620M760 0c60 185-60 340 30 620M1080 0c-20 210 85 330 5 620'/%3E%3C/g%3E%3Cg fill='%23275b9f' fill-opacity='.12'%3E%3Ccircle cx='250' cy='180' r='95'/%3E%3Ccircle cx='1030' cy='350' r='140'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  color: var(--white);
}

.hero .wrap {
  min-height: 420px;
  display: grid;
  align-items: center;
  padding: 64px 0;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: 58px;
  line-height: 1.05;
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  background: var(--accent);
  color: #17212b;
  text-align: center;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.button:hover {
  text-decoration: none;
  filter: brightness(0.96);
}

.button:active {
  transform: translateY(1px);
}

.section {
  padding: 56px 0;
}

.section.white {
  background: var(--white);
}

.section h1,
.section h2 {
  margin: 0 0 18px;
  line-height: 1.15;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.lead {
  color: var(--muted);
  max-width: 820px;
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  min-height: 190px;
  box-shadow: 0 1px 0 rgba(18, 36, 55, 0.03);
  min-width: 0;
}

.card,
.product-card,
.panel {
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.card:hover,
.product-card:hover {
  border-color: rgba(31, 111, 100, 0.36);
  box-shadow: 0 12px 28px rgba(18, 36, 55, 0.1);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.card p,
.card li {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
  align-items: stretch;
}

.product-card {
  display: grid;
  grid-template-rows: 250px 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(18, 36, 55, 0.03);
  min-width: 0;
}

.product-card[hidden] {
  display: none;
}

.product-thumb {
  display: grid;
  place-items: center;
  background: #e7eef1;
  border-bottom: 1px solid var(--line);
  height: 250px;
  padding: 12px;
  overflow: hidden;
  min-width: 0;
}

.product-thumb img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(18, 36, 55, 0.16));
}

.thumb-placeholder {
  width: 72px;
  height: 92px;
  border-radius: 8px;
  border: 2px solid rgba(31, 111, 100, 0.28);
  background:
    linear-gradient(135deg, rgba(31, 111, 100, 0.16), rgba(217, 139, 50, 0.16)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 12px,
      rgba(39, 91, 159, 0.12) 13px
    );
}

.product-card > div {
  padding: 18px;
  display: grid;
  align-content: start;
}

.product-card h3 {
  margin: 0 0 8px;
  line-height: 1.25;
  font-size: 19px;
}

.product-card p {
  color: var(--muted);
  margin: 0;
}

.islands-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
  align-items: stretch;
}

.islands-overview .product-card {
  grid-template-rows: minmax(260px, 34vw) 1fr;
}

.islands-overview .product-thumb {
  height: auto;
  min-height: 260px;
  padding: 0;
  background: #dfeaec;
}

.islands-overview .island-map {
  min-height: 100%;
  border-radius: 0;
}

.islands-overview .island-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.islands-overview .product-card > div {
  gap: 12px;
}

.islands-overview .button {
  justify-self: start;
  margin-top: 6px;
}

.eyebrow,
.breadcrumbs {
  color: var(--muted);
  font-size: 13px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-group {
  margin-top: 42px;
}

.category-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  white-space: nowrap;
}

.category-pills a:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

.category-pills a[aria-current='page'] {
  border-color: var(--brand);
  background: #e9f2f0;
  color: var(--brand);
}

.catalog-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 26px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-field {
  display: grid;
  gap: 6px;
  width: min(520px, 100%);
  color: var(--muted);
  font-size: 14px;
}

.search-field input,
.request-form input,
.request-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fbfcfd;
}

.search-field input:focus,
.request-form input:focus,
.request-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 111, 100, 0.12);
  outline: 0;
}

.catalog-tools p {
  margin: 0;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.content-body {
  font-size: 17px;
  max-width: 920px;
}

.content-body p {
  margin: 0 0 16px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.gallery figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}

.gallery button {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 520px;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: #edf2f4;
}

.gallery button:hover img {
  filter: saturate(1.04) contrast(1.02);
}

.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #edf2f4;
}

.gallery figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
}

.related {
  margin-top: 48px;
}

.request-form {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.request-form .button {
  justify-self: start;
}

.request-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(12, 22, 32, 0.82);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 88vh;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lightbox button {
  position: fixed;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 32px;
  align-items: start;
  min-width: 0;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 14px 16px;
  background: #edf4f6;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
}

.catalog {
  columns: 2;
  column-gap: 32px;
}

.catalog li {
  break-inside: avoid;
  margin: 0 0 8px;
}

.contact-box {
  font-size: 18px;
}

.not-found {
  min-height: calc(100vh - 154px);
  display: grid;
  align-items: center;
}

.not-found-panel {
  max-width: 760px;
}

.not-found-code {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid rgba(31, 111, 100, 0.28);
  border-radius: 999px;
  background: #e9f2f0;
  color: var(--brand);
  font-weight: 700;
}

.not-found-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.not-found-actions .button.secondary {
  background: var(--white);
  color: var(--brand-2);
  border-color: var(--line);
}

.demo-thumb {
  position: relative;
  width: min(82%, 300px);
  aspect-ratio: 1.28;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(48, 114, 102, 0.7), rgba(43, 95, 154, 0.68)),
    repeating-linear-gradient(
      35deg,
      rgba(255, 255, 255, 0.15) 0 2px,
      transparent 2px 22px
    ),
    #cfdde2;
  box-shadow: 0 14px 28px rgba(18, 36, 55, 0.18);
}

.demo-thumb::before,
.demo-thumb::after,
.demo-thumb span {
  content: '';
  position: absolute;
  border-radius: 999px;
}

.demo-thumb::before {
  inset: 18% -12% auto -8%;
  height: 22%;
  border: 12px solid rgba(255, 255, 255, 0.42);
  transform: rotate(-12deg);
}

.demo-thumb::after {
  left: 8%;
  right: 12%;
  bottom: 16%;
  height: 34%;
  border: 2px solid rgba(217, 139, 50, 0.72);
  background: rgba(217, 139, 50, 0.13);
  border-radius: 14px;
}

.demo-thumb span:nth-child(1) {
  width: 16%;
  aspect-ratio: 1;
  left: 18%;
  top: 18%;
  background: rgba(255, 255, 255, 0.74);
}

.demo-thumb span:nth-child(2) {
  width: 28%;
  height: 18%;
  right: 16%;
  top: 28%;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.demo-thumb span:nth-child(3) {
  width: 36%;
  height: 3px;
  right: 11%;
  bottom: 25%;
  background: rgba(23, 33, 43, 0.36);
  transform: rotate(-18deg);
}

.demo-view {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.65fr);
  gap: 20px;
  margin: 30px 0 34px;
  align-items: stretch;
}

.demo-map {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(
      circle at 18% 24%,
      rgba(255, 255, 255, 0.72) 0 3%,
      transparent 3.5%
    ),
    radial-gradient(
      circle at 72% 42%,
      rgba(255, 255, 255, 0.42) 0 6%,
      transparent 6.5%
    ),
    linear-gradient(115deg, rgba(67, 139, 126, 0.78), rgba(41, 97, 156, 0.72)),
    repeating-linear-gradient(
      25deg,
      rgba(255, 255, 255, 0.16) 0 2px,
      transparent 2px 32px
    ),
    #cddde2;
  box-shadow: var(--shadow);
}

.demo-map::before {
  content: '';
  position: absolute;
  inset: -10% -18%;
  background:
    linear-gradient(
      18deg,
      transparent 38%,
      rgba(255, 255, 255, 0.42) 39% 43%,
      transparent 44%
    ),
    linear-gradient(
      -24deg,
      transparent 54%,
      rgba(39, 91, 159, 0.32) 55% 58%,
      transparent 59%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 72px,
      rgba(255, 255, 255, 0.24) 73px 75px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 66px,
      rgba(255, 255, 255, 0.2) 67px 69px
    );
  transform: rotate(-8deg);
}

.demo-map::after {
  content: '';
  position: absolute;
  left: 12%;
  top: 23%;
  width: 62%;
  height: 46%;
  border: 3px solid rgba(217, 139, 50, 0.78);
  background:
    linear-gradient(90deg, rgba(217, 139, 50, 0.18), rgba(217, 139, 50, 0.04)),
    repeating-linear-gradient(
      90deg,
      transparent 0 46px,
      rgba(23, 33, 43, 0.16) 47px 49px
    );
  clip-path: polygon(6% 18%, 84% 4%, 98% 46%, 72% 92%, 18% 82%);
}

.demo-map-toolbar,
.demo-scale,
.demo-chips,
.demo-pin {
  position: absolute;
  z-index: 2;
}

.demo-map-toolbar {
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.demo-map-toolbar span,
.demo-scale {
  color: var(--muted);
  font-size: 13px;
}

.demo-scale {
  left: 18px;
  bottom: 18px;
  width: 86px;
  padding-top: 7px;
  border-top: 3px solid #17212b;
}

.demo-chips {
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
  max-width: min(330px, calc(100% - 120px));
}

.demo-chips span,
.demo-layers li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-chips > span {
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.demo-pin {
  width: 18px;
  height: 18px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 6px 12px rgba(18, 36, 55, 0.28);
}

.demo-pin.one {
  left: 34%;
  top: 48%;
}

.demo-pin.two {
  left: 68%;
  top: 36%;
}

.demo-layers {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.demo-layers h2 {
  margin-top: 0;
}

.demo-layers ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.layer-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--brand);
}

.layer-dot.photo {
  background: #d98b32;
}
.layer-dot.map {
  background: #275b9f;
}
.layer-dot.archive {
  background: #7c6a52;
}
.layer-dot.cadastre {
  background: #c44d58;
}
.layer-dot.building {
  background: #65499c;
}
.layer-dot.label {
  background: #17212b;
}
.layer-dot.zone {
  background: #2f8f6b;
}
.layer-dot.zone-alt {
  background: #b3a232;
}
.layer-dot.border {
  background: #ffffff;
  border: 2px solid #275b9f;
}

.demo-copy {
  margin-top: 12px;
}

.anchor-menu {
  position: sticky;
  top: 40px;
  z-index: 10;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0;
  padding: 12px;
  background: rgba(247, 249, 251, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.anchor-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.anchor-menu a:hover {
  color: var(--brand);
  border-color: var(--brand);
  text-decoration: none;
}

.island-layout {
  align-items: start;
}

.island-section {
  scroll-margin-top: 120px;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.island-section:last-child {
  border-bottom: 0;
}

.island-section h2 {
  margin-top: 0;
}

.island-panel {
  position: sticky;
  top: 152px;
}

.island-map {
  position: relative;
  width: 100%;
  min-height: 260px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(39, 91, 159, 0.72), rgba(31, 111, 100, 0.66)),
    repeating-linear-gradient(
      35deg,
      rgba(255, 255, 255, 0.12) 0 2px,
      transparent 2px 24px
    ),
    #c8dce3;
  box-shadow: 0 12px 24px rgba(18, 36, 55, 0.14);
}

.product-thumb .island-map {
  min-height: 0;
  height: 100%;
  box-shadow: none;
}

.island-shape,
.route-line,
.map-label {
  position: absolute;
}

.island-shape {
  display: block;
  background: linear-gradient(
    135deg,
    rgba(242, 232, 199, 0.98),
    rgba(172, 196, 140, 0.95)
  );
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 16px rgba(18, 36, 55, 0.16);
}

.island-shape.main {
  left: 34%;
  top: 17%;
  width: 38%;
  height: 58%;
  border-radius: 48% 39% 54% 42%;
  transform: rotate(18deg);
}

.island-shape.small {
  width: 13%;
  height: 18%;
  border-radius: 48% 41% 50% 44%;
}

.island-shape.small.one {
  left: 15%;
  top: 53%;
  transform: rotate(-24deg);
}

.island-shape.small.two {
  right: 14%;
  bottom: 17%;
  transform: rotate(28deg);
}

.route-line {
  height: 3px;
  background: rgba(255, 255, 255, 0.76);
  transform-origin: left center;
}

.route-line.one {
  left: 12%;
  top: 36%;
  width: 38%;
  transform: rotate(16deg);
}

.route-line.two {
  left: 48%;
  top: 61%;
  width: 30%;
  transform: rotate(-8deg);
}

.map-label {
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.map-label.city {
  left: 8%;
  top: 24%;
}

.map-label.island {
  right: 8%;
  top: 13%;
  max-width: 46%;
}

.island-panel .island-map {
  margin-bottom: 16px;
}

.site-footer {
  background: #17212b;
  color: rgba(255, 255, 255, 0.78);
  padding: 28px 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .topbar {
    gap: 14px;
  }

  .nav {
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .product-grid,
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .catalog {
    columns: 1;
  }
}

@media (max-width: 920px) and (min-width: 821px) {
  .nav a {
    font-size: 13px;
    padding: 8px 9px;
  }
}

@media (max-width: 820px) {
  .wrap {
    width: min(100% - 24px, 760px);
  }

  .topbar {
    align-items: flex-start;
    padding: 14px 0;
    gap: 12px;
    min-height: 66px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 12px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
    padding-top: 10px;
  }

  .nav.is-open {
    display: flex;
  }

  .anchor-menu,
  .island-panel {
    position: static;
  }

  .nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    white-space: normal;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .grid,
  .split,
  .product-grid,
  .islands-overview,
  .gallery,
  .demo-view {
    grid-template-columns: 1fr;
  }

  .catalog-tools,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hero .wrap {
    min-height: 360px;
    padding: 44px 0;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 18px;
  }

  .section {
    padding: 42px 0;
  }

  .section h1 {
    font-size: 34px;
  }

  .section h2 {
    font-size: 26px;
  }

  .product-card {
    grid-template-rows: 220px 1fr;
  }

  .product-thumb {
    height: 220px;
  }

  .islands-overview .product-card {
    grid-template-rows: auto 1fr;
  }

  .islands-overview .product-thumb {
    min-height: 0;
  }

  .islands-overview .island-map {
    aspect-ratio: 16 / 10;
  }

  .demo-map {
    min-height: 390px;
  }

  .island-map {
    min-height: 230px;
  }

  .demo-map-toolbar {
    flex-direction: column;
  }

  .demo-chips {
    left: 16px;
    right: 16px;
    max-width: none;
  }

  .card:hover,
  .product-card:hover {
    transform: none;
  }

  .catalog {
    columns: 1;
  }
}

@media (max-width: 520px) {
  .hero .wrap {
    min-height: 330px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p,
  .lead {
    font-size: 16px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 58px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand span {
    font-size: 12px;
  }

  .card,
  .panel,
  .product-card > div {
    padding: 16px;
  }

  .card {
    min-height: 0;
  }

  .catalog-tools {
    padding: 12px;
  }

  .product-card {
    grid-template-rows: 190px 1fr;
  }

  .product-thumb {
    height: 190px;
  }

  .islands-overview {
    gap: 18px;
  }

  .islands-overview .island-map {
    aspect-ratio: 4 / 3;
  }

  .islands-overview .button,
  .not-found-actions .button {
    justify-self: stretch;
  }

  .gallery {
    gap: 14px;
  }

  .gallery button {
    aspect-ratio: 3 / 4;
    max-height: none;
  }

  .demo-map {
    min-height: 350px;
  }

  .island-map {
    min-height: 210px;
  }

  .anchor-menu {
    gap: 8px;
    padding: 10px;
  }

  .anchor-menu a {
    flex: 1 1 100%;
    justify-content: center;
  }

  .site-footer .wrap {
    display: grid;
    gap: 8px;
  }

  .demo-chips {
    display: none;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox img {
    max-height: 82vh;
  }
}
