/* ───────────────────────────────────────────────
   Bukhara Heritage Hotels — prototype stylesheet
   Palette: ivory paper, lapis blue, turquoise
   majolica, gold thread, terracotta clay
   ─────────────────────────────────────────────── */

:root {
  --paper:      #F7F2E8;
  --paper-2:    #EFE7D6;
  --sand:       #E3D7BE;
  --ink:        #2C2A24;
  --ink-soft:   #5C564A;
  --lapis:      #1E3F60;
  --lapis-deep: #16293E;
  --turquoise:  #2F8B8B;
  --gold:       #BB9239;
  --gold-soft:  #D9C28C;
  --terracotta: #B05E3A;
  --terracotta-dark: #94492A;
  --white:      #FFFDF8;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Manrope', -apple-system, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 14px;
  --shadow: 0 18px 50px -18px rgba(44, 42, 36, .28);
  --arch: 999px 999px 14px 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

::selection { background: var(--gold-soft); }

/* ── Typography ── */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: '✦'; font-size: 13px; }

.section-title {
  font-size: clamp(34px, 4.6vw, 52px);
  margin: 14px 0 22px;
  max-width: 21ch;
}

.lead { font-size: 18.5px; color: var(--ink-soft); max-width: 62ch; }

/* ── Ornament divider ── */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--gold);
  margin: 0 auto;
  padding: 8px 0;
}
.divider::before, .divider::after {
  content: '';
  height: 1px;
  width: min(160px, 24vw);
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.divider::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 10px 26px -10px rgba(176, 94, 58, .55);
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); }
.btn-outline {
  border: 1.5px solid currentColor;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { border: 1.5px solid rgba(255,253,248,.65); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--ink); }
.btn-whatsapp {
  background: #1FA855;
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(31,168,85,.5);
}
.btn-whatsapp:hover { background: #178746; transform: translateY(-2px); }

/* ── Header ── */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: all .35s ease;
  color: var(--white);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-header.scrolled {
  background: rgba(247, 242, 232, .92);
  backdrop-filter: blur(12px);
  color: var(--ink);
  padding: 10px 0;
  box-shadow: 0 1px 0 rgba(44,42,36,.08);
}

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 18px;
  flex: none;
}
.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .02em;
}
.brand-sub {
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  opacity: .75;
}

.main-nav { display: flex; gap: 30px; font-size: 13.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.main-nav a { opacity: .85; transition: opacity .2s; position: relative; }
.main-nav a:hover { opacity: 1; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1.5px; background: var(--gold); transition: width .25s;
}
.main-nav a:hover::after { width: 100%; }

.header-cta { padding: 11px 22px; font-size: 12px; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-current {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  padding: 9px 14px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  opacity: .9;
}
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  min-width: 150px;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu button {
  display: block; width: 100%; text-align: left;
  padding: 9px 14px; border-radius: 8px; font-size: 14.5px;
}
.lang-menu button:hover { background: var(--paper-2); }
.lang-menu button.active { color: var(--terracotta); font-weight: 700; }

.nav-toggle { display: none; width: 42px; height: 42px; position: relative; z-index: 60; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  position: absolute; left: 10px; top: 20px;
  transition: all .25s;
}
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after  { left: 0; top: 7px; }

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(22,41,62,.42) 0%, rgba(22,41,62,.06) 38%, rgba(24,22,16,.78) 100%);
}
.hero-inner { padding-bottom: 9vh; width: 100%; }
.hero .eyebrow {
  color: var(--gold-soft);
  border: 0.5px solid var(--gold-soft);
  border-radius: 999px;
  padding: 10px 24px;
  background: rgba(24, 22, 16, .10);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(42px, 6.4vw, 84px);
  font-weight: 500;
  max-width: 16ch;
  margin: 18px 0 20px;
  text-wrap: balance;
}
.hero p { font-size: clamp(17px, 1.6vw, 20px); max-width: 56ch; opacity: .92; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 26px; right: 40px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  writing-mode: vertical-rl; opacity: .7;
}

/* ── Sections ── */

section { padding: 104px 0; }
section.tight { padding: 72px 0; }

.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 56px; }
.section-head .section-title { margin-left: auto; margin-right: auto; }
.section-head .lead { margin: 0 auto; }

/* Intro */
.intro { background: var(--paper); text-align: center; }
.intro .section-title { margin-left: auto; margin-right: auto; }
.intro .lead { margin: 0 auto 0; }

/* ── Hotel cards ── */

