/* ═══════════════════════════════════════════════════════════
   TURVBAKU.AZ — "Baku Moderne" Design System v3
   Instrument Serif · Space Grotesk
   Rust × Caspian × Warm Parchment
═══════════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --ink:        #18140e;
  --paper:      #faf8f4;
  --paper-mid:  #f0ece3;
  --paper-dark: #e2ddd0;
  --rust:       #b8491e;
  --rust-h:     #943a16;
  --rust-l:     #d4714a;
  --caspian:    #1a5c7a;
  --caspian-l:  #2a8ab5;
  --stone:      #9a8a72;
  --stone-l:    #b8a88e;
  --nav:        #0f0c08;
  --text:       #2c2218;
  --text-m:     #6b5d4e;
  --text-l:     #f0ebe0;
  --text-d:     rgba(240,235,224,.6);
  --white:      #fff;
  --border:     #e4ded0;
  --f-serif:    'Instrument Serif', Georgia, serif;
  --f-sans:     'Space Grotesk', system-ui, sans-serif;
  --wrap:       1180px;
  --r:          6px;
  --r-m:        14px;
  --r-l:        22px;
  --sh:         0 2px 24px rgba(24,20,14,.06);
  --sh-m:       0 10px 44px rgba(24,20,14,.10);
  --sh-l:       0 24px 64px rgba(24,20,14,.18);
  --ease:       cubic-bezier(.22,1,.36,1);
  --dur:        .3s;
  --glass:      rgba(255,255,255,.72);
  --glass-border: rgba(255,255,255,.35);
}

/* ─── BASE RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; font-size: 17px; }

body {
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.72;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--rust-h); }
ul { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; border: none; background: none; font: inherit; padding: 0; }

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--f-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .02em;
  margin-top: 0;
}
h4, h5, h6 {
  font-family: var(--f-sans);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
}

h1 { font-size: clamp(42px, 6vw, 80px); }
h2 { font-size: clamp(32px, 4.5vw, 58px); margin-bottom: 20px; }
h3 { font-size: clamp(24px, 3.5vw, 42px); margin-bottom: 16px; }
h4 { font-size: 19px; font-weight: 500; }
h5 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--rust); }
h6 { font-size: 13px; }
p  { margin-bottom: 20px; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

/* ─── GRID SYSTEM (Bootstrap v2 compat) ──────────────────── */
.row-container { width: 100%; }
.container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}
.row, .row-fluid, .content-inner {
  display: flex;
  flex-wrap: wrap;
  margin-left: -16px;
  margin-right: -16px;
}
.row > *, .row-fluid > *, .content-inner > * {
  padding-left: 16px;
  padding-right: 16px;
  min-width: 0;
}
.span1  { width:  8.333%; } .span2  { width: 16.667%; }
.span3  { width: 25%; }     .span4  { width: 33.333%; }
.span5  { width: 41.667%; } .span6  { width: 50%; }
.span7  { width: 58.333%; } .span8  { width: 66.667%; }
.span9  { width: 75%; }     .span10 { width: 83.333%; }
.span11 { width: 91.667%; } .span12 { width: 100%; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ─── VISIBILITY ─────────────────────────────────────────── */
.desktopview { display: block; }
.mobileview, .mobilview { display: none; }

/* ─── FORMS ──────────────────────────────────────────────── */
input[type=text],
input[type=email],
/* ─── FORMS & INPUTS ───────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--f-sans);
  font-size: 15px;
  color: var(--text);
  transition: all .3s var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,.02) inset;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--rust-l);
  box-shadow: 0 0 0 4px rgba(184,73,30,.1), 0 2px 8px rgba(0,0,0,.02) inset;
  background: var(--white);
}
textarea { resize: vertical; min-height: 120px; }
.yoxlama { display: none !important; }
/* Anti-spam honeypot — invisible to humans, bots fill it */
.as-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--f-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 40px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-primary, .btn-info, input[type=submit] {
  background: var(--rust);
  color: var(--white) !important;
  border-color: var(--rust);
  box-shadow: 0 4px 20px rgba(158,63,26,.3);
}
.btn-primary:hover, .btn-info:hover, input[type=submit]:hover {
  background: var(--rust-h);
  border-color: var(--rust-h);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(158,63,26,.38);
}
.btn:not(.btn-primary):not(.btn-info) {
  background: transparent;
  color: var(--rust);
  border-color: currentColor;
}
.btn:not(.btn-primary):not(.btn-info):hover {
  background: var(--rust);
  color: var(--white);
  border-color: var(--rust);
}

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.siteheader {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 32px rgba(24,20,14,.06);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .3s var(--ease);
}
.siteheader.is-shrunk {
  background: rgba(255,255,255,.88);
  box-shadow: 0 4px 32px rgba(24,20,14,.10);
}

.siteheader__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px 32px;
  max-width: var(--wrap);
  margin: 0 auto;
  transition: padding .3s var(--ease);
}
.siteheader.is-shrunk .siteheader__inner { padding-top: 6px; padding-bottom: 6px; }

.siteheader__logo img {
  height: 50px;
  width: auto;
  transition: opacity .3s;
}
.siteheader__logo:hover img { opacity: .72; }

.siteheader__guide {
  display: flex;
  align-items: center;
  gap: 14px;
}
.siteheader__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--rust);
  object-fit: cover;
  flex-shrink: 0;
  transition: transform .3s;
  display: block;
}
.siteheader__avatar:hover { transform: scale(1.07); }
.siteheader__info { line-height: 1.4; }
.siteheader__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.siteheader__contact {
  display: block;
  font-size: 12.5px;
  color: var(--text-m);
}
.siteheader__contact a { color: var(--text-m); }
.siteheader__contact a:hover { color: var(--rust); }

/* ── Contact icon row (header + home Контакты card) ───────── */
.contact-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  max-width: 100%;
}
.contact-icons--center { justify-content: center; margin-top: 8px; }
.contact-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-m);
  box-shadow: 0 1px 5px rgba(24,20,14,.05);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.contact-icons a svg {
  width: 15px;
  height: 15px;
  display: block;
  flex: 0 0 auto;
  fill: currentColor;
}
.contact-icons a:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 5px 14px rgba(24,20,14,.16); }
/* Centered variant (mobile header + home Контакты card) — same size
   as the desktop header so it stays neatly inside the circle */
