/* Sahab Al-Madinah — digital cinematic system
   Layout: full-bleed film scenes (pinned hero, horizontal services, video bands) alternate with
   glass panels on warm ink. Glass = frosted translucent surface + 1px light edge + inner highlight. */
:root {
  --ink: #0A0A0C;
  --ink-2: #111115;
  --ink-3: #18181E;
  --line: rgba(240, 234, 228, .10);
  --line-2: rgba(240, 234, 228, .18);
  --bone: #F0EAE4;
  --mute: #A39C96;
  --red: #E3191F;
  --red-2: #FF3B41;
  --red-deep: #9E0E13;
  --amber: #FF9A4D;
  --wa: #25D366;

  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03));
  --glass-edge: rgba(255, 255, 255, .16);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 -1px 0 rgba(0, 0, 0, .25) inset, 0 20px 50px -20px rgba(0, 0, 0, .7);

  --f-display: "Alexandria", "Readex Pro", Tahoma, sans-serif;
  --f-body: "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  --f-latin: "Inter", "Readex Pro", system-ui, sans-serif;

  --radius: 16px;
  --radius-lg: 28px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
[lang="en"] { --f-body: "Hanken Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0; font-family: var(--f-body); font-size: 17px; font-weight: 300; line-height: 1.75;
  color: var(--bone); background: var(--ink); overflow-x: clip;
}
[lang="en"] body { font-weight: 400; font-size: 16.5px; line-height: 1.7; }
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--bone); font-weight: 600; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--red); color: #fff; }
.ico { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
[dir="ltr"] .ico-flip, [dir="rtl"] .h-more .ico, [dir="rtl"] .btn .ico[aria-hidden]:last-child:not(:first-child) { transform: scaleX(-1); }

.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 56px); }
.narrow { max-width: 900px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--bone); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 300; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass-bg); border: 1px solid var(--glass-edge);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: var(--glass-shadow);
}
.glass-soft {
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* ---------- Type ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--mute); margin-bottom: 18px; text-transform: uppercase; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(227, 25, 31, .2), 0 0 18px var(--red); }
.display { font-family: var(--f-display); font-weight: 800; font-size: clamp(60px, 11.5vw, 190px); line-height: 1; letter-spacing: -.03em; }
.display .line { display: block; overflow: hidden; padding-bottom: .06em; }
.display .line > span { display: inline-block; }
.display .accent > span { background: linear-gradient(100deg, var(--red-2), var(--red) 40%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline: .04em; }
.display-lg { font-family: var(--f-display); font-weight: 700; font-size: clamp(38px, 6vw, 92px); line-height: 1.12; letter-spacing: -.02em; }
.display-md { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3.8vw, 54px); line-height: 1.25; letter-spacing: -.015em; }
[lang="en"] .display, [lang="en"] .display-lg, [lang="en"] .display-md { letter-spacing: -.035em; }
.lead { color: var(--mute); font-size: clamp(16px, 1.35vw, 19px); max-width: 56ch; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .wi { display: inline-block; }
[dir="ltr"] bdi, [dir="ltr"] .num { font-family: var(--f-latin); }

/* ---------- Buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; cursor: pointer;
  border-radius: 999px; padding: 13px 24px; isolation: isolate; overflow: hidden;
  border: 1px solid var(--glass-edge); color: var(--bone);
  transform: translate(var(--mx), var(--my));
  transition: transform .35s var(--ease), box-shadow .35s, background-color .35s, border-color .35s;
}
.btn::before { /* sheen sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn .ico { width: 18px; height: 18px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(180deg, rgba(255, 90, 95, .95), rgba(227, 25, 31, .92) 45%, rgba(158, 14, 19, .95));
  border-color: rgba(255, 140, 140, .45); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 34px -10px rgba(227, 25, 31, .75);
  backdrop-filter: blur(10px);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 16px 44px -8px rgba(227, 25, 31, .9); }
.btn-glass { background: var(--glass-bg); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); box-shadow: var(--glass-shadow); }
.btn-glass:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .14); }
.btn-wa { background: linear-gradient(180deg, #3BE07A, #1DAA52); border-color: rgba(160, 255, 200, .4); color: #062; color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 30px -10px rgba(37, 211, 102, .6); }

/* ---------- Progress, curtain, cursor ---------- */
.progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: var(--origin, left); transform: scaleX(0); background: linear-gradient(90deg, var(--red), var(--amber)); }
[dir="rtl"] .progress span { --origin: right; }
.curtain { position: fixed; inset: 0; z-index: 200; background: var(--ink); display: grid; place-items: center; pointer-events: none; transition: opacity .6s var(--ease); }
.curtain img { width: 90px; height: auto; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; transform: scale(.95); } }
.curtain.out { opacity: 0; }
.curtain.in { opacity: 1; pointer-events: auto; }
html:not(.js) .curtain { display: none; }
.cursor { position: fixed; top: 0; left: 0; z-index: 150; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); pointer-events: none; opacity: 0; transition: width .3s, height .3s, margin .3s, background-color .3s, opacity .3s; mix-blend-mode: difference; }
.cursor.on { opacity: 1; }
.cursor.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, .9); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Socials ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.soc { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--bone); transition: transform .3s var(--ease), color .3s, border-color .3s; }
.soc .ico { width: 19px; height: 19px; }
.soc:hover { transform: translateY(-3px); color: #fff; border-color: rgba(255, 255, 255, .4); }
.soc[aria-label="WhatsApp"]:hover { color: var(--wa); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding-top: 140px; }
.page-hero-media { position: absolute; inset: -6% 0; z-index: -1; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--ink) 2%, rgba(10, 10, 12, .65) 45%, rgba(10, 10, 12, .35) 75%, rgba(10, 10, 12, .7) 100%); }
.page-hero-inner { padding-block: 40px 80px; }
.page-hero .display-lg { max-width: 18ch; }
.page-hero .lead { margin-top: 20px; color: rgba(240, 234, 228, .78); }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--mute); margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--bone); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-deep)); color: #fff; padding-block: 18px; transform: rotate(-1.2deg) scale(1.03); position: relative; z-index: 3; box-shadow: 0 20px 60px -20px rgba(227, 25, 31, .6); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 34s linear infinite; font-family: var(--f-display); font-size: clamp(20px, 2.4vw, 32px); font-weight: 600; white-space: nowrap; }
.marquee-track b { display: grid; opacity: .8; }
.marquee-track .ico { width: 22px; height: 22px; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(90px, 13vh, 160px); }
.section-raised { background: var(--ink-2); border-block: 1px solid var(--line); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vh, 72px); }
.section-head .lead { margin-top: 16px; }
.center-cta { display: flex; justify-content: center; margin-top: 48px; }
.chip-ico { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--red-2); background: radial-gradient(circle at 30% 20%, rgba(255, 80, 85, .25), rgba(227, 25, 31, .08)); border: 1px solid rgba(255, 90, 95, .25); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset; }
.chip-ico .ico { width: 24px; height: 24px; }
.chip-ico.big { width: 76px; height: 76px; border-radius: 22px; }
.chip-ico.big .ico { width: 34px; height: 34px; }
.chip-ico.wa { color: var(--wa); background: rgba(37, 211, 102, .1); border-color: rgba(37, 211, 102, .3); }

