/* ==========================================================================
   LaviTrip — Japan Private Car Charter
   Palette: 生成白 #FAF9F5 · 藍 #2E5077 · 朱红 #E4573D · 浅葱 #A8C5D6
   RTL-ready: logical properties throughout; [dir="rtl"] gets mirrored layout.
   ========================================================================== */

:root {
  --bg: #FAF9F5;
  --surface: #FFFFFF;
  --ink: #22303C;
  --ink-soft: #55606B;
  --muted: #8A929B;
  --indigo: #2E5077;
  --indigo-deep: #1F3A59;
  --indigo-tint: #EAF0F6;
  --vermilion: #E4573D;
  --vermilion-deep: #C9432B;
  --asagi: #A8C5D6;
  --line: #E7E2D8;
  --wa: #25D366;
  --line-brand: #06C755;
  --wechat: #07C160;
  --radius: 14px;
  --radius-s: 8px;
  --shadow: 0 6px 24px rgba(31, 58, 89, 0.08);
  --shadow-lift: 0 12px 36px rgba(31, 58, 89, 0.14);
  --font: "Noto Sans", "Noto Sans JP", "Noto Sans SC", "Noto Sans TC", "Noto Sans KR",
    "Noto Sans Thai", "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo",
    "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", "Malgun Gothic",
    "Leelawadee UI", "Geeza Pro", Tahoma, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--vermilion); }

