:root {
  --orange: #ff6a00;
  --orange-hover: #e85f00;
  --cream: #fff6ee;
  --page: #fff8f2;
  --surface: #fff;
  --surface-border: #f1e9e2;
  --ink: #171717;
  --muted: #4b4b4b;
  --star: #f5c518;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(23, 23, 23, 0.06);
  --header-h: 84px;
  --max: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.45;
  min-height: 100vh;
}

body[data-theme="dark"] {
  --page: #181818;
  --surface: #252525;
  --surface-border: #3a3a3a;
  --ink: #f5f1ed;
  --muted: #c2bbb4;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.theme-toggle {
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background 0.18s ease;
}

.theme-toggle-track {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.theme-toggle-track::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
  transition: transform 0.18s ease;
}

.theme-toggle[aria-checked="true"] {
  background: #252525;
}

.theme-toggle[aria-checked="true"] .theme-toggle-track::after {
  transform: translateX(16px);
}

.theme-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

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

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

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

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--orange);
  color: #fff;
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.search {
  position: relative;
  width: 150px;
  flex-shrink: 0;
}

.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a8a8a;
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px 0 34px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  outline: none;
}

.search input::placeholder {
  color: #9a9a9a;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-catalog {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.98;
}

.nav a.stack {
  text-align: center;
  line-height: 1.15;
  font-size: 11px;
  letter-spacing: 0.05em;
  white-space: normal;
}

.nav a:hover,
.nav a.is-active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: none;
  place-items: center;
}

.badge.show {
  display: grid;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}

/* Hero */
.hero {
  background: var(--orange);
  color: #fff;
  padding: 28px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero p {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.18s ease;
}

.btn-dark {
  background: #111;
  color: #fff;
}

.btn-dark:hover {
  background: #000;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--orange);
}

.hero-photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Explore */
.explore {
  padding: 42px 0 28px;
}

.explore h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.rooms {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.room-card {
  background: var(--surface);
  border-radius: 22px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
  transition: 0.18s ease;
}

.room-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(23, 23, 23, 0.1);
}

.room-card svg {
  width: 28px;
  height: 28px;
  color: var(--orange);
}

.proof {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 28px 0 56px;
}

.review {
  background: var(--surface);
  color: var(--ink);
  border-radius: 22px;
  padding: 26px 28px;
  box-shadow: var(--shadow);
}

.stars {
  color: var(--star);
  letter-spacing: 2px;
  font-size: 18px;
  margin-bottom: 8px;
}

.review h3 {
  font-size: 17px;
  font-weight: 800;
}

.review p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15.5px;
}

.benefits {
  display: grid;
  gap: 16px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16.5px;
  font-weight: 600;
}

.benefit svg {
  width: 22px;
  height: 22px;
  color: var(--orange);
  flex-shrink: 0;
}

/* Inner pages */
.page-hero {
  background: var(--orange);
  color: #fff;
  padding: 28px 0 40px;
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-hero p {
  margin-top: 8px;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.92);
}

.section {
  padding: 40px 0 64px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.chip {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.chip.is-on,
.chip:hover {
  background: var(--orange);
  color: #fff;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product {
  background: var(--surface);
  color: var(--ink);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.product-body {
  padding: 16px 18px 18px;
}

.product h3 {
  font-size: 17px;
}

.product .meta {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 12px;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-weight: 800;
  color: var(--orange);
}

.ghost {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.panel {
  background: var(--surface);
  color: var(--ink);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  font-size: 13px;
  font-weight: 700;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--orange);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
}

.footer {
  background: var(--surface);
  border-top: 1px solid var(--surface-border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

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

.footer strong {
  color: var(--ink);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #111;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  display: none;
  z-index: 50;
}

.toast.show {
  display: block;
}

.drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 40;
}

.drawer.open {
  display: block;
}

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(380px, 100%);
  background: var(--surface);
  color: var(--ink);
  padding: 24px;
  overflow: auto;
}

.drawer h2 {
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--surface-border);
}

.empty {
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .proof,
  .two-col,
  .grid-cards,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 1100px) {
  .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .nav {
    display: none;
    position: absolute;
    left: 24px;
    right: 24px;
    top: 84px;
    background: var(--surface);
    color: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    border-radius: 16px;
    z-index: 20;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 8px 0;
  }

  .nav-catalog {
    padding: 0 0 8px;
  }

  .header-inner {
    position: relative;
  }

  .search {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .rooms,
  .grid-cards,
  .gallery,
  .hero-grid,
  .proof,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    height: 220px;
  }

  .header-actions {
    gap: 10px;
  }
}
