:root {
  --ink: #17252b;
  --muted: #667277;
  --paper: #f5f5ef;
  --white: #fff;
  --orange: #f2673b;
  --yellow: #f3c84b;
  --blue: #8cc6c8;
  --mint: #bfe7d6;
  --navy: #17363b;
  --line: #d8ddd7;
  --display: 'Space Grotesk', sans-serif;
  --body: 'DM Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.rooms-bar {
  background: var(--navy);
  color: #dcebe8;
  text-align: center;
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.rooms-bar a {
  color: var(--yellow);
  margin-left: 14px;
  font-weight: 700;
}

.rooms-bar span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  margin: 0 9px 1px 0;
}

.rooms-header {
  width: min(1280px, calc(100% - 56px));
  margin: auto;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.logo {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 20px;
  letter-spacing: 0;
  object-fit: cover;
}

.brand span:last-child {
  font-family: var(--display);
}

.brand span:last-child span {
  color: var(--orange);
}

.rooms-header nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-size: 14px;
  margin-left: auto;
  margin-right: 28px;
}

.rooms-header nav a:hover {
  color: var(--orange);
}

.rooms-header nav a.active {
  color: var(--ink);
  font-weight: 700;
}

.back-link {
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}

main {
  padding-bottom: 80px;
}

.rooms-hero,
.rooms-catalog,
.rooms-cta,
footer {
  width: min(1160px, calc(100% - 80px));
  margin: 0 auto;
}

.rooms-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  padding: 72px 0 54px;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  margin: 0 0 20px;
}

.eyebrow::before {
  content: "";
  width: 29px;
  height: 1px;
  background: currentColor;
}

.rooms-hero h1,
.section-header h2,
.rooms-cta h2 {
  font-family: var(--display);
  letter-spacing: -0.07em;
  font-weight: 600;
  margin: 0;
}

.rooms-hero h1 {
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.92;
}

.rooms-hero h1 em,
.rooms-cta h2 em {
  color: var(--orange);
  font-style: normal;
}

.hero-copy > p:last-of-type {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  margin: 24px 0 0;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}

.hero-stats div {
  min-width: 128px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  padding: 16px 18px;
}

.hero-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.05em;
  margin-bottom: 2px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel {
  background: linear-gradient(135deg, rgba(23, 54, 59, 0.96), rgba(27, 68, 76, 0.88));
  border-radius: 28px;
  padding: 22px;
  color: #f2f4ed;
  box-shadow: 0 22px 40px rgba(23, 54, 59, 0.18);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-header span {
  color: var(--yellow);
  font-weight: 700;
}

.panel-header button {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-list {
  display: grid;
  gap: 12px;
}

.panel-empty {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  margin: 12px 0;
}

.room-pill {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  border-radius: 16px;
}

.room-pill b {
  font-size: 15px;
  font-weight: 700;
}

.room-pill span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.rooms-catalog {
  padding-top: 18px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.section-header h2,
.rooms-cta h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.96;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.endpoint-form {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
  padding: 16px;
  background: #e8ece6;
  border: 1px solid var(--line);
}

.endpoint-form label {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.endpoint-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 9px 12px;
  font-size: 13px;
}

.endpoint-form button {
  min-height: 40px;
  border: 0;
  background: var(--navy);
  color: #fff;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.endpoint-form button:hover {
  background: var(--orange);
}

.endpoint-form p {
  grid-column: 2 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.endpoint-form p.error {
  color: #a74732;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.room-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(23, 37, 43, 0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}

.room-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(23, 37, 43, 0.08);
}

.room-card.is-hidden {
  display: none;
}

.room-art {
  position: relative;
  height: 176px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  overflow: hidden;
}

.room-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 55%);
}

.room-art strong {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.18em;
}

.room-gallery {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(23, 37, 43, .35);
}

.room-gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.room-gallery img:only-child {
  grid-column: 1 / -1;
}

.room-gallery + .room-badge,
.room-gallery + .room-badge + strong {
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
}

.room-badge {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.art-neon {
  background: linear-gradient(135deg, #3d3dff, #14d0d0);
}

.art-amber {
  background: linear-gradient(135deg, #ff9d5c, #f7d774);
}

.art-lake {
  background: linear-gradient(135deg, #1d6f78, #8cc6c8);
}

.art-violet {
  background: linear-gradient(135deg, #6d52d5, #ff7aa7);
}

.art-coral {
  background: linear-gradient(135deg, #ff8b6b, #ffcb75);
}

.art-mint {
  background: linear-gradient(135deg, #3ab89d, #9adbbd);
}

.room-body {
  padding: 20px 20px 18px;
}

.room-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.room-kicker {
  color: var(--orange);
}

.room-body h3 {
  margin: 14px 0 10px;
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: -0.06em;
}

.room-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  min-height: 66px;
}

.room-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.room-meta span {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
}

.join-room,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  background: var(--navy);
  color: #fff;
  border: 0;
  min-height: 42px;
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}

.join-room:hover,
.cta-button:hover {
  transform: translateY(-2px);
}

.join-room:disabled,
.join-room.is-joined {
  background: var(--orange);
  cursor: default;
}

.rooms-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 78px 0 30px;
}

.rooms-cta h2 {
  max-width: 450px;
}

.cta-button {
  background: var(--orange);
  min-width: 220px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer div {
  display: flex;
  align-items: center;
  gap: 20px;
}

footer a:hover {
  color: var(--orange);
}

@media (max-width: 980px) {
  .rooms-hero {
    grid-template-columns: 1fr;
  }

  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rooms-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .rooms-header {
    flex-wrap: wrap;
    height: auto;
    padding: 18px 0;
  }

  .rooms-header nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .endpoint-form {
    grid-template-columns: 1fr;
  }

  .endpoint-form p {
    grid-column: auto;
  }

  .room-grid {
    grid-template-columns: 1fr;
  }

  .rooms-hero,
  .rooms-catalog,
  .rooms-cta,
  footer {
    width: min(100% - 32px, 1160px);
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0 26px;
  }
}
