:root {
  --bg: #070605;
  --bg-soft: #120e0a;
  --text: #f2e7d8;
  --muted: rgba(242, 231, 216, 0.66);
  --line: rgba(255, 197, 130, 0.12);
  --accent: #f1bb7c;
  --accent-strong: #ffdbb0;
  --shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  font-weight: 200;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(184, 122, 58, 0.2), transparent 36%),
    radial-gradient(circle at 80% 20%, rgba(255, 176, 92, 0.12), transparent 24%),
    linear-gradient(180deg, #050404 0%, #0a0807 44%, #050404 100%);
  letter-spacing: 0.02em;
}

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

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

.page-shell {
  position: relative;
  overflow: clip;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 213, 165, 0.04), transparent 24%),
    radial-gradient(circle at 50% 0%, rgba(255, 184, 103, 0.08), transparent 35%);
}

.hero,
main,
.footer {
  width: min(1080px, calc(100vw - 88px));
  margin: 0 auto;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(18px, 3vw, 34px);
  min-height: 74px;
  padding: 10px max(28px, calc((100vw - 1080px) / 2));
  margin-top: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition:
    transform 320ms ease,
    background-color 320ms ease,
    border-color 320ms ease,
    box-shadow 320ms ease,
    min-height 320ms ease,
    padding 320ms ease;
}

.brand {
  position: relative;
  display: block;
  width: 376px;
  height: 104px;
  overflow: hidden;
}

.brand::before {
  content: none;
}

.brand img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 48%;
  filter: drop-shadow(0 0 24px rgba(241, 187, 124, 0.2));
  transition:
    height 320ms ease,
    filter 320ms ease,
    transform 320ms ease;
}

.nav-links {
  display: flex;
  gap: 12px;
  margin-left: auto;
  padding-right: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
  transition:
    color 240ms ease,
    opacity 240ms ease,
    background-color 320ms ease,
    box-shadow 320ms ease,
    transform 320ms ease;
}

.nav-links a:hover {
  color: var(--accent-strong);
}

.hero {
  padding: 96px 0 78px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(420px, 1fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 140px);
}

.hero-copy {
  max-width: 430px;
  margin: 0;
  padding: 18px 0;
  text-align: left;
  justify-self: start;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.lead,
p,
a,
span {
  font-weight: 200;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.lead {
  margin: 18px 0 0;
  max-width: 400px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-slider {
  position: relative;
  min-height: 420px;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: -30px auto -30px -120px;
  width: min(460px, 92vw);
  background:
    linear-gradient(90deg, rgba(255, 192, 121, 0.14), rgba(255, 192, 121, 0.03) 62%, transparent 100%),
    radial-gradient(circle at 18% 50%, rgba(255, 211, 166, 0.12), transparent 58%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity 700ms ease,
    transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition:
    transform 260ms ease,
    background-color 260ms ease,
    color 260ms ease,
    box-shadow 260ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #17110b;
  background: linear-gradient(135deg, #f0bf87, #ffe1bc);
  box-shadow: 0 20px 40px rgba(209, 146, 85, 0.18);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.hero-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  padding: 48px 0 40px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.02);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.28) 100%);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 900ms ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card-large {
  grid-row: span 2;
  height: 560px;
}

.gallery-card-tall {
  height: 320px;
  transform: translateY(32px);
}

.gallery-card-wide {
  height: 210px;
  margin-left: 42px;
}

.gallery-card-small {
  height: 220px;
  margin-top: -88px;
}

section {
  padding: 56px 0;
}

.section-heading {
  max-width: 720px;
}

h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 22px;
}

.story-layout p,
.reserve-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.94rem;
}

.immersive-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 18px;
  margin-top: 32px;
}

.immersive-strip img {
  height: 460px;
  width: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.reserve {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.reserve-copy {
  max-width: 700px;
}

.footer {
  display: block;
  padding: 40px 0 52px;
  color: rgba(242, 231, 216, 0.58);
  font-size: 0.92rem;
}

.footer-brand {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.footer img {
  width: 280px;
  height: 120px;
  object-fit: cover;
  object-position: 50% 48%;
  opacity: 0.92;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 18px;
}

.footer-links a {
  color: rgba(242, 231, 216, 0.74);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

.topbar.is-scrolled {
  min-height: 62px;
  padding-top: 7px;
  padding-bottom: 7px;
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.92), rgba(18, 14, 10, 0.84) 52%, rgba(7, 6, 5, 0.92)),
    rgba(7, 6, 5, 0.88);
  border-color: rgba(255, 197, 130, 0.16);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.36),
    inset 0 -1px 0 rgba(255, 218, 176, 0.06);
  backdrop-filter: blur(20px) saturate(135%);
  transform: translateY(0);
}

.topbar.is-scrolled .brand::before {
  content: none;
}

.topbar.is-scrolled .brand img {
  filter: drop-shadow(0 0 18px rgba(241, 187, 124, 0.24));
}

.topbar.is-scrolled .nav-links {
  padding-right: 0;
}

.topbar.is-scrolled .nav-links a {
  background: transparent;
  box-shadow: none;
  color: rgba(242, 231, 216, 0.86);
  transform: translateY(0);
}

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
}

