/* ============================================================
   DanVex AR (danvex.ae) — RTL site stylesheet v0.1
   Base: DanVex Design System v1.2 tokens, RTL via logical properties.
   Fonts: IBM Plex Sans Arabic (AR) + Manrope (Latin runs).
============================================================ */
:root {
  --bg: #F4F6F7; --bg-deep: #ECEFF1; --surface: #FFFFFF; --surface-2: #FAFBFC;
  --hairline: #E2E6EA; --hairline-strong: #C9CFD6;
  --ink: #1B1D22; --ink-2: #5A6475; --ink-3: #8A9099;
  --accent: #3C7460; --accent-hover: #2A5546; --accent-soft: #E8EFEB;
  --dark-1: #2A3835; --dark-2: #374A45;
  --dark-text: rgba(255,255,255,0.92); --dark-text-2: rgba(255,255,255,0.62);
  --shadow-2: 0 1px 2px rgba(20,28,40,.04), 0 8px 24px rgba(20,28,40,.05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1115; --bg-deep: #0A0C10; --surface: #181B20; --surface-2: #1F232A;
    --hairline: rgba(255,255,255,0.08); --hairline-strong: rgba(255,255,255,0.16);
    --ink: #F0F2F5; --ink-2: #A8AEB6; --ink-3: #6E7480;
    --accent: #4A8E78; --accent-hover: #5BA791; --accent-soft: rgba(74,142,120,0.10);
    --shadow-2: 0 8px 24px rgba(0,0,0,.25);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'IBM Plex Sans Arabic', 'Manrope', -apple-system, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
.ltr { direction: ltr; unicode-bidi: isolate; font-family: 'Manrope', sans-serif; }
a { color: var(--accent); }

/* ---------- chrome ---------- */
.brand-stripe { height: 2px; background: linear-gradient(90deg, transparent 82%, var(--accent) 82%); }
.topbar { border-bottom: 1px solid var(--hairline); background: var(--surface); position: sticky; top: 0; z-index: 50; }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; direction: ltr; unicode-bidi: isolate; }
.logo img { height: 24px; width: auto; display: block; }
.logo .mark { color: var(--accent); }
.nav { display: flex; gap: 20px; font-size: 13.5px; color: var(--ink-2); }
.nav a { color: inherit; text-decoration: none; transition: color .15s; }
.nav a:hover, .nav a.current { color: var(--ink); }
.nav a.current { font-weight: 600; }
.lang-switch { display: flex; gap: 4px; border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 3px; font-size: 12px; }
.lang-switch a, .lang-switch span { padding: 3px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); }
.lang-switch .active { background: var(--accent); color: #fff; font-weight: 600; }
.lang-switch a:hover { color: var(--ink); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.breadcrumb { font-size: 12.5px; color: var(--ink-3); padding: 16px 0 0; }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; color: var(--hairline-strong); }

/* ---------- hero / statbar ---------- */
.hero { background: var(--bg-deep); border-bottom: 1px solid var(--hairline); padding: 48px 0 88px; }
.hero.home { padding-top: 64px; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; color: var(--accent); margin-bottom: 18px; }
.hero-tag::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.hero h1 { font-size: clamp(27px, 3.8vw, 42px); font-weight: 700; line-height: 1.38; margin: 0 0 18px; max-width: 900px; }
.hero h1 .accent { color: var(--accent); font-weight: 600; }
.hero-sub { font-size: 16.5px; color: var(--ink-2); max-width: 820px; margin: 0; }

.statbar { margin-top: -28px; position: relative; z-index: 2; }
.statbar-inner { border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: repeat(var(--stat-cols, 4), 1fr); background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-2); }
.stat { padding: 19px 22px; border-inline-start: 1px solid var(--hairline); }
.stat:first-child { border-inline-start: 0; }
.stat-lbl { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 4px; }
.stat-val { font-size: 18px; font-weight: 700; color: var(--ink); }
.stat-unit { font-size: 11.5px; font-weight: 500; color: var(--ink-3); margin-inline-start: 5px; }

