/* ════════════════════════════════════════════════
   Dia Maria · Mini App
   Тёплый чёрный фон, шампань, золото — ничего лишнего.
   ════════════════════════════════════════════════ */

:root {
  --bg:        #0a0908;
  --surface:   #15110e;
  --surface-2: #1d1814;
  --line:      #2a2520;
  --line-soft: #1a1612;
  --gold:      #c9a961;
  --gold-soft: #a48948;
  --text:      #ebe4d2;
  --muted:     #8a8074;
  --muted-2:   #5e574e;
  --danger:    #b95e5e;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --pad: 22px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body {
  min-height: 100vh;
  padding-bottom: 80px;
}

a { color: var(--gold); text-decoration: none; }

/* ─── topbar ─── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center;
  padding: 14px var(--pad) 12px;
  background: linear-gradient(180deg, rgba(10,9,8,0.96) 0%, rgba(10,9,8,0.88) 80%, rgba(10,9,8,0) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand { text-align: center; line-height: 1.1; }
.brand-mark {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.32em;
  color: var(--text);
  font-weight: 500;
}
.brand-sub {
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.18em;
  margin-top: 2px;
}

/* ─── screens ─── */
.screen {
  padding: 8px var(--pad) 60px;
  animation: fade-in 380ms ease-out;
}
.screen.hidden { display: none; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.screen-head { padding: 24px 0 18px; }
.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 38px;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
  color: var(--text);
}
.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 22px;
  line-height: 1.55;
}
.rule {
  height: 1px; width: 64px;
  background: var(--gold-soft);
  opacity: 0.55;
  margin-bottom: 6px;
}