.contact-icons--center { gap: 10px; }
/* Defeat the generic ".item_introtext a { color: rust }" leak so the
   card icons look exactly like the (approved) header ones */
.item_introtext .contact-icons a,
#content-bottom-row .item_introtext .contact-icons a {
  color: var(--text-m);
  display: inline-flex;
}
.item_introtext .contact-icons a:hover { color: #fff; }
.contact-icons a.ci-wa:hover { background: #25D366; border-color: #25D366; }
.contact-icons a.ci-tg:hover { background: #229ED9; border-color: #229ED9; }
.contact-icons a.ci-ig:hover { background: #E1306C; border-color: #E1306C; }
.contact-icons a.ci-em:hover { background: var(--rust);  border-color: var(--rust); }

/* ── Google Translate — pill, inside the dark nav bar ──────── */
.sitenav__lang {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;       /* push to the right edge of the nav */
  padding-left: 18px;
}
#google_translate_element {
  display: inline-flex;
  align-items: center;
}
/* Kill Google's wrapper chrome + the stray "Powered by" text node */
#google_translate_element .goog-te-gadget {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
}
.goog-te-gadget-simple {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 999px !important;
  padding: 0 14px !important;
  height: 32px;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  line-height: 1 !important;
  white-space: nowrap;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.goog-te-gadget-simple:hover {
  border-color: var(--rust-l);
  background: rgba(255,255,255,.1) !important;
}
/* Hide the Google globe icon + any images */
.goog-te-gadget-simple img,
.goog-te-gadget-simple .goog-te-gadget-icon { display: none !important; }
/* The clickable link (Google's obfuscated class changes — target via
   the stable .goog-te-gadget-simple ancestor instead) */
.goog-te-gadget-simple > span > a,
.goog-te-gadget-simple a {
  display: inline-flex !important;
  align-items: center;
  text-decoration: none !important;
  margin: 0 !important;
}
.goog-te-gadget-simple a span {
  border: none !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: var(--f-sans) !important;
  color: rgba(240,235,224,.78) !important;
  vertical-align: middle;
}
.goog-te-gadget-simple:hover a span { color: var(--text-l) !important; }
/* Remove the vertical divider line (separator span has a border-left) */
.goog-te-gadget-simple a span[style*="border-left"],
.goog-te-gadget-simple a span[style*="border-right"] {
  display: none !important;
}
/* Keep the ▼ arrow — recolour to match the theme */
.goog-te-gadget-simple a span[aria-hidden="true"] {
  display: inline !important;
  color: var(--rust-l) !important;
  font-size: 9px !important;
  letter-spacing: 0 !important;
  margin-left: 6px;
}

/* Prevent Google's top banner iframe from pushing the page down */
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; position: static !important; }

/* Google injects a loading spinner at the end of <body>.
   Hide ONLY the spinner — never the menu iframe (.goog-te-menu-frame)
   or the gadget, or the language button stops working. */
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
  position: fixed !important;
  display: none !important;
}
/* The language dropdown menu must stay visible & clickable */
iframe.goog-te-menu-frame,
.goog-te-menu-frame.skiptranslate {
  display: block !important;
  visibility: visible !important;
}

/* Mobile header */
.siteheader__mob {
  display: none;
  padding: 10px 20px;
  text-align: center;
}
.siteheader__mob .siteheader__logo img { height: 40px; margin: 0 auto; }
.siteheader__mob-contact {
  font-size: 12.5px;
  color: var(--text-m);
  margin-top: 5px;
}
.siteheader__mob-contact a { color: var(--text-m); }
.siteheader__mob-contact a:hover { color: var(--rust); }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
.sitenav {
  background: linear-gradient(135deg, #0f0c08 0%, #1a1510 100%);
  position: relative;
  z-index: 800;
}
.sitenav::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--rust) 20%, var(--caspian-l) 50%, var(--rust-l) 80%, transparent 100%);
  animation: navGlow 4s ease infinite;
}
@keyframes navGlow {
  0%,100% { opacity: .7; }
  50% { opacity: 1; }
}

.sitenav__inner {
  display: flex;
  align-items: stretch;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

.sitenav__list {
  display: flex;
  align-items: stretch;
  flex: 1;
}
.sitenav__item { position: relative; }
.sitenav__link {
  display: flex;
  align-items: center;
  padding: 14px 15px;
  font-family: var(--f-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(240,235,224,.7);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
  position: relative;
}
.sitenav__link:hover,
.sitenav__item.is-active .sitenav__link {
  color: var(--text-l);
  background: rgba(158,63,26,.12);
}
.sitenav__item.is-active .sitenav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--rust);
}

/* Dropdown */
.sitenav__drop {
  position: absolute;
  top: 100%; left: 0;
  min-width: 210px;
  background: #0c0905;
  border-top: 2px solid var(--rust);
  border-radius: 0 0 var(--r-m) var(--r-m);
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--dur) var(--ease);
  z-index: 99;
}
.sitenav__item:hover > .sitenav__drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sitenav__sublink {
  display: block;
  padding: 10px 20px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(240,235,224,.6);
  transition: all var(--dur) var(--ease);
}
.sitenav__sublink:hover { color: var(--text-l); background: rgba(158,63,26,.12); }

/* 3rd level dropdown */
.sitenav__drop--sub {
  position: static;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  box-shadow: none;
  border-top: 1px solid rgba(158,63,26,.2);
  border-radius: 0;
  background: rgba(255,255,255,.03);
}
.sitenav__drop--sub .sitenav__sublink { padding-left: 32px; font-size: 10px; }

