:root {
  --orange: #f18f21;
  --orange-dark: #c96705;
  --ink: #15212b;
  --ink-2: #24333f;
  --muted: #65717b;
  --line: #dfe3e5;
  --soft: #f4f5f4;
  --white: #fff;
  --max: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; left: 18px; top: -80px; z-index: 1000; background: var(--ink); color: white; padding: 10px 16px; }
.skip-link:focus { top: 18px; }

.site-header { position: sticky; top: 0; z-index: 50; height: 84px; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(21,33,43,.1); backdrop-filter: blur(12px); }
.nav-shell { max-width: 1400px; height: 100%; margin: 0 auto; padding: 0 34px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.brand img { width: 50px; height: 44px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand strong { font-size: 14px; letter-spacing: .035em; white-space: nowrap; }
.brand small { font-size: 6.5px; color: var(--muted); letter-spacing: .07em; margin-top: 5px; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.site-nav a { position: relative; padding: 28px 0; }
.site-nav a::after { content: ""; position: absolute; height: 2px; left: 0; right: 100%; bottom: 21px; background: var(--orange); transition: right .25s var(--ease); }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.language-control { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.language-control > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.language-control select { height: 40px; min-width: 88px; padding: 0 26px 0 10px; border: 1px solid var(--line); border-radius: 0; background: white; color: var(--ink); font-size: 12px; font-weight: 800; cursor: pointer; direction: ltr; }
.nav-cta { background: var(--orange); color: var(--ink); padding: 13px 19px; font-size: 13px; font-weight: 800; transition: background .2s, transform .2s; }
.nav-cta:hover { background: #ff9e32; transform: translateY(-2px); }
.menu-toggle { display: none; border: 0; background: transparent; }

.hero { overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { min-height: calc(100vh - 84px); max-height: 920px; display: grid; grid-template-columns: minmax(420px, 45%) 1fr; max-width: 1400px; margin: 0 auto; padding: 0 34px; }
.hero-copy { padding: clamp(88px, 12vh, 138px) 56px 80px 0; display: flex; flex-direction: column; align-items: flex-start; position: relative; z-index: 2; }
.hero-index { margin: 0 0 28px; font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--muted); }
.hero h1 { margin: 0; font-size: clamp(52px, 5.2vw, 80px); line-height: 1.06; letter-spacing: -.055em; font-weight: 900; }
.hero h1 span { color: var(--orange); }
.hero-lead { max-width: 590px; margin: 28px 0 0; font-size: 18px; line-height: 1.9; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; margin-top: 38px; }
.button { min-height: 50px; padding: 0 22px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 30px; font-size: 14px; font-weight: 800; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--ink); background: var(--orange); }
.button-primary:hover { background: #ff9d30; }
.button-ghost { border-color: var(--ink); background: transparent; }
.button-ghost:hover { background: var(--ink); color: white; }
.hero-contact { display: flex; align-items: center; gap: 22px; margin-top: auto; padding-top: 44px; font-size: 13px; }
.hero-contact span { color: var(--muted); }
.hero-contact a { font-weight: 900; letter-spacing: .04em; }

/* Long translated headlines need their own type rhythm and a fluid hero height. */
html[lang="en"] .hero-grid,
html[lang="es"] .hero-grid,
html[lang="ar"] .hero-grid { min-height: max(800px, calc(100vh - 84px)); max-height: none; }
html[lang="en"] .hero-copy,
html[lang="es"] .hero-copy,
html[lang="ar"] .hero-copy { padding-top: clamp(64px, 8vh, 96px); padding-bottom: 54px; }
html[lang="en"] .hero h1 { font-size: clamp(42px, 4vw, 62px); line-height: 1.04; letter-spacing: -.04em; }
html[lang="es"] .hero h1 { font-size: clamp(40px, 3.7vw, 58px); line-height: 1.04; letter-spacing: -.04em; }
html[lang="ar"] .hero h1 { font-size: clamp(42px, 3.8vw, 60px); line-height: 1.16; }
html[lang="en"] .hero-lead,
html[lang="es"] .hero-lead,
html[lang="ar"] .hero-lead { margin-top: 24px; font-size: 16px; line-height: 1.72; }
html[lang="en"] .hero-actions,
html[lang="es"] .hero-actions,
html[lang="ar"] .hero-actions { margin-top: 28px; }
html[lang="en"] .hero-contact,
html[lang="es"] .hero-contact,
html[lang="ar"] .hero-contact { padding-top: 30px; }
.hero-visual { position: relative; min-width: 0; }
.machine-stage { position: absolute; inset: 30px 0 46px; background: var(--soft); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.machine-stage::before, .machine-stage::after { content: ""; position: absolute; pointer-events: none; }
.machine-stage::before { inset: 8% 8%; border: 1px solid rgba(21,33,43,.12); }
.machine-stage::after { width: 1px; height: 100%; left: 50%; top: 0; background: rgba(21,33,43,.07); }
.stage-number { position: absolute; right: -20px; top: -80px; font-size: 250px; font-weight: 900; line-height: 1; letter-spacing: -.09em; color: rgba(21,33,43,.035); }
.machine-stage > img { position: relative; width: 92%; max-height: 73%; object-fit: contain; z-index: 2; filter: drop-shadow(0 28px 24px rgba(21,33,43,.18)); }
.machine-caption { position: absolute; z-index: 3; left: 28px; bottom: 28px; padding-left: 17px; border-left: 4px solid var(--orange); }
.machine-caption span { color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.machine-caption strong { display: block; font-size: 28px; line-height: 1.2; }
.machine-caption p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.capability-rail { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1400px; margin: 0 auto; padding: 0 34px; border-top: 1px solid var(--line); }
.capability-rail > div { min-height: 106px; display: flex; align-items: center; gap: 20px; padding: 20px 28px; border-right: 1px solid var(--line); }
.capability-rail > div:first-child { border-left: 1px solid var(--line); }
.capability-rail b { font-size: 12px; color: var(--orange-dark); }
.capability-rail span { font-size: 12px; color: var(--muted); }
.capability-rail strong { display: block; color: var(--ink); font-size: 15px; }

.section { padding: 118px 34px; }
.section-head, .product-list, .solution-grid, .factory-layout, .trial-shell { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 64px; }
.section-head > div { display: flex; align-items: flex-start; gap: 20px; }
.section-no { font-size: 12px; color: var(--orange-dark); font-weight: 800; padding-top: 12px; }
.section-no.light { color: var(--orange); }
.section h2 { margin: 0; font-size: clamp(40px, 4.5vw, 64px); line-height: 1.13; letter-spacing: -.05em; }
.section-head p { margin: 0; max-width: 560px; color: var(--muted); font-size: 16px; }
.product-list { border-top: 1px solid var(--ink); }
.product { display: grid; grid-template-columns: 44% 1fr; min-height: 430px; border-bottom: 1px solid var(--line); }
.product:nth-child(even) { grid-template-columns: 1fr 44%; }
.product:nth-child(even) .product-media { order: 2; }
.product-media { position: relative; background: #fff; min-height: 430px; display: grid; place-items: center; overflow: hidden; }
.product-media::before { content: ""; position: absolute; width: 62%; aspect-ratio: 1; border: 1px solid rgba(21,33,43,.08); transform: rotate(45deg); }
.product-media img { position: relative; z-index: 1; width: 90%; height: 360px; object-fit: contain; mix-blend-mode: normal; filter: contrast(1.025) saturate(1.02) drop-shadow(0 20px 18px rgba(21,33,43,.14)); transition: transform .6s var(--ease), filter .35s var(--ease); }
.product:hover .product-media img { transform: scale(1.035); }
.product-media.dark-media { background: #1a2025; }
.product-media.dark-media::before { border-color: rgba(255,255,255,.1); }
.product-media.dark-media img { mix-blend-mode: normal; filter: drop-shadow(0 20px 18px rgba(0,0,0,.35)); }
.product-body { padding: 58px 62px; display: flex; flex-direction: column; align-items: flex-start; }
.product-type { font-size: 12px; color: var(--orange-dark); font-weight: 800; letter-spacing: .08em; }
.product h3 { margin: 10px 0 14px; font-size: 46px; line-height: 1; letter-spacing: -.035em; }
.product p { max-width: 550px; margin: 0; color: var(--muted); }
.product ul { display: flex; flex-wrap: wrap; gap: 7px 26px; list-style: none; padding: 0; margin: 25px 0 34px; font-size: 13px; font-weight: 700; }
.product li::before { content: "—"; color: var(--orange); margin-right: 8px; }
.text-link { margin-top: auto; padding: 8px 0; background: transparent; border: 0; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 800; cursor: pointer; }
.text-link span { margin-left: 28px; color: var(--orange-dark); }

.catalog { max-width: var(--max); margin: 110px auto 0; padding-top: 38px; border-top: 1px solid var(--ink); }
.catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.catalog-head > div:first-child span { color: var(--orange-dark); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.catalog-head h3 { margin: 5px 0 0; font-size: 36px; line-height: 1.2; letter-spacing: -.035em; }
.catalog-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.catalog-filters button { border: 1px solid var(--line); background: white; padding: 9px 14px; font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s; }
.catalog-filters button:hover, .catalog-filters button.active { color: white; background: var(--ink); border-color: var(--ink); }
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.catalog-card { min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; transition: opacity .25s, transform .25s; }
.catalog-card[hidden] { display: none; }
.catalog-image { height: 230px; display: grid; place-items: center; overflow: hidden; background: #fff; }
.product-media-link { cursor: pointer; }
.product-media-link:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.catalog-image img { width: 88%; height: 84%; object-fit: contain; mix-blend-mode: normal; filter: contrast(1.025) saturate(1.02) drop-shadow(0 14px 12px rgba(21,33,43,.14)); transition: transform .5s var(--ease), filter .35s var(--ease); }
.catalog-card:hover .catalog-image img { transform: scale(1.05); }
.catalog-image.dark { background: #1a2025; }
.catalog-image.dark img { mix-blend-mode: normal; }
.catalog-info { padding: 22px 20px 25px; }
.catalog-info > span { color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.catalog-info h4 { min-height: 54px; margin: 3px 0 20px; font-size: 22px; line-height: 1.2; }
.catalog-info button { padding: 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }

.solutions { background: var(--ink); color: white; }
.solution-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 110px; }
.solution-intro p { max-width: 480px; color: #aeb7bd; margin: 28px 0 38px; }
.solution-intro h2 { font-size: clamp(38px, 4vw, 58px); }
.button-light { border-color: rgba(255,255,255,.5); color: white; }
.button-light:hover { background: white; color: var(--ink); }
.solution-steps { border-top: 1px solid rgba(255,255,255,.3); }
.solution-steps article { min-height: 125px; display: grid; grid-template-columns: 54px 1fr; gap: 24px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.2); }
.solution-steps b { color: var(--orange); font-size: 12px; }
.solution-steps h3 { margin: 0 0 5px; font-size: 23px; }
.solution-steps p { margin: 0; color: #aeb7bd; font-size: 14px; }

.factory-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; align-items: center; }
.factory-copy h2 { margin-top: 16px; }
.factory-copy > p { color: var(--muted); margin: 28px 0 34px; }
.factory-copy dl { margin: 0; border-top: 1px solid var(--line); }
.factory-copy dl div { padding: 15px 0; display: grid; grid-template-columns: 90px 1fr; border-bottom: 1px solid var(--line); font-size: 13px; }
.factory-copy dt { color: var(--muted); }
.factory-copy dd { margin: 0; font-weight: 700; }
.factory-gallery { display: grid; grid-template-columns: 1fr 38%; grid-template-rows: repeat(3, 180px); gap: 15px; align-items: stretch; }
.factory-gallery figure { margin: 0; position: relative; overflow: hidden; }
.factory-gallery img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.025) saturate(.9) contrast(1.045); transition: transform .7s var(--ease), filter .7s var(--ease); }
.factory-gallery figure:hover img { transform: scale(1.03); filter: brightness(1.02) saturate(1) contrast(1.035); }
.factory-main { height: auto; grid-row: 1 / 4; }
.factory-secondary { height: auto; min-height: 0; }
.factory-gallery figcaption { position: absolute; left: 0; bottom: 0; padding: 12px 15px; background: rgba(21,33,43,.9); color: white; font-size: 11px; }

.trial { padding-top: 0; padding-bottom: 0; }
.trial-shell { background: var(--ink-2); color: white; display: grid; grid-template-columns: .8fr 1.2fr; }
.trial-copy { padding: 80px 60px; border-right: 1px solid rgba(255,255,255,.15); }
.trial-copy h2 { margin-top: 16px; }
.trial-copy > p { color: #bec5ca; margin: 25px 0 42px; }
.trial-contact { display: grid; gap: 17px; }
.trial-contact a { display: flex; flex-direction: column; }
.trial-contact span { color: #8e9aa2; font-size: 11px; }
.trial-contact strong { font-size: 15px; }
.inquiry-form { background: white; color: var(--ink); padding: 74px 66px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.inquiry-form label { display: block; margin-bottom: 22px; font-size: 12px; font-weight: 800; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea { width: 100%; margin-top: 8px; border: 0; border-bottom: 1px solid #aeb5ba; border-radius: 0; background: transparent; padding: 12px 2px; outline: 0; color: var(--ink); transition: border-color .2s; }
.inquiry-form textarea { border: 1px solid #aeb5ba; padding: 12px; resize: vertical; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { border-color: var(--orange-dark); }
.form-submit { width: 100%; border: 0; margin-top: 5px; }
.form-note { margin: 11px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

.site-footer { margin-top: 118px; background: #0e171e; color: white; padding: 76px 34px 25px; }
.footer-main, .footer-addresses, .footer-bottom { max-width: var(--max); margin-left: auto; margin-right: auto; }
.footer-main { display: grid; grid-template-columns: 1fr .75fr 330px; gap: 62px; align-items: start; }
.footer-brand img { width: 66px; height: 58px; object-fit: contain; margin-bottom: 25px; }
.footer-brand h2 { margin: 0; font-size: 36px; line-height: 1.25; }
.footer-contact { display: grid; gap: 22px; }
.footer-contact div { display: flex; flex-direction: column; }
.footer-contact span { font-size: 11px; color: #7f8b93; }
.footer-contact a { font-size: 17px; font-weight: 700; }
.footer-qr-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.footer-qr { text-align: center; color: #9aa4aa; font-size: 11px; }
.footer-qr img { width: 150px; height: 150px; object-fit: contain; margin-bottom: 8px; padding: 6px; background: white; }
.footer-addresses { margin-top: 52px; padding: 25px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); display: flex; gap: 55px; color: #9aa4aa; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 23px; color: #68747c; font-size: 11px; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.icp-link { color: inherit; transition: color .2s; }
.icp-link:hover, .icp-link:focus-visible { color: white; }

.floating-contact { position: fixed; z-index: 40; right: 20px; bottom: 20px; display: grid; gap: 8px; }
.floating-contact a { width: 48px; height: 48px; display: grid; place-items: center; font-size: 10px; font-weight: 900; letter-spacing: .04em; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.float-whatsapp { background: #21c063; color: white; }
.float-phone { background: var(--orange); color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 30px); padding: 12px 18px; background: var(--ink); color: white; font-size: 13px; opacity: 0; visibility: hidden; z-index: 100; transition: .3s var(--ease); }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.product-modal { width: min(1320px, calc(100vw - 48px)); height: min(880px, calc(100vh - 48px)); max-width: none; max-height: none; padding: 0; border: 0; background: white; color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.3); overflow: hidden; }
.product-modal::backdrop { background: rgba(9,16,21,.78); backdrop-filter: blur(5px); }
.modal-shell { height: 100%; display: flex; flex-direction: column; }
.modal-header { min-height: 72px; padding: 0 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; }
.modal-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 900; letter-spacing: .07em; }
.modal-brand img { width: 36px; height: 34px; object-fit: contain; }
.modal-close { width: 44px; height: 44px; border: 1px solid var(--line); background: white; display: grid; place-items: center; cursor: pointer; transition: .2s; }
.modal-close:hover { color: white; background: var(--ink); border-color: var(--ink); }
.modal-close svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.modal-content { min-height: 0; display: grid; grid-template-columns: 1.08fr .92fr; flex: 1; overflow: hidden; }
.modal-media, .modal-details { min-height: 0; overflow-y: auto; }
.modal-media { padding: 32px; background: #f4f5f4; border-right: 1px solid var(--line); }
.modal-main-image { height: 455px; background: white; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.modal-main-image img { width: 90%; height: 90%; object-fit: contain; mix-blend-mode: normal; filter: contrast(1.025) saturate(1.02) drop-shadow(0 18px 16px rgba(21,33,43,.14)); }
.modal-thumbs { margin-top: 12px; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
.modal-thumb { height: 92px; padding: 5px; border: 1px solid var(--line); background: white; cursor: pointer; transition: border-color .2s, transform .2s; }
.modal-thumb:hover, .modal-thumb.active { border-color: var(--orange); transform: translateY(-2px); }
.modal-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: normal; filter: contrast(1.02) saturate(1.02); }
.modal-video-wrap { margin-top: 34px; }
.modal-video-wrap[hidden] { display: none; }
.modal-video-wrap video { width: 100%; max-height: 420px; margin-top: 15px; background: #0e171e; display: block; }
.modal-details { padding: 52px 48px 60px; }
.modal-type { margin: 0 0 8px; color: var(--orange-dark); font-size: 12px; font-weight: 900; letter-spacing: .09em; }
.modal-details h2 { margin: 0; font-size: clamp(42px,4.5vw,68px); line-height: 1; letter-spacing: -.05em; }
.modal-description { margin: 24px 0 36px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.modal-section-title { display: flex; align-items: baseline; gap: 13px; }
.modal-section-title span { color: var(--orange-dark); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.modal-section-title h3 { margin: 0; font-size: 22px; }
.specs-heading { padding-top: 28px; border-top: 1px solid var(--ink); }
.specs-list { margin: 18px 0 0; border-top: 1px solid var(--line); }
.specs-list > div { display: grid; grid-template-columns: 126px 1fr; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.specs-list dt { color: var(--muted); }
.specs-list dd { margin: 0; font-weight: 700; }
.modal-source { margin: 20px 0 28px; color: #8a949b; font-size: 10px; }
.modal-inquiry { width: 100%; border: 0; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

[dir="rtl"] body { font-family: Tahoma, Arial, "Noto Sans Arabic", sans-serif; text-align: right; }
[dir="rtl"] .brand { margin-right: 0; margin-left: auto; }
[dir="rtl"] .site-nav a::after { left: 100%; right: 0; }
[dir="rtl"] .site-nav a:hover::after, [dir="rtl"] .site-nav a:focus-visible::after { left: 0; }
[dir="rtl"] .hero-copy { padding-right: 0; padding-left: 56px; }
[dir="rtl"] .hero h1, [dir="rtl"] .section h2, [dir="rtl"] .modal-details h2 { letter-spacing: 0; }
[dir="rtl"] .machine-caption { left: auto; right: 28px; padding-left: 0; padding-right: 17px; border-left: 0; border-right: 4px solid var(--orange); }
[dir="rtl"] .product li::before { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .text-link span { margin-left: 0; margin-right: 28px; }
[dir="rtl"] .catalog-filters { justify-content: flex-start; }
[dir="rtl"] .trial-copy { border-right: 0; border-left: 1px solid rgba(255,255,255,.15); }
[dir="rtl"] .inquiry-form input, [dir="rtl"] .inquiry-form select, [dir="rtl"] .inquiry-form textarea { text-align: right; }
[dir="rtl"] .floating-contact { right: auto; left: 20px; }
[dir="rtl"] .modal-media { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .modal-section-title { flex-direction: row; }
[dir="rtl"] .modal-video-wrap video { direction: ltr; }
[dir="rtl"] .product h3, [dir="rtl"] .catalog-info h4, [dir="rtl"] #modal-title, [dir="rtl"] .hero-contact a { direction: ltr; unicode-bidi: isolate; }

@media (max-width: 1060px) {
  .site-nav { gap: 18px; }
  .site-nav a:nth-child(4) { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding-right: 30px; }
  .product-body { padding: 45px 40px; }
  .solution-grid, .factory-layout { gap: 55px; }
  .factory-gallery { grid-template-rows: repeat(3, 153px); }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .site-header { height: 70px; }
  .nav-shell { padding: 0 20px; }
  .brand img { width: 40px; height: 40px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 11px; letter-spacing: 0; }
  .brand small { display: block; max-width: 160px; overflow: hidden; font-size: 5px; letter-spacing: 0; text-overflow: ellipsis; }
  .nav-cta { display: none; }
  .language-control { margin-left: 2px; }
  .language-control select { min-width: 76px; width: 76px; height: 38px; padding-left: 7px; padding-right: 18px; }
  .menu-toggle { width: 44px; height: 44px; padding: 10px; display: flex; flex-direction: column; justify-content: center; gap: 5px; position: relative; }
  .menu-toggle span { height: 2px; width: 22px; background: var(--ink); transition: .2s; }
  .menu-toggle em { position: absolute; width: 1px; height: 1px; overflow: hidden; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: fixed; top: 70px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--line); padding: 20px; display: grid; gap: 0; transform: translateY(-140%); opacity: 0; visibility: hidden; transition: .35s var(--ease); }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a, .site-nav a:nth-child(4) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .hero-grid { min-height: auto; max-height: none; grid-template-columns: 1fr; padding: 0; }
  .hero-copy { padding: 72px 22px 48px; }
  .hero h1 { font-size: clamp(45px, 13vw, 66px); }
  html[lang="en"] .hero-grid,
  html[lang="es"] .hero-grid,
  html[lang="ar"] .hero-grid { min-height: auto; }
  html[lang="en"] .hero-copy,
  html[lang="es"] .hero-copy,
  html[lang="ar"] .hero-copy { padding: 64px 22px 44px; }
  html[lang="en"] .hero h1,
  html[lang="es"] .hero h1 { font-size: clamp(40px, 11.5vw, 58px); line-height: 1.05; }
  html[lang="ar"] .hero h1 { font-size: clamp(40px, 11vw, 56px); line-height: 1.16; }
  .hero-lead { font-size: 16px; line-height: 1.8; }
  .hero-contact { margin-top: 36px; }
  .hero-visual { min-height: 580px; }
  .machine-stage { inset: 0 18px 40px; }
  .machine-stage > img { width: 98%; max-height: 72%; }
  .stage-number { font-size: 170px; }
  .capability-rail { grid-template-columns: 1fr; padding: 0 20px; }
  .capability-rail > div, .capability-rail > div:first-child { border-left: 0; border-right: 0; border-bottom: 1px solid var(--line); min-height: 85px; padding: 15px 2px; }
  .section { padding: 82px 20px; }
  .section-head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 45px; }
  .product, .product:nth-child(even) { grid-template-columns: 1fr; }
  .product:nth-child(even) .product-media { order: 0; }
  .product-media { min-height: 340px; }
  .product-media img { height: 300px; }
  .product-body { padding: 38px 4px 48px; }
  .product h3 { font-size: 39px; }
  .catalog { margin-top: 80px; }
  .catalog-head { align-items: flex-start; flex-direction: column; gap: 20px; }
  .catalog-filters { justify-content: flex-start; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-grid, .factory-layout, .trial-shell { grid-template-columns: 1fr; }
  .solution-grid { gap: 60px; }
  .factory-copy { max-width: 600px; }
  .factory-gallery { grid-template-columns: 1fr 38%; grid-template-rows: repeat(3, 136px); gap: 8px; }
  .trial { padding-left: 0; padding-right: 0; }
  .trial-copy, .inquiry-form { padding: 58px 22px; }
  [dir="rtl"] .hero-copy { padding-left: 22px; padding-right: 22px; }
  [dir="rtl"] .trial-copy { border-left: 0; }
  [dir="rtl"] .modal-media { border-left: 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-qr-list { grid-column: 1 / -1; justify-content: start; grid-template-columns: 150px 150px; }
  .product-modal { width: calc(100vw - 22px); height: calc(100vh - 22px); }
  .modal-content { display: block; overflow-y: auto; }
  .modal-media, .modal-details { overflow: visible; }
  .modal-media { padding: 18px; border-right: 0; }
  .modal-main-image { height: 390px; }
  .modal-thumbs { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .modal-thumb { height: 80px; }
  .modal-details { padding: 38px 24px 52px; }
  .footer-addresses { flex-direction: column; gap: 10px; }
}

@media (max-width: 520px) {
  .hero-index { margin-bottom: 20px; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-contact { align-items: flex-start; flex-direction: column; gap: 4px; }
  .hero-visual { min-height: 470px; }
  .machine-stage { bottom: 25px; }
  .machine-stage::before { inset: 5%; }
  .machine-caption { left: 18px; bottom: 18px; }
  .machine-caption strong { font-size: 23px; }
  .section h2 { font-size: 39px; }
  .product-media { min-height: 300px; }
  .product-media img { height: 260px; }
  .product ul { display: grid; gap: 7px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-image { height: 300px; }
  .factory-gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: none; gap: 8px; }
  .factory-main { grid-column: 1 / -1; grid-row: auto; height: 330px; }
  .factory-secondary { display: block; height: 170px; }
  .factory-secondary:last-child { grid-column: 1 / -1; height: 210px; }
  .footer-main { grid-template-columns: 1fr; gap: 46px; }
  .footer-qr-list { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .footer-qr img { width: 100%; height: auto; aspect-ratio: 1; }
  .modal-header { min-height: 62px; padding: 0 14px; }
  .modal-main-image { height: 280px; }
  .modal-thumbs { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .modal-thumb { height: 72px; }
  .modal-details h2 { font-size: 42px; }
  .specs-list > div { grid-template-columns: 105px 1fr; }
  .footer-brand h2 { font-size: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .floating-contact { right: 12px; bottom: 12px; }
  [dir="rtl"] .floating-contact { right: auto; left: 12px; }
  .floating-contact a { width: 44px; height: 44px; }
}

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