/* ═══ CITIES ═══ */
.cities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.city-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 200ms, background 200ms, transform 200ms;
}
.city-card:active {
  transform: scale(0.98);
  background: var(--surface-2);
  border-color: var(--gold-soft);
}
.city-card .city-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.city-card .city-count {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ═══ CATALOG ═══ */
.catalog-list {
  display: flex; flex-direction: column;
  gap: 18px; margin-top: 18px;
}
.profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 200ms, transform 200ms;
}
.profile-card:active {
  transform: scale(0.99);
  border-color: var(--gold-soft);
}
.profile-card .pc-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--surface-2) center/cover no-repeat;
}
.profile-card .pc-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,9,8,0.85) 100%);
}
.profile-card .pc-badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px; z-index: 2;
}
.profile-card .pc-meta {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  z-index: 2;
}
.pc-name {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.pc-line {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.pc-line .dot { color: var(--muted-2); }
.pc-foot {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.pc-foot .rate {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.pc-foot .rate em { font-style: normal; color: var(--muted); font-size: 11px; }

/* ═══ CATALOG FILTERS ═══ */
.filter-bar {
  padding: 6px var(--pad) 8px;
  margin-bottom: 4px;
}
.filter-row {
  margin-bottom: 14px;
}
.filter-label {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.chip-strip {
  display: flex; gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chip-strip::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  font-size: 11px;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: border-color 200ms, color 200ms, background 200ms;
}
.chip:active { opacity: 0.7; }
.chip.sel {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,169,97,0.06);
}

/* badges */
.badge {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  background: rgba(10,9,8,0.55);
  backdrop-filter: blur(4px);
  border-radius: 1px;
}
.badge.solid {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.badge.muted {
  border-color: var(--line);
  color: var(--muted);
}

/* rating */
.rating {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em;
}
.rating .star { color: var(--gold); font-size: 11px; }

/* ═══ PROFILE ═══ */
#screen-profile { padding: 0 0 60px; }
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
}
.hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,0.0) 30%, rgba(10,9,8,0.55) 70%, rgba(10,9,8,0.96) 100%);
}
.hero-meta {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 22px;
  z-index: 2;
}
.badges { display: flex; gap: 6px; margin-bottom: 12px; }
.hero-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0 0 8px;
}
.hero-line {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-line .dot { color: var(--muted-2); margin: 0 6px; }

.profile-body { padding: 28px var(--pad) 0; }

.info-row {
  display: flex; gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.info-row .cell {
  flex: 1;
  padding: 14px 4px;
  text-align: center;
  min-width: 0;
}
.info-row .cell + .cell { border-left: 1px solid var(--line); }
.info-row .cell .k {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.info-row .cell .v {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text);
  white-space: nowrap;
}

.rate-band {
  text-align: center;
  padding: 22px 0 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

/* ── price dropdown ── */
.price-dd {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}
.pdd-toggle {
  background: var(--gold);
  color: var(--bg);
  border: none;
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 4px;
  min-width: 220px;
  justify-content: space-between;
  transition: opacity 200ms;
}
.pdd-toggle:active { opacity: 0.85; }
.pdd-arrow {
  font-size: 11px;
  transition: transform 200ms;
}
.price-dd.open .pdd-arrow { transform: rotate(180deg); }

.pdd-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  z-index: 50;
  box-shadow: 0 12px 32px rgba(0,0,0,0.55);
  animation: pdd-in 180ms ease-out;
}
.pdd-menu.hidden { display: none; }
@keyframes pdd-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.pdd-opt {
  padding: 14px 18px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text);
  cursor: pointer;
  border-top: 1px solid var(--line-soft);
  text-align: left;
  transition: background 180ms, color 180ms;
}
.pdd-opt:first-child { border-top: 0; }
.pdd-opt:active,
.pdd-opt.sel {
  background: rgba(201,169,97,0.08);
  color: var(--gold);
}

.rate-amount {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.section-title {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 28px 0 14px;
}

.profile-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.gallery .g-item {
  aspect-ratio: 3 / 4;
  background: var(--surface-2) center/cover no-repeat;
  cursor: pointer;
  border: 1px solid var(--line-soft);
  transition: border-color 200ms;
}
.gallery .g-item:active { border-color: var(--gold-soft); }

.schedule {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}
.schedule .day {
  aspect-ratio: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.schedule .day.on {
  border-color: var(--gold-soft);
  color: var(--gold);
  background: rgba(201,169,97,0.05);
}

.footnote {
  margin: 32px 0 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══ BOOKING ═══ */
.booking-head {
  padding: 28px var(--pad) 18px;
}
.booking-head .eyebrow { margin-bottom: 12px; }
.booking-head .b-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 38px;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0 0 10px;
  color: var(--text);
}
.booking-head .b-sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.booking-head .rule { margin-top: 0; }

.form-section {
  padding: 0 var(--pad);
  margin-bottom: 20px;
}
.form-section .section-title { margin: 18px 0 12px; }

.day-strip {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.day-strip::-webkit-scrollbar { display: none; }

.day-cell {
  flex: 0 0 64px;
  height: 84px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 200ms, background 200ms, color 200ms;
  scroll-snap-align: start;
  border-radius: var(--radius);
}
.day-cell .dc-wd {
  font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 4px;
}
.day-cell .dc-d {
  font-family: var(--serif);
  font-size: 24px; line-height: 1;
}
.day-cell .dc-mo {
  font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted-2);
  margin-top: 4px;
}
.day-cell.sel {
  border-color: var(--gold);
  background: rgba(201,169,97,0.06);
}
.day-cell.sel .dc-wd,
.day-cell.sel .dc-d,
.day-cell.sel .dc-mo { color: var(--gold); }

.time-input,
.notes-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px;
  border-radius: var(--radius);
  -webkit-appearance: none;
  appearance: none;
}
.time-input {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.04em;
  text-align: center;
  height: 64px;
  color: var(--gold);
}
.notes-input {
  resize: vertical;
  min-height: 96px;
  font-size: 14px;
  line-height: 1.5;
}
.time-input:focus,
.notes-input:focus {
  outline: none;
  border-color: var(--gold-soft);
}

.counter {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px;
}
.counter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 52px; height: 52px;
  font-size: 24px; font-weight: 300;
  cursor: pointer;
  transition: border-color 200ms, color 200ms;
  border-radius: 2px;
}
.counter-btn:active {
  border-color: var(--gold);
  color: var(--gold);
}
.counter-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.counter-val {
  font-family: var(--serif);
  font-size: 26px;
  flex: 1;
  text-align: center;
  letter-spacing: 0.04em;
}

.total-box {
  margin: 8px var(--pad) 0;
  padding: 18px 0 6px;
  border-top: 1px solid var(--line);
}
.total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 5px 0;
  font-size: 13px;
  color: var(--muted);
}
.total-row .total-v { font-family: var(--sans); }
.total-row.total-sum {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.total-row.total-sum .total-k {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}
.total-row.total-sum .total-v {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* ─── lightbox ─── */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5,4,3,0.96);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.hidden { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 42px; height: 42px;
  background: rgba(10,9,8,0.65);
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 110;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 200ms;
}
.lightbox-close:active { background: rgba(201,169,97,0.18); }

/* ─── empty / loading ─── */
.empty, .loading {
  text-align: center;
  padding: 60px 20px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
}