/* Burger button */
.sitenav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 14px 0 14px 16px;
  margin-left: auto;
}
.sitenav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-l);
  border-radius: 2px;
  transition: all .3s var(--ease);
  transform-origin: center;
}
.sitenav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sitenav__burger.is-open span:nth-child(2) { opacity: 0; }
.sitenav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('/assets/images/slider/2.jpg') center/cover no-repeat;
  animation: heroZoom 20s ease infinite alternate;
}
@keyframes heroZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(14,11,7,.82) 0%,
    rgba(26,20,16,.7) 40%,
    rgba(13,19,24,.75) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 32px;
  max-width: 720px;
  animation: heroFadeIn 1.2s var(--ease) both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__label {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--rust-l);
  margin-bottom: 20px;
  animation: heroFadeIn 1s .3s var(--ease) both;
}
.hero__title {
  font-family: var(--f-serif);
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 400;
  color: var(--text-l);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: .02em;
  animation: heroFadeIn 1s .5s var(--ease) both;
}
.hero__title em {
  font-style: italic;
  color: var(--rust-l);
}
.hero__sub {
  font-size: 16px;
  color: rgba(240,235,224,.65);
  line-height: 1.7;
  margin-bottom: 36px;
  animation: heroFadeIn 1s .7s var(--ease) both;
}
.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFadeIn 1s .9s var(--ease) both;
}
.hero__btn {
  padding: 15px 36px !important;
  font-size: 12px !important;
}
.hero__btn--outline {
  border-color: rgba(240,235,224,.3) !important;
  color: var(--text-l) !important;
}
.hero__btn--outline:hover {
  background: rgba(255,255,255,.1) !important;
  border-color: var(--text-l) !important;
  color: var(--white) !important;
}
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(240,235,224,.3);
  border-radius: 12px;
  position: relative;
}
.hero__scroll span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--rust-l);
  border-radius: 2px;
  animation: scrollDot 2s ease infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* ═══════════════════════════════════════════════════════════
   HOME PAGE — GUIDE INTRO SECTION
═══════════════════════════════════════════════════════════ */
#showcase-row { display: none; }

/* First row-container on home */
.row-container[style*="margin:60px"] {
  padding: 80px 0 72px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-mid) 100%);
  position: relative;
}
.row-container[style*="margin:60px"]::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(184,73,30,.04), transparent 70%);
  pointer-events: none;
}

/* Section heading with ornamental line */
.moduleTitle {
  text-align: center;
  margin-bottom: 56px;
}
.moduleTitle span {
  font-family: var(--f-serif);
  font-size: clamp(26px, 3.8vw, 46px);
  font-weight: 400;
  color: var(--text);
  letter-spacing: .04em;
  display: inline-block;
  position: relative;
}
.moduleTitle span::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--rust), var(--caspian-l));
  margin: 18px auto 0;
  border-radius: 2px;
}

/* Guide photo */
.item_content img[src*="ali.jpeg"] {
  width: 220px !important;
  height: 220px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 4px solid var(--rust) !important;
  box-shadow: 0 0 0 12px rgba(184,73,30,.08), 0 20px 50px rgba(24,20,14,.15) !important;
  margin: 0 auto !important;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease) !important;
}
.item_content img[src*="ali.jpeg"]:hover {
  transform: scale(1.06) rotate(2deg) !important;
  box-shadow: 0 0 0 12px rgba(184,73,30,.12), 0 28px 60px rgba(24,20,14,.22) !important;
}

/* Bio text */
.item_content[style*="text-align:justify"] {
  font-size: 16px !important;
  line-height: 1.82 !important;
  color: var(--text-m) !important;
  text-align: left !important;
}
.item_content[style*="text-align:justify"] .item_introtext { text-align: left; }

/* The first row-container's outer Bootstrap .row is flex, which makes
   #content-bottom a shrink-wrapped flex item (content ends up left-
   shifted). Make it a normal full-width block so inner content centres. */
.row-container[style*="margin:60px"] > .container > .row {
  display: block;
  margin-left: 0;
  margin-right: 0;
}
.row-container[style*="margin:60px"] > .container > .row > #content-bottom {
  width: 100%;
  padding: 0;
}

/* Guide intro: pull photo & bio together, centred as a tidy pair */
#content-bottom .mod-newsflash-adv__advantages > .row {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  text-align: left;
  width: 100%;
  max-width: 920px;
  margin: 0 auto !important;
}
#content-bottom .mod-newsflash-adv__advantages > .row > .span4,
#content-bottom .mod-newsflash-adv__advantages > .row > .span8 {
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}
#content-bottom .mod-newsflash-adv__advantages > .row > .span4 { flex: 0 0 248px; }
#content-bottom .mod-newsflash-adv__advantages > .row > .span8 { flex: 0 1 600px; }
#content-bottom .mod-newsflash-adv__advantages > .row .clearfix { display: none; }

@media (max-width: 720px) {
  #content-bottom .mod-newsflash-adv__advantages > .row { gap: 26px; text-align: center; }
  #content-bottom .mod-newsflash-adv__advantages > .row > .span4 { flex-basis: auto; }
  #content-bottom .mod-newsflash-adv__advantages > .row > .span8 { flex-basis: 100%; }
}

/* ─── ALL TOURS GRID (home page list) ─────────────────────── */
/* container span12 with tours list */
.span12[style*="margin-top:60px"] {
  padding: 48px 0 !important;
}
.span12[style*="margin-top:60px"] .moduleTitle {
  margin-bottom: 36px;
}
.span12[style*="margin-top:60px"] .moduleTitle span {
  font-size: clamp(22px, 3vw, 36px);
}

/* The container div for tour links */
.desktopx {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 16px !important;
  margin: 0 !important;
}

