/* ==========================================================================
   XDM | سوتشاو إكس دي إم لتقنية الطباعة ثلاثية الأبعاد المحدودة
   موقع ثابت بالعربية (RTL) — نسخة متجاوبة عالية الجودة
   لا يعتمد على أي خطوط أو موارد خارجية.
   ========================================================================== */

:root {
  --bg: #06090f;
  --bg-2: #0a1020;
  --bg-3: #0e1730;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #e9eff9;
  --text-soft: #c3cfe2;
  --muted: #8e9db6;
  --brand: #3ad0ff;
  --brand-deep: #0f8dcc;
  --accent: #ffb020;
  --accent-soft: rgba(255, 176, 32, 0.14);
  --ok: #2fd18a;
  --err: #ff6b6b;
  --radius-l: 22px;
  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --ring: 0 0 0 3px rgba(58, 208, 255, 0.35);
  --container: 1200px;
  --header-h: 76px;
  --font: "Segoe UI", system-ui, -apple-system, "Noto Sans Arabic", "Noto Kufi Arabic",
    "Droid Arabic Kufi", Tahoma, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(15, 141, 204, 0.18), transparent 60%),
    radial-gradient(900px 500px at 5% 5%, rgba(58, 208, 255, 0.10), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  direction: rtl;
  text-align: start;
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #7ee0ff;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 3.1rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

ul,
ol {
  padding-inline-start: 1.4em;
  margin: 0 0 1em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.4em;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--brand);
  color: #04121c;
  padding: 10px 18px;
  z-index: 999;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
}

.skip-link:focus {
  inset-inline-start: 50%;
  transform: translateX(50%);
}

/* ---------- Layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

.section {
  padding: 84px 0;
  position: relative;
}

.section--tight {
  padding: 56px 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0));
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 900px;
  margin-bottom: 44px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(58, 208, 255, 0.10);
  border: 1px solid rgba(58, 208, 255, 0.28);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 68ch;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(6, 9, 15, 0.82);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 9, 15, 0.95);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand img {
  width: 84px;
  height: 46px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.74rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: var(--text-soft);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav a:hover {
  color: #fff;
  background: var(--surface-2);
}

.nav a.is-active {
  color: #04121c;
  background: linear-gradient(120deg, var(--brand), #7ee0ff);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 20px;
  height: 2px;
  background: var(--text);
  content: "";
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: linear-gradient(120deg, var(--brand), #62d7ff 60%, #a9ecff);
  color: #04121c;
  box-shadow: 0 12px 30px rgba(58, 208, 255, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  color: #04121c;
  box-shadow: 0 18px 40px rgba(58, 208, 255, 0.38);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--surface-2);
  color: #fff;
  transform: translateY(-2px);
}

.btn--accent {
  background: linear-gradient(120deg, var(--accent), #ffd166);
  color: #21160a;
  box-shadow: 0 12px 30px rgba(255, 176, 32, 0.25);
}

.btn--accent:hover {
  transform: translateY(-2px);
  color: #21160a;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

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

.hero {
  position: relative;
  padding: 92px 0 78px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(80% 70% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 0.35em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand), #fff 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-media {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  background: var(--bg-2);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  font-size: 0.86rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  color: var(--brand);
  line-height: 1.2;
}

.stat span {
  font-size: 0.86rem;
  color: var(--muted);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-bottom: 0.5em;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(58, 208, 255, 0.18), rgba(255, 176, 32, 0.14));
  border: 1px solid var(--line-strong);
  color: var(--brand);
  font-weight: 800;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.card-num {
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  font-weight: 700;
}

/* ---------- Product cards ---------- */

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(58, 208, 255, 0.5);
  box-shadow: var(--shadow-soft);
}

