/*
Theme Name: ArabTranslate
Author: iTrex
Description: Lightweight bidirectional editorial theme for the Arabic division of iTrex.
Version: 1.0.0
Text Domain: arabtranslate
*/

:root {
    --ink: #171c20;
    --ink-soft: #2a3033;
    --ivory: #f4f0e8;
    --paper: #fbfaf7;
    --stone: #d8d0c3;
    --stone-dark: #9f978b;
    --clay: #a7553d;
    --emerald: #006b55;
    --emerald-dark: #004e3f;
    --itrex: #d91f3a;
    --line: rgba(23, 28, 32, .17);
    --muted: #625f5a;
    --white: #fff;
    --shell: 1240px;
    --radius: 4px;
    --shadow: 0 28px 70px rgba(15, 18, 19, .13);
    --sans: "Arial Nova", "Segoe UI", Arial, sans-serif;
    --display: Georgia, "Times New Roman", serif;
    --arabic: Tahoma, "Noto Kufi Arabic", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 154px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.62; overflow-wrap: break-word; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, textarea { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0 0 .65em; line-height: 1.04; text-wrap: balance; hyphens: none; word-break: normal; overflow-wrap: normal; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.035em; }
h1 { font-size: clamp(3.3rem, 6vw, 6.25rem); }
h2 { font-size: clamp(2.25rem, 4vw, 4rem); }
h3 { font-size: 1.34rem; line-height: 1.18; letter-spacing: -.02em; }
p { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.25em; }
::selection { background: #d8c1b5; color: var(--ink); }
:focus-visible { outline: 3px solid var(--itrex); outline-offset: 4px; }
.shell { width: min(calc(100% - 56px), var(--shell)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; transform: translateY(-160%); background: var(--white); color: var(--ink); padding: 10px 16px; }
.skip-link:focus { transform: translateY(0); }
.eyebrow { margin: 0 0 20px; color: var(--emerald); font-size: .75rem; font-weight: 800; letter-spacing: .14em; line-height: 1.35; text-transform: uppercase; }
.text-link { color: var(--emerald-dark); font-weight: 750; }
.small-note { color: var(--muted); font-size: .9rem; }

/* Header */
.site-header { position: sticky; z-index: 1000; top: 0; background: rgba(251, 250, 247, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-main { min-height: 88px; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 1 430px; max-width: 430px; text-decoration: none; }
.brand img { width: 100%; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.header-contact { min-height: 44px; text-decoration: none; display: grid; align-content: center; gap: 1px; line-height: 1.18; }
.header-contact span { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.header-contact strong { font-size: .94rem; white-space: nowrap; }
.header-contact[href*="t.me"], .mobile-menu-contacts a[href*="t.me"], .footer-links a[href*="t.me"], .footer-contacts a[href*="t.me"], .text-link[href*="t.me"] { position: relative; padding-left: 24px; }
.header-contact[href*="t.me"]::before, .mobile-menu-contacts a[href*="t.me"]::before, .footer-links a[href*="t.me"]::before, .footer-contacts a[href*="t.me"]::before, .text-link[href*="t.me"]::before { position: absolute; left: 0; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23229ED9' d='M21.6 3.2 18.4 20c-.2 1.2-.9 1.5-1.9.9l-4.9-3.6-2.4 2.3c-.3.3-.5.5-1 .5l.4-5 9.1-8.2c.4-.4-.1-.6-.6-.3L5.8 13.7.9 12.2c-1.1-.3-1.1-1 .2-1.5L20 3.4c.9-.3 1.7.2 1.6-.2Z'/%3E%3C/svg%3E") center/contain no-repeat; content: ""; }
.header-telegram strong { color: var(--emerald); }
.nav-cta, .button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--itrex); background: var(--itrex); color: var(--white); padding: 12px 21px; border-radius: 2px; font-size: .87rem; font-weight: 800; line-height: 1.1; text-align: center; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.nav-cta:hover, .button:hover { transform: translateY(-2px); background: #bc1730; border-color: #bc1730; }
.desktop-nav { min-height: 53px; border-top: 1px solid rgba(23,28,32,.08); }
.primary-nav { min-height: 53px; margin: 0 auto; padding: 0; display: flex; align-items: stretch; gap: 36px; list-style: none; }
.primary-nav > li { display: flex; align-items: stretch; }
.primary-nav > li > a, .desktop-menu > summary { display: flex; align-items: center; min-height: 52px; font-size: .86rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.desktop-menu > summary { list-style: none; }
.desktop-menu > summary::-webkit-details-marker { display: none; }
.desktop-menu > summary::after { content: "+"; margin-left: 8px; color: var(--clay); }
.desktop-menu[open] > summary::after { content: "−"; }
.desktop-menu { position: relative; }
.mega-menu { position: fixed; left: 50%; top: 141px; width: min(calc(100% - 56px), var(--shell)); transform: translateX(-50%); display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 44px; padding: 34px; background: var(--ink); color: var(--ivory); box-shadow: var(--shadow); }
.mega-menu-lead, .mega-menu-group { display: grid; align-content: start; gap: 10px; }
.mega-menu span { color: #bdb6ac; font-size: .69rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mega-menu a { font-size: 1.04rem; font-weight: 750; text-decoration: none; }
.mega-menu a:hover { color: #8bd1be; }
.mega-menu p { color: #cbc7c0; font-size: .9rem; margin: 2px 0 0; }
.mobile-nav, .mobile-header-telegram, .mobile-action-dock { display: none; }

/* Hero */
.hero { background: var(--ivory); border-bottom: 1px solid var(--line); }
.hero-grid { min-height: 680px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: stretch; }
.hero-copy { align-self: center; padding: 80px 58px 80px 0; }
.hero h1 { max-width: 760px; font-size: clamp(3.6rem, 5.6vw, 6.4rem); }
.hero-lead { max-width: 760px; color: #444746; font-size: clamp(1.04rem, 1.6vw, 1.28rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0; }
.button-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.button-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.button.button-dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.button-dark:hover { background: var(--emerald-dark); border-color: var(--emerald-dark); }
.hero-trust { margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .82rem; list-style: none; }
.hero-trust li::before { content: "■"; margin-right: 8px; color: var(--clay); font-size: .55em; vertical-align: .25em; }
.hero-visual { position: relative; height: min(680px, 75svh); min-height: 0; background: var(--ink); overflow: hidden; }
.hero-visual::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(23,28,32,.18), transparent 35%); pointer-events: none; }
.hero-visual picture { width: 100%; height: 100%; display: block; }
.hero-visual img { width: 100%; height: 100%; }
.hero-visual img { object-fit: cover; }
.hero-script { position: absolute; z-index: 2; right: 28px; top: 30px; display: grid; justify-items: end; color: var(--white); text-shadow: 0 2px 18px rgba(0,0,0,.28); }
.hero-script strong { font-family: var(--arabic); font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 600; }
.hero-script span { font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-axis { position: absolute; z-index: 2; left: 28px; bottom: 26px; display: flex; align-items: center; gap: 12px; color: var(--white); font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.hero-axis i { width: 92px; height: 1px; background: var(--white); position: relative; }
.hero-axis i::before, .hero-axis i::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-top: 1px solid; border-right: 1px solid; }
.hero-axis i::before { left: 0; transform: rotate(-135deg); }
.hero-axis i::after { right: 0; transform: rotate(45deg); }
.brief-strip { background: var(--ink); color: var(--ivory); }
.brief-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.brief-grid > div { min-height: 110px; padding: 25px 24px; display: grid; align-content: center; gap: 7px; border-left: 1px solid rgba(255,255,255,.13); }
.brief-grid > div:last-child { border-right: 1px solid rgba(255,255,255,.13); }
.brief-grid span { color: #9eaaa5; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.brief-grid strong { font-family: var(--display); font-size: 1.12rem; font-weight: 500; }

/* Sections and components */
.section { padding-top: clamp(82px, 9vw, 140px); padding-bottom: clamp(82px, 9vw, 140px); }
.section + .section.shell { padding-top: 0; }
.section-head { margin-bottom: 48px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); align-items: end; gap: 60px; }
.section-head h2 { margin-bottom: 0; }
.section-head > p { margin: 0; color: var(--muted); }
.section-head .text-link { align-self: end; justify-self: end; }
.section-arabic { font-family: var(--arabic); color: var(--clay); font-size: 1.5rem; }
.route-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.route-card { min-height: 410px; padding: 44px; display: flex; flex-direction: column; background: var(--paper); text-decoration: none; transition: background .2s ease, color .2s ease; }
.route-card:hover { background: var(--ink); color: var(--white); }
.route-card-out { text-align: right; align-items: flex-end; }
.route-code { font-size: .7rem; font-weight: 850; letter-spacing: .12em; }
.route-arabic { margin: 48px 0 8px; color: var(--emerald); font-family: var(--arabic); font-size: 1.35rem; }
.route-card h3 { font-family: var(--display); font-size: clamp(2rem, 3vw, 3.2rem); font-weight: 500; }
.route-card p { max-width: 520px; color: var(--muted); }
.route-card:hover p { color: #c9c5be; }
.route-card strong { margin-top: auto; color: var(--emerald); font-size: .86rem; }
.route-card:hover strong { color: #8bd1be; }
.country-section { background: var(--ink); color: var(--ivory); }
.section-head.inverse .eyebrow { color: #8bd1be; }
.section-head.inverse > p { color: #c9c5be; }
.country-index { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.17); border-bottom: 1px solid rgba(255,255,255,.17); }
.country-index article { padding: 34px 28px 38px; border-left: 1px solid rgba(255,255,255,.17); }
.country-index article:last-child { border-right: 1px solid rgba(255,255,255,.17); }
.country-index span { color: #8bd1be; font-size: .68rem; font-weight: 900; letter-spacing: .15em; }
.country-index h3 { margin-top: 50px; font-family: var(--display); font-size: 2rem; font-weight: 500; }
.country-index p { color: #c9c5be; font-size: .94rem; }
.task-ledger { border-top: 1px solid var(--line); }
.task-ledger > a { min-height: 146px; padding: 28px 0; display: grid; grid-template-columns: 70px 1fr 240px; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); text-decoration: none; }
.task-ledger > a > span { color: var(--clay); font-size: .72rem; font-weight: 850; }
.task-ledger h3 { margin-bottom: 8px; font-family: var(--display); font-size: clamp(1.5rem, 2.3vw, 2.3rem); font-weight: 500; }
.task-ledger p { margin: 0; color: var(--muted); }
.task-ledger strong { justify-self: end; font-size: .84rem; }
.task-ledger a:hover h3, .task-ledger a:hover strong { color: var(--emerald); }
.visual-section { background: #e6dfd3; }
.visual-split { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.visual-split figure, .wide-figure, .article-lead-visual figure { margin: 0; }
.visual-split img, .wide-figure img, .article-lead-visual img { width: 100%; box-shadow: var(--shadow); }
figcaption { margin-top: 12px; color: var(--muted); font-size: .76rem; }
.visual-split h2 { max-width: 580px; }
.check-list, .document-list { margin: 26px 0 30px; padding: 0; list-style: none; }
.check-list li, .document-list li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); }
.check-list li::before, .document-list li::before { content: "■"; position: absolute; left: 0; top: 17px; color: var(--emerald); font-size: .48em; }
.process-line { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border-top: 1px solid var(--line); }
.process-line li { min-height: 250px; padding: 28px; border-left: 1px solid var(--line); }
.process-line li:last-child { border-right: 1px solid var(--line); }
.process-line span { color: var(--clay); font-size: .72rem; font-weight: 900; }
.process-line h3 { margin-top: 50px; font-family: var(--display); font-size: 1.5rem; font-weight: 500; }
.process-line p { color: var(--muted); font-size: .92rem; }
.trust-section { background: var(--ivory); }
.trust-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.trust-grid > div > p:not(.eyebrow) { color: var(--muted); }
.proof-grid { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.proof-grid div { min-height: 165px; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-grid dt { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -.04em; }
.proof-grid dd { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.knowledge-grid { display: grid; grid-template-columns: 1.4fr .8fr; grid-template-rows: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.knowledge-grid > a { min-height: 190px; padding: 28px; background: var(--paper); text-decoration: none; }
.knowledge-feature { grid-row: span 2; padding: 46px !important; }
.knowledge-grid span, .article-kicker { color: var(--clay); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.knowledge-grid h3 { margin-top: 34px; font-family: var(--display); font-size: 1.55rem; font-weight: 500; }
.knowledge-feature h3 { font-size: clamp(2rem, 3.2vw, 3.4rem); }
.knowledge-grid p { color: var(--muted); }

/* Page headers and entries */
.page-hero { padding: 72px 0 80px; background: var(--ivory); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 70px; align-items: end; }
.page-hero h1 { max-width: 980px; font-size: clamp(3rem, 5.2vw, 5.8rem); }
.page-hero .hero-lead { max-width: 860px; }
.breadcrumbs { margin-bottom: 34px; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .74rem; }
.breadcrumbs a { color: var(--emerald); }
.page-hero-mark { padding: 20px 0; align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; border-right: 5px solid var(--emerald); color: var(--emerald); font-family: var(--arabic); font-size: clamp(2rem, 4vw, 4rem); line-height: 1.3; }
.page-hero-mark small { font-family: var(--sans); font-size: .64rem; font-weight: 850; letter-spacing: .14em; }
.entry-layout { padding-top: clamp(70px, 8vw, 120px); padding-bottom: clamp(80px, 9vw, 140px); display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: clamp(55px, 8vw, 110px); align-items: start; }
.entry-content { min-width: 0; }
.entry-content > section { margin-bottom: clamp(70px, 8vw, 120px); }
.entry-content > section:last-child { margin-bottom: 0; }
.entry-content h2 { max-width: 850px; }
.entry-content p { max-width: 820px; }
.entry-aside { position: sticky; top: 176px; padding: 26px; background: var(--ink); color: var(--ivory); box-shadow: 12px 12px 0 #d9d1c5; }
.entry-aside .aside-index { display: block; margin-bottom: 52px; color: #8bd1be; font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.entry-aside h2 { font-family: var(--display); font-size: 1.8rem; font-weight: 500; }
.entry-aside p { color: #c8c5bf; font-size: .92rem; }
.entry-aside .button { width: 100%; margin: 12px 0 22px; }
.entry-aside .text-link { display: block; margin-top: 11px; color: #8bd1be; font-size: .84rem; }
.detail-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.detail-grid > div { min-height: 220px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-grid span { color: var(--clay); font-size: .7rem; font-weight: 850; }
.detail-grid h3 { margin-top: 45px; font-family: var(--display); font-size: 1.55rem; font-weight: 500; }
.detail-grid p { color: var(--muted); font-size: .92rem; }
.price-callout { padding: 34px !important; display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: center; gap: 34px; background: #e3dbcf; border-left: 5px solid var(--itrex); }
.price-callout div { display: grid; }
.price-callout span, .price-callout small { color: var(--muted); font-size: .75rem; }
.price-callout strong { font-family: var(--display); font-size: 3.5rem; font-weight: 500; line-height: 1; }
.price-callout p { margin: 0; font-size: .9rem; }
.decision-table { border-top: 1px solid var(--line); }
.decision-table > div { padding: 20px 0; display: grid; grid-template-columns: .7fr 1.3fr; gap: 36px; border-bottom: 1px solid var(--line); }
.decision-table > div:first-child { color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.decision-table p { margin: 0; color: var(--muted); }
.numbered-cards { margin: 34px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.numbered-cards li { min-height: 190px; padding: 28px; display: grid; grid-template-columns: 38px 1fr; gap: 20px; background: var(--paper); }
.numbered-cards span { color: var(--clay); font-size: .75rem; font-weight: 900; }
.numbered-cards p { color: var(--muted); font-size: .92rem; }
.service-directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-directory.two-column { grid-template-columns: repeat(2, 1fr); }
.service-directory a { min-height: 240px; padding: 28px; background: var(--paper); text-decoration: none; }
.service-directory span { color: var(--clay); font-size: .7rem; font-weight: 900; letter-spacing: .1em; }
.service-directory h3 { margin-top: 48px; font-family: var(--display); font-size: 1.65rem; font-weight: 500; }
.service-directory p { color: var(--muted); font-size: .9rem; }
.service-directory a:hover { background: var(--ink); color: var(--ivory); }
.service-directory a:hover p { color: #c8c5bf; }
.country-note { display: grid; grid-template-columns: 200px 1fr; background: var(--emerald-dark); color: var(--white); }
.country-note > div:first-child { padding: 34px; display: flex; align-items: center; justify-content: center; border-right: 1px solid rgba(255,255,255,.2); font-family: var(--arabic); font-size: 2.1rem; }
.country-note > div:last-child { padding: 40px; }
.country-note .eyebrow { color: #8bd1be; }
.country-note p:last-child { color: #d7e4e0; }
.legal-route { margin-top: 34px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.legal-route > div { padding: 24px; border-left: 1px solid var(--line); }
.legal-route > div:last-child { border-right: 1px solid var(--line); }
.legal-route span { color: var(--clay); font-size: .7rem; font-weight: 900; }
.legal-route h3 { margin-top: 35px; font-family: var(--display); font-size: 1.4rem; font-weight: 500; }
.legal-route p { color: var(--muted); font-size: .88rem; }
.wide-figure { margin-bottom: clamp(70px, 8vw, 120px); }
.source-note { padding: 30px !important; display: grid; grid-template-columns: 86px 1fr; gap: 30px; background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.source-note > span { color: var(--clay); font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.source-note h2 { font-size: 2rem; }
.source-note a { color: var(--emerald); font-weight: 750; }
.rtl-demo { margin-top: 36px; display: grid; grid-template-columns: 1fr 60px 1fr; gap: 18px; align-items: center; }
.ui-frame { min-height: 210px; padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 1px solid var(--line); background: var(--ivory); }
.ui-frame span, .ui-frame i { grid-column: 1 / -1; }
.ui-frame span { font-size: .69rem; font-weight: 900; letter-spacing: .1em; }
.ui-frame i { height: 42px; background: var(--ink); }
.ui-frame b { height: 70px; border: 1px solid var(--stone-dark); }
.rtl-arrow { color: var(--emerald); text-align: center; font-size: 2rem; }
.pricing-table { border-top: 1px solid var(--line); }
.pricing-table > div { padding: 18px 12px; display: grid; grid-template-columns: 1.3fr .8fr .7fr .8fr; gap: 20px; border-bottom: 1px solid var(--line); align-items: center; }
.pricing-table > div:first-child { color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.pricing-table b { font-family: var(--display); font-size: 1.55rem; font-weight: 500; }
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.price-cards > div { min-height: 210px; padding: 26px; display: grid; align-content: start; background: var(--paper); }
.price-cards span { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.price-cards strong { margin: 40px 0 10px; font-family: var(--display); font-size: 2.2rem; font-weight: 500; }
.price-cards p { color: var(--muted); font-size: .88rem; }
.entity-map { display: grid; grid-template-columns: 1fr 50px 1fr; gap: 20px; align-items: center; }
.entity-map > div { min-height: 230px; padding: 28px; border: 1px solid var(--line); }
.entity-map > i { color: var(--emerald); text-align: center; font-style: normal; font-size: 1.8rem; }
.entity-map span { color: var(--clay); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.entity-map h3 { margin-top: 42px; font-family: var(--display); font-size: 1.6rem; font-weight: 500; }
.entity-map p { color: var(--muted); font-size: .9rem; }
.entity-map a { color: var(--emerald); font-weight: 750; }
.trust-section.embedded { padding: 42px !important; }
.trust-section.embedded .proof-grid { margin-top: 32px; }

/* Blog */
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.archive-card { min-height: 300px; background: var(--paper); overflow: hidden; }
.archive-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ivory); }
.archive-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.archive-card:hover .archive-card-media img { transform: scale(1.025); }
.archive-card-body { padding: 32px 36px 36px; }
.archive-card h2 { margin-top: 24px; font-family: var(--display); font-size: 2rem; font-weight: 500; }
.archive-card h2 a { text-decoration: none; }
.archive-card p { color: var(--muted); }
.legacy-team { position: relative; }
.legacy-team::before { content: "فريق"; position: absolute; top: 40px; right: 0; color: rgba(0, 107, 85, .07); font-family: var(--arabic); font-size: clamp(6rem, 15vw, 13rem); line-height: 1; pointer-events: none; }
.legacy-team-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.legacy-team-grid figure { min-width: 0; margin: 0; background: var(--paper); }
.legacy-team-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.04); }
.legacy-team-grid figcaption { min-height: 110px; padding: 20px 18px; }
.legacy-team-grid strong, .legacy-team-grid span { display: block; }
.legacy-team-grid strong { line-height: 1.15; }
.legacy-team-grid span { margin-top: 7px; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.article-hero .shell { max-width: 1050px; }
.article-hero h1 { max-width: 980px; }
.article-meta { color: var(--muted); font-size: .77rem; }
.article-lead-visual { max-width: 1050px; padding-top: 70px; }
.article-lead-visual img { display: block; height: auto; max-height: none; object-fit: contain; background: var(--ink); }
.article-layout { max-width: 1050px; grid-template-columns: minmax(0, 1fr) 280px; }
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 2.2em; font-size: clamp(2rem, 3.4vw, 3.2rem); }
.prose h3 { margin-top: 1.8em; }
.prose li { margin-bottom: .55em; }
.prose a { color: var(--emerald); font-weight: 700; }
.prose .article-action-note { max-width: 820px; margin: clamp(34px, 5vw, 58px) 0; padding: clamp(24px, 3vw, 34px); background: #e3dbcf; border-left: 5px solid var(--itrex); box-shadow: 10px 10px 0 rgba(167, 85, 61, .14); }
.prose .article-action-note p { max-width: none; margin: 0; color: var(--ink); font-family: var(--display); font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.42; }
.prose .article-action-note strong { color: var(--emerald-dark); }
.prose .article-action-note a { color: var(--itrex); text-decoration-thickness: 2px; text-underline-offset: .16em; }
.prose table { display: table; width: 100%; margin: 2rem 0 2.4rem; border-collapse: collapse; border: 1px solid var(--line); font-size: .96rem; line-height: 1.45; }
.prose th, .prose td { padding: 17px 18px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: #e3dbcf; color: var(--emerald-dark); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.prose tbody tr:nth-child(even) { background: rgba(227, 219, 207, .38); }
.article-intro { padding-left: 24px; border-left: 4px solid var(--clay); font-family: var(--display); font-size: 1.5rem; line-height: 1.45; }
.article-caveat { margin-top: 70px; padding: 28px; background: var(--ivory); border-top: 1px solid var(--line); }
.article-caveat h2 { margin-top: 0; font-size: 2rem; }

/* FAQ and form */
.faq-section { padding: clamp(72px, 8vw, 120px) 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 76px; padding: 22px 56px 22px 0; position: relative; display: flex; align-items: center; cursor: pointer; font-family: var(--display); font-size: 1.28rem; font-weight: 500; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 10px; color: var(--emerald); font-family: var(--sans); font-size: 1.5rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 850px; padding: 0 50px 24px 0; color: var(--muted); }
.contact-band { padding: clamp(70px, 8vw, 120px) 0; background: var(--ink); color: var(--ivory); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(45px, 8vw, 110px); align-items: start; }
.contact-grid > div > p:not(.eyebrow) { color: #c9c5be; }
.contact-grid .eyebrow { color: #8bd1be; }
.contact-grid .text-link { color: #8bd1be; }
.quote-form { padding: 30px; background: var(--paper); color: var(--ink); border-top: 5px solid var(--emerald); box-shadow: 16px 16px 0 rgba(255,255,255,.08); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; display: grid; gap: 7px; }
.form-field-label { display: inline; font-size: .77rem; font-weight: 800; }
.form-required { display: inline; color: var(--itrex); }
.form-field input, .form-field textarea { width: 100%; border: 1px solid #b9b2a7; border-radius: 0; background: var(--white); color: var(--ink); padding: 13px 14px; min-height: 50px; }
.form-field textarea { min-height: 126px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--emerald); outline: 3px solid rgba(0,107,85,.15); }
.file-field input { padding: 10px; background: var(--ivory); }
.consent-field { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--muted); font-size: .78rem; }
.consent-field input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--emerald); }
.consent-field a, .form-privacy-notice a { color: var(--emerald); }
.form-privacy-notice { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.form-submit { margin-top: 22px; }
.form-submit .button { width: 100%; min-height: 54px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-message { padding: 12px 14px; font-size: .86rem; }
.form-message-success { background: #dbeae4; color: #164f40; }
.form-message-error { background: #f7dfe2; color: #7b1424; }

/* Footer */
.site-footer { padding: 70px 0 20px; background: #0f1315; color: var(--ivory); }
.footer-grid { display: grid; grid-template-columns: 1.55fr repeat(3, .8fr); gap: 50px; }
.footer-brand img { max-width: 330px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 450px; margin-top: 24px; color: #a9aaa7; font-size: .86rem; }
.footer-grid h2 { margin-bottom: 20px; font-family: var(--sans); color: #858b87; font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid nav, .footer-contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-grid a { color: #d4d2ce; font-size: .86rem; text-decoration: none; }
.footer-grid a:hover { color: #8bd1be; }
.footer-contacts p { color: #858b87; font-size: .78rem; }
.footer-legal { margin-top: 58px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.13); color: #7e817e; font-size: .72rem; }
.footer-legal a { color: inherit; }
.error-page { min-height: 65vh; padding: 100px 0; background: var(--ivory); }
.error-code { color: var(--clay); font-family: var(--arabic); font-size: 1rem; }
.error-page h1 { max-width: 800px; }

@media (max-width: 1180px) {
    .brand { flex-basis: 330px; }
    .header-actions { gap: 16px; }
    .header-contact:nth-child(2) { display: none; }
    .hero-copy { padding-right: 38px; }
    .country-index { grid-template-columns: repeat(2, 1fr); }
    .country-index article:nth-child(3) { border-top: 1px solid rgba(255,255,255,.17); }
    .country-index article:nth-child(4) { border-top: 1px solid rgba(255,255,255,.17); border-right: 1px solid rgba(255,255,255,.17); }
    .service-directory { grid-template-columns: repeat(2, 1fr); }
    .price-callout { grid-template-columns: 1fr 1fr; }
    .price-callout .button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 900px) {
    html { scroll-padding-top: 82px; }
    body { padding-bottom: calc(69px + env(safe-area-inset-bottom)); }
    .shell { width: min(calc(100% - 36px), var(--shell)); }
    .site-header { backdrop-filter: blur(10px); }
    .header-main { min-height: 76px; gap: 12px; }
    .brand { flex-basis: auto; width: min(62vw, 300px); }
    .header-actions, .desktop-nav { display: none; }
    .mobile-header-telegram { margin-left: auto; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--emerald); }
    .mobile-header-telegram svg { width: 22px; fill: currentColor; }
    .mobile-nav { display: block; }
    .menu-toggle { width: 42px; height: 42px; position: relative; border: 1px solid var(--line); list-style: none; cursor: pointer; }
    .menu-toggle::-webkit-details-marker { display: none; }
    .menu-toggle::before, .menu-toggle::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .18s ease; }
    .menu-toggle::before { top: 14px; box-shadow: 0 6px 0 var(--ink); }
    .menu-toggle::after { top: 26px; }
    .mobile-nav[open] .menu-toggle::before { top: 20px; transform: rotate(45deg); box-shadow: none; }
    .mobile-nav[open] .menu-toggle::after { top: 20px; transform: rotate(-45deg); }
    .nav-panel { position: fixed; inset: 76px 0 69px; overflow-y: auto; background: var(--paper); border-top: 1px solid var(--line); }
    .nav-panel nav { width: min(calc(100% - 36px), var(--shell)); margin: 0 auto; padding: 28px 0 40px; }
    .mobile-menu { margin: 0; padding: 0; list-style: none; }
    .mobile-menu > li { border-bottom: 1px solid var(--line); }
    .mobile-menu > li > a, .mobile-submenu > summary { min-height: 58px; display: flex; align-items: center; font-family: var(--display); font-size: 1.5rem; text-decoration: none; list-style: none; cursor: pointer; }
    .mobile-submenu > summary::after { content: "+"; margin-left: auto; color: var(--emerald); font-family: var(--sans); }
    .mobile-submenu[open] > summary::after { content: "−"; }
    .mobile-submenu-panel { padding: 0 0 24px; display: grid; gap: 11px; }
    .mobile-submenu-panel > span { margin-top: 10px; color: var(--clay); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
    .mobile-submenu-panel a { padding: 5px 0; font-size: .96rem; text-decoration: none; }
    .mobile-menu-all { color: var(--emerald); font-weight: 800; }
    .mobile-menu-contacts { padding-top: 26px; display: grid; gap: 9px; }
    .mobile-menu-contacts a { color: var(--emerald); font-size: .9rem; }
    .mobile-action-dock { position: fixed; z-index: 1001; left: 0; right: 0; bottom: 0; min-height: calc(69px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: 1.2fr 1fr 1fr; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -12px 30px rgba(15,18,19,.12); }
    .mobile-action-dock a { min-height: 69px; display: grid; place-items: center; align-content: center; gap: 2px; border-right: 1px solid var(--line); font-size: .66rem; font-weight: 800; text-decoration: none; }
    .mobile-action-dock svg { width: 22px; height: 22px; fill: currentColor; }
    .mobile-action-dock .mobile-action-primary { background: var(--itrex); color: var(--white); }
    .hero-grid { min-height: 0; grid-template-columns: 1fr; }
    .hero-copy { padding: 64px 0 50px; }
    .hero h1 { font-size: clamp(3.1rem, 10vw, 5.4rem); }
    .hero-visual { height: min(46svh, 430px); min-height: 0; margin-inline: -18px; }
    .brief-grid { grid-template-columns: repeat(2, 1fr); }
    .brief-grid > div:nth-child(3), .brief-grid > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.13); }
    .section-head { grid-template-columns: 1fr; gap: 20px; }
    .section-head .text-link { justify-self: start; }
    .visual-split, .trust-grid, .contact-grid { grid-template-columns: 1fr; }
    .visual-split figure { order: 2; }
    .process-line { grid-template-columns: repeat(2, 1fr); }
    .process-line li:nth-child(3), .process-line li:nth-child(4) { border-top: 1px solid var(--line); }
    .page-hero-grid { grid-template-columns: 1fr 120px; gap: 30px; }
    .entry-layout { grid-template-columns: 1fr; }
    .entry-aside { position: static; max-width: 520px; }
    .legal-route { grid-template-columns: repeat(2, 1fr); }
    .legal-route > div:nth-child(3), .legal-route > div:nth-child(4) { border-top: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .footer-contacts { grid-column: 2 / -1; }
}

@media (max-width: 1050px) {
    .legacy-team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .shell { width: min(calc(100% - 28px), var(--shell)); }
    .brand { width: min(56vw, 250px); }
    .hero-copy { padding-top: 50px; }
    h1, .hero h1 { font-size: clamp(2.7rem, 13vw, 4.2rem); }
    h2 { font-size: clamp(2rem, 10vw, 3rem); }
    .hero-lead { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .button { width: 100%; }
    .hero-trust { display: grid; }
    .hero-visual { height: min(42svh, 390px); min-height: 0; margin-inline: -14px; }
    .hero-visual img { object-position: 62% center; }
    .hero-script { right: 18px; top: 18px; }
    .hero-axis { left: 18px; bottom: 18px; }
    .brief-grid { grid-template-columns: 1fr; }
    .brief-grid > div { min-height: 88px; border-right: 1px solid rgba(255,255,255,.13); border-top: 1px solid rgba(255,255,255,.13); }
    .route-pair, .country-index, .process-line, .knowledge-grid, .proof-grid, .detail-grid, .numbered-cards, .service-directory, .service-directory.two-column, .price-cards, .archive-grid { grid-template-columns: 1fr; }
    .legacy-team-grid { grid-template-columns: repeat(2, 1fr); }
    .legacy-team-grid figcaption { min-height: 104px; padding: 16px 14px; }
    .route-card { min-height: 340px; padding: 28px; }
    .route-card-out { text-align: left; align-items: flex-start; }
    .route-arabic { margin-top: 36px; }
    .country-index article { border-right: 1px solid rgba(255,255,255,.17); border-top: 1px solid rgba(255,255,255,.17); }
    .country-index h3 { margin-top: 28px; }
    .task-ledger > a { grid-template-columns: 36px 1fr; gap: 14px; }
    .task-ledger > a > strong { grid-column: 2; justify-self: start; }
    .process-line li { min-height: 210px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
    .knowledge-feature { grid-row: auto; padding: 28px !important; }
    .page-hero { padding: 48px 0 56px; }
    .page-hero-grid { grid-template-columns: 1fr; }
    .page-hero-mark { min-height: 86px; padding: 8px 0; flex-direction: row; align-items: center; border-right: 0; border-top: 2px solid var(--emerald); font-size: 2rem; }
    .breadcrumbs { margin-bottom: 28px; }
    .article-lead-visual { padding-top: 42px; }
    .prose .article-action-note { margin-block: 38px; padding: 24px 22px; box-shadow: 7px 7px 0 rgba(167, 85, 61, .14); }
    .prose .article-action-note p { font-size: 1.18rem; }
    .prose table { display: block; overflow-x: auto; font-size: .9rem; }
    .prose th, .prose td { min-width: 178px; padding: 14px 15px; }
    .entry-layout { padding-top: 64px; gap: 50px; }
    .detail-grid > div { min-height: 190px; }
    .price-callout { padding: 26px !important; grid-template-columns: 1fr; }
    .price-callout .button { grid-column: auto; width: 100%; }
    .decision-table > div { grid-template-columns: 1fr; gap: 6px; }
    .numbered-cards li { min-height: 160px; }
    .service-directory a { min-height: 210px; }
    .country-note { grid-template-columns: 1fr; }
    .country-note > div:first-child { min-height: 110px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
    .legal-route { grid-template-columns: 1fr; }
    .legal-route > div { border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
    .source-note { grid-template-columns: 1fr; }
    .rtl-demo { grid-template-columns: 1fr; }
    .rtl-arrow { transform: rotate(90deg); }
    .pricing-table { overflow-x: auto; }
    .pricing-table > div { min-width: 650px; }
    .entity-map { grid-template-columns: 1fr; }
    .entity-map > i { transform: rotate(90deg); }
    .trust-section.embedded { padding: 26px !important; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .quote-form { padding: 22px; box-shadow: 8px 8px 0 rgba(255,255,255,.08); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-contacts { grid-column: 1 / -1; }
    .footer-legal { flex-direction: column; }
}

@media (max-width: 360px) {
    .shell { width: min(calc(100% - 24px), var(--shell)); }
    .brand { width: 54vw; }
    .mobile-header-telegram { display: none; }
    .hero h1, h1 { font-size: 2.55rem; }
    .hero-visual { margin-inline: 0; }
    .route-card { padding: 24px; }
    .entry-aside { padding: 22px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > * { min-width: 0; }
    .footer-brand img { max-width: 100%; }
}

/* Evidence, cases and conversion layer */
.context-links { margin-top: clamp(64px, 8vw, 110px); padding-top: 32px; border-top: 1px solid var(--line); }
.context-links h2 { max-width: 680px; font-size: clamp(2rem, 3.3vw, 3.15rem); }
.context-links ul { margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); list-style: none; }
.context-links li { min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.context-links a { min-height: 70px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--ink); font-size: .9rem; font-weight: 750; text-decoration: none; }
.context-links a:hover { background: var(--ivory); color: var(--emerald-dark); }
.context-links a span { color: var(--clay); font-size: 1.2rem; }

.proof-rail { padding: clamp(58px, 7vw, 90px) 0; background: #e6dfd3; border-top: 1px solid var(--line); }
.proof-rail-inner { display: grid; grid-template-columns: .85fr 1.25fr; gap: clamp(35px, 6vw, 86px); align-items: start; }
.proof-rail-intro h2 { max-width: 520px; font-size: clamp(2rem, 3.5vw, 3.5rem); }
.proof-rail-intro p:last-child { max-width: 560px; color: #4e504e; }
.proof-rail dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.proof-rail dl div { min-height: 142px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-rail dt { font-family: var(--display); font-size: clamp(2rem, 3.5vw, 3.6rem); line-height: 1; letter-spacing: -.04em; }
.proof-rail dd { margin: 10px 0 0; color: #52524e; font-size: .82rem; line-height: 1.4; }
.proof-rail-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 12px; }
.proof-review { grid-column: 2; margin: -2px 0 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px 22px; align-items: baseline; color: #52524e; font-size: .78rem; line-height: 1.45; }
.proof-review strong { color: var(--ink); font-family: var(--display); font-size: 1.2rem; font-weight: 500; white-space: nowrap; }
.proof-review a { color: var(--emerald-dark); font-weight: 800; white-space: nowrap; }
.brief-trigger { min-height: 48px; padding: 12px 20px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); font-size: .86rem; font-weight: 800; cursor: pointer; }
.brief-trigger:hover { background: var(--ink); color: var(--ivory); }

.cases-home-grid { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cases-home-grid > a { min-height: 220px; padding: 30px; display: flex; flex-direction: column; background: var(--paper); text-decoration: none; }
.cases-home-grid .cases-home-feature { min-height: 441px; padding: 44px; background: var(--emerald-dark); color: var(--white); }
.cases-home-grid span, .case-tag { color: var(--clay); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.cases-home-grid .cases-home-feature span { color: #a7e0d0; }
.cases-home-grid strong { max-width: 620px; margin: 32px 0 14px; font-family: var(--display); font-size: clamp(1.55rem, 2.5vw, 2.55rem); font-weight: 500; line-height: 1.12; }
.cases-home-grid .cases-home-feature strong { margin-top: 72px; font-size: clamp(2rem, 3.5vw, 3.7rem); }
.cases-home-grid p { color: var(--muted); }
.cases-home-grid .cases-home-feature p { color: #d4e6e1; }
.cases-home-grid b { margin-top: auto; color: var(--emerald); font-size: .8rem; }
.cases-home-grid .cases-home-feature b { color: #a7e0d0; }

.cases-layout { padding-top: clamp(70px, 8vw, 120px); padding-bottom: clamp(80px, 9vw, 140px); }
.case-feature { display: grid; grid-template-columns: 1fr .82fr; min-height: 560px; background: var(--emerald-dark); color: var(--white); }
.case-feature-copy { padding: clamp(36px, 6vw, 76px); }
.case-feature-copy .eyebrow { color: #a7e0d0; }
.case-feature-copy h2 { max-width: 700px; }
.case-feature-copy > p { max-width: 660px; color: #d2e3de; }
.case-feature-copy dl { margin: 32px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.2); }
.case-feature-copy dl div { padding: 18px 12px 18px 0; border-right: 1px solid rgba(255,255,255,.2); }
.case-feature-copy dt { color: #a7e0d0; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.case-feature-copy dd { margin: 8px 0 0; font-size: .9rem; }
.case-feature-visual { position: relative; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; overflow: hidden; background: #101718; }
.case-feature-visual::before { content: "RTL"; position: absolute; right: -18px; top: -22px; color: rgba(255,255,255,.06); font-family: var(--display); font-size: 11rem; }
.case-feature-visual span { min-height: 110px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); font-family: var(--display); font-size: 1.3rem; }
.case-feature-visual i { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; display: grid; place-items: center; transform: translate(-50%,-50%); border-radius: 50%; background: var(--clay); color: var(--white); font-style: normal; font-weight: 900; }
.case-feature-visual b { grid-column: 1 / -1; color: #a7e0d0; font-size: .72rem; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.case-pair, .practice-notes, .evidence-boundary { margin-top: clamp(90px, 10vw, 150px); }
.case-pair-grid, .practice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.case-pair-single .case-pair-grid { grid-template-columns: minmax(0, 1fr); }
.case-pair-grid article, .practice-grid article { min-height: 330px; padding: 36px; display: flex; flex-direction: column; background: var(--paper); }
.case-pair-grid h3, .practice-grid h3 { margin-top: 55px; font-family: var(--display); font-size: clamp(1.7rem, 2.6vw, 2.6rem); font-weight: 500; }
.case-pair-grid p, .practice-grid p { color: var(--muted); }
.case-pair-grid .text-link { margin-top: auto; }
.case-tag-caution { color: #82402f; }
.practice-grid article > span { color: var(--emerald); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.evidence-boundary { padding: clamp(34px, 5vw, 58px); background: var(--ivory); border-left: 5px solid var(--clay); }
.evidence-boundary h2 { max-width: 850px; }
.evidence-boundary p:last-child { max-width: 900px; color: var(--muted); }

.case-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(45px, 8vw, 100px); align-items: stretch; }
.case-hero-grid > * { min-width: 0; }
.case-hero h1 { max-width: 1040px; }
.case-hero-visual { min-height: 320px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; background: var(--ink); color: var(--ivory); border-top: 5px solid var(--emerald); }
.case-hero-visual > span, .case-hero-visual > b { font-size: .66rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.case-hero-visual > strong { align-self: flex-end; color: #a7e0d0; font-family: var(--arabic); font-size: 4.2rem; font-weight: 500; }
.case-hero-visual > i { height: 1px; background: linear-gradient(90deg,var(--clay),rgba(255,255,255,.2)); }
.case-body { padding-top: clamp(70px, 8vw, 120px); padding-bottom: clamp(80px, 9vw, 140px); }
.case-language-note { max-width: 920px; margin-bottom: 46px; padding: 24px 28px; background: #f0dfd7; border-left: 5px solid var(--clay); }
.case-facts { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.case-facts > div { min-height: 180px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-facts dt { color: var(--clay); font-size: .67rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.case-facts dd { margin: 34px 0 0; }
.case-facts strong, .case-facts span { display: block; }
.case-facts strong { font-family: var(--display); font-size: 1.7rem; font-weight: 500; line-height: 1.08; }
.case-facts span { margin-top: 10px; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.case-narrative { max-width: 980px; margin: clamp(80px, 10vw, 150px) auto 0; }
.case-narrative section { margin-bottom: clamp(65px, 8vw, 110px); }
.case-narrative h2 { max-width: 820px; }
.case-narrative p { max-width: 800px; }
.case-steps { margin: 30px 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); list-style: none; }
.case-steps li { min-height: 180px; padding: 24px; display: grid; grid-template-columns: 38px 1fr; gap: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-steps li > span { color: var(--clay); font-size: .68rem; font-weight: 850; }
.case-steps h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 500; }
.case-steps p { color: var(--muted); font-size: .88rem; }
.case-origin { max-width: 980px; margin: 0 auto; padding: 38px; background: var(--emerald-dark); color: var(--white); }
.case-origin .eyebrow { color: #a7e0d0; }
.case-origin p:last-child { max-width: 800px; color: #d2e3de; }

.editorial-cover { position: relative; width: 100%; height: clamp(250px, 32vw, 420px); padding: clamp(22px, 4vw, 44px); display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: 18px; overflow: hidden; background: var(--ink); color: var(--ivory); border-top: 5px solid var(--emerald); }
.editorial-cover::before { content: ""; position: absolute; inset: 17% 9% 15% 32%; border: 1px solid rgba(255,255,255,.18); box-shadow: 16px 16px 0 rgba(255,255,255,.05); }
.cover-code { z-index: 1; font-size: .7rem; font-weight: 850; letter-spacing: .13em; }
.cover-script { z-index: 1; color: #a7e0d0; font-family: var(--arabic); font-size: clamp(1.5rem, 3vw, 3.2rem); }
.cover-register { z-index: 1; grid-column: 1 / -1; align-self: center; width: min(72%, 600px); display: grid; gap: 9px; }
.cover-register i { height: 1px; background: rgba(255,255,255,.35); }
.cover-register i:nth-child(2) { width: 76%; }
.cover-register i:nth-child(3) { width: 52%; }
.cover-register b { width: 54px; height: 54px; margin-top: 4px; border: 1px solid #a7e0d0; border-radius: 50%; }
.editorial-cover > strong { z-index: 1; grid-column: 1 / -1; max-width: 760px; font-size: clamp(.72rem, 1.2vw, .9rem); letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; }
.cover-medical { background: #153c3c; border-color: #d8a672; }
.cover-commerce { background: #202435; border-color: #a7e0d0; }
.cover-technical { background: #2f302a; border-color: #d8a672; }
.cover-marketing { background: #503528; border-color: #a7e0d0; }
.cover-legal { background: #202b35; border-color: #c67c62; }
.cover-business { background: #29372f; border-color: #d8a672; }
.archive-card-media .editorial-cover { height: 100%; min-height: 0; }
.archive-card:hover .editorial-cover::before { transform: translate(-4px,-4px); }

.form-security { margin: 0 0 16px; padding: 11px 13px; background: #e3eee9; color: #174f43; font-size: .76rem; font-weight: 650; line-height: 1.45; }
.quote-form { scroll-margin-top: 160px; }
.brief-dialog { width: min(700px, calc(100% - 30px)); max-height: min(88svh, 780px); padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.brief-dialog::backdrop { background: rgba(12,18,19,.76); }
.brief-panel { position: relative; max-height: min(88svh,780px); padding: clamp(25px,5vw,44px); overflow: auto; background: var(--paper); border-top: 6px solid var(--emerald); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.brief-close { position: absolute; top: 11px; right: 11px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 400 28px/1 Arial,sans-serif; cursor: pointer; }
.brief-dialog h2 { max-width: 590px; margin: 0; font-size: clamp(2rem,5vw,3.5rem); }
.brief-lead { max-width: 540px; margin: 13px 0 22px; color: var(--muted); }
.brief-progress { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-bottom: 24px; }
.brief-progress span { padding: 7px; border-top: 3px solid var(--line); color: var(--muted); font-size: .66rem; font-weight: 800; }
.brief-progress span.is-current { border-color: var(--emerald); color: var(--emerald-dark); }
.brief-step[hidden] { display: none !important; }
.brief-step fieldset { margin: 0; padding: 0; border: 0; }
.brief-step legend, .brief-step > label { width: 100%; margin: 0 0 14px; display: grid; gap: 8px; font-size: .91rem; font-weight: 750; }
.brief-step fieldset label { min-height: 48px; margin-bottom: 8px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--white); font-size: .88rem; font-weight: 650; cursor: pointer; }
.brief-step input[type=radio] { width: 18px; height: 18px; flex: none; accent-color: var(--emerald); }
.brief-step select { width: 100%; min-height: 50px; padding: 10px 12px; border: 1px solid #a8a197; border-radius: 0; background: var(--white); color: var(--ink); font-size: 1rem; }
.brief-step > button, .brief-buttons button { min-height: 46px; padding: 11px 18px; border: 1px solid var(--emerald); background: var(--emerald); color: var(--white); font-size: .78rem; font-weight: 800; cursor: pointer; }
.brief-buttons { margin-top: 18px; display: flex; justify-content: space-between; gap: 12px; }
.brief-buttons button:first-child { border-color: var(--line); background: transparent; color: var(--ink); }
.brief-note { padding: 12px 14px; background: var(--ivory); color: var(--muted); font-size: .8rem; }
.brief-status { min-height: 22px; margin: 12px 0 0; color: #7d2f26; font-size: .78rem; font-weight: 750; }
.brief-dialog-fallback { position: fixed; z-index: 1100; top: 5vh; left: 50%; transform: translateX(-50%); }

@media (max-width: 900px) {
    .proof-rail-inner { grid-template-columns: 1fr; }
    .proof-rail-actions { grid-column: 1; }
    .proof-review { grid-column: 1; }
    .case-feature { grid-template-columns: 1fr; }
    .case-feature-visual { min-height: 390px; }
    .case-hero-grid { grid-template-columns: 1fr; }
    .case-hero-visual { min-height: 210px; }
    .case-facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .context-links ul, .cases-home-grid, .case-pair-grid, .practice-grid, .case-steps { grid-template-columns: 1fr; }
    .proof-rail dl { grid-template-columns: repeat(2,1fr); }
    .proof-rail dl div { min-height: 122px; padding: 17px; }
    .proof-rail-actions { display: grid; }
    .proof-rail-actions .button, .brief-trigger { width: 100%; }
    .proof-review { grid-template-columns: 1fr; gap: 5px; }
    .proof-review strong, .proof-review a { white-space: normal; }
    .cases-home-grid .cases-home-feature { grid-row: auto; min-height: 340px; padding: 30px; }
    .cases-home-grid .cases-home-feature strong { margin-top: 46px; }
    .case-feature-copy dl { grid-template-columns: 1fr; }
    .case-feature-copy dl div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
    .case-feature-visual { min-height: 310px; padding: 24px; }
    .case-feature-visual span { min-height: 80px; }
    .case-facts { grid-template-columns: 1fr 1fr; }
    .case-facts > div { min-height: 155px; padding: 18px; }
    .case-facts dd { margin-top: 24px; }
    .case-facts strong { font-size: 1.35rem; }
    .page-hero h1 { max-width: 100%; font-size: clamp(2.1rem, 9vw, 2.7rem); }
    .case-steps li { grid-template-columns: 1fr; }
    .case-steps h3 { font-size: 1.35rem; }
    .editorial-cover { height: min(34svh,290px); padding: 20px; }
    .editorial-cover::before { inset: 20% 8% 18% 25%; }
    .brief-panel { padding: 25px 16px; }
    .brief-buttons { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 360px) {
    .brand { width: 48vw; }
    .mobile-header-telegram { display: grid; flex: 0 0 42px; }
    .proof-rail dl, .case-facts { grid-template-columns: 1fr; }
    .proof-rail dl div { min-height: 105px; }
    .case-hero-visual { min-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
    .site-header, .mobile-action-dock, .contact-band, .entry-aside, .site-footer { display: none !important; }
    body { background: #fff; color: #000; }
    .shell { width: 100%; }
    .entry-layout { display: block; }
}
