/* GEC CMS — public site styles (RTL, self-hosted Vazirmatn) */
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --navy: #0b1f3a; --navy2: #0e2a4f; --navy3: #12345e;
  --accent: #f5a623; --accent2: #ffbe4d;
  --blue: #2f6fed; --ink: #1c2b3a; --muted: #5c6b7c;
  --bg: #f4f6fb; --card: #ffffff; --line: #e3e9f2;
  --ok: #16a34a; --warn: #d97706; --bad: #dc2626;
  --radius: 16px; --shadow: 0 10px 30px rgba(11,31,58,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'Vazirmatn', Tahoma, sans-serif; color: var(--ink);
  background: var(--bg); line-height: 1.9; font-size: 16px;
}
img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.mt { margin-top: 18px; }
.mt0 { margin-top: 0; }
.narrow { max-width: 780px; }
.body-text p { margin: 0 0 14px; }

/* ---------- topbar ---------- */
.topbar {
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50;
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.4; }
.brand-txt strong { color: var(--navy); font-size: 17px; }
.brand-txt small { color: var(--muted); font-size: 12px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav > a { color: var(--ink); font-weight: 500; font-size: 15px; }
.nav > a:hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 11px 24px; border-radius: 12px; font-family: inherit;
  font-size: 15px; font-weight: 700; border: 2px solid transparent; cursor: pointer; transition: .2s; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-accent { background: var(--accent); color: #3a2a05; }
.btn-accent:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-line { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(1000px 500px at 85% -10%, #1b4a8f55 0%, transparent 60%),
              radial-gradient(800px 400px at 10% 110%, #f5a62322 0%, transparent 60%),
              linear-gradient(135deg, var(--navy) 0%, var(--navy2) 55%, var(--navy3) 100%);
  color: #fff; overflow: hidden;
}
.hero-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; padding: 84px 20px 96px; }
.kicker { display: inline-block; background: rgba(245,166,35,.15); color: var(--accent2);
  padding: 6px 16px; border-radius: 99px; font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.hero h1 { font-size: 44px; line-height: 1.5; margin: 18px 0 14px; font-weight: 800; }
.hero h1 em { color: var(--accent2); font-style: normal; }
.lead { color: #c9d6ea; font-size: 18px; max-width: 560px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; min-height: 280px; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .85; }
.o1 { width: 220px; height: 220px; background: linear-gradient(140deg, #f5a623, #c97a08); top: 8%; right: 18%; animation: float 7s ease-in-out infinite; }
.o2 { width: 120px; height: 120px; background: linear-gradient(140deg, #3b82f6, #1d4ed8); bottom: 12%; right: 40%; animation: float 9s ease-in-out infinite reverse; }
.o3 { width: 70px; height: 70px; background: linear-gradient(140deg, #22d3ee, #0e7490); top: 42%; right: 6%; animation: float 11s ease-in-out infinite; }
.hero-badge {
  position: absolute; bottom: 6%; right: 8%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px); border-radius: 18px; padding: 16px 22px; display: flex; gap: 12px; align-items: center;
}
.hero-badge strong { font-size: 34px; color: var(--accent2); font-weight: 800; }
.hero-badge span { font-size: 13px; color: #dfe9f7; line-height: 1.6; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- stats ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); padding: 22px 20px; gap: 10px; }
.stat { text-align: center; }
.stat strong { font-size: 22px; color: var(--navy); font-weight: 800; display: block; }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- sections ---------- */
.sec { padding: 64px 0; }
.sec.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head.right { text-align: right; }
.sec-head h2 { color: var(--navy); font-size: 28px; margin: 0 0 8px; font-weight: 800; }
.sec-head p { color: var(--muted); margin: 0; }
.page-head { background: linear-gradient(135deg, var(--navy), var(--navy3)); color: #fff; padding: 48px 0; }
.page-head h1 { margin: 0 0 8px; font-size: 30px; font-weight: 800; }
.page-head p { margin: 0; color: #c9d6ea; }

/* ---------- cards ---------- */
.grid.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: block; transition: .25s; position: relative;
}
a.card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 16px 36px rgba(11,31,58,.12); }
.card-ic { color: var(--blue); background: #eef3fe; width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card h3 { color: var(--navy); font-size: 18px; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.more { color: var(--blue); font-weight: 700; font-size: 14px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.bio-card .pos { color: var(--navy); font-weight: 700; }
.bio-card .tel { font-size: 15px; color: var(--ink); }

/* ---------- two col ---------- */
.two-col { display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: start; }
.lead-sm { color: var(--ink); font-size: 16px; }
.ticks { padding: 0 18px 0 0; margin: 16px 0 22px; }
.ticks li { margin-bottom: 8px; color: var(--muted); list-style: none; position: relative; }
.ticks li::before { content: '✓'; color: var(--ok); font-weight: 800; margin-left: 8px; }
.contact-mini { background: linear-gradient(135deg, var(--navy), var(--navy3)); color: #fff;
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-mini h3 { margin: 0 0 10px; font-size: 18px; }
.big-phone { font-size: 26px; font-weight: 800; color: var(--accent2); margin: 4px 0; }
.contact-mini p { color: #c9d6ea; font-size: 14px; margin: 0 0 16px; }

/* ---------- specs & forms ---------- */
.spec-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: right; font-size: 14px; }
.spec-table th { color: var(--muted); font-weight: 500; width: 40%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: 10px; color: var(--muted); }
.plain strong { color: var(--ink); }
.form-card input, .form-card textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 15px; margin-top: 6px; background: #fff; color: var(--ink);
}
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--blue); }
.form-card label { display: block; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.hp { position: absolute; right: -9999px; }
.form-card button { margin-top: 6px; }
.code404 { font-size: 80px; color: var(--navy); margin: 10px 0; font-weight: 800; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #b9c7dd; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 26px; padding: 44px 20px 20px; }
.footer h4 { color: #fff; margin: 0 0 10px; font-size: 16px; }
.footer p { font-size: 13.5px; margin: 0 0 12px; }
.footer a { color: var(--accent2); }
.foot-note { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 20px; font-size: 13px; color: #8fa3c0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid.cards { grid-template-columns: repeat(2, 1fr); }
  .hero-in, .two-col { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero h1 { font-size: 32px; }
  .foot-grid { grid-template-columns: 1fr; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 72px; right: 0; left: 0; background: #fff;
    flex-direction: column; padding: 18px; border-bottom: 1px solid var(--line); gap: 14px; }
  body.nav-open .nav { display: flex; }
  .nav-toggle { display: block; }
  .grid.cards { grid-template-columns: 1fr; }
}

/* ---------- v3 additions (lang switch, models table, bio card page — navy) ---------- */
.lang-switch { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; direction: ltr; }
.lang-switch a { color: var(--muted); padding: 3px 10px; border: 1.5px solid var(--line); border-radius: 99px; }
.lang-switch a.on { color: #3a2a05; background: var(--accent); border-color: var(--accent); }
.tbl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.spec-table.wide { width: 100%; border-collapse: collapse; }
.spec-table.wide th, .spec-table.wide td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: right; font-size: 14px; }
.spec-table.wide thead th { background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 700; }
.spec-table.wide tbody tr:last-child td { border-bottom: 0; }
[dir="ltr"] .spec-table.wide th, [dir="ltr"] .spec-table.wide td { text-align: left; }
.big-phone.sm { font-size: 18px; color: #ffd98a; margin: 0 0 6px; }
/* bio card standalone page (navy edition) */
.bio-page { background: linear-gradient(145deg, #0b1f3a 0%, #071427 55%, #040a14 100%); min-height: 100vh; font-family: 'Vazirmatn', Tahoma, sans-serif; }
.bio-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 28px 16px; }
.bio-card-page { width: 100%; max-width: 430px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; padding: 30px 26px; color: #e8eef8; backdrop-filter: blur(10px); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.bio-top { text-align: center; margin-bottom: 18px; }
.bio-avatar { display: inline-flex; width: 84px; height: 84px; border-radius: 50%; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; color: #0b1f3a; background: linear-gradient(140deg, var(--accent), #c97a08); border: 3px solid rgba(255,255,255,.25); margin-bottom: 12px; }
.bio-top h1 { margin: 4px 0 2px; font-size: 22px; color: #fff; }
.bio-pos { margin: 0; color: #ffd98a; font-weight: 700; font-size: 15px; }
.bio-duty { margin: 6px 0 0; color: #a7b6ce; font-size: 13px; }
.bio-call { display: flex; align-items: center; justify-content: space-between; background: var(--accent); color: #3a2a05; border-radius: 14px; padding: 14px 18px; margin: 14px 0 18px; transition: .2s; }
.bio-call:hover { background: var(--accent2); }
.bio-call strong { font-size: 14px; }
.bio-num { font-weight: 800; font-size: 18px; letter-spacing: 1px; }
.bio-info { list-style: none; margin: 0; padding: 0; }
.bio-info li { display: flex; gap: 12px; padding: 10px 2px; border-bottom: 1px dashed rgba(255,255,255,.12); font-size: 14px; }
.bio-info li:last-child { border-bottom: 0; }
.bio-info span { color: #a7b6ce; min-width: 86px; }
.bio-info b { color: #e8eef8; font-weight: 600; line-height: 1.8; }
.bio-foot { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.bio-foot a { color: var(--accent2); }
@media (max-width: 640px) { .lang-switch { display: none; } }