.hotels { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.hotel-card { text-align: center; }
.hotel-card .arch-frame { margin-bottom: 30px; }

.arch-frame {
  display: block;
  position: relative;
  border-radius: var(--arch);
  padding: 12px;
  border: 1px solid var(--gold-soft);
  transition: transform .35s ease;
}
.arch-frame:hover { transform: translateY(-6px); }
.arch-frame img {
  width: 100%;
  aspect-ratio: 3 / 3.6;
  object-fit: cover;
  border-radius: var(--arch);
  filter: saturate(1.04);
}
.arch-frame::after {
  content: '✦';
  position: absolute; top: -32px; left: 50%; transform: translateX(-50%);
  color: var(--gold);
  font-size: 15px;
}

.hotel-card h3 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 8px; }
.hotel-card .tagline { color: var(--ink-soft); font-size: 17px; margin-bottom: 10px; }
.hotel-card .meta {
  display: flex; justify-content: center; gap: 10px; align-items: center;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--turquoise); font-weight: 700;
  margin-bottom: 26px;
}
.hotel-card .meta span::after { content: ' ·'; color: var(--sand); }
.hotel-card .meta span:last-child::after { content: ''; }

/* ── Bukhara / POI ── */

.bukhara { background: var(--lapis-deep); color: #E9E2D2; position: relative; overflow: hidden; }
.bukhara::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(217,194,140,.16) 1.4px, transparent 0);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
  pointer-events: none;
}
.bukhara .section-title { color: var(--white); }
.bukhara .lead { color: rgba(233,226,210,.78); }

.poi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 64px;
  position: relative;
}
.poi {
  border: 1px solid rgba(217,194,140,.28);
  border-radius: var(--arch);
  padding: 44px 30px 38px;
  text-align: center;
  background: rgba(255,253,248,.03);
  transition: all .3s ease;
}
.poi:hover { background: rgba(255,253,248,.07); border-color: rgba(217,194,140,.55); transform: translateY(-4px); }
.poi .glyph { font-size: 26px; color: var(--gold-soft); margin-bottom: 18px; }
.poi h3 { color: var(--white); font-size: 25px; margin-bottom: 10px; }
.poi p { font-size: 15.5px; color: rgba(233,226,210,.72); }

/* ── Booking ── */

.booking { background: var(--paper); }
.booking-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(32px, 5vw, 60px);
}
.booking-card .section-head { margin-bottom: 36px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 20px;
  margin-bottom: 26px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field select {
  font: inherit;
  padding: 14px 16px;
  border: 1.5px solid var(--sand);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s;
  width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); }
/* iOS Safari: поля даты игнорируют ширину, пока не отключён системный вид */
.field input[type='date'] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  min-width: 0;
  min-height: 54px;
}

.booking-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.form-hint { font-size: 13.5px; color: var(--ink-soft); }

.or-row {
  display: flex; align-items: center; gap: 16px;
  margin: 30px 0 22px;
  color: var(--ink-soft); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.or-row::before, .or-row::after { content: ''; flex: 1; height: 1px; background: var(--sand); }

.contact-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.contact-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px;
  border: 1.5px solid var(--sand);
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  transition: all .2s;
  background: var(--paper);
}
.contact-chip:hover { border-color: var(--gold); transform: translateY(-2px); }

/* ── Footer ── */

.site-footer {
  background: var(--lapis-deep);
  color: rgba(233,226,210,.75);
  padding: 64px 0 36px;
  text-align: center;
  font-size: 14px;
}
.site-footer .brand { justify-content: center; margin: 0 0 14px; color: var(--white); }
.site-footer .divider { margin-bottom: 22px; }
.footer-links { display: flex; justify-content: center; gap: 26px; margin: 18px 0 26px; flex-wrap: wrap; }
.footer-links a { opacity: .8; transition: opacity .2s; }
.footer-links a:hover { opacity: 1; }
.footer-note { font-size: 12.5px; opacity: .5; }

/* ── Hotel page ── */

.hero-hotel { min-height: 78svh; }
.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 18px;
  border: 0.5px solid var(--gold-soft);
  border-radius: 999px;
  padding: 10px 24px;
  background: rgba(24, 22, 16, .10);
  transition: background .25s ease;
}
.breadcrumb:hover { background: rgba(24, 22, 16, .35); }

.about-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.about-split .text p { color: var(--ink-soft); margin-bottom: 1em; font-size: 17px; }