ul, ol { list-style: none; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.container {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container { max-width: 1280px; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  direction: ltr; /* brand wordmark never mirrors, even in RTL layouts */
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--indigo-deep);
  white-space: nowrap;
}
.logo:hover { color: var(--indigo-deep); }

.logo .i-sun {
  position: relative;
  display: inline-block;
}
.logo .i-sun::before {
  content: "";
  position: absolute;
  top: 0.06em;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 0.24em;
  height: 0.24em;
  border-radius: 50%;
  background: var(--vermilion);
}
.logo .trip { color: var(--vermilion); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

.main-nav a {
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover { color: var(--indigo-deep); background: var(--indigo-tint); }

.main-nav a.active {
  color: var(--indigo-deep);
  background: var(--indigo-tint);
  font-weight: 700;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.lang-btn:hover { border-color: var(--asagi); box-shadow: var(--shadow); }
.lang-btn svg { width: 17px; height: 17px; flex: none; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-s);
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Collapsed header: applied by JS whenever the inline nav doesn't fit
   (long labels in languages like Vietnamese/German, or narrow viewports). */
.site-header.collapsed .nav-toggle { display: flex; }
.site-header.collapsed .lang-btn { margin-inline-start: auto; }
.site-header.collapsed .main-nav {
  display: none;
  position: absolute;
  top: 68px;
  inset-inline: 0;
  flex-direction: column;
  align-items: stretch;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px 18px;
  gap: 4px;
  box-shadow: var(--shadow-lift);
  margin-inline-start: 0;
}
.site-header.collapsed .main-nav.open { display: flex; }
.site-header.collapsed .main-nav a { padding: 12px 14px; border-radius: 10px; font-size: 16px; white-space: normal; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21, 34, 50, 0.78) 0%, rgba(21, 34, 50, 0.35) 55%, rgba(21, 34, 50, 0.25) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 130px 110px;
  max-width: 880px;
}

.hero--sub .hero-inner { padding-block: 84px 72px; }

.hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FBD9CF;
  background: rgba(228, 87, 61, 0.28);
  border: 1px solid rgba(251, 217, 207, 0.4);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.hero .lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin-bottom: 30px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.trust-row span {
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 14px;
  backdrop-filter: blur(4px);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 28px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--vermilion);
  color: #fff;
}
.btn-primary:hover { background: var(--vermilion-deep); color: #fff; box-shadow: var(--shadow-lift); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }

.btn-indigo { background: var(--indigo); color: #fff; }
.btn-indigo:hover { background: var(--indigo-deep); color: #fff; box-shadow: var(--shadow-lift); }

.btn-outline {
  border-color: var(--indigo);
  color: var(--indigo);
  background: transparent;
}
.btn-outline:hover { background: var(--indigo-tint); color: var(--indigo-deep); }

/* ---------- Sections ---------- */

.section { padding-block: 88px; }
.section.tinted { background: var(--surface); border-block: 1px solid var(--line); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center { margin-inline: auto; text-align: center; }

.section-kicker {
  display: inline-block;
  color: var(--vermilion);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
  color: var(--indigo-deep);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-head p { color: var(--ink-soft); }

/* ---------- Cards / grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.card-media { aspect-ratio: 3 / 2; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-media img { transform: scale(1.04); }

.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.card-body h3 { font-size: 19px; color: var(--indigo-deep); font-weight: 800; }
.card-body p { font-size: 14.5px; color: var(--ink-soft); }

.card-link {
  margin-top: auto;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--vermilion);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link .arrow { transition: transform 0.2s; display: inline-block; }
.card:hover .card-link .arrow { transform: translateX(4px); }
[dir="rtl"] .card-link .arrow { transform: scaleX(-1); }
[dir="rtl"] .card:hover .card-link .arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- Feature (why us) ---------- */

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.feature .ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--indigo-tint);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature .ico svg { width: 23px; height: 23px; }

.feature h3 { font-size: 16.5px; font-weight: 800; color: var(--indigo-deep); margin-bottom: 7px; }
.feature p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Fleet ---------- */

.fleet-card .spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 4px 2px;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo);
  background: var(--indigo-tint);
  border-radius: 999px;
  padding: 5px 12px;
}
.spec-chip svg { width: 15px; height: 15px; }

.fleet-card .feat-list { margin-top: 4px; }
.fleet-card .feat-list li {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding-inline-start: 20px;
  position: relative;
  margin-bottom: 4px;
}
.fleet-card .feat-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--asagi);
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.price-line .from { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.price-line .amount { font-size: 23px; font-weight: 800; color: var(--vermilion); letter-spacing: 0.01em; }
.price-line .unit { font-size: 12.5px; color: var(--muted); }

/* ---------- Steps ---------- */

.steps { counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--asagi);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.step h3 { font-size: 16.5px; font-weight: 800; color: var(--indigo-deep); margin-bottom: 7px; }
.step p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Photo wall ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.photo-grid figure {
  position: relative;
  border-radius: var(--radius-s);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.photo-grid figure:hover img { transform: scale(1.05); }
.photo-grid figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 26px 14px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(21, 34, 50, 0.72), transparent);
}

/* ---------- Testimonials ---------- */

.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quote-card .stars { color: #F0B429; font-size: 15px; letter-spacing: 3px; }
.quote-card blockquote { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.quote-card .who { font-size: 13.5px; font-weight: 700; color: var(--indigo-deep); }
.sample-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 22px;
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14.5px;
}

.price-table th, .price-table td {
  padding: 14px 18px;
  text-align: start;
  border-bottom: 1px solid var(--line);
}

.price-table thead th {
  background: var(--indigo);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:nth-child(even) { background: #FCFBF8; }
.price-table td.num { font-weight: 700; color: var(--indigo-deep); white-space: nowrap; }
.price-table td:first-child { font-weight: 600; }

.note-line {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}
.note-line strong { color: var(--vermilion); font-weight: 700; }

/* ---------- Checklist (included / excluded) ---------- */

.check-list li, .cross-list li {
  position: relative;
  padding-inline-start: 30px;
  margin-bottom: 9px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.check-list li::before, .cross-list li::before {
  position: absolute;
  inset-inline-start: 0;
  top: 0.08em;
  font-weight: 800;
  font-size: 15px;
}
.check-list li::before { content: "✓"; color: #2F9E63; }
.cross-list li::before { content: "✕"; color: var(--muted); }

.info-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.info-panel h3 {
  font-size: 17px;
  color: var(--indigo-deep);
  font-weight: 800;
  margin-bottom: 16px;
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px 24px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--indigo-deep);
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .chev {
  margin-inline-start: auto;
  flex: none;
  transition: transform 0.25s;
  color: var(--muted);
}
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item summary .chev svg { width: 18px; height: 18px; display: block; }

.faq-item .faq-a {
  padding: 0 24px 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(120deg, var(--indigo-deep), var(--indigo) 60%, #3A6491);
  border-radius: 20px;
  color: #fff;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset-inline-end: -70px;
  top: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(228, 87, 61, 0.35);
  filter: blur(10px);
}
.cta-banner h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin-bottom: 8px; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); max-width: 460px; }
.cta-banner .btn { position: relative; z-index: 1; }

/* ---------- Contact page ---------- */

.contact-card {
  text-align: center;
  padding: 34px 26px;
}
.contact-card .ico-lg {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.contact-card .ico-lg svg { width: 30px; height: 30px; }
.contact-card .id-line { font-size: 14px; color: var(--muted); margin-bottom: 16px; direction: ltr; unicode-bidi: embed; }

.contact-meta { display: flex; flex-direction: column; gap: 12px; }
.contact-meta li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); }
.contact-meta svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--indigo); }
.contact-meta a { direction: ltr; unicode-bidi: embed; }

/* ---------- About ---------- */

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  padding: 28px 16px;
  box-shadow: var(--shadow);
}
.stat .num { font-size: 32px; font-weight: 800; color: var(--vermilion); }
.stat .lbl { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; margin-top: 4px; }

.company-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.company-table th, .company-table td {
  text-align: start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.company-table th { width: 32%; color: var(--indigo-deep); font-weight: 700; white-space: nowrap; }
.company-table td { color: var(--ink-soft); }
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: none; }

.prose p { color: var(--ink-soft); margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--indigo-deep);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 96px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-block: 60px 44px;
}

.footer-brand .logo { color: #fff; font-size: 24px; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; line-height: 1.8; color: rgba(255, 255, 255, 0.68); max-width: 300px; }

.site-footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.72); font-size: 14px; }
.footer-links a:hover { color: #fff; }

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
}
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--asagi); }
.footer-contact a { color: rgba(255, 255, 255, 0.72); direction: ltr; unicode-bidi: embed; }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Floating contact buttons ---------- */