/* ---------- sections / cards ---------- */
.section { padding: 52px 0 12px; }
h2 { font-size: 25px; font-weight: 700; margin: 0 0 12px; }
h2.dv-green { color: var(--accent); }
.section-lede, .content p { color: var(--ink-2); max-width: 820px; }
.content p strong { color: var(--ink); }

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 24px 0 16px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-2); }
.card-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--accent); }
.card h3 { margin: 0; font-size: 19px; font-weight: 700; }
.card h3.model { direction: ltr; unicode-bidi: isolate; text-align: end; font-family: 'Manrope'; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.card .spec { font-size: 13px; color: var(--ink-3); }
.card-link { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.card-link:hover { color: var(--accent-hover); }
.card .card-link::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.card:has(.card-link) { cursor: pointer; }

/* ---------- specs table ---------- */
.dv-table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 10px; margin: 24px 0 8px; background: var(--surface); }
.dv-specs-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
.dv-specs-table thead th { color: var(--dark-text); font-weight: 600; text-align: start; padding: 13px 18px; font-size: 13px; }
.dv-specs-table thead th:nth-child(odd) { background: var(--dark-1); }
.dv-specs-table thead th:nth-child(even) { background: var(--dark-2); }
.dv-specs-table tbody td { padding: 12px 18px; border-bottom: 1px solid var(--hairline); color: var(--ink-2); }
.dv-specs-table tbody tr:last-child td { border-bottom: 0; }
.dv-specs-table tbody tr:nth-child(even) td { background: var(--surface-2); }
.dv-specs-table tbody tr:hover td { background: var(--accent-soft); }
.dv-specs-table tbody td:first-child { font-weight: 600; color: var(--ink); }
.dv-specs-table thead th:first-child { color: var(--dark-text); }
@media (max-width: 768px) {
  .dv-specs-table thead tr th:first-child,
  .dv-specs-table tbody tr td:first-child {
    position: sticky; inset-inline-start: 0; z-index: 2; background: var(--surface);
    box-shadow: -4px 0 12px -4px rgba(0,0,0,0.10);
  }
  .dv-specs-table thead tr th:first-child { background: var(--dark-1); }
  .dv-specs-table tbody tr:nth-child(even) td:first-child { background: var(--surface-2); }
}

/* ---------- FAQ ---------- */
.dv-faq { margin: 16px 0 32px; max-width: 860px; }
.dv-faq details { background: var(--surface); border: 1px solid var(--hairline); border-radius: 8px; margin-bottom: 10px; padding: 0 20px; }
.dv-faq details:hover { border-color: var(--hairline-strong); }
.dv-faq details[open] { border-color: var(--accent); }
.dv-faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; padding: 16px 0; position: relative; padding-inline-end: 28px; }
.dv-faq summary::-webkit-details-marker { display: none; }
.dv-faq summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: 14px; color: var(--accent); font-size: 19px; font-weight: 400; }
.dv-faq details[open] summary::after { content: "−"; }
.dv-faq .dv-faq-answer { padding: 0 0 18px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- misc ---------- */
.note-box { background: var(--surface-2); border: 1px solid var(--hairline); border-inline-start: 3px solid var(--accent); border-radius: 8px; padding: 20px 24px; margin: 24px 0 32px; font-size: 14px; color: var(--ink-2); max-width: 860px; }
.note-box strong { color: var(--ink); }

.tbd { border: 2px dashed var(--hairline-strong); border-radius: 10px; padding: 22px 26px; margin: 20px 0 32px; color: var(--ink-3); font-size: 14px; max-width: 860px; background: repeating-linear-gradient(45deg, transparent, transparent 12px, var(--surface-2) 12px, var(--surface-2) 24px); }
.tbd strong { color: var(--ink-2); display: block; margin-bottom: 4px; }

.contact-strip { background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; padding: 26px 28px; margin: 8px 0 40px; display: flex; flex-wrap: wrap; gap: 28px 48px; font-size: 14.5px; }
.contact-strip .c-lbl { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 3px; }
.contact-strip a { text-decoration: none; font-weight: 600; }

footer { border-top: 1px solid var(--hairline); background: var(--surface); padding: 28px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
footer a { color: var(--ink-2); text-decoration: none; }

@media (max-width: 900px) {
  .statbar-inner { grid-template-columns: repeat(2, 1fr) !important; }
  .stat { border-top: 1px solid var(--hairline); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(odd) { border-inline-start: 0; }
  .card-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}

/* ---------- v2.0: WP full-page components ---------- */
.dv-dna-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.dv-dna-item { background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; padding: 20px 24px; }
.dv-dna-item h4 { margin: 0 0 8px; font-size: 15.5px; color: var(--accent); }
.dv-dna-item p { margin: 0; font-size: 14px; color: var(--ink-2); }
.dv-engineers-box { background: var(--dark-1); color: var(--dark-text); border-radius: 10px; padding: 24px 28px; margin: 24px 0; max-width: 860px; }
.dv-engineers-box h3 { margin: 0 0 10px; color: var(--dark-text); font-size: 19px; }
.dv-engineers-box p { margin: 0; color: var(--dark-text-2); font-size: 14.5px; }
.dv-check { color: var(--accent); font-weight: 600; white-space: nowrap; }
.dv-partial { color: var(--ink-3); white-space: nowrap; }
.dv-cross { color: #b3554e; white-space: nowrap; }
.dv-caveat { font-size: 13.5px; color: var(--ink-3); max-width: 860px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.chip { background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 13.5px; padding: 8px 16px; border-radius: 999px; }
.content ul { color: var(--ink-2); max-width: 820px; padding-inline-start: 22px; }
.content ul li { margin-bottom: 8px; }
@media (max-width: 860px) { .dv-dna-grid { grid-template-columns: 1fr; } }

/* v2.4: model cards */
.dv-model-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; padding: 18px 22px; margin: 12px 0; }
.dv-model-card > p { margin: 0 0 6px; font-size: 14px; }
.dv-model-card > p:not(:first-child) { color: var(--ink-2); font-size: 13.5px; }
.dv-model-card > p:last-child { margin-bottom: 0; }
.dv-model-code { color: var(--accent); font-weight: 700; font-size: 16px; }
.dv-feat { color: var(--accent); font-weight: 600; }

/* v3.5: явные кнопки перехода в серии */
.dv-btn { display: inline-block; background: var(--accent); color: #fff !important; padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; text-decoration: none; transition: filter .15s ease, transform .15s ease; }
.dv-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
@media (prefers-color-scheme: dark) { .dv-btn { color: #0d1512 !important; } }
[data-theme="dark"] .dv-btn { color: #0d1512 !important; }

/* v3.10: выравнивание значений таблиц */
.dv-specs-table tbody td[colspan] { text-align: center; }
.dv-center-vals tbody td:not(:first-child) { text-align: center; }
.dv-center-vals thead th:not(:first-child) { text-align: center; }

/* v4.0: EN (LTR) variant — same logical layout, Latin base font */
html[dir="ltr"] body, html[dir="ltr"] input, html[dir="ltr"] button { font-family: 'Manrope', 'Segoe UI', sans-serif; }
html[dir="ltr"] .ltr { font-family: inherit; }

/* v4.0: WhatsApp */
.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.22); z-index: 90; transition: transform .15s ease; }
.wa-float:hover { transform: scale(1.06); }
.dv-btn-wa { background: #25D366 !important; border-color: #25D366 !important; color: #fff !important; }
@media print { .wa-float { display: none; } }
