:root {
  --bg: #f7f1e8;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #10253b;
  --muted: #5f6f7f;
  --line: rgba(16, 37, 59, 0.12);
  --gold-1: #f3d8a6;
  --gold-2: #c99a4e;
  --accent: #1f6f68;
  --hero-overlay: linear-gradient(104deg, rgba(7, 20, 31, 0.86) 0%, rgba(7, 20, 31, 0.62) 38%, rgba(7, 20, 31, 0.3) 62%, rgba(7, 20, 31, 0.58) 100%);
  --shadow: 0 24px 80px rgba(16, 24, 40, 0.08);
  --shadow-strong: 0 30px 70px rgba(9, 23, 38, 0.18);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-pill: 999px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

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

.page-shell {
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 0;
}

.site-header--overlay {
  position: fixed;
  inset: 0 0 auto;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 251, 245, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 60px rgba(10, 28, 41, 0.08);
  padding: 11px 16px;
}

.site-header--overlay .header-shell {
  border-color: rgba(199, 180, 153, 0.55);
  background: rgba(250, 246, 239, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(18, 32, 52, 0.16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  box-shadow: 0 14px 30px rgba(201, 154, 78, 0.25);
  font-weight: 800;
}

.brand-title {
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 700;
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-header--overlay .brand-title,
.site-header--overlay .brand-subtitle,
.site-header--overlay .site-nav a,
.site-header--overlay .contact-chip {
  color: var(--text);
}

.site-header--overlay .brand-subtitle,
.site-header--overlay .site-nav a {
  opacity: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-chip,
.button,
.messenger-link,
.phone-link,
.legal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  transition: 0.2s ease;
}

.contact-chip {
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  padding: 0 16px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.site-header--overlay .contact-chip {
  border-color: rgba(16, 37, 59, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.button {
  min-height: 48px;
  border: 0;
  cursor: pointer;
  padding: 0 22px;
  font-weight: 700;
}

.button-primary {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: var(--text);
  box-shadow: 0 16px 40px rgba(201, 154, 78, 0.25);
}

.button-secondary {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
}

.button-dark {
  background: var(--text);
  color: #fff;
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  align-items: center;
  padding: 120px 0 120px;
}

.hero-copy {
  max-width: 760px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero h1,
.page-hero h1 {
  margin: 24px 0 0;
  font-size: clamp(3.2rem, 9vw, 7.1rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-actions,
.quick-actions,
.contact-actions,
.footer-links,
.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.quick-booking {
  position: relative;
  z-index: 2;
  margin-top: -92px;
  padding-bottom: 16px;
}

.quick-booking-card,
.card,
.legal-card,
.booking-card,
.room-card,
.notice,
.contact-panel,
.gallery-card,
.location-card,
.footer-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.quick-booking-card {
  border-radius: var(--radius-xl);
  padding: 18px;
  backdrop-filter: blur(14px);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.field,
.select-wrap {
  display: block;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(210, 199, 182, 0.4);
  padding: 14px 16px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.select-wrap select,
.field textarea {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}

.section {
  padding: 88px 0;
}

.section[id] {
  scroll-margin-top: 118px;
}

.section-compact {
  padding: 56px 0;
}

.section-header {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 14px 0 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-text {
  margin: 18px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.9;
}

.benefits-grid,
.rooms-grid,
.gallery-grid,
.legal-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

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

.card,
.room-card,
.gallery-card,
.location-card,
.footer-card,
.notice,
.contact-panel,
.booking-card,
.legal-card {
  border-radius: var(--radius-lg);
}

.card,
.notice,
.contact-panel,
.legal-card,
.footer-card {
  padding: 28px;
}

.card h3,
.room-card h3,
.gallery-card h3,
.legal-card h1,
.legal-card h2,
.notice h3,
.footer-card h3,
.booking-card h2 {
  margin: 0;
}

.card p,
.room-card p,
.legal-card p,
.legal-card li,
.notice p,
.footer-card p,
.footer-card li,
.booking-card p {
  color: var(--muted);
}

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

.room-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.room-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.media-stack {
  position: relative;
  overflow: hidden;
  background: #ede5d7;
}

.media-stack::before {
  content: "";
  display: block;
  padding-top: 60%;
}

.media-stack--tall::before {
  padding-top: 96%;
}

.media-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1.01);
  transition: opacity 1.1s ease, transform 6.2s ease;
  will-change: opacity, transform;
}

.media-stack img.is-entering {
  opacity: 0;
  transform: scale(1.07);
}

.media-stack img.is-visible {
  opacity: 1;
  transform: scale(1.01);
}

.room-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.room-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.95rem;
}

.room-price {
  font-weight: 700;
  color: var(--text);
}

.room-actions {
  margin-top: 18px;
}

.room-actions .button {
  width: 100%;
}

.room-tag {
  display: inline-flex;
  margin-top: 8px;
  align-items: center;
  border-radius: var(--radius-pill);
  background: rgba(201, 154, 78, 0.14);
  padding: 7px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.gallery-stack {
  display: grid;
  gap: 18px;
}

.gallery-card {
  overflow: hidden;
}

.location-grid,
.booking-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
}

.location-map-frame {
  position: relative;
  overflow: hidden;
}

.location-map iframe {
  width: 100%;
  min-height: 460px;
  border: 0;
}

.location-map-mask {
  position: absolute;
  inset: auto 0 0;
  height: 52px;
  background: linear-gradient(180deg, rgba(247, 241, 232, 0) 0%, rgba(247, 241, 232, 0.98) 28%, rgba(247, 241, 232, 1) 100%);
  pointer-events: none;
  z-index: 2;
}

.location-map-link {
  padding: 12px 18px 18px;
  font-size: 0.95rem;
  font-weight: 700;
}

.location-map-link a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.location-list,
.legal-list,
.footer-list {
  margin: 0;
  padding-left: 18px;
}

.page-main {
  padding: 108px 0 64px;
}

.page-hero {
  padding: 32px 0 14px;
}

.page-hero h1 {
  color: var(--text);
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.page-hero p {
  color: var(--muted);
}

.booking-layout {
  align-items: start;
}

.booking-card {
  padding: 32px;
}

.booking-card + .booking-card {
  margin-top: 18px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid--single {
  grid-template-columns: 1fr;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px 16px;
}

.checkbox input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

.checkbox small,
.form-note,
.notice small {
  display: block;
  color: var(--muted);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.action-grid .button,
.action-grid .messenger-link,
.action-grid .phone-link {
  width: 100%;
  min-height: 52px;
}

.messenger-link,
.phone-link,
.legal-link {
  padding: 0 18px;
  font-weight: 700;
}

.messenger-link,
.phone-link {
  min-height: 52px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.messenger-link.is-primary,
.phone-link.is-primary {
  background: var(--text);
  color: #fff;
}

.summary-box {
  margin-top: 18px;
  border-radius: var(--radius-md);
  background: rgba(16, 37, 59, 0.04);
  padding: 16px;
}

.summary-box pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

.status {
  min-height: 24px;
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--accent);
}

.status.is-error {
  color: #9d2c24;
}

.notice {
  background: linear-gradient(135deg, #10253b 0%, #173d54 100%);
  color: #fff;
}

.notice p,
.notice small {
  color: rgba(255, 255, 255, 0.82);
}

.notice-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: end;
}

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

.legal-card {
  padding: 34px;
}

.legal-card h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.legal-card h2 {
  margin-top: 28px;
  font-size: 1.2rem;
  color: var(--text);
}

.legal-card p,
.legal-card li {
  line-height: 1.8;
}

.legal-card strong {
  color: var(--text);
}

.footer {
  padding: 28px 0 44px;
}

.footer-card {
  background: linear-gradient(180deg, rgba(241, 228, 209, 0.4), rgba(255, 255, 255, 0.94));
}

.footer-grid {
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-text,
.footer-list li,
.footer-contacts a {
  color: var(--muted);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links {
  margin-top: 18px;
}

.footer-links a,
.page-links a,
.checkbox a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mobile-nav-toggle {
  display: none;
}

.mobile-nav {
  display: none;
}

@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }

  .quick-grid,
  .benefits-grid,
  .rooms-grid,
  .gallery-grid,
  .location-grid,
  .booking-layout,
  .notice-grid,
  .footer-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .location-map iframe {
    min-height: 360px;
  }
}

@media (max-width: 820px) {
  .header-shell {
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-content {
    padding-top: 148px;
    padding-bottom: 120px;
  }

  .quick-booking {
    margin-top: -70px;
  }

  .form-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-page {
    padding-bottom: 72px;
  }

  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .site-header,
  .site-header--overlay {
    padding-top: 10px;
  }

  .header-shell {
    flex-wrap: nowrap;
    gap: 8px;
    border-radius: 22px;
    padding: 9px 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-title {
    font-size: 1.2rem;
  }

  .brand-subtitle {
    display: none;
  }

  .header-actions {
    width: auto;
    margin-left: auto;
    gap: 8px;
  }

  .site-header .contact-chip {
    display: none;
  }

  .site-header .button {
    min-height: 40px;
    width: auto;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .messenger-link,
  .phone-link {
    min-height: 46px;
    width: 100%;
  }

  .header-actions > * {
    flex: 0 0 auto;
  }

  .hero-content {
    padding-top: 156px;
    padding-bottom: 112px;
  }

  .hero p,
  .page-hero p,
  .section-text {
    font-size: 1rem;
    line-height: 1.8;
  }

  .section,
  .page-main {
    padding-top: 64px;
    padding-bottom: 48px;
  }

  .quick-booking-card,
  .card,
  .notice,
  .contact-panel,
  .booking-card,
  .legal-card,
  .footer-card {
    padding: 20px;
  }

  .room-body {
    padding: 18px;
  }

  .room-card img,
  .gallery-card img {
    min-height: 220px;
    height: 220px;
  }

  .media-stack::before {
    padding-top: 68%;
  }

  .media-stack--tall::before {
    padding-top: 68%;
  }

  .section[id] {
    scroll-margin-top: 78px;
  }

  .mobile-nav {
    position: fixed;
    inset: auto 12px 10px;
    z-index: 50;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 8px;
    border: 1px solid rgba(199, 180, 153, 0.55);
    border-radius: 22px;
    background: rgba(250, 246, 239, 0.97);
    box-shadow: 0 14px 34px rgba(18, 32, 52, 0.2);
    padding: 8px;
    backdrop-filter: blur(18px);
  }

  .mobile-nav .phone-link,
  .mobile-nav .button {
    min-height: 44px;
    width: 100%;
  }

  .hero-actions,
  .quick-actions,
  .contact-actions,
  .footer-links,
  .page-links {
    flex-direction: column;
  }

  .hero-actions > *,
  .quick-actions > *,
  .contact-actions > *,
  .footer-links > *,
  .page-links > * {
    width: 100%;
  }

  .hero-actions .button-secondary {
    display: none;
  }
}