/* Each tour link item — premium card */
div[style*="border: 1px dashed"] {
  position: relative;
  border: 1px solid var(--border) !important;
  border-left: 4px solid var(--rust) !important;
  border-radius: var(--r-m) !important;
  background: var(--white) !important;
  padding: 22px 46px 22px 24px !important;
  margin: 0 !important;
  text-align: left !important;
  width: auto !important;
  min-height: 88px;
  display: flex !important;
  align-items: center;
  box-shadow: var(--sh);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
div[style*="border: 1px dashed"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 60%, rgba(184,73,30,.05));
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
div[style*="border: 1px dashed"]::after {
  content: '→';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  font-size: 17px;
  color: var(--rust);
  opacity: 0;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  pointer-events: none;
}
div[style*="border: 1px dashed"]:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-m);
  border-color: var(--border) !important;
  border-left-color: var(--caspian) !important;
}
div[style*="border: 1px dashed"]:hover::before { opacity: 1; }
div[style*="border: 1px dashed"]:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
div[style*="border: 1px dashed"] a {
  color: var(--text) !important;
  font-family: var(--f-sans) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  display: block;
  position: relative;
  z-index: 1;
  transition: color var(--dur) var(--ease) !important;
}
div[style*="border: 1px dashed"]:hover a { color: var(--rust) !important; }

/* ═══════════════════════════════════════════════════════════
   FEATURE ROW — TOURS SHOWCASE (dark)
═══════════════════════════════════════════════════════════ */
#feature-row {
  background: linear-gradient(135deg, #0e0b07 0%, #1a1410 40%, #0d1318 100%) !important;
  padding: 88px 0 80px;
  position: relative;
  overflow: hidden;
}
#feature-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(26,92,122,.12), transparent),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(184,73,30,.08), transparent);
  pointer-events: none;
}
#feature-row::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.18) 45%, transparent 100%);
  pointer-events: none;
}

#feature-row h3 {
  color: var(--text-l) !important;
  font-family: var(--f-serif) !important;
  font-weight: 400;
}

/* Section title in dark */
.top_destinations {
  text-align: center;
  padding: 0 0 52px;
}
.top_destinations .moduleTitle { margin-bottom: 12px; }
.top_destinations .moduleTitle span {
  color: var(--text-l);
  font-size: clamp(24px, 3.5vw, 44px);
}
.top_destinations .moduleTitle span::after {
  background: linear-gradient(90deg, var(--rust-l), var(--caspian-l));
}
.top_destinations .mod-custom p {
  color: var(--text-d);
  font-style: italic;
  font-size: 16px;
  padding-bottom: 0;
}

/* ─── Tours carousel: CSS Grid, NO horizontal scroll ───── */
.destinations { overflow: visible; padding-bottom: 0; }
.mod_caroufredsel,
#list_carousel_carousel1,
.list_carousel { overflow: visible; }

#caroufredsel_carousel1 {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: 24px !important;
  overflow: visible !important;
  width: 100% !important;
  padding-bottom: 0 !important;
  flex: none !important;
  flex-wrap: wrap !important;
  scroll-snap-type: none !important;
}

#caroufredsel_carousel1 > li.item {
  display: contents !important; /* li becomes invisible, children go into grid */
}

.destinations .item_content {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-l);
  padding: 0;
  color: var(--text-d);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.destinations .item_content:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(184,73,30,.4);
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(184,73,30,.15);
}

.destinations .item_content .item_img {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  width: 100%;
  height: 210px;
  flex-shrink: 0;
}
.destinations .item_content .item_img img {
  width: 100% !important;
  height: 210px;
  object-fit: cover;
  border-radius: 0;
  transition: transform .6s var(--ease), filter .6s var(--ease);
  display: block;
  filter: brightness(.92);
}
.destinations .item_content:hover .item_img img {
  transform: scale(1.08);
  filter: brightness(1);
}

/* ─── TOURS PAGE GRID (Light Background) ───────────────── */
.page-category__tours {
  padding: 20px 0 60px;
}
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.tours-grid .item {
  display: block;
}
.tours-grid .item_content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  box-shadow: var(--sh);
}
.tours-grid .item_content:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-m);
}
.tours-grid .item_img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  margin: 0;
}
.tours-grid .item_img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.tours-grid .item_content:hover .item_img img {
  transform: scale(1.06);
}
.tours-grid .item_body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tours-grid .item_title {
  margin: 0 0 20px;
  font-family: var(--f-serif);
  font-size: 24px;
  line-height: 1.25;
}
.tours-grid .item_title a {
  color: var(--text);
}
.tours-grid .item_content:hover .item_title a {
  color: var(--rust);
}
.tours-grid .btn-readmore {
  margin-top: auto;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--rust);
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 4px;
}
.tours-grid .btn-readmore::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.tours-grid .btn-readmore:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ─── SINGLE TOUR PAGE ─────────────────────────────────── */
.tour_header {
  margin-bottom: 40px;
  text-align: center;
}
.tour_header .item_title {
  font-family: var(--f-serif);
  font-size: clamp(32px, 5vw, 56px);
  color: var(--text);
  margin: 0;
  line-height: 1.1;
}
.tour_content {
  max-width: none;
  margin: 0 auto 64px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-m);
}
.tour_content p { margin-bottom: 1.2em; }
.tour_content img {
  border-radius: var(--r-m);
  margin: 32px 0;
  box-shadow: var(--sh);
}

.tour_gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  max-width: var(--wrap);
  margin: 0 auto 80px;
}
.tour_gallery__item {
  border-radius: var(--r-m);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  box-shadow: var(--sh);
  cursor: pointer;
  background: var(--paper-mid);
}
.tour_gallery__item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .4s var(--ease);
}
.tour_gallery__item:hover img {
  transform: scale(1.08);
  filter: contrast(1.1) saturate(1.1);
}

/* Tour card body (Dark background on Home) */
.destinations .item_content > *:not(.item_img) { padding: 0 22px; }
.destinations h4.item_title,
.destinations .item_title {
  font-family: var(--f-serif) !important;
  font-size: 21px !important;
  font-weight: 400 !important;
  color: var(--text-l) !important;
  margin-bottom: 10px;
  padding-top: 20px !important;
  letter-spacing: .02em;
}
.destinations .item_content p {
  font-size: 13px;
  color: var(--text-d);
  padding-bottom: 12px;
  margin-bottom: 0;
}
.destinations .item_content .btn-info,
.destinations a.btn.btn-info.readmore,
.destinations a.readmore {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 22px 22px !important;
  padding: 9px 20px !important;
  background: transparent !important;
  border: 1.5px solid rgba(158,63,26,.45) !important;
  border-radius: var(--r) !important;
  color: var(--rust-l) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .13em !important;
  text-transform: uppercase !important;
  height: auto !important;
  line-height: 1 !important;
  box-shadow: none !important;
  transition: all var(--dur) var(--ease) !important;
}
.destinations .item_content .btn-info:hover,
.destinations a.btn.btn-info.readmore:hover,
.destinations a.readmore:hover {
  background: var(--rust) !important;
  border-color: var(--rust) !important;
  color: var(--white) !important;
}