.product-card__media {
  background: radial-gradient(circle at 50% 20%, rgba(58, 208, 255, 0.12), transparent 65%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 22px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

.product-card__media img {
  max-height: 100%;
  object-fit: contain;
}

.product-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__body h3 {
  font-size: 1.14rem;
  margin-bottom: 0.4em;
}

.model-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #04121c;
  background: linear-gradient(120deg, var(--brand), #8fe6ff);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.product-card__body ul {
  margin: 12px 0 18px;
  padding-inline-start: 1.2em;
  font-size: 0.95rem;
}

.product-card__body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- Specs ---------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-table caption {
  caption-side: top;
  text-align: start;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.spec-table th,
.spec-table td {
  padding: 13px 16px;
  text-align: start;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  width: 34%;
  color: var(--brand);
  font-weight: 700;
  background: rgba(58, 208, 255, 0.06);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.gallery figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.gallery figure:hover {
  transform: translateY(-4px);
  border-color: rgba(58, 208, 255, 0.45);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.gallery figcaption {
  padding: 16px;
  font-size: 0.93rem;
  color: var(--text-soft);
}

.gallery figcaption strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.gallery figcaption .tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 10px;
}

/* ---------- Certification grid (portrait cards) ---------- */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.cert-grid figure {
  margin: 0;
  background: #fff;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.cert-grid figure:hover {
  transform: translateY(-4px);
}

.cert-grid img {
  width: 100%;
  aspect-ratio: 600 / 772;
  object-fit: contain;
  background: #fff;
}

.cert-grid figcaption {
  padding: 12px 14px;
  font-size: 0.88rem;
  color: #16324f;
  background: #f4f7fb;
  border-top: 1px solid #dbe4ef;
}

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

.faq-list {
  display: grid;
  gap: 14px;
}

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

.faq-item h3 {
  margin: 0;
  font-size: 1.05rem;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
}

.faq-q .faq-mark {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-mark {
  transform: rotate(45deg);
  background: rgba(58, 208, 255, 0.12);
}

/* بلا JavaScript: تبقى كل الأجوبة ظاهرة (مفيدة لمحركات البحث).
   عند تفعيل JavaScript تُطوى الأجوبة وتُفتح بالنقر. */
.faq-a {
  overflow: hidden;
}

.js .faq-a {
  max-height: 0;
  transition: max-height 0.35s ease;
}

.js .faq-a > div {
  padding: 0 22px 22px;
  color: var(--text-soft);
}

.faq-a > div {
  padding: 8px 22px 22px;
  color: var(--text-soft);
}

.js .faq-item.is-open .faq-a {
  max-height: 900px;
}

/* ---------- CTA band ---------- */

.cta-band {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  padding: 42px;
  background:
    radial-gradient(700px 260px at 100% 0%, rgba(58, 208, 255, 0.18), transparent 65%),
    linear-gradient(120deg, rgba(255, 176, 32, 0.10), rgba(15, 141, 204, 0.14));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  margin-bottom: 0.25em;
}

.cta-band p {
  margin-bottom: 0;
  max-width: 62ch;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  padding: 18px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  margin: 0;
}

.breadcrumb li + li::before {
  content: "‹";
  margin-inline-end: 8px;
  color: var(--line-strong);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 46px 0 10px;
}

.page-hero h1 {
  margin-bottom: 0.3em;
}

/* ---------- Forms ---------- */

.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.93rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.field .req {
  color: var(--accent);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6f7f99;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}

.field select option {
  background: #0b1220;
  color: var(--text);
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 14px;
}

.alert {
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 22px;
  font-size: 0.97rem;
  border: 1px solid;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert strong {
  display: block;
  margin-bottom: 4px;
}

.alert--ok {
  color: #b8ffe0;
  background: rgba(47, 209, 138, 0.12);
  border-color: rgba(47, 209, 138, 0.45);
}

.alert--err {
  color: #ffd3d3;
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.45);
}

.alert[hidden] {
  display: none;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list b {
  color: var(--text);
}

.info-list span {
  color: var(--muted);
  font-size: 0.93rem;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 6, 12, 0.8);
  padding: 52px 0 26px;
  margin-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.site-footer h3 {
  font-size: 1.02rem;
  margin-bottom: 0.8em;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  font-size: 0.93rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive: 1200px ---------- */

@media (max-width: 1200px) {
  .container {
    padding-inline: 22px;
  }

  .hero-inner {
    gap: 36px;
  }

  .grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Responsive: 1024px ---------- */

@media (max-width: 1024px) {
  body {
    font-size: 16.5px;
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    padding: 68px 0 56px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Responsive: 900px (navigation switches) ---------- */

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 22px;
    background: rgba(6, 9, 15, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .header-cta {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band {
    padding: 32px 26px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Responsive: 768px ---------- */

@media (max-width: 768px) {
  .section {
    padding: 54px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-card {
    padding: 24px 20px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-text span {
    display: none;
  }

  .spec-table th {
    width: 42%;
  }

  .spec-table th,
  .spec-table td {
    padding: 11px 12px;
    font-size: 0.92rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  }
}

/* ---------- Responsive: 560px ---------- */

@media (max-width: 560px) {
  body {
    font-size: 16px;
    line-height: 1.8;
  }

  .container {
    padding-inline: 16px;
  }

  .section {
    padding: 44px 0;
  }

  .stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn {
    width: 100%;
    padding: 14px 20px;
  }

  .btn-row .btn {
    width: 100%;
  }

  .cta-band {
    padding: 26px 18px;
  }

  .cert-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  }
}

/* ---------- Responsive: 400px ---------- */

@media (max-width: 400px) {
  h1 {
    font-size: 1.6rem;
  }

  .brand-text strong {
    font-size: 0.9rem;
  }

  .card,
  .form-card {
    padding: 20px 16px;
  }

  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
    border-bottom: 0;
  }

  .spec-table td {
    padding-top: 0;
    border-bottom: 1px solid var(--line);
  }
}