/* ==========================================================
   EnLines — corporate site
   Palette taken from the logo: charcoal #2B2B2B, red #C62A1D, white
   ========================================================== */

:root {
  --red: #C62A1D;
  --red-dark: #A3221A;
  --red-soft: #FBEDEB;
  --ink: #2B2B2B;
  --ink-900: #1A1A1A;
  --ink-700: #444444;
  --ink-500: #6B6B6B;
  --line: #E6E6E6;
  --paper: #FFFFFF;
  --paper-2: #F6F6F6;

  --font: "Jost", "Segoe UI", system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --wrap: 1200px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--font-ar); font-size: 16.5px; line-height: 1.85; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--ink-900); font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--red); border-radius: 2px; }
.section-title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; letter-spacing: -.01em; }
.lead { font-size: 19px; color: var(--ink-700); max-width: 680px; }
.muted { color: var(--ink-500); }

/* The three red bars from the logo's "E" */
.bars { display: inline-grid; gap: 6px; }
.bars span { display: block; width: 44px; height: 6px; background: var(--red); border-radius: 1px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius);
  font: inherit; font-size: 15px; font-weight: 500; letter-spacing: .02em;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink-900); color: #cfcfcf; font-size: 13.5px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: var(--red); }
.topbar-contacts { display: flex; gap: 28px; }
.topbar-contacts a[href^="tel"] span { direction: ltr; unicode-bidi: embed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative; padding: 10px 14px; font-size: 15.5px; font-weight: 500; color: var(--ink-700);
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px;
  background: var(--red); transform: scaleX(0); transition: transform .25s;
}
.nav a:hover, .nav a.active { color: var(--ink-900); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-menu { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 12px; cursor: pointer; transition: border-color .2s;
}
.lang-toggle:hover, .lang-menu.open .lang-toggle { border-color: var(--ink); }
.lang-toggle svg { width: 17px; height: 17px; color: var(--red); }
.lang-toggle .chev { width: 15px; height: 15px; color: var(--ink-500); transition: transform .2s; }
.lang-menu.open .lang-toggle .chev { transform: rotate(180deg); }
.lang-list {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 160px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); box-shadow: var(--shadow);
  padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s;
}
.lang-menu.open .lang-list { opacity: 1; visibility: visible; transform: none; }
.lang-list a {
  display: block; text-align: start; font-size: 15px;
  padding: 10px 18px; color: var(--ink-700);
}
.lang-list a[lang="ar"] { font-family: var(--font-ar); }
.lang-list a:hover { background: var(--paper-2); color: var(--ink-900); }
.lang-list a.active { color: var(--red); font-weight: 600; }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 110px 0 120px; background: var(--paper); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 600; letter-spacing: -.02em; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: end; width: 100%; }
html[dir="rtl"] .hero-art { justify-self: start; }
.hero-art .panel {
  position: absolute; inset: 0; background: var(--ink-900); border-radius: 2px;
  display: grid; place-items: center;
}
.hero-art .panel .bars { gap: 22px; }
.hero-art .panel .bars span { width: 180px; height: 26px; border-radius: 2px; }
.hero-art .tag {
  position: absolute; inset-inline-start: -32px; bottom: 40px;
  background: #fff; padding: 20px 24px; box-shadow: var(--shadow); border-inline-start: 4px solid var(--red);
  max-width: 260px;
}
.hero-art .tag strong { display: block; font-size: 17px; color: var(--ink-900); }
.hero-art .tag span { font-size: 14px; color: var(--ink-500); }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--ink-900); color: #fff; padding: 88px 0 80px; position: relative; overflow: hidden; }
.page-head h1 { color: #fff; font-size: clamp(34px, 4.5vw, 54px); margin-bottom: 14px; }
.page-head p { color: #bdbdbd; font-size: 19px; max-width: 640px; margin: 0; }
.page-head .eyebrow { color: #fff; }
.page-head .deco { position: absolute; inset-inline-end: 6%; top: 50%; transform: translateY(-50%); opacity: .9; }
.page-head .deco .bars { gap: 16px; }
.page-head .deco .bars span { width: 140px; height: 18px; }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: #9a9a9a; margin-bottom: 22px; }
.crumbs a:hover { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--ink-900); color: #d6d6d6; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head .lead { margin: 0; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Two-column intro ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-media { position: relative; }
.media-block {
  background: var(--ink-900); aspect-ratio: 4/3; display: grid; place-items: center; position: relative;
}
.media-block img { width: 62%; }
.media-block::after {
  content: ""; position: absolute; inset-inline-end: -16px; bottom: -16px; width: 45%; height: 45%;
  border-inline-end: 4px solid var(--red); border-bottom: 4px solid var(--red); pointer-events: none;
}

.checklist li { position: relative; padding-inline-start: 34px; margin-bottom: 14px; color: var(--ink-700); }
.checklist li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 18px; height: 3px; background: var(--red);
  box-shadow: 0 6px 0 var(--red);
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; background: #fff; border: 1px solid var(--line); padding: 34px 30px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; height: 3px; width: 0; background: var(--red);
  transition: width .35s;
}
.card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.card:hover::before { width: 100%; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--ink-500); font-size: 15.5px; margin: 0; }
.icon {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--red-soft); color: var(--red); border-radius: 2px;
}
.icon svg { width: 26px; height: 26px; }
.card .more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-size: 14px; font-weight: 600; color: var(--red);
}
.card .more svg { width: 16px; height: 16px; transition: transform .2s; }
html[dir="rtl"] .card .more svg { transform: scaleX(-1); }
.card:hover .more svg { transform: translateX(4px); }
html[dir="rtl"] .card:hover .more svg { transform: scaleX(-1) translateX(4px); }