/* Hide prev/next carousel buttons */
#carousel_carousel1_prev,
#carousel_carousel1_next,
.caroufredsel_prev,
.caroufredsel_next,
.caroufredsel_pagination { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   ADDITIONAL INFO (Contacts · Weather · Currency)
═══════════════════════════════════════════════════════════ */
/* Section wrapper — neutralise the stray .row flex + negative margins */
#content-bottom-row {
  display: block;
  background: transparent;
  padding: 24px 0 64px;
  margin-left: 0;
  margin-right: 0;
  position: relative;
}
#content-bottom-row.row > * { padding-left: 0; padding-right: 0; }
#content-bottom-row .moduleTitle span { font-size: clamp(22px, 3vw, 38px); }

/* The 3-card row */
.mod-newsflash-adv__advantages > .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 0;
}
.mod-newsflash-adv__advantages > .row > .span4 {
  flex: 1 1 260px;
  width: auto;
  max-width: 360px;
  padding: 0;
  display: flex;
}
.mod-newsflash-adv__advantages > .row > .span4 > .clearfix { display: none; }

/* Info item cards */
#content-bottom-row .item_content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 40px 28px;
  background: var(--white);
  border-radius: var(--r-l);
  border: 1px solid var(--border);
  box-shadow: var(--sh);
  min-height: 210px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
#content-bottom-row .item_content:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-m);
  border-color: rgba(184,73,30,.25);
}
.item_title__advantages {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .2em !important;
  text-transform: uppercase !important;
  color: var(--rust) !important;
  margin: 0 !important;
  display: block;
}
.item_title__advantages::after {
  content: '';
  display: block;
  width: 26px;
  height: 2px;
  background: var(--rust);
  opacity: .45;
  border-radius: 2px;
  margin: 12px auto 0;
}
#content-bottom-row .item_introtext {
  font-size: 16px;
  color: var(--text-m);
  line-height: 1.7;
  margin: 0;
}
#content-bottom-row .item_introtext p { margin: 0; padding: 0; }
#content-bottom-row .item_introtext br + p:empty,
#content-bottom-row .item_introtext p:empty { display: none; }
#content-bottom-row .item_content a { display: inline-block; }
#content-bottom-row .item_content a img { display: block; margin: 0 auto; }
.item_introtext a { color: var(--rust); }
.item_introtext a:hover { color: var(--rust-h); }

/* Mobile: stack the 3 info cards full-width and force equal height */
@media (max-width: 720px) {
  #content-bottom-row .mod-newsflash-adv__advantages > .row {
    gap: 16px;
  }
  #content-bottom-row .mod-newsflash-adv__advantages > .row > .span4 {
    flex: 1 1 100%;
    max-width: 460px;
  }
  #content-bottom-row .item_content {
    min-height: 0;
    height: 200px;
    padding: 28px 24px;
  }
  #content-bottom-row .item_content a img { max-height: 80px; width: auto; }
}

/* ═══════════════════════════════════════════════════════════
   CONTENT PAGES (#content-row — ALL inner pages)
═══════════════════════════════════════════════════════════ */
#content-row {
  background: var(--paper);
  padding: 60px 0 72px;
  flex: 1; /* fills remaining height → pushes footer down */
}

/* ── Unified page heading (matches the /ru/guests hero) ───── */
.item_header:not(.page-category__tours .item .item_header),
.tour_header,
.page_header {
  text-align: center !important;
  margin: 6px 0 44px !important;
  padding: 0 !important;
  float: none !important;
}
.item_header h3,
.item_header h3.item_title,
.tour_header .item_title,
.page_header h3 {
  font-family: var(--f-serif) !important;
  font-size: clamp(34px, 5vw, 60px) !important;
  font-weight: 400 !important;
  color: var(--text) !important;
  letter-spacing: .02em !important;
  line-height: 1.12 !important;
  margin: 0 !important;
  display: block;
}
/* Gradient accent line under every page title */
.item_header:not(.page-category__tours .item .item_header)::after,
.tour_header::after,
.page_header::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--rust), var(--caspian-l));
  border-radius: 2px;
  margin: 20px auto 0;
}
/* Tour-category cards keep their own compact header */
.page-category__tours .item .item_header {
  text-align: left !important;
  margin: 0 !important;
}
.page-category__tours .item .item_header::after { display: none !important; }

/* Page content body */
.page-item,
.page-contact,
.page-category {
  font-size: 16px;
  line-height: 1.82;
  color: var(--text);
  padding-bottom: 0;
}
.page-item p, .page-contact p { margin-bottom: 20px; }

.item_fulltext {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}
.item_fulltext p { margin-bottom: 20px; }
.item_fulltext[style*="text-align:justify"] { text-align: left !important; }
.item_fulltext img {
  border-radius: var(--r-m);
  margin: 24px 0;
  max-width: 100%;
  box-shadow: var(--sh-m);
}
.item_fulltext ul, .item_fulltext ol {
  padding-left: 22px;
  margin-bottom: 20px;
}
.item_fulltext li { margin-bottom: 8px; }

/* Services page content (from DB) */
.page-item > h3:first-child,
.page-item > div > h3:first-child {
  font-family: var(--f-serif);
  font-size: clamp(24px, 3.5vw, 48px);
  font-weight: 400;
  margin-bottom: 28px;
  letter-spacing: .03em;
  color: var(--text);
}
.page-item table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.page-item td, .page-item th { padding: 10px 14px; border: 1px solid var(--border); font-size: 15px; }
.page-item th { background: var(--paper-mid); font-weight: 600; }

