/* ============================================================
   Jordan Aventura Tours — main stylesheet (light/dark themes)
   ============================================================ */
:root {
  --bg-primary: #fbf8f2;
  --bg-secondary: #f4efe6;
  --bg-card: #ffffff;
  --text-primary: #21332c;
  --text-secondary: #5d6f66;
  --border-color: #e7dfd1;
  --primary: #0e4d3a;
  --primary-600: #0b3f2f;
  --primary-100: #dcebe4;
  --accent: #c9a227;
  --accent-600: #a88516;
  --danger: #b3453a;
  --shadow-sm: 0 1px 3px rgba(20, 40, 30, .08);
  --shadow-md: 0 8px 24px rgba(20, 40, 30, .10);
  --radius: 14px;
  --radius-sm: 8px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --container: 1200px;
}
[data-theme="dark"] {
  --bg-primary: #0f1a16;
  --bg-secondary: #14231d;
  --bg-card: #1a2b24;
  --text-primary: #e9f2ec;
  --text-secondary: #a9bcb1;
  --border-color: #2a4036;
  --primary: #37b07f;
  --primary-600: #2f9a6e;
  --primary-100: #1d3a2e;
  --accent: #e0b83f;
  --accent-600: #c9a227;
  --danger: #e07a6e;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-600); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--text-primary); margin: 0 0 .5em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 10px 16px; z-index: 2000; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; cursor: pointer; font-family: var(--font-body); font-weight: 600;
  padding: 11px 20px; border-radius: 40px; font-size: 15px; line-height: 1.2;
  transition: all .2s ease; text-decoration: none;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-small { padding: 7px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger-outline { background: transparent; color: var(--danger); border: 2px solid var(--danger); }
.btn-danger-outline:hover { background: var(--danger); color: #fff; }
.btn-paypal { background: #ffc439; color: #0c2d5b; width: 100%; }
.btn-paypal:hover { background: #ffb60d; color: #0c2d5b; }
.btn-paytabs { background: #1d3d6b; color: #fff; width: 100%; }
.btn-paytabs:hover { background: #142b4d; color: #fff; }
.btn-client { background: var(--accent); color: #fff; }
.btn-client:hover { background: var(--accent-600); color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 900; background: var(--bg-card); border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 74px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-primary); }
.brand:hover { color: var(--primary); }
.brand-text strong { font-family: var(--font-head); font-size: 17px; display: block; line-height: 1.15; color: var(--primary); }
.brand-text small { font-size: 11px; color: var(--text-secondary); }
.main-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.main-nav a { padding: 8px 11px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-primary); white-space: nowrap; }
.main-nav a:hover { background: var(--primary-100); color: var(--primary); }
.main-nav a.active { background: var(--primary); color: #fff; }
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.theme-toggle, .nav-burger { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 50%; width: 40px; height: 40px; font-size: 17px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--text-primary); }
.lang-switcher { display: inline-flex; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 40px; padding: 3px; }
.lang-link { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 40px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.lang-link.active { background: var(--primary); color: #fff; }
.lang-link span { font-size: 10.5px; }
.nav-burger { display: none; flex-direction: column; gap: 4px; }
.nav-burger span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { background-size: cover; background-position: center; color: #fff; text-align: center; padding: 110px 20px 130px; position: relative; }
.hero-inner { max-width: 860px; margin: 0 auto; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(4px); padding: 6px 14px; border-radius: 40px; font-size: 13px; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 52px); margin-bottom: 14px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-sub { font-size: clamp(15px, 2vw, 19px); max-width: 680px; margin: 0 auto 26px; opacity: .94; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.page-hero { background-size: cover; background-position: center; color: #fff; padding: 60px 20px 66px; }
.page-hero.slim { padding: 44px 20px 48px; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 4vw, 40px); margin-bottom: 8px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.page-hero p { color: rgba(255,255,255,.94); max-width: 780px; text-shadow: 0 1px 6px rgba(0,0,0,.45); margin: 4px 0; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 14px; }
.breadcrumb { font-size: 13px; margin-bottom: 8px; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb span { color: #fff; }

/* quick search */
.quickbar { margin-top: -62px; position: relative; z-index: 5; padding: 0 20px; }
.quick-search { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 14px; display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; max-width: var(--container); margin: 0 auto; }
.qs-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 180px; }
.qs-field span { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .4px; }
.qs-field input, .qs-field select, input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=tel], select, textarea {
  font-family: var(--font-body); font-size: 14.5px; color: var(--text-primary);
  background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  padding: 10px 13px; width: 100%; transition: border .2s ease, box-shadow .2s ease;
}
.qs-field input:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,77,58,.15); }

/* sections */
.section { padding: 56px 0; }
.section-tint { background: var(--bg-secondary); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); }
.section-head p { color: var(--text-secondary); }
.section-head .btn { margin-top: 12px; }

/* tour cards */
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.tour-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; }
.tour-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tour-card-media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-secondary); }
.tour-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tour-card:hover .tour-card-media img { transform: scale(1.05); }
.tour-type { position: absolute; left: 10px; top: 10px; background: rgba(14,77,58,.92); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 4px 10px; border-radius: 30px; }
.tour-dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; padding: 4px 9px; border-radius: 30px; }
.tour-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tour-card-body h3 { font-size: 17px; margin: 0; }
.tour-card-body h3 a { color: var(--text-primary); }
.tour-card-body h3 a:hover { color: var(--primary); }
.tour-card-body p { font-size: 13.5px; color: var(--text-secondary); margin: 0; }
.tour-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.price { font-weight: 700; color: var(--primary); font-size: 15px; }
.jod, .jod-eq { font-weight: 500; color: var(--text-secondary); font-size: 12.5px; }
.tour-card.mini .tour-card-body { padding: 10px 12px; }
.tour-card.mini h3 { font-size: 14px; }
.stars { color: var(--accent); font-size: 13px; }

/* destination / info cards */
.dest-grid, .info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.dest-card, .info-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.dest-card img, .info-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dest-card:hover img, .info-card:hover img { transform: scale(1.06); }
.dest-card span, .info-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-weight: 700; font-size: 16px; font-family: var(--font-head); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.why-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 26px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.why-ico { font-size: 30px; display: block; margin-bottom: 10px; }
.why-card h3 { font-size: 17px; }
.why-card p { color: var(--text-secondary); font-size: 13.5px; margin: 0; }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.testi-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 22px; margin: 0; box-shadow: var(--shadow-sm); }
.testi-card blockquote { margin: 8px 0; color: var(--text-primary); font-size: 14.5px; font-style: italic; }
.testi-card figcaption { font-size: 13px; color: var(--text-secondary); }
.cta-band { background: linear-gradient(120deg, var(--primary-600), var(--primary)); color: #fff; text-align: center; padding: 54px 20px; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.cta-band p { opacity: .9; max-width: 640px; margin: 0 auto 20px; }
.home-seo h2 { text-align: center; }
.partner-link, .footer-seo a { color: var(--accent); font-weight: 700; }

/* footer */
.site-footer { background: #10231c; color: #cfe0d7; margin-top: 40px; }
[data-theme="dark"] .site-footer { background: #0a120e; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; padding: 48px 20px 26px; }
.footer-col h4 { color: #fff; font-size: 15px; letter-spacing: .4px; text-transform: uppercase; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 7px 0; font-size: 14px; }
.footer-col a { color: #cfe0d7; }
.footer-col a:hover { color: var(--accent); }
.footer-about p { font-size: 13.5px; opacity: .85; }
.footer-about .brand-text strong { color: #fff; }
.partner-line { margin-top: 12px; }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
.payment-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.badge-pp, .badge-pt, .badge-cur { font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 30px; }
.badge-pp { background: #ffc439; color: #0c2d5b; }
.badge-pt { background: #3b6cb5; color: #fff; }
.badge-cur { background: rgba(255,255,255,.14); color: #fff; }
.footer-seo { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; }
.footer-seo p { font-size: 12.5px; color: #9db4a8; margin: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0; font-size: 13px; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #9db4a8; }
.footer-bottom a { color: var(--accent); }

/* detail */
.detail-grid { display: grid; grid-template-columns: 1fr 400px; gap: 34px; align-items: start; }
.detail-main { min-width: 0; }
.gallery { margin-bottom: 20px; }
.gallery-main { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.g-thumb { width: 84px; height: 62px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: var(--bg-secondary); }
.g-thumb.active { border-color: var(--accent); }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-block { margin-bottom: 26px; }
.detail-block h2 { font-size: 24px; border-left: 5px solid var(--accent); padding-left: 14px; }
.lead { font-size: 17px; color: var(--text-primary); font-weight: 500; }
.rich { color: var(--text-secondary); white-space: pre-line; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.inc-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 18px 20px; }
.inc-box h3 { font-size: 16px; }
h3.ok { color: var(--primary); } h3.no { color: var(--danger); }
.check-list, .x-list { list-style: none; margin: 0; padding: 0; }
.check-list li, .x-list li { padding-left: 26px; position: relative; margin: 6px 0; font-size: 14px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.x-list li::before { content: "✕"; position: absolute; left: 0; color: var(--danger); font-weight: 800; }
.itin-list { counter-reset: day; list-style: none; margin: 0; padding: 0; }
.itin-list li { counter-increment: day; position: relative; padding: 10px 10px 10px 52px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); margin: 8px 0; font-size: 14px; }
.itin-list li::before { content: counter(day, decimal-leading-zero); position: absolute; left: 10px; top: 9px; background: var(--primary); color: #fff; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; font-size: 13px; }
.detail-side { position: sticky; top: 90px; }
.price-panel { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; }
.price-panel h3 { font-size: 20px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 8px 0 14px; }
.price-table th, .price-table td { padding: 7px 8px; border-bottom: 1px solid var(--border-color); text-align: left; }
.price-table th { color: var(--text-secondary); font-size: 12px; text-transform: uppercase; }
.badge-solo { background: var(--accent); color: #fff; font-size: 10.5px; padding: 2px 7px; border-radius: 20px; margin-left: 4px; }
.fine { font-size: 12.5px; color: var(--text-secondary); }
.fine.center { text-align: center; }
.booking-panel { background: var(--bg-secondary); border-radius: var(--radius); padding: 18px; margin-top: 18px; }
.booking-panel h3 { font-size: 18px; }
.booking-form label { display: block; margin: 10px 0 4px; font-size: 13.5px; font-weight: 600; }
.booking-form label small { color: var(--text-secondary); font-weight: 400; }
.booking-form hr { border: 0; border-top: 1px dashed var(--border-color); margin: 16px 0; }
.extras-toggle summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.extra-line { font-weight: 400 !important; display: flex; gap: 6px; align-items: baseline; }
.extra-line em { color: var(--primary); font-style: normal; font-weight: 700; margin-left: auto; }
.quote-box { background: var(--bg-card); border: 1px dashed var(--border-color); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; font-size: 14px; }
.quote-box strong { color: var(--primary); font-size: 17px; }

/* panels & tables */
.panel { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.panel h2 { font-size: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.meta-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.meta-table td { padding: 7px 8px; border-bottom: 1px solid var(--border-color); vertical-align: top; }
.meta-table td:first-child { color: var(--text-secondary); width: 40%; }
.meta-table tr.grand td { font-weight: 800; font-size: 16px; border-top: 2px solid var(--border-color); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-ok { background: #e2f3e9; color: #0b4d2f; border: 1px solid #b7e2c8; }
[data-theme="dark"] .alert-ok { background: #123126; color: #b7e2c8; }
.alert-err { background: #fbe9e7; color: #8f2d23; border: 1px solid #f3c9c4; }
[data-theme="dark"] .alert-err { background: #3a1c18; color: #f3c9c4; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 30px; font-size: 12.5px; font-weight: 700; }
.st-pending { background: #fff2cf; color: #8a6400; }
.st-approved, .st-paid, .st-done { background: #ddf0e4; color: #0b5c33; }
.st-cancelled { background: #f6deda; color: #932e20; }
.st-completed { background: #dbe7ff; color: #1d3d8f; }
.st-change_request { background: #efe4ff; color: #6b2d9e; }
[data-theme="dark"] .status-pill { color: #fff; }
.row-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.center-actions { text-align: center; margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 46px 10px; color: var(--text-secondary); }
.seo-block { margin-top: 36px; background: var(--bg-secondary); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--text-secondary); font-size: 14px; }
.seo-block.narrow { max-width: 860px; margin-left: auto; margin-right: auto; }

/* listing */
.listing-toolbar { margin-bottom: 26px; }
.filter-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filter-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.result-count { color: var(--text-secondary); font-size: 13.5px; margin: 12px 0 0; }
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 34px 0 6px; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-primary); border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; text-decoration: none; }
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* directory */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.dir-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.dir-card h2 { font-size: 18px; }
.dir-card h2 a { color: var(--text-primary); }
.dir-list { list-style: none; margin: 0; padding: 0; }
.dir-list li { border-top: 1px dashed var(--border-color); }
.dir-list a { display: block; padding: 7px 2px; font-size: 14px; }

/* faq */
.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 15px 18px; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--primary); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--primary); }
.faq-answer { padding: 0 18px 16px; color: var(--text-secondary); font-size: 14.5px; }

/* contact */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 8px 0; border-bottom: 1px dashed var(--border-color); font-size: 14.5px; }

/* invoice */
.invoice-sheet { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.inv-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.inv-brand { font-family: var(--font-head); font-size: 22px; color: var(--primary); }
.inv-meta { text-align: right; font-size: 13.5px; }
.article { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: clamp(20px, 4vw, 46px); box-shadow: var(--shadow-sm); }
.article h2 { font-size: 24px; margin-top: 1.4em; }
.article p { margin: 1em 0; color: var(--text-primary); }
.article a { text-decoration: underline; }
.article-cta { text-align: center; border-top: 1px dashed var(--border-color); margin-top: 26px; padding-top: 22px; }
.article-cta p { font-weight: 600; }

/* chat widget */
.chat-widget { position: fixed; right: 18px; bottom: 18px; z-index: 1100; font-family: var(--font-body); }
.chat-launcher { width: 60px; height: 60px; border-radius: 50%; background: var(--primary); color: #fff; border: 0; cursor: pointer; font-size: 26px; box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.chat-launcher:hover { transform: scale(1.06); }
.chat-launcher .chat-launcher-close { display: none; font-size: 20px; }
.chat-widget.open .chat-launcher .chat-launcher-icon { display: none; }
.chat-widget.open .chat-launcher .chat-launcher-close { display: inline; }
.chat-panel { position: absolute; right: 0; bottom: 72px; width: 330px; max-width: calc(100vw - 30px); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; box-shadow: var(--shadow-md); overflow: hidden; display: flex; flex-direction: column; }
.chat-head { background: var(--primary); color: #fff; padding: 13px 16px; display: flex; justify-content: space-between; align-items: center; }
.chat-status { font-size: 11.5px; opacity: .92; }
.chat-body { height: 280px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-secondary); }
.chat-msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; }
.chat-msg.admin { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--border-color); }
.chat-msg.visitor { align-self: flex-end; background: var(--primary); color: #fff; }
.chat-msg .who { display: block; font-size: 10.5px; opacity: .7; margin-bottom: 2px; }
.chat-ask, .chat-input { display: flex; gap: 8px; padding: 10px; background: var(--bg-card); border-top: 1px solid var(--border-color); }
.chat-ask input { flex: 1; min-width: 0; }
.chat-input input { flex: 1; border: 1px solid var(--border-color); border-radius: 30px; padding: 9px 15px; background: var(--bg-secondary); color: var(--text-primary); }
.chat-input button { border: 0; background: var(--primary); color: #fff; border-radius: 50%; width: 38px; height: 38px; cursor: pointer; }
.chat-widget .btn { width: 100%; }

/* responsive */
@media (max-width: 1080px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border-color); flex-direction: column; padding: 12px 18px 18px; box-shadow: var(--shadow-md); }
  .main-nav.open { display: flex; }
  .nav-burger { display: inline-flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-tools .btn-client { display: none; }
  .lang-link span { display: none; }
  .hero { padding: 80px 16px 110px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
