:root {
  --bg: #06111c;
  --ink: #f7f2e8;
  --muted: #90a0ae;
  --line: rgba(207, 172, 103, .18);
  --black: #02070d;
  --gold: #d3a758;
  --gold-strong: #f0c979;
  --surface-strong: rgba(12, 27, 42, .88);
  --shadow: 0 22px 52px rgba(0, 0, 0, .28);
  --telegram-chrome-top: 62px;
}

html,
body {
  background: #06111c;
  overscroll-behavior: none;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 15% -8%, rgba(211, 167, 88, .15), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(68, 124, 157, .18), transparent 36%),
    linear-gradient(180deg, #07131f 0%, #091725 48%, #050c15 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: -40px 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% -8%, rgba(211, 167, 88, .15), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(68, 124, 157, .18), transparent 36%),
    linear-gradient(180deg, #07131f 0%, #091725 48%, #050c15 100%);
}

.loader {
  background:
    radial-gradient(circle at 50% 0%, rgba(211, 167, 88, .16), transparent 32%),
    linear-gradient(180deg, #07131f, #030912);
}

.loader-card {
  width: min(220px, 70vw);
  padding: 24px 22px;
  border-color: rgba(211,167,88,.22);
  background: rgba(9, 21, 35, .82);
  box-shadow: 0 28px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
}

.loader-card img {
  width: 116px;
  border-radius: 0;
  box-shadow: none;
}

.loader-card p {
  color: rgba(247,242,232,.72);
}

.loader-bar {
  background: rgba(255,255,255,.12);
}

.loader-bar span {
  background: linear-gradient(90deg, #a8752f, #f0c979);
}

.app {
  padding: calc(var(--safe-top) + var(--telegram-chrome-top)) 16px calc(var(--safe-bottom) + 112px);
}

.topbar {
  display: none;
}

.hero {
  min-height: 206px;
  padding: 8px 0 20px;
}

.hero-logo {
  width: 82px;
  height: 82px;
  margin-bottom: 22px;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(0,0,0,.36);
}

.eyebrow {
  color: var(--gold-strong);
  letter-spacing: .14em;
}

h1 {
  max-width: 310px;
  color: var(--ink);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 38px;
  line-height: .98;
  letter-spacing: -.02em;
  font-weight: 600;
}

h2 {
  color: var(--ink);
  font-size: 18px;
}

.search {
  margin-top: 20px;
  border-color: rgba(255,255,255,.08);
  border-radius: 20px;
  background: rgba(12, 27, 42, .78);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
}

.search input,
.search-trigger span {
  color: var(--ink);
}

.search input::placeholder {
  color: rgba(144,160,174,.78);
}

.chips {
  padding-top: 14px;
  background: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}

.chip {
  border-color: rgba(255,255,255,.08);
  background: rgba(12, 27, 42, .78);
  color: rgba(247,242,232,.82);
}

.chip.active {
  border-color: rgba(211,167,88,.55);
  background: linear-gradient(135deg, #c79545, #e8c371);
  color: #07111d;
  box-shadow: none;
}

.spotlight,
.tour-card,
.collection,
.result-card,
.empty-state,
.profile-card {
  border-color: rgba(255,255,255,.08);
  background: rgba(10, 24, 38, .9);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.055);
}

.spotlight {
  min-height: 292px;
  border-radius: 26px;
}

.spotlight img {
  height: 292px;
}

.spotlight::after {
  background: linear-gradient(180deg, rgba(3,8,14,.05) 12%, rgba(3,8,14,.18) 45%, rgba(3,8,14,.92));
}

.pill {
  background: rgba(211,167,88,.16);
  color: #f1c884;
  border: 1px solid rgba(211,167,88,.28);
}

.spotlight h2 {
  max-width: 310px;
  font-size: 32px;
  font-weight: 600;
}

.spotlight-row {
  color: rgba(247,242,232,.86);
}

.section {
  margin-top: 26px;
}

.section-head {
  align-items: center;
}

.text-btn {
  color: var(--gold-strong);
}

.cards {
  grid-auto-columns: 86%;
}

.tour-card {
  border-radius: 24px;
}

.tour-card img {
  height: 190px;
}

.tour-title {
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 850;
}

.tour-price {
  color: #f0c979;
}

.tour-desc,
.collection p,
.result-body p,
.step p,
#profileMeta,
.empty-state > p:last-child {
  color: var(--muted);
}

.tour-facts span {
  background: rgba(255,255,255,.07);
  color: rgba(247,242,232,.78);
}

.tour-included li {
  color: rgba(247,242,232,.72);
}

.primary-btn {
  background: linear-gradient(135deg, #c79545, #e8c371);
  color: #06111c;
  box-shadow: 0 16px 30px rgba(211,167,88,.2);
}

.secondary-btn {
  background: rgba(255,255,255,.08);
  color: var(--ink);
}

.secondary-btn.saved,
.save-btn.saved {
  background: rgba(211,167,88,.18);
  color: #f1c884;
}

.ai-card,
.bonus-card {
  border: 1px solid rgba(211,167,88,.18);
  background:
    radial-gradient(circle at 18% 0%, rgba(211,167,88,.22), transparent 30%),
    linear-gradient(180deg, rgba(16, 35, 52, .95), rgba(4, 10, 18, .96));
}

.ai-card h2 {
  color: var(--ink);
}

.destination {
  background: transparent;
  box-shadow: 0 14px 28px rgba(0,0,0,.24);
}

.destination::after {
  background: linear-gradient(180deg, transparent 32%, rgba(3,8,14,.86));
}

.collection h3,
.result-body h3,
.profile-list b {
  color: var(--ink);
}

.bottom-nav {
  width: min(430px, calc(100vw - 20px));
  border-color: rgba(255,255,255,.08);
  background: rgba(7, 17, 29, .72);
  box-shadow: 0 -18px 48px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(28px) saturate(160%);
}

.nav-item {
  color: rgba(144,160,174,.92);
}

.nav-item.active {
  color: #f1c884;
  background: rgba(211,167,88,.12);
}

.nav-item.concierge {
  overflow: visible;
  background: radial-gradient(circle at 50% 42%, rgba(211,167,88,.2), rgba(7,17,29,.94) 58%);
  border: 1px solid rgba(211,167,88,.35);
  box-shadow: 0 18px 36px rgba(0,0,0,.42);
}

.nav-item.concierge img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
  filter: none;
  transform: scale(1.08);
}

.search-page {
  padding-top: 10px;
}

.quick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.quick-grid button {
  min-height: 0;
  padding: 10px 12px;
  border-color: rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(12, 27, 42, .78);
  color: rgba(247,242,232,.84);
  font-size: 12px;
  box-shadow: none;
}

.quick-grid button:active {
  background: rgba(211,167,88,.18);
  color: #f1c884;
}

.result-card {
  grid-template-columns: 112px 1fr;
  border-radius: 24px;
}

.result-card > img {
  width: 112px;
  height: 158px;
}

.result-top {
  color: var(--gold-strong);
}

.result-top b {
  color: var(--ink);
}

.empty-icon {
  background: rgba(211,167,88,.18);
  color: #f1c884;
}

.avatar.large,
.avatar {
  background: linear-gradient(135deg, #0d2134, #06111c);
  color: #f1c884;
  border: 1px solid rgba(211,167,88,.25);
}

.profile-grid button,
.profile-list div {
  background: rgba(255,255,255,.06);
  color: var(--ink);
}

.profile-grid span,
.profile-list span {
  color: var(--muted);
}

.details,
.details-panel {
  background: #06111c;
  overscroll-behavior: none;
}

.details-title h1 {
  color: var(--ink);
}

.details-hero::after {
  background: linear-gradient(180deg, rgba(3,8,14,.05) 30%, rgba(3,8,14,.92));
}

.details-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.details-gallery::-webkit-scrollbar {
  display: none;
}

.details-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
}

.details-hero > img {
  display: none;
}

.details-save {
  position: absolute;
  z-index: 3;
  top: calc(var(--safe-top) + 74px);
  right: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(7,17,29,.74);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(18px);
  font-size: 23px;
  box-shadow: 0 16px 28px rgba(0,0,0,.22);
}

.details-save.saved {
  color: #f1c884;
  background: rgba(211,167,88,.18);
  border-color: rgba(211,167,88,.35);
}

.details-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 118px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(7,17,29,.28);
  backdrop-filter: blur(14px);
}

.details-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.30);
  transition: width .24s ease, background .24s ease;
}