/* ─── Tour category cards ─── */
.page-category__tours { padding-bottom: 0; }
.page-category__tours .item {
  background: var(--white);
  border-radius: var(--r-l);
  border: 1px solid var(--border);
  box-shadow: var(--sh);
  overflow: hidden;
  margin-bottom: 28px;
  padding-bottom: 0;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.page-category__tours .item:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-l);
}
.page-category__tours .item .item_img { float: none; margin-bottom: 0; }
.page-category__tours .item .item_img img { width: 100%; height: 240px; object-fit: cover; border-radius: 0; display: block; }
.page-category__tours .item .item_header { padding: 24px 24px 0; }
.page-category__tours .item .item_introtext { padding: 0 24px; font-size: 15.5px; }
.page-category__tours .item .item_introtext p { padding-bottom: 10px; }
.page-category__tours h4.item_title {
  font-family: var(--f-serif) !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  color: var(--text-m) !important;
  letter-spacing: .02em;
}
.page-category__tours .item_introtext .price {
  font-family: var(--f-serif);
  font-size: 32px;
  color: var(--rust);
  font-weight: 400;
  display: block;
  margin-bottom: 16px;
}
.page-category__tours .item a.btn { margin: 0 0 24px 24px; }

.item_published {
  float: left;
  background: var(--rust);
  color: var(--white);
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r);
  text-align: center;
  width: 52px;
  padding: 8px 0 6px;
  margin-right: 18px;
}
.item_published span { display: block; font-size: 28px; font-weight: 300; }

/* ═══════════════════════════════════════════════════════════
   ABOUT / "О СЕБЕ" PAGE  (legacy DB markup)
═══════════════════════════════════════════════════════════ */
/* Override the legacy inline <style> that pins .span4 to 355×220 */
.page-item .moduletable.destinations.span4 {
  width: auto !important;
  height: auto !important;
  float: none !important;
}

/* Let the About content use the full container width (align edges
   with the header/nav). Scoped via :has so tour-detail pages keep
   their narrow reading column. */
.page-item .item_fulltext.tour_content:has(.moduletable.destinations.span12) {
  max-width: none !important;
  margin: 0 auto 48px !important;
}

/* ── Bio block (profile photo + text) ── */
.page-item .item_fulltext .moduletable.advantages {
  width: 100% !important;
  float: none !important;
  display: block;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center;
}
/* Keep the bio text at a comfortable reading width */
.page-item .moduletable.advantages.span9 { max-width: 760px; }
.page-item .moduletable.advantages.span2 { margin: 0 auto 28px !important; }
.page-item .moduletable.advantages.span2 img {
  width: 180px !important;
  height: 180px !important;
  object-fit: cover;
  border-radius: 50% !important;
  border: 4px solid var(--rust);
  box-shadow: 0 0 0 10px rgba(184,73,30,.08), var(--sh-m);
  margin: 0 auto !important;
  display: block;
}
.page-item .moduletable.advantages.span9 {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-m);
  text-align: left;
  padding: 0 0 40px !important;
}

/* ── Photo gallery ── */
.page-item .moduletable.destinations.span12 {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-items: start;
  gap: 16px;
  max-width: none !important;
  width: 100% !important;
  margin: 48px 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
.page-item .moduletable.destinations.span12 > br { display: none; }
.page-item .moduletable.destinations.span12 > h3.item_title {
  grid-column: 1 / -1;
  text-align: center;
  margin: 8px 0 24px;
}
.page-item .moduletable.destinations.span12 > h3.item_title .item_title_part0 {
  font-family: var(--f-serif);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 400;
  color: var(--text);
  letter-spacing: .03em;
}
.page-item .moduletable.destinations.span12 > h3.item_title .item_title_part0::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--rust), var(--caspian-l));
  border-radius: 2px;
  margin: 14px auto 0;
}
.page-item .moduletable.destinations.span12 > .moduletable.destinations.span4 {
  margin: 0 !important;
  padding: 0 !important;
  height: 260px !important;
  border-radius: var(--r-m);
  overflow: hidden !important;
  background: var(--paper-mid);
  box-shadow: var(--sh);
  font-size: 0;
  line-height: 0;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.page-item .moduletable.destinations.span12 > .moduletable.destinations.span4:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-m);
}
.page-item .moduletable.destinations.span12 > .moduletable.destinations.span4 img {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  margin: 0 !important;
  transition: transform .6s var(--ease);
}
.page-item .moduletable.destinations.span12 > .moduletable.destinations.span4:hover img {
  transform: scale(1.07);
}

@media (max-width: 900px) {
  .page-item .moduletable.destinations.span12 > .moduletable.destinations.span4 { height: 220px !important; }
}
@media (max-width: 600px) {
  .page-item .moduletable.destinations.span12 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .page-item .moduletable.destinations.span12 > .moduletable.destinations.span4 { height: 150px !important; }
}

/* ═══════════════════════════════════════════════════════════
   GUESTS GALLERY PAGE («Наши гости»)
═══════════════════════════════════════════════════════════ */
.guests-hero { text-align: center; margin: 6px 0 44px; }
.guests-hero h1 {
  font-family: var(--f-serif);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 400;
  color: var(--text);
  letter-spacing: .02em;
  margin: 0;
}
.guests-hero h1::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--rust), var(--caspian-l));
  border-radius: 2px;
  margin: 18px auto 22px;
}
.guests-hero p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-m);
  max-width: 680px;
  margin: 0 auto;
}
.guests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.guests-grid figure {
  margin: 0;
  height: 280px;
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--paper-mid);
  box-shadow: var(--sh);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.guests-grid figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-m);
}
.guests-grid img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center;
  display: block;
  transition: transform .6s var(--ease);
}
.guests-grid figure:hover img { transform: scale(1.06); }
@media (max-width: 900px) {
  .guests-grid figure { height: 220px; }
}
@media (max-width: 600px) {
  .guests-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .guests-grid figure { height: 150px; }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════════════════════ */
.page-contact .page_header h3 { margin-bottom: 40px; }

/* Contact / review form as a clean card */
.contact_form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 36px 40px;
  box-shadow: var(--sh);
  margin-bottom: 44px;
}
.contact_form fieldset { border: none; padding: 0; margin: 0; }
.contact_form .muted { color: var(--text-m); font-size: 14px; font-style: italic; }
.contact_form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-m);
  margin: 18px 0 7px;
}
.contact_form .star { color: var(--rust); }
.contact_form .controls { margin-bottom: 4px; }
.contact_form button.btn-primary,
.contact_form .pull-right { margin-top: 26px; }
.contact_form .pull-right { float: none; }

