@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700&display=swap");

:root {
  --navy: #0f3460;
  --navy-deep: #16213e;
  --ink: #1a1a2e;
  --muted: #5b6472;
  --paper: #f4f1ea;
  --card: #fffdf8;
  --gold: #c4a35a;
  --gold-soft: #e8d7a8;
  --line: #e4ddd2;
  --shadow: 0 14px 40px rgba(15, 52, 96, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  line-height: 1.8;
}

html[dir="rtl"] .strip-grid,
html[dir="rtl"] .grid,
html[dir="rtl"] .module-grid,
html[dir="rtl"] .nav-inner,
html[dir="rtl"] .nav nav,
html[dir="rtl"] .actions {
  direction: rtl;
}

html[dir="rtl"] .strip-grid,
html[dir="rtl"] .grid,
html[dir="rtl"] .module-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

html[dir="rtl"] .strip-grid > * { flex: 1 1 180px; }
html[dir="rtl"] .grid > *,
html[dir="rtl"] .module-grid > * { flex: 1 1 230px; }

html[data-lang="en"],
html[data-lang="tr"],
html[data-lang="fr"],
html[data-lang="it"],
html[data-lang="es"] {
  font-family: "Segoe UI", "Vazirmatn", Tahoma, sans-serif;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.nav {
  background: var(--navy-deep);
  color: #fff;
  position: sticky;
  top: var(--bot-bar-h, 0px);
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand { color: #fff; font-weight: 700; font-size: 1.15rem; }
.brand span { color: var(--gold); font-weight: 500; margin-inline-start: 0.4rem; font-size: 0.85rem; }

.nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.nav nav a { color: #e8eef6; }
.nav nav a:hover,
.nav nav a[aria-current="page"] { color: var(--gold); }

.hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(196, 163, 90, 0.18), transparent 28%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 72%);
  color: #fff;
  padding: 5rem 0 4.2rem;
}

.eyebrow {
  display: inline-block;
  color: var(--gold-soft);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 0.8rem; line-height: 1.35; }
.hero p { max-width: 44rem; opacity: 0.93; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-gold { background: var(--gold); color: #1a1408; }
.btn-gold:hover { color: #1a1408; filter: brightness(1.06); }
.btn-line { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-line:hover { color: var(--gold); border-color: var(--gold); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }

.strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1.2rem 0;
}

.strip strong { display: block; color: var(--navy); }
.strip span { color: var(--muted); font-size: 0.92rem; }

.section { padding: 3.4rem 0; }
.section h2 {
  color: var(--navy);
  margin: 0 0 0.4rem;
}
.section h2 + .lead { margin: 0 0 1.4rem; color: var(--muted); max-width: 40rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.15rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.card h3 { margin: 0 0 0.4rem; color: var(--navy); font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }
.card p + p { margin-top: 0.7rem; }

.module-grid .card ul {
  margin: 0.4rem 0 0;
  padding: 0 1.1rem 0 0;
  color: var(--muted);
}
.module-grid .card li { margin: 0.25rem 0; }

.prose { max-width: 46rem; }
.prose p { color: var(--muted); }
.prose h2 { margin-top: 2rem; }
.prose .btn { margin-top: 0.6rem; }
.prose ul { color: var(--muted); padding-right: 1.2rem; }
.prose li { margin: 0.35rem 0; }

.crumb { font-size: 0.92rem; color: var(--muted); margin: 0 0 1rem; }
.crumb a { color: var(--navy); }

.faq { margin-top: 1.2rem; display: grid; gap: 0.8rem; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq p { margin: 0.55rem 0 0; }

.related { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-top: 1rem; }

.cta-band {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 80%);
  color: #fff;
  padding: 3rem 0;
}
.cta-band h2 { margin: 0 0 0.5rem; color: #fff; }
.cta-band p { margin: 0 0 1.2rem; max-width: 36rem; opacity: 0.92; }
.cta-band .btn, .prose .btn { margin: 0 0.4rem 0.5rem 0; }

.notice {
  background: #fff;
  border-right: 4px solid var(--gold);
  padding: 1rem 1.2rem;
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.form {
  display: grid;
  gap: 0.75rem;
  max-width: 32rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

label { font-weight: 600; color: var(--navy); }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font-family: inherit;
  background: #fff;
}

input:focus, textarea:focus {
  outline: 2px solid rgba(196, 163, 90, 0.45);
  border-color: var(--gold);
}

.footer {
  background: var(--navy-deep);
  color: #d7deea;
  padding: 2.2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer strong { color: var(--gold); }
.footer a { color: #d7deea; }
.footer a:hover { color: var(--gold); }
.footer nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; }
.footer .office-line { margin: 0.45rem 0 0; max-width: 28rem; line-height: 1.7; }
.office-card a { color: var(--navy); font-weight: 700; }
.office-card a:hover { color: var(--gold-deep, #8a6d2a); }

.status { min-height: 1.5rem; font-weight: 600; }
.status.ok { color: #0b6b0b; }
.status.err { color: #b00020; }

@media (max-width: 800px) {
  .nav-inner { flex-direction: column; align-items: flex-start; }
  .split { grid-template-columns: 1fr; }
  .hero { padding: 3.4rem 0 3rem; }
  .pn-bot-bar-inner { flex-direction: column; align-items: stretch; }
  .pn-bot-tools { justify-content: flex-end; flex-wrap: wrap; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#pn-bot {
  position: sticky;
  top: 0;
  z-index: 21;
}
.pn-bot-bar {
  background: linear-gradient(135deg, #1c3a66 0%, #0f3460 70%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.pn-bot-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.pn-bot-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.pn-lang select {
  appearance: none;
  border: 1px solid rgba(232, 215, 168, 0.55);
  background: #16345c;
  color: #fff;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  padding: 0.55rem 1.6rem 0.55rem 0.85rem;
  cursor: pointer;
  min-width: 8.2rem;
}
.pn-lang select:focus { outline: 2px solid var(--gold); }
.pn-bot-bar p { margin: 0; max-width: 46rem; }
.pn-bot-bar strong { color: var(--gold-soft); }
.pn-bot-toggle {
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1408;
  font-family: inherit;
  font-weight: 700;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
  white-space: nowrap;
}
.pn-bot-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: min(720px, calc(100% - 2rem));
  margin: 0.6rem auto 0;
  max-height: min(34rem, calc(100vh - 7rem));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pn-bot-panel[hidden] { display: none; }
.pn-bot-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.9rem;
  background: var(--navy-deep);
  color: #fff;
}
.pn-bot-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}
.pn-bot-log {
  overflow: auto;
  padding: 0.8rem;
  display: grid;
  gap: 0.65rem;
  min-height: 12rem;
}
.pn-bot-msg { border-radius: 12px; padding: 0.7rem 0.8rem; }
.pn-bot-msg.bot { background: #f4efe4; }
.pn-bot-msg.me { background: #e8eef6; }
.pn-bot-msg p { margin: 0.3rem 0 0; color: var(--muted); }
.pn-bot-msg a { display: inline-block; margin-top: 0.4rem; }
.pn-bot-related { font-size: 0.88rem; }
.pn-bot-related a { margin-top: 0; }
.pn-bot-hint { font-size: 0.88rem; color: var(--navy); }
.pn-bot-more {
  display: inline-block;
  margin-top: 0.55rem;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
}
.pn-bot-more:disabled { opacity: 0.6; cursor: default; }
.pn-bot-full { margin-top: 0.55rem; color: var(--muted); }
.pn-bot-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0 0.8rem 0.5rem; }
.pn-bot-chips button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
#pn-bot-form {
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem;
  border-top: 1px solid var(--line);
}
#pn-bot-form input { flex: 1; }
.pn-bot-forward {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.pn-bot-forward input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-family: inherit;
}
.pn-bot-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pn-bot-actions button { font-family: inherit; }
.pn-bot-actions .btn-ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.support-band {
  background:
    linear-gradient(180deg, rgba(196, 163, 90, 0.12), transparent 42%),
    #fffdf8;
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
}

.support-eyebrow {
  color: var(--navy);
}

.support-card {
  border-color: var(--gold-soft);
}

.support-card .btn {
  margin-top: 0.85rem;
}