.float-contact {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 300;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(21, 34, 50, 0.25);
  transition: transform 0.15s, box-shadow 0.2s;
}
.float-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(21, 34, 50, 0.32); color: #fff; }
.float-btn svg { width: 27px; height: 27px; }
.float-btn.wa { background: var(--wa); }
.float-btn.line { background: var(--line-brand); }
.float-btn.wechat { background: var(--wechat); }

/* ---------- Modals (language / wechat) ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 34, 50, 0.55);
  backdrop-filter: blur(3px);
}

.modal-panel {
  position: relative;
  background: var(--bg);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(21, 34, 50, 0.35);
  width: min(560px, 100%);
  max-height: min(640px, 86vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pop 0.22s ease;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 14px;
}
.modal-head h3 { font-size: 18px; font-weight: 800; color: var(--indigo-deep); }

.modal-close {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-soft);
  flex: none;
}
.modal-close:hover { border-color: var(--asagi); color: var(--ink); }
.modal-close svg { width: 16px; height: 16px; }

.lang-search { padding: 0 24px 14px; }
.lang-search input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}
.lang-search input:focus { border-color: var(--asagi); box-shadow: 0 0 0 3px rgba(168, 197, 214, 0.35); }

.lang-list {
  overflow-y: auto;
  padding: 4px 24px 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-content: start;
}

.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-align: start;
}
.lang-item:hover { border-color: var(--asagi); box-shadow: var(--shadow); }
.lang-item.active { border-color: var(--vermilion); box-shadow: 0 0 0 1px var(--vermilion); }
.lang-item .check { color: var(--vermilion); font-weight: 800; display: none; }
.lang-item.active .check { display: inline; }

.qr-box { padding: 6px 28px 30px; text-align: center; }
.qr-box img, .qr-box svg { width: 210px; height: 210px; margin: 0 auto 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.qr-box .wid { font-weight: 700; color: var(--indigo-deep); direction: ltr; unicode-bidi: embed; }
.qr-box p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* ---------- Page banner (simple, no image) ---------- */

.page-band {
  background: linear-gradient(120deg, var(--indigo-tint), #F6F3EC);
  border-bottom: 1px solid var(--line);
  padding-block: 64px;
}
.page-band h1 { font-size: clamp(26px, 3.4vw, 38px); color: var(--indigo-deep); font-weight: 800; margin-bottom: 10px; }
.page-band p { color: var(--ink-soft); max-width: 640px; }

/* ---------- Utility ---------- */

.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.center { text-align: center; }

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
}

/* ---------- RTL fine-tuning ---------- */

[dir="rtl"] .cta-banner::after { inset-inline-end: auto; inset-inline-start: -70px; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .lang-btn { margin-inline-start: auto; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px;
    gap: 4px;
    box-shadow: var(--shadow-lift);
    margin-inline-start: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; font-size: 16px; white-space: normal; }

  .hero-inner { padding-block: 90px 70px; }
  .section { padding-block: 64px; }
  .cta-banner { padding: 40px 28px; }
  .lang-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .header-inner { gap: 12px; }
  .logo { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