.contact_details { padding-right: 36px; }
.contact_details h3 {
  font-family: var(--f-sans) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  color: var(--rust) !important;
  margin-bottom: 10px !important;
}
.contact_details_emailto { font-size: 16px; margin-top: 4px; }
.contact_details_emailto a { color: var(--text-m); }
.contact_details_emailto a:hover { color: var(--rust); }

/* Success/error message */
[style*="background-color:#fb8c07"] {
  background: var(--rust) !important;
  color: var(--white) !important;
  padding: 18px 24px !important;
  border-radius: var(--r-m) !important;
  margin-bottom: 28px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

/* ═══════════════════════════════════════════════════════════
   REVIEWS  (review.php / about.php — h5 + text + <hr> markup)
═══════════════════════════════════════════════════════════ */
/* Reviewer name — override the global uppercase-label h5 */
.page-contact h5 {
  font-family: var(--f-serif) !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: .01em !important;
  color: var(--text) !important;
  margin: 28px 0 4px !important;
}
.page-contact .contact_form ~ div p,
.page-contact p[style*="italic"] {
  font-family: var(--f-serif);
  font-size: 17px !important;
  font-style: italic;
  color: var(--text-m);
  line-height: 1.7;
  border-left: 3px solid var(--rust);
  padding-left: 20px;
  margin: 10px 0 0;
}
.page-contact hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* External review-platform blocks (Tripster / Tourister) */
.page-contact .moduletable.destinations[class*="span"] {
  display: inline-block;
  vertical-align: top;
  width: 47% !important;
  padding-bottom: 36px !important;
  margin-top: 16px;
}
.page-contact .moduletable.destinations.span1 { display: none !important; }
.page-contact .moduletable.destinations a {
  color: var(--rust) !important;
  font-family: var(--f-serif);
}
.page-contact .moduletable.destinations a:hover { color: var(--rust-h) !important; }
.page-contact .moduletable.destinations img {
  border-radius: var(--r-m);
  margin-top: 10px;
  box-shadow: var(--sh);
  transition: transform .4s var(--ease);
}
.page-contact .moduletable.destinations img:hover { transform: scale(1.02); }

@media (max-width: 720px) {
  .page-contact .moduletable.destinations[class*="span"] { width: 100% !important; display: block; }
}

.page-category__testimonials .item {
  background: var(--white);
  border-radius: var(--r-l);
  border: 1px solid var(--border);
  padding: 32px 36px;
  margin-bottom: 24px;
  box-shadow: var(--sh);
}
blockquote {
  border-left: 3px solid var(--rust);
  padding-left: 22px;
  margin: 0;
}
blockquote p {
  font-family: var(--f-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--text-m);
  line-height: 1.7;
  margin-bottom: 0;
  padding-bottom: 0;
}
blockquote small {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--stone);
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════════════════ */
ul.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
ul.gallery .gallery-item {
  border-radius: var(--r-m);
  overflow: hidden;
  aspect-ratio: 4/3;
  float: none;
  width: 100%;
  padding: 0;
  background: var(--paper-mid);
}
ul.gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}
ul.gallery .gallery-item:hover img { transform: scale(1.06); }

/* Tour detail images (inline in content) */
.item_fulltext img[width="800"] {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  border-radius: var(--r-m);
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════ */
.pagination { margin: 0; padding: 32px 0 0; }
.pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  border: none;
  box-shadow: none;
  margin: 0;
  width: auto;
}
.pagination ul li { margin: 0; display: inline-block; }
.pagination ul li .pagenav {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-m);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--white);
  box-shadow: none;
  transition: all var(--dur) var(--ease);
}
.pagination ul li a.pagenav:hover { color: var(--white); background: var(--rust); border-color: var(--rust); }
.pagination ul li.num span.pagenav { color: var(--white); background: var(--rust); border-color: var(--rust); }
.pagination ul li.pagination-start, .pagination ul li.pagination-end { display: none; }
.pagination ul li.pagination-prev .pagenav,
.pagination ul li.pagination-next .pagenav { background: none; border: none; padding: 9px 4px; }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════ */
#aside-right .moduletable { margin-bottom: 40px; }
.archive-module li,
.categories-module li,
.mod-menu .nav.menu li,
.list1 ul li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  list-style: none;
  background: none;
}
.archive-module li a,
.categories-module li a,
.mod-menu .nav.menu li a,
.list1 ul li a {
  font-size: 15px;
  color: var(--text-m);
}
.archive-module li a:hover,
.categories-module li a:hover,
.mod-menu .nav.menu li a:hover,
.list1 ul li a:hover { color: var(--rust); }

.well {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  padding: 24px;
  box-shadow: var(--sh);
  min-height: 20px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
/* Neutralise old footer wrapper if it exists */
#wrapper    { margin-bottom: 0 !important; }
#push       { display: none !important; }
#footer-wrapper {
  background: var(--nav) !important;
  height: auto !important;
  padding: 0 !important;
}
#copyright-row { display: none !important; }