/* Statement: words light up with scroll */
.statement { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 4vw, 58px); line-height: 1.35; letter-spacing: -.015em; max-width: 26ch; }
.motion-on .statement .sw { opacity: .4; }
html:not(.js) .statement .sw, .no-motion .statement .sw { opacity: 1; }

/* Why / values cards */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why-card, .value, .sector, .safety, .duo-card { position: relative; border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.why-card h3, .value h3, .sector h3, .safety h3, .duo-card h3 { font-family: var(--f-display); font-size: 21px; font-weight: 600; }
.why-card p, .value p, .sector p, .safety p, .duo-card p { color: var(--mute); font-size: 15.5px; }
.why-card:nth-child(1) { grid-column: span 2; }
.why-card:nth-child(4) { grid-column: span 2; }

/* Horizontal services */
.hscroll { position: relative; padding-block: clamp(80px, 12vh, 140px) 40px; }
.hscroll-pin { overflow: hidden; }
.hscroll-head .section-head { margin-bottom: 40px; }
.hscroll-track { display: flex; gap: 20px; padding-inline: clamp(16px, 4vw, 56px); width: max-content; will-change: transform; }
.h-card { position: relative; flex: none; width: clamp(300px, 34vw, 480px); aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; isolation: isolate; border: 1px solid var(--line); }
.h-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.h-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 10, 12, .95) 8%, rgba(10, 10, 12, .35) 55%, rgba(10, 10, 12, .1)); }
.h-card:hover .h-img { transform: scale(1.06); }
.h-body { position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.h-body .chip-ico { position: absolute; top: 22px; inset-inline-start: 22px; color: #fff; background: var(--glass-bg); border-color: var(--glass-edge); }
.h-num { position: absolute; top: 26px; inset-inline-end: 26px; font-family: var(--f-latin); font-size: 14px; color: rgba(255, 255, 255, .6); }
.svc-copy .h-num { position: static; color: var(--red-2); }
.h-body strong { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; color: #fff; line-height: 1.2; }
.h-text { color: rgba(240, 234, 228, .75); font-size: 15px; }
.h-more { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 500; font-size: 14px; margin-top: 6px; }
.h-more .ico { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.h-card:hover .h-more .ico { transform: translate(3px, -3px); }
[dir="rtl"] .h-card:hover .h-more .ico { transform: scaleX(-1) translate(3px, -3px); }

/* Cinematic scenes */
.cine { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.cine-tall { min-height: 110vh; }
.cine-media { position: absolute; inset: -8% 0; z-index: -1; }
.cine-media video, .cine-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cine-media video, .process-frame video { opacity: 0; transition: opacity 1s; z-index: 1; }
.cine-media video.ready, .process-frame video.ready { opacity: 1; }
.kenburns { animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.cine::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--ink) 4%, rgba(10, 10, 12, .55) 45%, rgba(10, 10, 12, .2) 70%, var(--ink) 100%); }
.cine-copy { padding-block: 18vh 12vh; }
.cine-copy .display-lg { max-width: 14ch; }
.cine-copy .lead { margin-top: 20px; color: rgba(240, 234, 228, .78); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 48px 0 0; max-width: 860px; border-radius: var(--radius-lg); overflow: hidden; }
.facts div { padding: 22px 26px; }
.facts div + div { border-inline-start: 1px solid var(--glass-edge); }
.facts dt { font-size: 13px; color: rgba(240, 234, 228, .7); }
.facts dd { margin: 2px 0 0; font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; }

/* Size teasers (home) */
.size-teasers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.size-teaser { text-decoration: none; border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.size-teaser strong { font-family: var(--f-latin); font-size: clamp(36px, 4vw, 56px); font-weight: 600; letter-spacing: -.03em; direction: ltr; text-align: start; }
[dir="rtl"] .size-teaser strong { text-align: right; }
.st-dims { color: var(--mute); font-family: var(--f-latin); font-size: 14px; }
[dir="rtl"] .st-dims { text-align: right; }
.size-teaser p { color: var(--mute); }
.size-teaser.is-popular { border-color: rgba(255, 90, 95, .45); background: linear-gradient(160deg, rgba(227, 25, 31, .18), rgba(255, 255, 255, .02)); }
.size-tag { align-self: flex-start; font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.is-popular .size-tag { background: var(--red); border-color: transparent; color: #fff; }

/* Sizes configurator */
.sizes-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.size-stage { position: relative; min-height: 520px; border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(80% 70% at 50% 78%, rgba(120, 20, 24, .45) 0%, rgba(23, 23, 28, .6) 60%, rgba(14, 14, 17, .8) 100%); }
#sizeCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#sizeCanvas.grabbing, #heroCanvas.grabbing { cursor: grabbing; }
html:not(.has-3d) .size-stage { display: none; }
html:not(.has-3d) .sizes-layout { grid-template-columns: 1fr; }
.dims { position: absolute; top: 16px; inset-inline: 16px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.dims div { background: rgba(255, 255, 255, .07); backdrop-filter: blur(10px); border: 1px solid var(--glass-edge); border-radius: 12px; padding: 6px 12px; line-height: 1.3; }
.dims dt { font-size: 11px; color: var(--mute); }
.dims dd { margin: 0; font-weight: 600; direction: ltr; unicode-bidi: isolate; font-family: var(--f-latin); font-variant-numeric: tabular-nums; }
.dims .dims-vol { background: linear-gradient(180deg, rgba(255, 90, 95, .9), rgba(227, 25, 31, .9)); border-color: rgba(255, 140, 140, .4); }
.dims .dims-vol dt { color: rgba(255, 255, 255, .85); }
.stage-hint { position: absolute; bottom: 16px; left: 50%; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 14px; border-radius: 999px; pointer-events: none; white-space: nowrap; }
.sizes-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sizes-grid { display: grid; gap: 12px; }
.size-card { font: inherit; text-align: start; color: inherit; cursor: pointer; border-radius: var(--radius); display: grid; grid-template-columns: auto 1fr; grid-template-areas: "num tag" "txt txt"; align-items: center; column-gap: 14px; row-gap: 4px; padding: 20px 22px; transition: border-color .3s, background-color .3s; }
.size-card:hover { border-color: var(--line-2); }
.size-card.is-selected { border-color: rgba(255, 90, 95, .6); background: linear-gradient(160deg, rgba(227, 25, 31, .2), rgba(255, 255, 255, .02)); }
.size-card strong { grid-area: num; font-family: var(--f-latin); font-size: 28px; font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.size-card .size-tag { grid-area: tag; justify-self: start; }
.size-card p { grid-area: txt; font-size: 15px; color: var(--mute); }
.note { font-size: 14px; color: var(--mute); margin-top: 16px; }

/* Process */
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.process-media { position: sticky; top: calc(var(--header-h) + 24px); }
.process-frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-3); border: 1px solid var(--line); }
.process-frame video, .process-frame .cine-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: s; }
.steps li { padding-block: 36px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; column-gap: 24px; }
.step-n { grid-row: span 2; font-family: var(--f-latin); font-size: 14px; color: var(--red-2); padding-top: 8px; }
.steps h3 { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 32px); }
.steps p { color: var(--mute); margin-top: 6px; }

/* Sectors */
.sector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* Services page blocks */
.svc-blocks { display: grid; gap: clamp(80px, 12vh, 140px); }
.svc-block { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; scroll-margin-top: 120px; }
.svc-block.flip .svc-media { order: 2; }
.svc-media { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-badge { position: absolute; top: 18px; inset-inline-start: 18px; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; }
.svc-badge .ico { width: 26px; height: 26px; }
.svc-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: #fff; background: var(--red); margin-top: 3px; }
.ticks.big li { font-size: 17px; color: var(--bone); }
.ab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ab-col { border-radius: var(--radius-lg); padding: 30px; }
.ab-col h3 { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 22px; margin-bottom: 18px; }
.ab-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ab-col li { display: flex; gap: 12px; align-items: center; color: var(--mute); }
.ab-col li .ico { width: 20px; height: 20px; }
.ab-col.ok h3, .ab-col.ok li .ico { color: var(--wa); }
.ab-col.no h3, .ab-col.no li .ico { color: var(--red-2); }
.compliance { display: flex; gap: 28px; align-items: center; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 56px); }
.compliance .lead { margin-top: 12px; }

/* Containers page */
.table-wrap { border-radius: var(--radius-lg); overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; min-width: 620px; }
.cmp th, .cmp td { padding: 18px 22px; text-align: start; border-bottom: 1px solid var(--line); }
.cmp thead th { font-size: 13px; color: var(--mute); font-weight: 500; }
.cmp tbody th { font-family: var(--f-display); font-weight: 600; }
.cmp td { color: var(--mute); }
.cmp td[dir="ltr"] { font-family: var(--f-latin); color: var(--bone); white-space: nowrap; }
[dir="rtl"] .cmp td[dir="ltr"] { text-align: right; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo-card.big { padding: clamp(28px, 4vw, 48px); }
.duo-card.big p { font-size: 18px; }
.tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* Contact */
.quote-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.quote-side { display: grid; gap: 32px; }
.contact-cards { display: grid; gap: 12px; }
.c-card { display: flex; align-items: center; gap: 16px; text-decoration: none; border-radius: var(--radius); padding: 16px 18px; transition: border-color .3s, transform .3s var(--ease); }
.c-card:hover { border-color: rgba(255, 90, 95, .45); transform: translateY(-2px); }
.c-card small { display: block; color: var(--mute); font-size: 12px; line-height: 1.3; }
.c-card strong { display: block; font-size: 18px; font-weight: 500; font-family: var(--f-latin); overflow-wrap: anywhere; }
[dir="rtl"] .c-card strong { text-align: right; }
.quote-form { border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 40px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 13px; color: var(--mute); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--bone); width: 100%; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(255, 90, 95, .7); box-shadow: 0 0 0 4px rgba(227, 25, 31, .15); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.form-error { color: #FF7A7E; font-size: 14px; }
.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 7; min-height: 360px; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.9) invert(.92) contrast(.9) hue-rotate(180deg); }
.map-card { position: absolute; bottom: 18px; inset-inline-start: 18px; display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 14px 18px; border-radius: 18px; }
.map-card > .ico:first-child { width: 28px; height: 28px; color: #4285F4; }
.map-card strong { display: block; font-size: 15px; }
.map-card small { color: var(--mute); font-size: 12px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius); padding: 0 22px; transition: border-color .3s; }
.faq details[open] { border-color: rgba(255, 90, 95, .4); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-family: var(--f-display); font-size: clamp(17px, 1.8vw, 21px); font-weight: 500; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq-ico { color: var(--red-2); transition: transform .4s var(--ease); }
.faq details[open] .faq-ico { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--mute); max-width: 64ch; }

/* CTA band + footer */
.cta-band { position: relative; padding-block: clamp(70px, 10vh, 120px); overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.cta-band::before { content: ""; position: absolute; inset: -40% -10%; z-index: -1; background: radial-gradient(50% 50% at 20% 50%, rgba(227, 25, 31, .35), transparent 70%), radial-gradient(40% 50% at 85% 60%, rgba(255, 154, 77, .18), transparent 70%); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(4%, -6%) scale(1.05); } }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-inner .lead { margin-top: 12px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding-top: 72px; background: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h3 { font-size: 13px; color: var(--mute); font-weight: 500; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { text-decoration: none; color: var(--bone); opacity: .85; transition: opacity .2s, color .2s; }
.site-footer ul a:hover { opacity: 1; color: var(--red-2); }
.f-about p { color: var(--mute); margin-top: 18px; max-width: 42ch; font-size: 15px; }
.f-about .f-follow { margin-top: 24px; margin-bottom: 12px; color: var(--bone); font-size: 14px; }
.f-contact li { display: flex; align-items: center; gap: 10px; color: var(--mute); }
.f-contact .ico { color: var(--red-2); width: 18px; height: 18px; }
.footer-mark { font-family: var(--f-display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(64px, 16vw, 280px); line-height: 1; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(240, 234, 228, .14); padding-block: 48px 8px; white-space: nowrap; user-select: none; }
.footer-bottom .credit bdi { color: var(--bone); font-weight: 500; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 24px 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }

/* Floating / sticky actions */
.wa-float { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #3BE07A, #1DAA52); border: 1px solid rgba(160, 255, 200, .45); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 14px 30px -8px rgba(37, 211, 102, .55); transition: transform .3s var(--ease); }
.wa-float::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(37, 211, 102, .5); animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ico { width: 28px; height: 28px; }
.action-bar { display: none; }

/* Tilt + reveal helpers (motion.js) */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .25s ease, border-color .3s; }
.tilt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .12), transparent 60%); }
.tilt:hover::before { opacity: 1; }
.js .reveal { opacity: 0; translate: 0 34px; transition: opacity 1s var(--ease), translate 1s var(--ease), transform .25s ease, border-color .3s; }
.js .reveal.in { opacity: 1; translate: none; }
.clip-reveal { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.js .clip-reveal.reveal { opacity: 1; translate: none; clip-path: inset(18% 12% 18% 12% round var(--radius-lg)); transition: clip-path 1.4s var(--ease); }
.js .clip-reveal.reveal.in { clip-path: inset(0 0 0 0 round var(--radius-lg)); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-card:nth-child(n) { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .sizes-layout, .process-grid, .quote-wrap, .svc-block, .duo, .ab-grid { grid-template-columns: 1fr; }
  .svc-block.flip .svc-media { order: 0; }
  .size-stage { min-height: 360px; }
  .process-media { position: relative; top: 0; }
  .process-frame { aspect-ratio: 16 / 11; }
  .sector-grid, .tri, .size-teasers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hscroll-pin { overflow: visible; }
  .hscroll-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .hscroll-track::-webkit-scrollbar { display: none; }
  .h-card { scroll-snap-align: center; width: min(82vw, 420px); }
}
@media (max-width: 680px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .hero-ctas .btn, .cta-actions .btn { flex: 1 1 auto; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { border-inline-start: 0; border-top: 1px solid var(--glass-edge); }
  .why-grid, .sector-grid, .tri, .size-teasers { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .compliance { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .wa-float, .scroll-cue { display: none; }
  .map-wrap { aspect-ratio: 4 / 5; }
  .page-hero { min-height: 70vh; }
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; position: fixed; inset-inline: 8px; bottom: 8px; z-index: 45;
    padding: 6px; gap: 6px; border-radius: 22px;
    background: rgba(14, 14, 18, .7); border: 1px solid var(--glass-edge); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--glass-shadow);
    margin-bottom: env(safe-area-inset-bottom, 0px);
  }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; font-weight: 500; font-size: 14px; border-radius: 16px; padding: 11px 6px; }
  .action-bar .ico { width: 18px; height: 18px; }
  .ab-call { background: rgba(255, 255, 255, .08); }
  .ab-wa { background: linear-gradient(180deg, #3BE07A, #1DAA52); color: #fff; }
  .ab-quote { background: linear-gradient(180deg, rgba(255, 90, 95, .95), rgba(227, 25, 31, .92) 45%, rgba(158, 14, 19, .95)); color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
  .js .clip-reveal.reveal { clip-path: none; }
  .statement .sw { opacity: 1; }
  .curtain { display: none; }
}