.about-page {
  padding-top: 8px;
}

.about-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 18px;
  min-height: 260px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  background: rgba(10,24,38,.9);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.055);
}

.about-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,17,28,.18), rgba(6,17,28,.92));
}

.about-hero div {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(7,17,29,.62);
  border: 1px solid rgba(255,255,255,.08);
}

.about-hero b {
  display: block;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.about-hero span,
.about-copy p,
.about-points span,
.team-grid p {
  color: var(--muted);
}

.about-copy {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.55;
}

.about-points {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.about-points span {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
}

.team-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.team-grid article {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(10,24,38,.9);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.055);
}

.team-grid article img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(3,8,14,.88));
}

.team-grid h3,
.team-grid p {
  position: relative;
  z-index: 1;
}

.team-grid h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 22px;
}

.details-dots span.active {
  width: 18px;
  background: #f1c884;
}

.quote {
  color: var(--ink);
}

.feature,
.details-list li {
  background: rgba(255,255,255,.06);
  color: var(--ink);
}

.feature span {
  color: var(--muted);
}

.reserve {
  background: rgba(7,17,29,.82);
  border-top: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 380px) {
  .hero-logo {
    width: 76px;
    height: 76px;
  }

  h1 {
    font-size: 35px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .spotlight,
  .tour-card,
  .result-card,
  .collection,
  .destination,
  .ai-card,
  .profile-card {
    animation: rise-in .48s cubic-bezier(.2,.8,.2,1) both;
  }

  .spotlight { animation-delay: .04s; }
  .tour-card:nth-child(2),
  .result-card:nth-child(2),
  .collection:nth-child(2) { animation-delay: .07s; }
  .tour-card:nth-child(3),
  .result-card:nth-child(3),
  .collection:nth-child(3) { animation-delay: .1s; }

  .primary-btn,
  .secondary-btn,
  .chip,
  .nav-item,
  .details-save {
    transition: transform .18s ease, opacity .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  }

  .primary-btn:active,
  .secondary-btn:active,
  .chip:active,
  .details-save:active {
    transform: scale(.96);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loader-card img {
  width: 104px;
  height: 104px;
  object-fit: contain;
}

.nav-item.concierge {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.nav-item.concierge img {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  transform: none;
}

.details-gallery {
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.details-dots {
  display: none;
}

.details-thumbs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 12px 18px 2px;
  background: #06111c;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.details-thumbs::-webkit-scrollbar {
  display: none;
}

.details-thumbs button {
  flex: 0 0 66px;
  width: 66px;
  height: 50px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  opacity: .54;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
}

.details-thumbs button.active {
  opacity: 1;
  border-color: rgba(240,201,121,.85);
  transform: translateY(-1px);
}

.details-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero {
  min-height: auto;
  grid-template-columns: 1fr;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(211,167,88,.12), transparent 44%),
    rgba(10,24,38,.9);
}

.about-hero img,
.about-hero::after {
  display: none;
}

.about-hero div {
  align-self: auto;
  padding: 16px;
  background: rgba(255,255,255,.045);
}

.about-hero b {
  font-size: 32px;
}

.team-grid article {
  min-height: 220px;
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: end;
  gap: 10px;
  padding: 14px 14px 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(211,167,88,.16), transparent 38%),
    rgba(10,24,38,.92);
}

.team-grid article img {
  position: relative;
  inset: auto;
  align-self: end;
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.3));
}

.team-grid article::after {
  display: none;
}

.team-grid article > div {
  position: relative;
  z-index: 1;
  padding-bottom: 18px;
}

.team-grid article.wide {
  display: block;
  min-height: auto;
  padding: 14px;
}

.team-grid article.wide img {
  width: 100%;
  height: 158px;
  margin-bottom: 14px;
  border-radius: 18px;
  object-fit: cover;
  filter: none;
}

.team-grid article.wide h3,
.team-grid article.wide p {
  position: relative;
}