.sitefooter {
  background: linear-gradient(135deg, #0e0b07 0%, #141110 50%, #0d1318 100%);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--rust), var(--caspian-l), var(--rust-l)) 1;
  padding: 52px 0 40px;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}
.sitefooter::before {
  content: '';
  position: absolute;
  bottom: -120px; right: -100px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(184,73,30,.06), transparent 70%);
  pointer-events: none;
}
.sitefooter::after {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(26,92,122,.05), transparent 70%);
  pointer-events: none;
}
.sitefooter__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.sitefooter__logo {
  height: 42px;
  width: auto;
  opacity: .8;
  filter: brightness(0) invert(1);
  transition: opacity .3s;
  display: block;
}
.sitefooter__logo:hover { opacity: 1; }
.sitefooter__tagline {
  font-size: 13px;
  color: var(--text-d);
  font-style: italic;
  margin-top: 10px;
}
.sitefooter__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.sitefooter__license {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rust-l);
  transition: color var(--dur) var(--ease);
}
.sitefooter__license:hover { color: var(--text-l); }
.sitefooter__copy { font-size: 12.5px; color: var(--text-d); }

/* ═══════════════════════════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════════════════════════ */
#back-top {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  transform: translateY(12px);
}
#back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: rgba(16,13,9,.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(184,73,30,.3);
  border-radius: 50%;
  color: var(--rust-l);
  font-size: 16px;
  transition: all .3s var(--ease);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
#back-top a:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(184,73,30,.4);
}
#back-top a span { display: none; }
#back-top a::after { content: '↑'; }

/* ═══════════════════════════════════════════════════════════
   FLOATING CALL BUTTONS
═══════════════════════════════════════════════════════════ */
.call_icons {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 1000;
}
.call_icons a.call {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--rust) 0%, var(--rust-h) 100%);
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(184,73,30,.45);
  transition: all .4s var(--ease);
  position: relative;
}
.call_icons a.call::before,
.call_icons a.call::after { display: none; }
.call_icons a.call:hover {
  background: var(--rust-h);
  box-shadow: 0 6px 28px rgba(158,63,26,.6);
  transform: rotate(360deg);
}
/* Chat / dialog icon (so visitors know it opens contact options) */
.call_icons a.call::before {
  content: '';
  display: block !important;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 26px;
  height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 3C6.48 3 2 6.58 2 11c0 2.05.98 3.92 2.6 5.34L4 21l4.86-2.03C9.83 19.31 10.9 19.5 12 19.5c5.52 0 10-3.58 10-8S17.52 3 12 3zM8 12.5a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm4 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm4 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3z'/%3E%3C/svg%3E") no-repeat center / contain;
}
/* When the menu is open the button rotates; keep icon upright-ish */
.call_icons:hover a.call::before { transform: translate(-50%,-50%); }
.call_icons ul {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 50px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s var(--ease);
  padding: 0;
  margin: 0;
  list-style: none;
}
.call_icons:hover ul { opacity: 1; visibility: visible; transform: translateY(0); }
.call_icons ul li { padding: 0 0 8px; list-style: none; }
.call_icons ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,.28);
  position: relative;
  transition: transform .25s var(--ease);
}
.call_icons ul li a:hover { transform: scale(1.1); }
.call_icons ul li a.whatsapp { background: #25d366 url(/assets/images/button/whatsapp_white_icon.png) no-repeat 50%; background-size: 50%; }
.call_icons ul li a.chat     { background: var(--caspian) url(/assets/images/button/chat_icon.svg) no-repeat 50%; background-size: 50%; }
.call_icons ul li a.facebook { background: #3b5998 url(/assets/images/button/facebook_icon.png) no-repeat 50%; background-size: 50%; }
.call_icons ul li a::before, .call_icons ul li a::after { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   MISC / HELPERS
═══════════════════════════════════════════════════════════ */
.icons-marker { display: none; }
#system-message-container { min-height: 0; }
#component { min-height: 100px; }

/* Old superfish/nav classes that might still exist in HTML */
#menunew { display: none !important; }
#header-row { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sitenav__list {
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #0c0905;
    border-top: 1px solid rgba(158,63,26,.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
    z-index: 99;
  }
  .sitenav__list.is-open { max-height: 80vh; overflow-y: auto; }
  .sitenav__link { padding: 13px 20px; font-size: 11px; }
  .sitenav__burger { display: flex; }

  .sitenav__drop {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border-top: none; border-radius: 0;
    background: rgba(255,255,255,.03);
    display: none;
  }
  .sitenav__item.drop-open > .sitenav__drop { display: block; }
  .sitenav__drop--sub { display: block !important; }
  .sitenav__sublink { padding-left: 36px; }

  .contact_details { padding-right: 0; margin-bottom: 28px; }
  .span3 { width: 100%; }
  .span9 { width: 100%; }
}

@media (max-width: 720px) {
  html { font-size: 16px; }

  .siteheader__inner { display: none; }
  .siteheader__mob { display: block; }

  .span1,.span2,.span3,.span4,.span5,.span6,
  .span7,.span8,.span9,.span10,.span11 {
    width: 100%;
  }
  .row, .row-fluid, .content-inner {
    margin-left: 0; margin-right: 0;
  }
  .row > *, .row-fluid > *, .content-inner > * {
    padding-left: 0; padding-right: 0;
  }
  .container { padding: 0 20px; }
  .siteheader__inner,
  .sitenav__inner,
  .sitefooter__inner { padding-left: 20px; padding-right: 20px; }

  #content-row { padding: 40px 0 56px; }
  .row-container[style*="margin:60px"] { padding: 48px 0 40px; }
  #feature-row { padding: 56px 0 56px; }
  #content-bottom-row { padding: 52px 0 44px; }

  #caroufredsel_carousel1 { grid-template-columns: 1fr !important; gap: 16px !important; }
  .desktopx { grid-template-columns: 1fr !important; gap: 12px !important; }

  .sitefooter { padding: 36px 0 28px; }
  .sitefooter__inner { flex-direction: column; align-items: center; text-align: center; }
  .sitefooter__links { align-items: center; }

  .call_icons { right: 16px; bottom: 28px; }
  #back-top { right: 16px; bottom: 88px; }

  .moduleTitle { margin-bottom: 36px; }
  ul.gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

@media (max-width: 480px) {
  .desktopx { grid-template-columns: 1fr !important; }
  ul.gallery { grid-template-columns: 1fr; }
  #caroufredsel_carousel1 { grid-template-columns: 1fr !important; }
}