/* Gallery strip */
.gallery { background: var(--paper-2); }
.gallery-wrap { position: relative; }
.gallery-nav {
  /* центр фото: верхний отступ ленты 6px, нижний 22px → центр на 8px выше центра блока */
  position: absolute; top: calc(50% - 8px); transform: translateY(-50%);
  z-index: 2;
  width: 56px; height: 72px;
  display: grid; place-items: center;
  font-size: 64px; font-weight: 100; line-height: 1;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
  opacity: .6;
  transition: opacity .2s;
}
.gallery-nav:hover { opacity: .95; }
.gallery-nav.prev { left: 22px; }
.gallery-nav.next { right: 22px; }
.gallery-nav > * { pointer-events: none; }
.gallery-strip {
  display: flex; gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 28px 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-soft) transparent;
}
.gallery-strip img {
  height: clamp(280px, 38vw, 430px);
  border-radius: var(--radius);
  scroll-snap-align: center;
  cursor: zoom-in;
  transition: transform .3s;
  flex: none;
}
.gallery-strip img:hover { transform: scale(1.015); }

/* Rooms */
.room-list { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 84px); }
.room-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 4.5vw, 70px);
  align-items: center;
}
.room-card:nth-child(even) .room-media { order: 2; }

.room-media { position: relative; }
.room-media img {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.slider-nav {
  position: absolute; inset: auto 14px 14px auto;
  display: flex; gap: 8px;
}
.slider-nav button {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,253,248,.92);
  color: var(--ink);
  display: grid; place-items: center;
  font-size: 17px;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  transition: all .2s;
}
.slider-nav button:hover { background: var(--white); transform: translateY(-2px); }
.slider-count {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(24,22,16,.55);
  color: var(--white);
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em;
  padding: 5px 13px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.room-info h3 { font-size: clamp(27px, 2.8vw, 36px); margin: 10px 0 6px; }
.room-stats {
  display: flex; gap: 10px; align-items: center;
  color: var(--turquoise); font-weight: 700;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.room-info .desc { color: var(--ink-soft); margin-bottom: 18px; }
.room-beds { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; }
.room-beds b { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  font-size: 13px;
  padding: 7px 14px;
  background: var(--paper-2);
  border: 1px solid var(--sand);
  border-radius: 999px;
  color: var(--ink-soft);
}

/* Info band (services / breakfast / location) */
.info-band { background: var(--paper-2); }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 18px;
  padding: 36px 32px;
}
.info-card .glyph { font-size: 24px; color: var(--gold); margin-bottom: 14px; }
.info-card h3 { font-size: 24px; margin-bottom: 12px; }
.info-card p { font-size: 15.5px; color: var(--ink-soft); }
.info-card .btn { margin-top: 18px; padding: 11px 22px; font-size: 12px; }

/* Cross-link to second hotel */
.cross-hotel { background: var(--paper); text-align: center; }
.cross-hotel .arch-frame { max-width: 420px; margin: 0 auto 28px; }

/* ── Lightbox ── */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 18, 13, .93);
  display: none;
  place-items: center;
  padding: 4vmin;
}
.lightbox.open { display: grid; }
.lightbox img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
}
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  color: #fff; font-size: 34px; opacity: .8;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px;
  display: grid; place-items: center;
  color: #fff; font-size: 30px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.12); }
.lightbox-prev { left: 26px; }
.lightbox-next { right: 26px; }

/* ── Reveal animation ── */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ── */

@media (max-width: 1020px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }

  .site-header.menu-open { color: var(--ink); }
  .site-header.menu-open .main-nav {
    display: flex; flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100vh; height: 100svh;
    background: var(--paper);
    padding: 110px 36px 40px;
    gap: 26px;
    font-size: 19px;
    z-index: 55;
    overflow-y: auto;
  }
  .nav-toggle { z-index: 60; }
  .site-header.menu-open .nav-toggle span { background: transparent; }
  .site-header.menu-open .nav-toggle span::before { transform: rotate(45deg); top: 0; }
  .site-header.menu-open .nav-toggle span::after  { transform: rotate(-45deg); top: 0; }
}

@media (max-width: 860px) {
  section { padding: 72px 0; }
  .hotel-grid { grid-template-columns: 1fr; gap: 56px; }
  .poi-grid { grid-template-columns: 1fr; gap: 18px; }
  .poi { border-radius: 20px; padding: 32px 26px; }
  .about-split { grid-template-columns: 1fr; }
  .room-card { grid-template-columns: 1fr; }
  .room-card:nth-child(even) .room-media { order: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
  .brand-name { font-size: 18px; }
}

@media (max-width: 600px) {
  .site-header .container { gap: 14px; }
  .brand { gap: 9px; }
  .brand-mark { width: 34px; height: 34px; font-size: 14px; }
  .brand-name { font-size: 15px; white-space: nowrap; }
  .brand-sub { display: none; }
  .lang-current { padding: 7px 11px; font-size: 12px; }
}