/* Detailed service card (services page) */
.service-detail { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 36px; scroll-margin-top: calc(var(--header-h) + 24px); }
.service-detail .icon { margin: 0; width: 64px; height: 64px; }
.service-detail h3 { font-size: 22px; }
.service-detail p { margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 13.5px; padding: 5px 12px; background: var(--paper-2); color: var(--ink-700); border-radius: 2px;
}

/* ---------- Values / numbered ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 2px solid rgba(255,255,255,.12); }
.section:not(.dark) .step { border-top-color: var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 15px; font-weight: 600; color: var(--red); letter-spacing: .1em; margin-bottom: 14px;
}
.step::after { content: ""; position: absolute; top: -2px; inset-inline-start: 0; width: 48px; height: 2px; background: var(--red); }
.step h3 { font-size: 20px; }
.step p { font-size: 15.5px; margin: 0; }
.section.dark .step p { color: #a8a8a8; }

/* ---------- Feature strip (platform) ---------- */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature-list li {
  display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-weight: 500; color: var(--ink-700);
}
.feature-list li:nth-child(odd) { padding-inline-end: 24px; }
.feature-list li svg { width: 20px; height: 20px; color: var(--red); flex: none; }

/* ---------- Partners ---------- */
.partner-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.partner-strip a {
  display: grid; place-items: center; min-height: 128px; padding: 24px;
  border-inline-end: 1px solid var(--line); transition: background .2s;
}
.partner-strip a:last-child { border-inline-end: 0; }
.partner-strip a:hover { background: var(--paper-2); }
.partner-strip img { max-height: 64px; width: auto; mix-blend-mode: multiply; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.partner-strip a:hover img { filter: none; opacity: 1; }

.partner {
  display: grid; grid-template-columns: 340px 1fr; border: 1px solid var(--line); background: #fff;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.partner + .partner { margin-top: 32px; }
.partner-logo { display: grid; place-items: center; padding: 40px; background: var(--paper-2); min-height: 260px; }
.partner-logo.dark { background: var(--ink-900); }
.partner-logo img { max-width: 220px; max-height: 150px; width: auto; }
.partner-body { padding: 44px 48px; }
.partner-body .kind { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
html[lang="ar"] .partner-body .kind { letter-spacing: 0; }
.partner-body h3 { font-size: 28px; margin: 6px 0 14px; }
.partner-body p { color: var(--ink-700); }
.partner-body .tags { margin: 20px 0 26px; }
.partner-body .site {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-900);
  border-bottom: 2px solid var(--red); padding-bottom: 2px;
}
.partner-body .site svg { width: 16px; height: 16px; }
.wordmark { font-size: 34px; font-weight: 700; letter-spacing: -.01em; color: var(--ink-900); text-align: center; line-height: 1.1; direction: ltr; }
.wordmark small { display: block; font-size: 12px; font-weight: 500; letter-spacing: .3em; color: var(--ink-500); margin-top: 8px; text-transform: uppercase; }
.wordmark .r { color: var(--red); }
.partner-strip .wordmark { font-size: 24px; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.partner-strip a:hover .wordmark { filter: none; opacity: 1; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; padding: 72px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin: 0 0 8px; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .btn-light:hover { color: var(--red); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; }
.contact-item { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact-item:first-of-type { border-top: 1px solid var(--line); }
.contact-item .icon { margin: 0; flex: none; }
.contact-item h4 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 4px; font-weight: 600; }
html[lang="ar"] .contact-item h4 { letter-spacing: 0; }
.contact-item a, .contact-item span { font-size: 19px; font-weight: 500; color: var(--ink-900); }
.contact-item a:hover { color: var(--red); }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }

.form { background: #fff; border: 1px solid var(--line); padding: 44px; }
.form h3 { font-size: 24px; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; color: var(--ink-700); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink);
  padding: 13px 14px; border: 1px solid #d4d4d4; border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(198,42,29,.12);
}
.form-note { font-size: 13.5px; color: var(--ink-500); margin: 14px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #a9a9a9; padding: 80px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 320px; }
.site-footer .h4 { color: #fff; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px; font-weight: 600; }
html[lang="ar"] .site-footer .h4 { letter-spacing: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact svg { width: 16px; height: 16px; color: var(--red); flex: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; font-size: 14px; }
.footer-bottom .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- GeniusX badge (powered.js renders .gxp; the chip is the fallback) ---------- */
.geniusx-chip { display: flex; align-items: center; min-height: 40px; margin-inline-end: 64px; } /* clears the WhatsApp float */
.h-credit-chip { color: rgba(255,255,255,.6); font-size: 13px; text-decoration: none; transition: color .2s; }
.h-credit-chip:hover { color: #fff; }
.h-credit-chip strong { font-weight: 600; color: rgba(255,255,255,.85); }
.geniusx-chip:has(.gxp) .h-credit-chip { display: none; }

/* ---------- Blog (served by the blog/ app) ---------- */
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.blog-cats a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink-700); }
.blog-cats a.active, .blog-cats a:hover { border-color: var(--red); color: var(--red); }
.blog-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.blog-card > :not(.blog-card__img) { margin-inline: 28px; }
.blog-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 20px; }
.blog-card__img--empty { display: grid; place-items: center; background: var(--ink-900); }
.blog-card__img--empty .bars { width: 30%; }
.blog-card__meta { font-size: 13px; color: var(--ink-500); margin-bottom: 8px; }
.blog-card p { flex: 1; }
.blog-card .more { margin-block: 20px 28px; }
.blog-pager { display: flex; justify-content: center; gap: 12px; margin-top: 48px; }
.blog-post { max-width: 780px; }
.blog-post__meta { opacity: .8; }
.blog-post__note { padding: 12px 16px; margin-bottom: 24px; background: var(--red-soft); border-radius: var(--radius); font-size: 15px; }
.blog-post__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 32px; }
.blog-post__body { font-size: 17px; line-height: 1.85; color: var(--ink-700); margin-bottom: 48px; }
.blog-post__body h2 { font-size: 26px; margin: 1.6em 0 .5em; color: var(--ink-900); }
.blog-post__body h3 { font-size: 21px; margin: 1.4em 0 .5em; color: var(--ink-900); }
.blog-post__body p { margin: 0 0 1.1em; }
.blog-post__body ul, .blog-post__body ol { padding-inline-start: 1.4em; margin: 0 0 1.1em; }
.blog-post__body ul { list-style: disc; }
.blog-post__body ol { list-style: decimal; }
.blog-post__body li { margin-bottom: .4em; }
.blog-post__body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.blog-post__body blockquote { margin: 1.4em 0; padding-inline-start: 20px; border-inline-start: 3px solid var(--red); color: var(--ink-900); font-size: 19px; }
.blog-post__body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1em 0; }

/* ---------- Sector pages ---------- */
.sector { scroll-margin-top: var(--header-h); }
.sector-head { display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start; max-width: 860px; margin-bottom: 40px; }
.sector-head .icon { margin: 0; width: 64px; height: 64px; }
.sector-head .lead { margin-top: 16px; }
.sector .card h3 { font-size: 18px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-900); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: background .2s, transform .2s;
}
.wa-float:hover { background: var(--red); transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .partner { grid-template-columns: 260px 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 40px) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav a.active { color: var(--red); }
  .hero { padding: 72px 0 80px; }
  .hero .wrap, .split, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { justify-self: center !important; max-width: 340px; }
  .hero-art .panel .bars span { width: 140px; height: 20px; }
  .hero-art .tag { inset-inline-start: -12px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .partner-strip { grid-template-columns: repeat(2, 1fr); }
  .partner-strip a:nth-child(2) { border-inline-end: 0; }
  .partner-strip a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .partner { grid-template-columns: 1fr; }
  .partner-logo { min-height: 200px; }
  .page-head .deco { display: none; }
  .section { padding: 80px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .topbar .hide-sm { display: none; }
  .topbar-contacts { gap: 16px; }
  .brand img { height: 36px; }
  .lang-toggle { padding: 7px 9px; }
  .lang-current { display: none; }
  .grid-3, .grid-4, .grid-2, .feature-list, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .feature-list li:nth-child(odd) { padding-inline-end: 0; }
  .service-detail { grid-template-columns: 1fr; padding: 28px 24px; }
  .sector-head { grid-template-columns: 1fr; }
  .partner-body { padding: 32px 24px; }
  .form { padding: 28px 20px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .hero-cta .btn { flex: 1 1 100%; }
}