.telegram-float {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 200;
  cursor: pointer;
  color: #140d08;
  background: linear-gradient(135deg, #f0bf87, #ffdfb9);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease;
}

.telegram-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.32);
}

.telegram-float__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(20, 13, 8, 0.04);
  flex: 0 0 auto;
}

.telegram-float__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.telegram-float__label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: min(290px, calc(100vw - 28px));
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(34, 21, 13, 0.96), rgba(18, 12, 8, 0.98)),
    rgba(18, 12, 8, 0.96);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.chat-panel[hidden] {
  display: none;
}

.chat-panel__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.chat-panel__eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chat-panel__header h3 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}

.chat-panel__close {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.chat-panel__messages {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.chat-message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 0.76rem;
  line-height: 1.55;
}

.chat-message p {
  margin: 0;
}

.chat-message--bot {
  justify-self: start;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.chat-message--user {
  justify-self: end;
  color: #160f0a;
  background: linear-gradient(135deg, #f0bf87, #ffe1bc);
}

.chat-panel__form {
  display: grid;
  gap: 10px;
}

.chat-panel__form .button {
  width: 100%;
  min-height: 40px;
}

.chat-panel__form textarea {
  min-height: 74px;
  padding: 12px 14px;
  resize: vertical;
}

.chat-panel__status {
  margin: 0;
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
}

.subpage-body {
  margin: 0;
  min-height: 100vh;
  padding: 0 20px 40px;
  font-family: "Sora", sans-serif;
  font-weight: 200;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(184, 122, 58, 0.18), transparent 34%),
    linear-gradient(180deg, #050404 0%, #0a0807 46%, #050404 100%);
}

.subpage {
  width: min(720px, 100%);
  display: grid;
  gap: 18px;
  margin: 0 auto;
  padding: 56px 0 72px;
}

.subpage-logo {
  width: 180px;
  filter: drop-shadow(0 0 24px rgba(241, 187, 124, 0.18));
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: rgba(242, 231, 216, 0.86);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 16px 18px;
  font: inherit;
  font-weight: 200;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

.field select {
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 160px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 1px rgba(241, 187, 124, 0.3);
}

.contact-form__actions {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.contact-form__hint,
.contact-form__status {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.contact-form__status {
  min-height: 1.4em;
}

.reveal {
  --reveal-y: 32px;
  --parallax-y: 0px;
  opacity: 0;
  transform: translate3d(0, calc(var(--reveal-y) + var(--parallax-y)), 0);
  transition:
    opacity 700ms ease,
    transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  --reveal-y: 0px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .story-layout,
  .immersive-strip,
  .reserve {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 26px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-slider {
    min-height: 320px;
  }

  .hero-gallery {
    padding-top: 8px;
  }

  .gallery-card-large,
  .gallery-card-tall,
  .gallery-card-wide,
  .gallery-card-small {
    height: 320px;
    margin: 0;
    transform: none;
  }

  .gallery-card-large {
    grid-row: auto;
  }

  .reserve {
    align-items: start;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero,
  main,
  .footer {
    width: min(100vw - 28px, 1080px);
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 8px 14px;
  }

  .brand {
    width: 210px;
    height: 62px;
  }

  .brand img {
    height: 100%;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
    padding-right: 0;
    font-size: 0.68rem;
  }

  .nav-links a {
    padding: 9px 9px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.3rem, 11vw, 3.5rem);
  }

  .hero-copy {
    text-align: left;
  }

  .hero-slider {
    min-height: 360px;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
  }

  .immersive-strip img {
    height: 300px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .topbar.is-scrolled .brand img {
    height: 100%;
  }

  .telegram-float {
    min-height: 38px;
    padding: 0 11px 0 9px;
    gap: 7px;
  }

  .telegram-float__label {
    font-size: 0.56rem;
  }

  .chat-widget {
    right: 14px;
    bottom: 16px;
  }

  .chat-panel {
    right: 0;
    bottom: 52px;
    width: min(100vw - 20px, 290px);
    padding: 13px;
  }
}
