/* Base */
* {
  box-sizing: border-box;
}

:root {
  --bg: #0a0b0a;
  --text: #efe6d2;
  --text-soft: #efe7d2;
  --border: #333330;
  --muted-border: rgba(218, 197, 167, 0.15);
  --light: #f2f2f2;
  --hover: rgba(239, 231, 210, 0.08);
  --overlay: rgba(10, 11, 10, 0.45);
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body {
  font-family: "Satoshi", system-ui, sans-serif;
}

/* HEADER */
.header {
  position: fixed;
  top: 72px;
  left: 72px;
  z-index: 100;
  width: auto;
  padding: 0;
  background: transparent;
}

.header-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 8px;
  background: var(--bg);
  border-radius: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2px;
  width: max-content;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 41px;
  padding: 0 8px;
  border-radius: 8px;
}

.logo img {
  display: block;
  height: 28px;
  width: auto;
}

/* Hamburger */
.menu-toggle {
  display: inline-flex;
  width: 41px;
  height: 41px;
  padding: 0;
  background: rgba(24, 24, 24, 0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.menu-toggle .line {
  width: 20px;
  height: 1px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

body.menu-open .menu-toggle .line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

body.menu-open .menu-toggle .line:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle .line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Nav links */
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 41px;
  padding: 12px;
  color: var(--text-soft);
  text-decoration: none;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.nav-link:hover {
  background: var(--hover);
}

.nav-link.disabled {
  color: #666;
  pointer-events: none;
}

/* Book button */
.btn-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 41px;
  padding: 0 16px;
  background: #18181880;
  color: #efe7d2;
  text-decoration: none;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  border: 1px solid #333330;
  white-space: nowrap;

  transition:
    background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-book:hover {
  background: #1e1e1e;        
  color: #efe6d2;                     
  border-color: #4e4c47;      
}

.btn-book-mobile {
  display: none;
}

/* HERO / MAIN LAYOUT */
.hero-section {
  min-height: 100dvh;
  padding: 16px;
}

.hero {
  display: flex;
  gap: 16px;
  height: calc(100dvh - 32px);
  min-height: 720px;
}

.hero-left {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, #0a0b0a 90%);
}

.hero-text {
  position: absolute;
  left: 64px;
  bottom: 64px;
  z-index: 2;
}

.hero-title {
  margin: 0;
  color: var(--text-soft);
  font-family: "Forum", serif;
  font-size: 112px;
  line-height: 0.8;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Socials */
.socials {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 3;
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--muted-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 18px;
  text-decoration: none;
}

.social-link:hover {
  background: rgba(239, 231, 210, 0.1);
}

/* Right cards */
.hero-right {
  flex: 0 0 23.08%;
  min-width: 432px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  position: relative;
  flex: 1;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
}

.card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transform: scale(1);
  transition: opacity 0.35s ease, transform 0.6s ease;
}

.card-label {
  position: absolute;
  right: 0;
  bottom: 0;
}

.card-label-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0 0 16px;
  background: #0a0b0a;
  border-top-left-radius: 24px;
  white-space: nowrap;
}

.card-label-text {
  height: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.card-text-line {
  display: block;
  font-family: "Forum", serif;
  font-size: 16px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateY(0);
  transition: transform 0.35s ease;
}

.card-arrow-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.card-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid #333330;
  border-radius: 50%;
  background: rgba(24, 24, 24, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: #efe6d2;
  transform: translateX(0);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.card-label-inner::before,
.card-label-inner::after {
  content: "";
  position: absolute;
  background: transparent;
}

.card-label-inner::before {
  right: 100%;
  bottom: 0;
  width: 24px;
  height: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 8px 8px 0 8px #0a0b0a;
}

.card-label-inner::after {
  right: 0;
  bottom: 100%;
  width: 24px;
  height: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 8px 8px 0 8px #0a0b0a;
}

.card:hover img {
  opacity: 1;
  transform: scale(1.06);
}

.card:hover .card-text-line {
  transform: translateY(-16px);
}

.card:hover .card-arrow {
  transform: translateX(2px);
}

/* Overlay */
#overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 11, 10, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

body.menu-open #overlay {
  opacity: 1;
  visibility: visible;
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 110;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

body.menu-open .menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-panel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: calc(100dvh - 32px);
  padding: 72px;
  background: #0a0b0a;
  border: 1px solid rgba(239, 231, 210, 0.08);
  box-shadow: inset 0 0 0 1px rgba(239, 231, 210, 0.03);
  border-radius: 16px; 
  display: flex;
  align-items: center;
  justify-content: center;
}

/* верхний служебный блок больше не участвует в раскладке */
.menu-panel-top {
  position: absolute;
  top: 72px;
  left: 72px;
  right: 72px;
  display: block;
  margin: 0;
}

/* надпись Menu в оригинальном fullscreen-варианте не нужна */
.menu-panel-label {
  display: none;
}

/* крестик слева сверху */
.menu-panel-close {
  position: absolute;
  top: 0;
  left: 0;
  width: 41px;
  height: 41px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(24, 24, 24, 0.5);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.menu-panel-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  background: var(--text);
}

.menu-panel-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-panel-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* меню по центру экрана */
.menu-panel-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

/* крупнее и ближе к fullscreen-оригиналу */
.menu-panel-link {
  display: inline-block;
  width: fit-content;
  color: var(--text-soft);
  text-decoration: none;
  font-family: "Forum", serif;
  font-size: clamp(48px, 3.5vw, 64px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-panel-link:hover {
  opacity: 0.72;
  transform: translateY(-2px);
}

/* нижнюю кнопку убираем */
.menu-panel-bottom {
  display: none;
}

.menu-panel-book {
  display: none;
}

.menu-panel-book:hover {
  background: #dac5a7;
}


/* Desktop large */
@media (min-width: 1280px) {
  .header {
    top: 72px;
  }

  .hero {
    height: calc(100dvh - 32px);
  }
}

/* Tablet */
@media (min-width: 810px) and (max-width: 1279px) {
  .header {
    top: 72px;
  }

  .hero-section {
    padding: 16px;
  }

  .hero {
    flex-direction: column;
    height: auto;
    min-height: calc(100dvh - 32px);
  }

  .hero-left {
    min-height: 620px;
  }

  .hero-title {
    font-size: 96px;
    line-height: 0.9;
  }

  .hero-right {
    width: 100%;
    min-width: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .card {
    min-height: 280px;
  }

  .menu-panel-inner {
    padding: 48px;
  }

  .menu-panel-top {
    top: 48px;
    left: 48px;
    right: 48px;
  }

  .menu-panel-link {
    font-size: clamp(64px, 8vw, 110px);
  }
}

/* Mobile */
@media (max-width: 809px) {
  .header {
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 24px);
  }

  .header-container {
    width: max-content;
    max-width: calc(100vw - 24px);
    justify-content: flex-start;
    gap: 8px;
  }

  .header-left {
    gap: 8px;
  }

  .menu-toggle {
    display: flex;
  }

  .btn-book-mobile {
    display: inline-flex;
    min-height: 41px;
    padding: 14px 16px;
  }

  .nav-desktop {
    display: none !important;
  }

  .menu-panel {
    display: block;
  }

  .menu-panel-inner {
    padding: 32px 24px 24px;
    border-radius: 16px;
  }

  .menu-panel-top {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    display: block;
    margin: 0;
  }

  .menu-panel-close {
    position: absolute;
    top: 0;
    left: 0;
  }

  .menu-panel-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
  }

  .menu-panel-link {
    font-size: clamp(36px, 9vw, 56px);
    line-height: 0.92;
  }

  .menu-panel-bottom,
  .menu-panel-book,
  .menu-panel-label {
    display: none;
  }

  .hero-section {
    padding: 12px;
  }

  .hero {
    flex-direction: column;
    height: auto;
    min-height: auto;
    gap: 12px;
  }

  .hero-left {
    height: 368px;
  }

  .hero-text {
    left: 32px;
    right: 24px;
    bottom: 32px;
  }

  .hero-title {
    font-size: 56px;
    line-height: 0.9;
  }

  .hero-right {
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  .card {
    min-height: 220px;
  }
}