/* ==========================================================================
   نوین سفر — Novin Safar design system
   Editorial travel-journal aesthetic: cream paper, lapis & turquoise ink,
   gold hairlines, Persian tile geometry. RTL first.
   ========================================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('/static/fonts/Vazirmatn.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Lalezar';
  src: url('/static/fonts/Lalezar.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --cream: #fbf7ef;
  --cream-2: #f4ecdd;
  --paper: #fffdf8;
  --ink: #0c2530;
  --ink-soft: #3d5560;
  --lapis: #143d5e;
  --turquoise: #167a76;
  --turquoise-soft: #d9eeea;
  --gold: #c19a52;
  --gold-soft: #eadcbd;
  --terracotta: #b4552f;
  --line: #e2d8c5;
  --shadow-sm: 0 2px 0 rgba(12, 37, 48, 0.06), 0 8px 24px -14px rgba(12, 37, 48, 0.25);
  --shadow-md: 0 1px 0 rgba(12, 37, 48, 0.05), 0 18px 40px -22px rgba(12, 37, 48, 0.4);
  --radius: 4px;
  --radius-lg: 10px;
  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Vazirmatn', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: 'ss01';
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23c19a52' stroke-width='0.6' opacity='0.35'%3E%3Cpath d='M60 0L120 60 60 120 0 60z'/%3E%3Ccircle cx='60' cy='60' r='26'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px;
}

main { position: relative; z-index: 1; }

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

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

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

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

:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Lalezar', 'Vazirmatn', sans-serif;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }

.lead { font-size: 1.06rem; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--turquoise);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--gold);
}

.section { padding: clamp(48px, 7vw, 92px) 0; position: relative; }
.section--tight { padding: clamp(32px, 5vw, 60px) 0; }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head p { margin-top: 10px; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(12, 37, 48, 0.7); }
.btn:active { transform: translateY(0); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: #1d1405; }
.btn--turq { --btn-bg: var(--turquoise); --btn-fg: #fff; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--light {
  --btn-bg: rgba(255, 253, 248, 0.14);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--turquoise);
  border-bottom: 1px solid transparent;
  transition: gap 0.2s var(--ease), border-color 0.2s;
}
.link-arrow:hover { gap: 12px; border-color: var(--turquoise); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 247, 239, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -26px rgba(12, 37, 48, 0.7);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: 'Lalezar', sans-serif;
  font-size: 1.35rem;
  color: var(--ink);
}
.brand-sub {
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: 14px;
}
.nav a {
  position: relative;
  padding: 9px 13px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--ink); background: rgba(22, 122, 118, 0.07); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
  content: '';
  position: absolute;
  bottom: 2px; right: 13px; left: 13px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.header-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  direction: ltr;
}
.header-phone svg { width: 16px; height: 16px; color: var(--turquoise); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute; right: 0;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 12px 0 22px;
}
.mobile-menu.is-open { display: block; animation: slideDown 0.3s var(--ease); }
.mobile-menu a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(226, 216, 197, 0.6);
  font-weight: 500;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 22s ease-out both;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(6, 24, 32, 0.94) 0%, rgba(6, 24, 32, 0.55) 42%, rgba(6, 24, 32, 0.18) 70%, rgba(6, 24, 32, 0.45) 100%),
    radial-gradient(120% 90% at 88% 8%, rgba(22, 122, 118, 0.35), transparent 60%);
}
.hero-inner {
  padding-block: clamp(40px, 8vw, 78px);
  color: #fdfaf3;
  max-width: 780px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 15px 6px 10px;
  border: 1px solid rgba(234, 220, 189, 0.4);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #f1e5ca;
  margin-bottom: 20px;
  background: rgba(10, 30, 38, 0.28);
  backdrop-filter: blur(8px);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #59d6c9;
  box-shadow: 0 0 0 4px rgba(89, 214, 201, 0.2);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(89, 214, 201, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(89, 214, 201, 0.04); }
}
.hero h1 {
  color: #fffdf7;
  margin-bottom: 18px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
.hero h1 em {
  font-style: normal;
  color: #f4d79b;
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  right: 0; left: 0; bottom: 0.08em;
  height: 6px;
  background: rgba(193, 154, 82, 0.35);
  border-radius: 3px;
  z-index: -1;
}
.hero p.lead {
  color: rgba(253, 250, 243, 0.84);
  max-width: 560px;
  font-size: 1.08rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-search {
  margin-top: 34px;
  background: rgba(255, 253, 248, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 8px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  color: var(--ink);
  max-width: 760px;
  animation: riseIn 0.7s var(--ease) 0.25s both;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 9px;
  transition: background 0.2s;
}
.field:hover { background: rgba(22, 122, 118, 0.05); }
.field > label {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  font-weight: 600;
}
.field input, .field select {
  border: 0;
  background: transparent;
  padding: 3px 0;
  font-size: 0.92rem;
  font-weight: 500;
  width: 100%;
  border-radius: 0;
}
.field input:focus, .field select:focus { outline: none; }
.hero-search .btn { align-self: stretch; border-radius: 10px; }

.hero-scroll {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  display: none;
}

/* ---------- Marquee strip ---------- */
.strip {
  background: var(--ink);
  color: #f8f2e6;
  border-top: 1px solid rgba(234, 220, 189, 0.2);
  overflow: hidden;
  padding: 12px 0;
}
.strip-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(248, 242, 230, 0.8);
  white-space: nowrap;
}
.strip-item b { color: #f4d79b; font-weight: 600; }
.strip-item svg { width: 15px; height: 15px; color: var(--gold); }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tour-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-soft);
}
.tour-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-2);
}
.tour-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.tour-card:hover .tour-card__media img { transform: scale(1.06); }
.tour-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 26, 34, 0.55), transparent 55%);
}
.tour-card__badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--gold);
  color: #221804;
  letter-spacing: 0.02em;
}
.tour-card__region {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 0.68rem;
  border-radius: 999px;
  background: rgba(12, 37, 48, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.tour-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tour-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.tour-card__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.tour-card h3 { font-size: 1.2rem; }
.tour-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
}
.tour-card__summary {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tour-card__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.price { display: flex; flex-direction: column; line-height: 1.35; }
.price b { font-size: 1.08rem; font-weight: 700; color: var(--lapis); }
.price small { font-size: 0.68rem; color: var(--ink-soft); }
.price s { font-size: 0.72rem; color: #a1907a; }
.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}
.rating svg { width: 14px; height: 14px; color: var(--gold); fill: var(--gold); }
.rating span { font-weight: 400; color: var(--ink-soft); font-size: 0.72rem; }

/* ---------- Feature / value blocks ---------- */
.value-card {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.value-card:hover { border-color: var(--gold-soft); transform: translateY(-4px); }
.value-card::after {
  content: '';
  position: absolute;
  top: -34px; left: -34px;
  width: 96px; height: 96px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  opacity: 0.55;
}
.value-card .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--turquoise-soft);
  color: var(--turquoise);
  margin-bottom: 16px;
}
.value-card .ico svg { width: 22px; height: 22px; }
.value-card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.value-card p { font-size: 0.87rem; color: var(--ink-soft); margin: 0; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
}
.stat {
  padding: 26px 20px;
  text-align: center;
  border-inline-start: 1px solid var(--line);
}
.stat:first-child { border-inline-start: 0; }
.stat b {
  display: block;
  font-family: 'Lalezar', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--lapis);
  line-height: 1.2;
}
.stat small { font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- Destinations mosaic ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 168px;
  gap: 14px;
}
.mosaic-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--cream-2);
}
.mosaic-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s;
}
.mosaic-tile:hover img { transform: scale(1.07); }
.mosaic-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 24, 32, 0.78), rgba(6, 24, 32, 0.05) 60%);
}
.mosaic-tile__label {
  position: absolute;
  bottom: 14px; right: 16px; left: 16px;
  z-index: 2;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.mosaic-tile__label b { font-family: 'Lalezar', sans-serif; font-size: 1.15rem; font-weight: 400; }
.mosaic-tile__label small { font-size: 0.72rem; color: rgba(255, 255, 255, 0.75); display: block; }
.mosaic-tile--wide { grid-column: span 2; }
.mosaic-tile--tall { grid-row: span 2; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quote-card .mark {
  font-family: 'Lalezar', sans-serif;
  font-size: 3rem;
  color: var(--gold-soft);
  line-height: 0.6;
}
.quote-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.quote-card footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--turquoise-soft);
  color: var(--turquoise);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.quote-card cite { font-style: normal; font-weight: 600; font-size: 0.86rem; display: block; }
.quote-card footer small { color: var(--ink-soft); font-size: 0.72rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(120deg, #0d2f42, #114b52 60%, #14524a);
  color: #fdfaf3;
  padding: clamp(30px, 5vw, 56px);
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23f4d79b' stroke-width='0.8'%3E%3Cpath d='M40 4L76 40 40 76 4 40z'/%3E%3Ccircle cx='40' cy='40' r='16'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}
.cta-band h2 { color: #fffdf7; }
.cta-band p { color: rgba(253, 250, 243, 0.78); max-width: 520px; }

/* ---------- Page header ---------- */
.page-hero {
  position: relative;
  padding: clamp(34px, 6vw, 62px) 0;
  background: linear-gradient(180deg, #0e2c3a, #123d46);
  color: #fdfaf3;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23f4d79b' stroke-width='0.7'%3E%3Cpath d='M50 2L98 50 50 98 2 50z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 90px 90px;
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { color: #fffdf7; }
.page-hero p { color: rgba(253, 250, 243, 0.75); max-width: 620px; margin: 10px 0 0; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(253, 250, 243, 0.6);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: #f4d79b; }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- Filters ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 26px;
}
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--turquoise); color: var(--turquoise); }
.chip.is-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.filter-count {
  margin-inline-start: auto;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}
.search-input-wrap svg {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--ink-soft);
  pointer-events: none;
}
.search-input-wrap input {
  width: 100%;
  padding: 9px 36px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.86rem;
}
.search-input-wrap input:focus { outline: none; border-color: var(--turquoise); }
.empty-state {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Tour detail ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 180px 180px;
  gap: 10px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
}
.gallery figure { margin: 0; overflow: hidden; background: var(--cream-2); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }

.prose h2 { margin: 34px 0 14px; font-size: 1.55rem; }
.prose h3 { margin: 22px 0 8px; }
.prose p { color: var(--ink-soft); }

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 26px;
}
.fact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.82rem;
}
.fact svg { width: 15px; height: 15px; color: var(--turquoise); }
.fact b { font-weight: 600; }

.highlight-list, .check-list, .x-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.highlight-list li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.highlight-list li::before {
  content: '';
  position: absolute;
  right: 6px; top: 0.72em;
  width: 7px; height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.check-list li, .x-list li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  right: 0; top: 0;
  color: var(--turquoise);
  font-weight: 700;
}
.x-list li::before {
  content: '×';
  position: absolute;
  right: 2px; top: 0;
  color: var(--terracotta);
  font-weight: 700;
  font-size: 1.1rem;
}

.itinerary { list-style: none; padding: 0; margin: 0; position: relative; }
.itinerary::before {
  content: '';
  position: absolute;
  right: 17px; top: 12px; bottom: 12px;
  width: 1px;
  background: var(--line);
}
.itinerary li {
  position: relative;
  padding: 0 52px 22px 0;
}
.itinerary .day-num {
  position: absolute;
  right: 0; top: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cream);
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  z-index: 1;
}
.itinerary h4 { font-size: 1rem; margin: 0 0 4px; font-family: 'Vazirmatn', sans-serif; font-weight: 700; }
.itinerary p { font-size: 0.87rem; color: var(--ink-soft); margin: 0; }

/* Sticky booking box */
.booking-box {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.booking-box__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.booking-box__price b { font-size: 1.5rem; color: var(--lapis); font-weight: 800; }
.booking-box__price span { font-size: 0.78rem; color: var(--ink-soft); }
.booking-box__price s { color: #a1907a; font-size: 0.85rem; }
.booking-box hr { border: 0; border-top: 1px dashed var(--line); margin: 16px 0; }
.booking-box__rows { display: grid; gap: 9px; font-size: 0.85rem; margin-bottom: 16px; }
.booking-box__rows div { display: flex; justify-content: space-between; gap: 10px; }
.booking-box__rows span:first-child { color: var(--ink-soft); }
.booking-box__rows b { font-weight: 600; }
.trust-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-top: 12px;
}
.trust-row svg { width: 14px; height: 14px; color: var(--turquoise); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 36px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 0.82rem; font-weight: 600; }
.form-field label .req { color: var(--terracotta); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffefb;
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(22, 122, 118, 0.1);
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-hint { font-size: 0.75rem; color: var(--ink-soft); }
.form-error {
  color: var(--terracotta);
  font-size: 0.82rem;
  background: #fdf0ea;
  border: 1px solid #f2d3c5;
  border-radius: 8px;
  padding: 10px 14px;
  display: none;
}
.form-error.is-visible { display: block; }

.notice {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.86rem;
  background: var(--turquoise-soft);
  border: 1px solid #bfdfd9;
  color: #14524d;
}
.notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }

.success-card {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(28px, 5vw, 48px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.success-icon {
  width: 62px; height: 62px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 18px;
  background: var(--turquoise-soft);
  color: var(--turquoise);
}
.success-icon svg { width: 30px; height: 30px; }
.code-pill {
  display: inline-block;
  margin: 14px 0;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px dashed var(--gold);
  background: #fdf8ec;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--lapis);
  direction: ltr;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 34px 18px 0;
  position: relative;
  font-weight: 600;
  font-size: 0.94rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before,
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 4px; top: 50%;
  width: 12px; height: 1.5px;
  background: var(--turquoise);
  transition: transform 0.3s var(--ease);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item p {
  padding: 0 0 18px;
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  animation: fadeIn 0.3s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Services ---------- */
.service-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.service-row .ico {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--cream-2);
  color: var(--lapis);
}
.service-row .ico svg { width: 24px; height: 24px; }
.service-row h3 { margin-bottom: 4px; }
.service-row p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 30px;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item .ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--turquoise-soft);
  color: var(--turquoise);
  flex-shrink: 0;
}
.contact-item .ico svg { width: 18px; height: 18px; }
.contact-item b { display: block; font-size: 0.86rem; }
.contact-item span, .contact-item a { font-size: 0.86rem; color: var(--ink-soft); }
.contact-item a:hover { color: var(--turquoise); }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 20px;
  background: var(--cream-2);
}
.map-frame iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: #08202b;
  color: rgba(248, 242, 230, 0.68);
  margin-top: 0;
  padding: 56px 0 0;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 40px;
}
.site-footer h4 {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8f2e6;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { font-size: 0.85rem; transition: color 0.2s; }
.site-footer a:hover { color: #f4d79b; }
.footer-brand p { font-size: 0.85rem; line-height: 1.9; max-width: 300px; }
.footer-brand .brand-name { color: #fdfaf3; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid rgba(248, 242, 230, 0.18);
  transition: all 0.2s;
}
.socials a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(248, 242, 230, 0.12);
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
}
.footer-bottom .license { color: rgba(248, 242, 230, 0.45); }

/* ---------- Assistant ---------- */
.assist-fab {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(244, 215, 155, 0.45);
  background: linear-gradient(135deg, #0f3b47, #167a76);
  color: #fdfaf3;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 16px 40px -16px rgba(6, 30, 38, 0.8);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.assist-fab:hover { transform: translateY(-3px) scale(1.02); }
.assist-fab svg { width: 20px; height: 20px; }
.assist-fab .ping {
  position: absolute;
  top: -3px; right: -3px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #59d6c9;
  border: 2px solid var(--cream);
  animation: pulse 2.4s infinite;
}

.assist-panel {
  position: fixed;
  z-index: 90;
  bottom: 22px;
  left: 22px;
  width: min(400px, calc(100vw - 28px));
  height: min(620px, calc(100vh - 40px));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 40px 80px -30px rgba(6, 30, 38, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom left;
  animation: panelIn 0.32s var(--ease);
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.assist-panel[hidden] { display: none; }
.assist-head {
  padding: 15px 18px;
  background: linear-gradient(135deg, #0f3b47, #14655f);
  color: #fdfaf3;
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.assist-head .avatar-bot {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(244, 215, 155, 0.4);
  color: #f4d79b;
  flex-shrink: 0;
}
.assist-head .avatar-bot svg { width: 20px; height: 20px; }
.assist-head b { display: block; font-size: 0.92rem; font-weight: 700; }
.assist-head small { font-size: 0.7rem; color: rgba(253, 250, 243, 0.72); display: flex; align-items: center; gap: 5px; }
.assist-head small .live {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7de3c9;
  box-shadow: 0 0 0 3px rgba(125, 227, 201, 0.18);
}
.assist-close {
  margin-inline-start: auto;
  width: 32px; height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fdfaf3;
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 1.1rem;
  line-height: 1;
}
.assist-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(22, 122, 118, 0.06), transparent 55%),
    var(--paper);
  scrollbar-width: thin;
}
.msg {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  animation: msgIn 0.28s var(--ease);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.msg--bot {
  align-self: flex-start;
  background: #f3f0e6;
  border: 1px solid var(--line);
  border-end-start-radius: 4px;
  color: var(--ink);
}
.msg--user {
  align-self: flex-end;
  background: var(--turquoise);
  color: #fff;
  border-end-end-radius: 4px;
}
.msg a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.msg--bot a { color: var(--turquoise); font-weight: 600; }
.msg-tours { display: grid; gap: 7px; margin-top: 10px; }
.msg-tour-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lapis);
}
.msg-tour-link:hover { border-color: var(--gold); }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--turquoise);
  opacity: 0.45;
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.assist-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
  flex-shrink: 0;
}
.sug {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.sug:hover { border-color: var(--turquoise); color: var(--turquoise); }
.assist-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
}
.assist-form input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  background: var(--cream);
}
.assist-form input:focus { outline: none; border-color: var(--turquoise); }
.assist-send {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: var(--cream);
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.assist-send:hover { background: var(--turquoise); transform: scale(1.05); }
.assist-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.assist-send svg { width: 18px; height: 18px; transform: scaleX(-1); }
.assist-note {
  font-size: 0.66rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 0 14px 10px;
  background: #fff;
}

/* ---------- Admin ---------- */
.admin-shell { padding: 34px 0 70px; }
.admin-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.admin-head h1 { font-size: 1.8rem; }
.admin-head .btn { margin-inline-start: auto; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.admin-stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.admin-stat b { display: block; font-size: 1.7rem; font-family: 'Lalezar', sans-serif; color: var(--lapis); }
.admin-stat small { font-size: 0.76rem; color: var(--ink-soft); }
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: auto;
  background: var(--paper);
  margin-bottom: 30px;
}
table.data { width: 100%; border-collapse: collapse; font-size: 0.83rem; min-width: 720px; }
table.data th {
  text-align: right;
  padding: 12px 14px;
  background: var(--cream-2);
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fdfaf2; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--cream-2);
  color: var(--ink-soft);
}
.badge--new { background: #fdf0e4; color: #a3501f; }
.badge--confirmed { background: var(--turquoise-soft); color: #14524d; }
.badge--done { background: #e6eee0; color: #456230; }
.badge--cancelled { background: #f7e3e0; color: #8f3025; }
.admin-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.84rem;
  cursor: pointer;
}
.admin-tab.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.admin-tab[hidden] { display: none; }
.msg-cell { max-width: 320px; white-space: pre-wrap; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 0.76rem; background: #fff; }

/* ---------- Offline / 404 ---------- */
.state-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 20px;
}
.state-page .code-big {
  font-family: 'Lalezar', sans-serif;
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  color: var(--gold-soft);
}

/* ---------- Install banner / toast ---------- */
.install-banner {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 85;
  max-width: 340px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 24px 50px -24px rgba(6, 30, 38, 0.5);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: riseIn 0.4s var(--ease);
}
.install-banner img { width: 40px; height: 40px; border-radius: 10px; }
.install-banner b { font-size: 0.86rem; display: block; }
.install-banner p { font-size: 0.76rem; color: var(--ink-soft); margin: 2px 0 0; }
.install-banner .btn { margin-top: 8px; }
.install-close {
  margin-inline-start: auto;
  background: transparent;
  border: 0;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 50%;
  transform: translateX(50%) translateY(20px);
  background: var(--ink);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translateX(50%) translateY(0); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .detail-grid { grid-template-columns: 1fr; }
  .booking-box { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-phone span { display: none; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hero-search .btn { grid-column: 1 / -1; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 120px; }
  .gallery figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .assist-fab span.label { display: none; }
  .assist-fab { padding: 15px; }
  .assist-panel { left: 10px; right: 10px; bottom: 10px; width: auto; height: min(78vh, 640px); }
  .install-banner { right: 12px; left: 12px; max-width: none; bottom: 86px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .hero { min-height: 76vh; }
  .hero-cta .btn { flex: 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .service-row { grid-template-columns: 44px minmax(0, 1fr); }
  .service-row .btn { grid-column: 2; justify-self: start; }
  .assist-send { width: 40px; height: 40px; }
  .tour-card__foot { flex-wrap: wrap; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic-tile--wide { grid-column: auto; }
  .mosaic-tile--tall { grid-row: auto; }
  body { font-size: 15px; }
}
