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

.narrow-container {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(235, 230, 220, 0.5), rgba(235, 230, 220, 0.15));
}

.site-header {
  --site-header-height: 68px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 243, 238, 0.96);
  border-bottom: 1px solid rgba(31, 31, 31, 0.12);
  backdrop-filter: blur(8px);
}

.site-header .container {
  position: relative;
}

.nav-row,
.site-nav,
.hero-actions,
.card-actions,
.detail-points,
.section-heading,
.footer-grid {
  display: flex;
  gap: 1rem;
}

.section-heading,
.footer-grid {
  align-items: center;
  justify-content: space-between;
}

.nav-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.site-nav {
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  grid-column: 2;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-button {
  display: none;
  grid-column: 3;
  justify-self: end;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 5px;
  padding: 0.55rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-button span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.site-header .container,
.site-footer .container {
  padding: 1rem 0;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(31, 31, 31, 0.12);
  background: rgba(235, 230, 220, 0.42);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  align-items: flex-start;
  flex: 0 0 auto;
}

.brand-name {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.brand-tagline {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
  margin-top: 0.15rem;
  white-space: nowrap;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand,
.footer-column {
  display: grid;
  gap: 0.65rem;
}

.footer-column h3,
.footer-brand h2 {
  margin-bottom: 0;
}

.footer-column a,
.footer-column span,
.footer-brand p {
  color: var(--muted);
  line-height: 1.5;
}

.footer-column a:hover {
  color: var(--text);
}

.hero-grid,
.two-column,
.detail-grid,
.booking-grid,
.form-layout {
  display: grid;
  gap: 1.5rem;
}

.hero-grid,
.detail-grid,
.booking-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.two-column,
.form-layout {
  grid-template-columns: 1.1fr 0.9fr;
}

.card-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.prototypes-shell {
  display: grid;
  gap: 1.5rem;
}

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

@media (max-width: 1024px) {
  .nav-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
  }

  .nav-toggle-button {
    display: grid;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--site-header-height, 68px);
    right: 0;
    left: auto;
    z-index: 25;
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    width: min(22rem, calc(100vw - 2rem));
    max-height: calc(100vh - 10rem);
    padding: 0.95rem;
    border: 2px solid var(--border);
    border-top: 0;
    border-right: 0;
    border-radius: 0 0 14px 14px;
    background: rgba(245, 243, 238, 0.96);
    box-shadow: 0 22px 45px rgba(31, 31, 31, 0.18);
    overflow-y: auto;
  }

  .nav-toggle:checked ~ .site-nav {
    display: grid;
    animation: nav-menu-drop 160ms ease-out;
  }

  .site-nav a {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.96);
  }
}

@keyframes nav-menu-drop {
  from {
    opacity: 0;
    transform: translateY(-0.75rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .two-column,
  .detail-grid,
  .booking-grid,
  .form-layout,
  .card-grid,
  .reviews-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .hero-actions,
  .card-actions,
  .detail-points {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 2.5rem 0;
  }
}
