/* ============================================================
   Ramses Charcoal â€” Main Stylesheet
   ============================================================ */

:root {
    --ash: #ecebe8;
    --paper: #f7f6f3;
    --coal: #1b1a19;
    --coal2: #2a2826;
    --ember: #e0261b;
    --glow: #ff4d3d;
    --mute: #6f6b66;
    --line: #d6d3cd;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@font-face {
    font-family: 'KufiArabic';
    src: url('../fonts/noto-kufi-arabic-v21-arabic-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after,
html, body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6, p, span, div, a, li,
label, legend, summary, small, strong, b, i, em {
    font-family: 'KufiArabic', Tahoma, sans-serif !important;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 68px;
    font-family: 'Kufi Arabic meee', Tahoma, sans-serif;
}

body {
    background: var(--paper);
    color: var(--coal);
    font: 400 17px/1.9 'Kufi Arabic meee', Tahoma, sans-serif;
    overflow-x: hidden;
}

h1, h2, h3 { font-weight: 800; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }

.wrap { max-width: 1160px; margin: auto; padding: 0 22px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--ember), #f0382b);
    color: #fff;
    border: 0;
    border-radius: 4px;
    font: 500 16px 'Kufi Arabic meee', sans-serif;
    cursor: pointer;
    box-shadow: 0 0 0 0 #ff4d3d88;
    animation: pulse 2.6s infinite;
}
.btn:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; border: 1.5px solid #fff8; animation: none; }

@keyframes pulse { 50% { box-shadow: 0 0 22px 2px #ff4d3d77; } }

/* ===== HEADER ===== */
header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 30;
    padding-top: env(safe-area-inset-top, 0px);
    background: linear-gradient(#1b1a19dd, #1b1a1900);
    color: #fff;
    transition: background .3s;
}
header.sc { background: #1b1a19f2; box-shadow: 0 2px 20px #0008; }
header .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { font: 800 22px 'Kufi Arabic meee'; white-space: nowrap; }
.logo b { color: var(--ember); }
header nav { display: flex; gap: 24px; font-size: 15px; margin-inline-start: 14px; }
header nav a { opacity: .85; padding: 4px 0; border-bottom: 2px solid transparent; }
header nav a:hover { opacity: 1; border-color: var(--glow); }
.burger { display: none; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; margin-inline-start: auto; }

@media (max-width: 900px) {
    .burger { display: block; }
    header nav {
        display: none;
        position: absolute;
        top: 100%;
        inset-inline: 0;
        background: #1b1a19f7;
        flex-direction: column;
        gap: 0;
        padding: 8px 22px 18px;
    }
    header nav.open { display: flex; }
    header nav a { padding: 12px 0; border-bottom: 1px solid #fff1; }
    header .wrap { gap: 12px; }
}

/* ===== HERO SLIDER ===== */
.slider {
    position: relative;
    height: 100svh;
    min-height: 580px;
    background: var(--coal);
    color: #fff;
    overflow: hidden;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s, visibility 1s;
}
.slide.on { opacity: 1; visibility: visible; }
.bg { position: absolute; inset: 0; transform: scale(1.12); transition: transform 8s linear; }
.slide.on .bg { transform: scale(1); }
.s1 .bg { background: radial-gradient(circle at 70% 60%, #7a2210, #2a1512 40%, #131211 78%); }
.s2 .bg { background: radial-gradient(circle at 70% 60%, #5a5855, #262524 40%, #131211 80%); }
.s3 .bg { background: radial-gradient(circle at 70% 60%, #7a1d1d, #2a1414 40%, #131211 80%); }
.s4 .bg { background: radial-gradient(circle at 70% 60%, #15506b, #14232b 42%, #121312 82%); }

.slider .slide .wrap {
    direction: ltr;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    padding: 84px 90px 96px;
    align-items: center;
    position: relative;
    height: 100%;
    display: grid;
}
.slider .slide .txt {
    direction: rtl;
    text-align: start;
    max-width: 560px;
    justify-self: end;
}
html[dir=ltr] .slider .slide .txt { direction: ltr; }

.slide h1,
.slide h2 {
    font-size: clamp(32px, 4.8vw, 58px);
    margin-bottom: 16px;
    text-shadow: 0 4px 30px #000a;
    font-weight: 800;
    line-height: 1.4;
}
.slide p { max-width: 30em; color: #e8e3dc; font-size: 19px; margin-bottom: 28px; }
.slide .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.slide.on .txt > * { animation: up .9s both; }
.slide.on .txt > :nth-child(2) { animation-delay: .15s; }
.slide.on .txt > :nth-child(3) { animation-delay: .3s; }

@keyframes up { from { opacity: 0; transform: translateY(26px); } }

.ctrl { position: absolute; bottom: 30px; inset-inline: 0; z-index: 5; }
.ctrl .wrap { display: flex; align-items: center; gap: 18px; }
.cnt { font-weight: 800; font-size: 15px; color: #ffc9c4; min-width: 3.4em; direction: ltr; }
.dots { display: flex; gap: 8px; flex: 1; }
.dots button {
    flex: 1;
    max-width: 90px;
    height: 4px;
    border: 0;
    background: #fff3;
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    position: relative;
    overflow: hidden;
}
.dots button.on::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--glow);
    transform-origin: right;
    animation: fill 6s linear;
}
html[dir=ltr] .dots button.on::after { transform-origin: left; }

@keyframes fill { from { transform: scaleX(0); } }

.ar {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    border-radius: 50%;
    border: 1px solid #fff4;
    background: #1b1a1966;
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all .25s;
    padding: 0;
}
.ar svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ar:hover { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 22px #e0261b88; }
.pv { inset-inline-start: 22px; }
.nx { inset-inline-end: 22px; }
html[dir=rtl] .ar svg { transform: scaleX(-1); }

@media (min-width: 801px) { .slide .wrap { padding-inline: 90px; } }

.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.heat {
    position: absolute;
    inset: auto 0 0 0;
    height: 30%;
    background: linear-gradient(transparent, #e0261b55);
    animation: breathe 2.8s infinite alternate;
    pointer-events: none;
}

@keyframes breathe { from { opacity: .5; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(50px) scale(.94); opacity: 0; } }

.himg {
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.himg img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 40px #000a);
}
.slide.on .himg img { animation: rise 1.3s .1s both cubic-bezier(.2, .7, .2, 1); }

@media (max-width: 800px) {
    .slider .slide .wrap {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 38%) auto;
        align-content: center;
        gap: 14px;
        padding: 78px 22px 84px;
    }
    .slider .slide .txt { justify-self: stretch; max-width: none; }
    .slide .wrap { padding-top: 70px; }
    .slide p { font-size: 16px; margin-bottom: 20px; }
    .ar { width: 38px; height: 38px; margin-top: 0; top: 24%; }
    .ar svg { width: 18px; height: 18px; }
    .pv { inset-inline-start: 10px; }
    .nx { inset-inline-end: 10px; }
    
}

@media (max-width: 1024px) {
    .ar { top: auto; bottom: 22px; margin: 0; width: 44px; height: 44px; }
    .ar svg { width: 20px; height: 20px; }
    .pv { inset-inline-start: 20px; }
    .nx { inset-inline-end: 20px; }
    .ctrl { bottom: 28px; }
    .ctrl .wrap { padding-inline: 84px; }
    .cnt { display: none; }
}

@media (min-width: 801px) and (max-width: 1024px) { .slide .wrap { padding-inline: 40px; } }

/* ===== SECTIONS ===== */
section { padding: 90px 0; position: relative; }
.head { max-width: 36em; margin-bottom: 46px; }
.head h1 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 10px; }
.head p { color: var(--mute); }

/* ===== FEATURES ===== */
.feat { background: var(--ash); }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--coal); }
.f { padding: 30px 0 30px 24px; border-bottom: 1px solid var(--line); padding-inline: 0 24px; }
.f:not(:nth-child(3n+1)) { padding-inline: 28px 24px; border-inline-start: 1px solid var(--line); }
.f svg,
.f img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: filter .3s;
}
.f svg { stroke: var(--ember); fill: none; stroke-width: 1.6; }
.f:hover svg,
.f:hover img { filter: drop-shadow(0 0 8px #ff4d3d); }
.f h1 { font-size: 20px; }
.f p { color: var(--mute); font-size: 15px; }

@media (max-width: 860px) {
    .fgrid { grid-template-columns: 1fr 1fr; }
    .f:nth-child(n) { padding: 24px 0; border: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 540px) { .fgrid { grid-template-columns: 1fr; } }

/* ===== COMPARISON ===== */
.cmp { margin-top: 80px; }
.cmp .t { text-align: center; font-size: clamp(22px, 3vw, 34px); margin-bottom: 28px; }
.cmpg { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cc { border-radius: 14px; padding: 26px 22px 28px; text-align: center; }
.cc.bad { background: linear-gradient(#55504d, #292726); color: #eee; }
.cc.good {
    background: linear-gradient(#fff6ea, #ffdcb8);
    border: 2px solid var(--ember);
    box-shadow: 0 18px 40px #e0261b33;
}
.cc svg { width: min(290px, 100%); height: auto; }
.cc h1 { font-size: 24px; margin: 4px 0 10px; }
.cc ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 6px;
    max-width: 250px;
    margin: 0 auto;
    text-align: start;
}
.cc li::before { margin-inline-end: 10px; font-weight: 800; }
.cc .x li::before { content: "âœ•"; color: #ff7a5c; }
.cc .v li::before { content: "âœ“"; color: #1a9a4a; }

.sm {
    animation: smk 3.6s infinite ease-out;
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
}
@keyframes smk {
    from { opacity: 0; transform: translateY(24px) scale(.6); }
    20% { opacity: .9; }
    to { opacity: 0; transform: translateY(-66px) scale(1.6); }
}
.bob { animation: bob 3s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-7px); } }
.tw { animation: tw 1.6s infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes tw {
    from { opacity: .25; transform: scale(.6); }
    to { opacity: 1; transform: scale(1.15); }
}

@media (max-width: 700px) { .cmpg { grid-template-columns: 1fr; } }

/* ===== PROCESS ===== */
.proc {
    background: var(--coal);
    color: #fff;
    padding: 0;
    overflow: hidden;
    position: relative;
    height: 100vh;
    min-height: 100vh;
}
.proc .wrap {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-width: none;
    width: 100%;
}
.pbg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.pbg video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .8s;
    pointer-events: none;
    background: #000;
}
.pbg video.on { opacity: .65; }
.pbg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(#1b1a1999, #1b1a1966, #1b1a1999);
    z-index: 1;
    pointer-events: none;
}

.stage {
    position: relative;
    width: 40%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 2;
    padding: 40px 22px;
    flex-shrink: 0;
}
.pimgs { position: relative; width: min(230px, 58%); aspect-ratio: 1; }
.pim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(.9);
    transition: opacity .6s, transform .6s;
    filter: drop-shadow(0 18px 30px #000a);
}
.pim.on { opacity: 1; transform: none; }
.lbl { font: 800 26px 'Kufi Arabic meee'; z-index: 2; }
.bar {
    width: min(300px, 80%);
    height: 6px;
    background: #fff2;
    border-radius: 3px;
    overflow: hidden;
    z-index: 2;
}
.bar i {
    display: block;
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--ember), var(--glow));
    transition: width .7s;
}
.pdots {
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 2;
}
.pdots button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff6;
    background: none;
    cursor: pointer;
    padding: 0;
    transition: all .3s;
}
.pdots button.on {
    background: var(--glow);
    border-color: var(--glow);
    box-shadow: 0 0 14px var(--glow);
    transform: scale(1.25);
}

.steps {
    position: relative;
    width: 60%;
    height: 100vh;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 2;
    scroll-behavior: smooth;
}
.steps::-webkit-scrollbar { display: none; }
.step {
    flex: 0 0 100%;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 80px;
    scroll-snap-align: start;
    opacity: .25;
    transition: opacity .5s;
    box-sizing: border-box;
}
.step.on { opacity: 1; }
.step span { color: var(--glow); font-weight: 800; margin-bottom: 4px; }
.step h1 { font-size: 36px; margin-bottom: 8px; }
.step p { color: #d4cfc8; max-width: 24em; font-size: 18px; line-height: 1.9; }

@media (max-width: 800px) {
    .proc { height: auto; min-height: auto; padding: 70px 0 50px; position: relative; overflow: visible; }
    .proc .wrap { flex-direction: column; height: auto; min-height: auto; padding: 0; }
    .pbg { position: absolute; inset: 0; z-index: 0; }
    .pbg video { opacity: 0 !important; transition: opacity .6s; object-fit: cover; }
    .pbg video.on { opacity: .35 !important; }
    .stage {
        position: relative;
        z-index: 2;
        width: 100%;
        height: auto;
        padding: 0 22px 20px;
        gap: 16px;
        background: transparent;
    }
    .pimgs { width: min(160px, 42vw); }
    .pdots { position: static; transform: none; flex-direction: row; gap: 12px; justify-content: center; }
    .steps {
        position: relative;
        z-index: 2;
        width: 100%;
        height: auto;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 14px;
        padding: 0 22px 14px;
        scrollbar-width: none;
        scroll-behavior: smooth;
        background: transparent;
    }
    .steps::-webkit-scrollbar { display: none; }
    .step {
        flex: 0 0 80%;
        width: 80%;
        min-height: auto;
        height: auto;
        padding: 22px;
        opacity: .45;
        background: #1b1a19cc;
        border: 1px solid #fff1;
        border-radius: 8px;
        scroll-snap-align: center;
        box-sizing: border-box;
        backdrop-filter: blur(3px);
    }
    .step.on { border-color: #ff4d3d88; box-shadow: 0 0 24px #e0261b33; opacity: 1; }
    .step h1 { font-size: 24px; }
    .step p { font-size: 15px; }
}

/* ===== IMG SLIDER ===== */
.imgslider {
    position: relative;
    width: min(420px, 92%);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.imgslider .slides {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.imgslider .slides:active { cursor: grabbing; }
.imgslider .slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 30px 40px #0007);
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s, visibility .5s, transform .25s ease;
    pointer-events: none;
    -webkit-user-drag: none;
}
.imgslider .slides img.on { opacity: 1; visibility: visible; }
.imgslider .sdots { display: flex; gap: 10px; justify-content: center; }
.imgslider .sdots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--mute);
    background: none;
    cursor: pointer;
    padding: 0;
    transition: all .3s;
}
.imgslider .sdots button.on {
    background: var(--ember);
    border-color: var(--ember);
    box-shadow: 0 0 10px #e0261b88;
    transform: scale(1.2);
}

@media (max-width: 860px) { .imgslider { width: min(300px, 80%); } }

/* ===== PRODUCT SECTIONS ===== */
.ps2 { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.ps.rev .pv { order: 2; }
.ps.alt { background: var(--ash); }
.pv { display: flex; justify-content: center; }
.pv img { width: min(300px, 92%); height: auto; filter: drop-shadow(0 30px 40px #0007); }
.ps h1 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 10px; }
.ps .lead { color: var(--mute); margin-bottom: 24px; max-width: 34em; }
.pfs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.pf {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--ember);
    padding: 16px 18px;
}
.pf svg { width: 30px; height: 30px; stroke: var(--ember); fill: none; stroke-width: 2; margin-bottom: 4px; }
.pf h1 { font-size: 17px; }
.pf p { font-size: 14px; color: var(--mute); line-height: 1.7; }
.ps.gel { background: var(--coal); color: #fff; overflow: hidden; }
.ps.gel .lead { color: #d4cfc8; }
.gel .sub { color: var(--glow); font-weight: 800; font-size: 22px; margin-bottom: 8px; }

@media (max-width: 860px) {
    .ps2 { grid-template-columns: 1fr; gap: 30px; }
    .ps.rev .pv { order: 0; }
    .pv img { width: min(300px, 80%); }
}
@media (max-width: 520px) {
    .pfs { grid-template-columns: 1fr; }
    .phead { align-items: flex-start; flex-direction: column; gap: 0; }
    .pnav { margin-bottom: 22px; }
}

/* ===== PRODUCTS CAROUSEL ===== */
#products { background: var(--ash); }
.phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.pnav { display: flex; gap: 10px; margin-bottom: 46px; }
.pgrid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 2px 18px;
}
.pgrid::-webkit-scrollbar { display: none; }
.pgrid .pc { flex: 0 0 min(280px, 78%); scroll-snap-align: start; display: flex; flex-direction: column; }
.pc {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--ember);
    transition: transform .3s, box-shadow .3s;
}
.pc:hover { transform: translateY(-6px); box-shadow: 0 14px 34px #e0261b22; }
.pc .v {
    background: radial-gradient(circle at 50% 100%, #6b1d0f, #1d1c1b 70%);
    height: 314px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pc .v img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}
.pc .b { padding: 16px 18px 18px; }
.pc h1 { font-size: 18px; }
.pc p { color: var(--mute); font-size: 14px; line-height: 1.7; }
.pc .mr { display: inline-block; margin-top: 8px; color: var(--ember); font-weight: 500; font-size: 14px; }
.pmore { text-align: center; margin-top: 34px; }
.more5 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(135deg, #9a160e, #e0261b);
    color: #fff;
    border-top-color: #fff;
    text-align: center;
    font-weight: 800;
    font-size: 20px;
    min-height: 320px;
    height: auto;
}
.more5 .mc {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    color: var(--ember);
    display: grid;
    place-items: center;
    font-size: 28px;
}

.pwrap { position: relative; }
.pa {
    position: absolute;
    top: calc(50% - 32px);
    z-index: 5;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, var(--ember), #f0382b);
    box-shadow: 0 8px 22px #e0261b66, 0 0 0 5px #fffc;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    transition: transform .2s, box-shadow .2s;
}
.pa svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pa:hover { transform: scale(1.1); box-shadow: 0 10px 28px #e0261b99, 0 0 0 6px #fff; }
.pa:active { transform: scale(.94); }
.pv2 { inset-inline-start: -20px; }
.nx2 { inset-inline-end: -20px; }
.pa.off { opacity: 0; pointer-events: none; transform: scale(.7); }

@media (max-width: 600px) {
    .pa { width: 40px; height: 40px; top: calc(50% - 28px); }
    .pa svg { width: 18px; height: 18px; }
    .pv2 { inset-inline-start: -8px; }
    .nx2 { inset-inline-end: -8px; }
}

/* ===== CERTIFICATE ===== */
.cv { background: var(--ash); }
.cs2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    direction: ltr;
}
.cs2 > div { direction: rtl; }
html[dir=ltr] .cs2 > div { direction: ltr; }
.cs2 .cimgw { order: 2; }
.cimgw { width: 100%; max-width: 500px; margin-inline: auto; }
.cimgw .cert {
    position: relative;
    width: 100%;
    aspect-ratio: 500 / 353;
    overflow: hidden;
    border: 2px solid var(--coal);
    box-shadow: 12px 12px 0 var(--ember);
    background: #fff;
    display: block;
    padding: 0;
}
.cimgw #cimg {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
.cstext h1 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 12px; }
.cstext .lead { color: var(--mute); margin-bottom: 18px; max-width: 30em; }
.cpts { list-style: none; padding: 0; display: grid; gap: 10px; }
.cpts li::before { content: "âœ“"; color: var(--ember); font-weight: 800; margin-inline-end: 10px; }
@media (max-width: 860px) {
    .cimgw { max-width: 100%; }
    .cimgw .cert { box-shadow: 8px 8px 0 var(--ember); }
}
@media (max-width: 800px) {
    .cs2 { grid-template-columns: 1fr; gap: 34px; }
    .cs2 .cimgw { order: 0; }
}

/* ===== VIDEOS ===== */
.ag { background: linear-gradient(135deg, #7a130c, #b81b12 45%, #e0261b); color: #fff; overflow: hidden; }
.ag .wrap { max-width: 980px; }

.vmain {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid #fff4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 80px #0003, 0 20px 50px #0004;
    margin-bottom: 22px;
}
.vmain video {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}

.vtitle {
    position: absolute;
    top: 14px;
    right: 14px;
    left: auto;
    z-index: 3;
    color: #fff;
    font: 700 15px/1.4 'Kufi Arabic meee', sans-serif;
    background: rgba(27, 26, 25, 0.65);
    padding: 6px 14px;
    border-radius: 6px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 60%;
    pointer-events: none;
}

.vactions {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: flex;
    gap: 10px;
}
.vactions a,
.vactions button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(27, 26, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    transition: all .2s;
    backdrop-filter: blur(6px);
    color: #fff;
}
.vactions a:hover,
.vactions button:hover {
    background: var(--ember);
    border-color: var(--ember);
    transform: scale(1.08);
    box-shadow: 0 4px 16px #e0261b88;
}
.vactions svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vph {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    background: radial-gradient(circle at 50% 100%, #7a2210, #1b1a19 70%);
    z-index: 2;
    cursor: pointer;
}

.play {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ember), #ff5a4d);
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 0 #ff4d3d88, 0 8px 24px #0008;
    animation: pulse 2.4s infinite;
    transition: transform .25s;
}
.play:hover { transform: scale(1.08); }
.play::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid #fff;
    margin-left: 6px;
    filter: drop-shadow(0 1px 2px #0006);
}
.play::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid #ff4d3d55;
    animation: ringPulse 2.4s infinite;
}
@keyframes ringPulse {
    0% { transform: scale(.85); opacity: .8; }
    100% { transform: scale(1.25); opacity: 0; }
}

.vwrap { position: relative; }

.vtiles {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 10px 4px 14px;
}
.vtiles::-webkit-scrollbar { display: none; }

.vtile {
    flex: 0 0 calc((100% - 42px)/4);
    aspect-ratio: 16/10;
    scroll-snap-align: start;
    border: 0;
    border-radius: 12px;
    background: #222;
    color: #fff;
    cursor: pointer;
    position: relative;
    padding: 0;
    display: block;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    isolation: isolate;
}
.vtile:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0, 0, 0, .5); }
.vtile.on {
    box-shadow: 0 0 0 3px var(--glow), 0 14px 32px rgba(224, 38, 27, .35);
    transform: translateY(-4px);
}
.vtile video,
.vtile img.vthumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
}
.vtile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .85) 100%);
    z-index: 1;
    pointer-events: none;
}
.vtile .pl {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .95) !important;
    display: grid !important;
    place-items: center !important;
    place-content: center !important;
    z-index: 2 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35) !important;
    transition: transform .25s ease, background .25s ease !important;
    pointer-events: none !important;
    line-height: 0 !important;
    font-size: 0 !important;
    overflow: hidden !important;
}
.vtile .pl::before {
    content: "" !important;
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    border-style: solid !important;
    border-width: 8px 0 8px 13px !important;
    border-color: transparent transparent transparent var(--ember) !important;
    margin-left: 3px !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    flex: none !important;
    box-sizing: border-box !important;
}
.vtile:hover .pl {
    transform: translate(-50%, -50%) scale(1.08) !important;
    background: #fff !important;
}
.vtile.on .pl { background: var(--glow) !important; }
.vtile.on .pl::before { border-color: transparent transparent transparent #fff !important; }
.vtile em {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    text-align: center;
    color: #fff;
    z-index: 3;
    text-shadow: 0 1px 6px #000c;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .vtile { flex-basis: calc((100% - 14px)/2.4); }
    .vtile .pl {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }
    .vtile .pl::before {
        border-width: 6px 0 6px 10px !important;
        margin-left: 2px !important;
    }
}

.vsec {
    font-size: clamp(28px, 4vw, 42px);
    text-align: center;
    margin-bottom: 44px;
    padding-top: 24px;
    margin-top: -8px;
}

/* ===== CONTACT ===== */
.dark { background: var(--coal); color: #fff; overflow: hidden; }
.dark .wrap { position: relative; display: block; }
.dark h1 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 12px; }
.dark p { color: #d4cfc8; }
.tel {
    display: block;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    direction: ltr;
    text-align: start;
    margin: 10px 0;
    color: var(--glow);
}
.tel.s { font-size: clamp(20px, 2.6vw, 26px); color: #fff; margin: 0 0 20px; }
.ctitle { text-align: center; font-size: clamp(30px, 4vw, 48px); margin-bottom: 40px; padding-top: 20px; margin-top: -10px; }
.cts { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; direction: ltr; }
.cts > div {
    direction: rtl;
    background: var(--coal2);
    border: 1px solid #fff1;
    border-top: 4px solid var(--ember);
    border-radius: 6px;
    padding: 30px 28px;
}
html[dir=ltr] .cts > div { direction: ltr; }
.cts .in { order: 2; }
.cts h1 { font-size: 26px; margin-bottom: 6px; }
.cts p { margin-bottom: 10px; }

@media (max-width: 760px) {
    .cts { grid-template-columns: 1fr; }
    .cts .in { order: 0; }
}

/* ===== SEO ===== */
.seo { background: var(--ash); padding: 64px 0; }
.seo .wrap { max-width: 1160px; margin: auto; padding: 0 22px; }
.seo h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.seo h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 16px; color: var(--coal); font-weight: 800; }
.seo p { text-align: justify; color: #4a4642; font-size: 14px; line-height: 2; }
.seo .kw { margin-top: 16px; }
.seo a { font-size: 12px; color: var(--mute); transition: color .2s; }
.seo a:hover { color: var(--ember); }
.seo a.big { font-size: 14px; }
.seo .kw-wrap { color: var(--mute); font-size: 14px; line-height: 2.2; }
.seo .kw-wrap a { color: var(--mute); font-size: 14px; transition: color .2s; text-decoration: none; }
.seo .kw-wrap a:hover { color: var(--ember); text-decoration: underline; }
.seo .kw-wrap a.big { font-size: 15px; font-weight: 700; }
.seo .kw-wrap p,
.seo .kw-wrap div {
    margin: 0 0 8px;
    text-align: justify;
    color: var(--mute);
    font-size: 14px;
    line-height: 2.4;
}

/* ===== FOOTER ===== */
footer {
    background: #100f0e;
    color: #a39e97;
    padding: 0;
    font-size: 15px;
    border-top: 3px solid var(--ember);
    box-shadow: 0 -10px 40px #e0261b33;
}
footer .ft {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 26px;
    padding: 64px 22px 0;
}
footer .ft .logo img { height: 54px; }
footer .fnav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 30px;
}
footer .fnav a { font-weight: 500; color: #a39e97; transition: color .2s; }
footer .fnav a:hover,
footer .fcall:hover { color: var(--glow); }
footer .ft .soc { justify-content: center; }
footer .fcall { font-weight: 800; font-size: 18px; color: #fff; }
footer .fbot {
    align-self: stretch;
    margin-top: 54px;
    padding: 22px 0 28px;
    border-top: 1px solid #ffffff2e;
    display: grid;
    gap: 4px;
    font-size: 14px;
    color: #bdb8b0;
    text-align: center;
}
footer .fbot a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.soc { display: flex; gap: 8px; }
.soc a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #fff3;
    display: grid;
    place-items: center;
    transition: all .2s;
    color: #fff;
}
.soc svg {
    width: 17px;
    height: 17px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.soc a:hover { background: var(--ember); border-color: var(--ember); }
.ns { display: none; }
header nav .soc a { padding: 0; opacity: 1; border: 1px solid #fff3; }

@media (max-width: 900px) {
    .bs { display: none; }
    header nav .ns { display: flex; padding: 14px 0 4px; }
}

/* ===== TO TOP ===== */
#toTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ember), #f0382b);
    color: #fff;
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 6px 24px #e0261b66, 0 0 0 4px #fffb;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.35s cubic-bezier(.2, .9, .3, 1.2);
    padding: 0;
}
#toTop.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
#toTop:hover { transform: scale(1.1); box-shadow: 0 10px 32px #e0261b99, 0 0 0 5px #fffc; }
#toTop svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 600px) {
    #toTop { bottom: 18px; left: 18px; width: 46px; height: 46px; }
    #toTop svg { width: 22px; height: 22px; }
}

/* ===== SCROLL SPARKS ===== */
#sfx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 15; }

/* ===== LOGO ===== */
.logo img { height: 42px; width: auto; display: block; }
.bs { margin-inline-start: auto; }

/* ===== LANGUAGE SWITCHER ===== */
.lang { position: relative; margin-inline-start: 12px; }

#lgb {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff14;
    border: 1px solid #fff3;
    color: #fff;
    border-radius: 30px;
    padding: 5px 12px 5px 8px;
    font: 500 13px 'Kufi Arabic meee', sans-serif;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background .2s;
}
#lgb:hover { background: #ffffff26; }
#lgb b { font-size: 11px; opacity: .7; }
#lgb span { font-weight: 600; letter-spacing: .5px; }

.fl {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex: none;
    box-shadow: 0 0 0 1.5px #fff5;
}
.fl svg { width: 100%; height: 100%; display: block; }

#lgm {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    list-style: none;
    padding: 6px;
    margin: 0;
    background: #1b1a19;
    border: 1px solid #fff2;
    border-radius: 10px;
    min-width: 160px;
    box-shadow: 0 12px 30px #000a;
    color: #fff;
    z-index: 100;
}
#lgm.open { display: block; }
#lgm li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: background .15s;
}
#lgm li:hover { background: #ffffff14; }
#lgm li.on { background: #ffffff26; }
#lgm li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    width: 100%;
}

@media (max-width: 900px) {
    header .lang { margin-inline-start: auto; }
}

/* ===== RTL ARROW FIX ===== */
html[dir=rtl] .ar svg,
html[dir=rtl] .pa svg,
html[dir=rtl] .pb svg,
html[dir=rtl] .crumb svg,
html[dir=rtl] .card .mr svg { transform: scaleX(-1); }

/* ===== PRODUCTS PAGE ===== */
.ph {
    position: relative;
    overflow: hidden;
    background: var(--coal);
    color: #fff;
    padding: calc(66px + env(safe-area-inset-top, 0px) + 54px) 0 72px;
    isolation: isolate;
}
.phbg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
    pointer-events: none;
    user-select: none;
}
.ph::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 90% at 50% 115%, #6b1d0f 0%, #1b1a1900 70%),
        linear-gradient(#1b1a199e, #1b1a1942);
    pointer-events: none;
}
.ph::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ember) 20%, var(--glow) 50%, var(--ember) 80%, transparent);
    box-shadow: 0 0 24px 2px #ff4d3d88;
}
.ph .wrap { position: relative; z-index: 1; text-align: center; }
.ph h1 { font-size: clamp(34px, 6vw, 72px); margin-bottom: 16px; line-height: 1.1; }
.ph .crumb {
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #bdb8b0;
}
.ph .crumb a { transition: color .2s; }
.ph .crumb a:hover { color: var(--glow); }
.ph .crumb svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ph .crumb [aria-current] { color: #fff; }

.pl { padding: 52px 0 76px; }

.cg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .cg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cg { grid-template-columns: 1fr; } }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 0;
    border-top: 4px solid var(--ember);
    transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px #e0261b22; }

.cv2 {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.cv2 svg { width: 52%; max-height: 82%; height: auto; filter: drop-shadow(0 12px 18px #000a); }
.cv2 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    transition: opacity .3s;
    filter: drop-shadow(0 8px 20px #0006);
}
.cv2.has img { opacity: 1; }
.cv2.has svg { display: none; }

.card .cb { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.card h2 { font-size: 19px; margin-bottom: 4px; }
.card h2 a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--mute); font-size: 14px; line-height: 1.8; }
.card .ca {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}
.card .mr {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ember);
    font-weight: 500;
    font-size: 14px;
}
.card .mr svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: margin .2s;
}
.card:hover .mr svg { margin-inline-start: 4px; }

.qr {
    margin-top: 56px;
    padding: 30px 34px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: var(--coal);
    color: #fff;
    border-top: 4px solid var(--ember);
}
.qr h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 4px; }
.qr p { color: #d4cfc8; font-size: 15px; }
.qr a.tl {
    color: var(--glow);
    font-weight: 500;
    border-bottom: 1px solid currentColor;
    transition: color .2s;
}
.qr a.tl:hover { color: #fff; }

@media (max-width: 520px) {
    .ph { padding-bottom: 56px; }
    .ph p { font-size: 16px; }
    .qr { padding: 24px 22px; }
}

/* ===== CONTACT PAGE ===== */
.ct { padding: 60px 0 76px; }
.ctg {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 40px;
    align-items: start;
}
.fm {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--ember);
    padding: 34px 32px 36px;
}
.fm h2 { font-size: 24px; margin-bottom: 22px; }
.fld { margin-bottom: 18px; }
.fld[hidden] { display: none; }
.fld label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; color: var(--coal); }
.fld .rq { color: var(--ember); }
.fld input,
.fld select,
.fld textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 4px;
    background: var(--paper);
    color: var(--coal);
    font: 400 16px 'Kufi Arabic meee', Tahoma, sans-serif;
    transition: border-color .2s, box-shadow .2s;
}
.fld input:focus,
.fld select:focus,
.fld textarea:focus {
    outline: 0;
    border-color: var(--ember);
    box-shadow: 0 0 0 3px #e0261b22;
    background: #fff;
}
.fld textarea { min-height: 150px; resize: vertical; }
.fld select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-inline-end: 40px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0261b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: left 14px center;
}
html[dir=ltr] .fld select { background-position: right 14px center; }
.fld input[type=tel],
.fld input[type=email] { direction: ltr; text-align: right; }
html[dir=ltr] .fld input[type=tel],
html[dir=ltr] .fld input[type=email] { text-align: left; }
.fld .em { display: none; color: var(--ember); font-size: 13px; margin-top: 4px; }
.fld.err input,
.fld.err textarea { border-color: var(--ember); }
.fld.err .em { display: block; }
.fm .btn { width: 20%; margin-top: 6px; }
.fs {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    background: #e9f6ec;
    border: 1px solid #9ad2a6;
    color: #1d5d2e;
    font-size: 15px;
}
.fs.show { display: block; }

.co {
    position: relative;
    overflow: hidden;
    background: var(--coal);
    color: #fff;
    border-top: 4px solid var(--ember);
    padding: 32px 30px 30px;
}
.co::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 100% 110%, #6b1d0f, #1b1a1900 70%);
    pointer-events: none;
}
.co > * { position: relative; }
.co h2 { font-size: 24px; margin-bottom: 0; }
.co .tg { color: #d4cfc8; font-size: 14px; margin-bottom: 22px; }
.cr {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid #fff2;
    align-items: flex-start;
}
.cr svg {
    flex: none;
    width: 24px;
    height: 24px;
    margin-top: 4px;
    stroke: var(--glow);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cr small { display: block; color: #bdb8b0; font-size: 13px; line-height: 1.5; }
.cr div { font-size: 16px; line-height: 1.9; }
.cr a { transition: color .2s; }
.cr a:hover { color: var(--glow); }

.mp { margin-top: 6px; padding-top: 18px; border-top: 1px solid #fff2; }
.mp small { display: block; color: #bdb8b0; font-size: 13px; margin-bottom: 10px; }
.mps { display: flex; flex-wrap: wrap; gap: 10px; }
.mb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid #fff4;
    border-radius: 999px;
    font-size: 14px;
    color: #fff;
    transition: border-color .2s, color .2s, background .2s;
}
.mb:hover { border-color: var(--glow); color: var(--glow); background: #ffffff0d; }
.mb svg {
    flex: none;
    width: 18px;
    height: 18px;
    stroke: var(--glow);
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 860px) {
    .ctg { grid-template-columns: 1fr; }
    .co { order: -1; }
}
@media (max-width: 520px) {
    .fm { padding: 26px 20px 28px; }
    .co { padding: 26px 22px; }
}

/* ===== FAQ ===== */
.faq-section {
    background: var(--ash);
    padding: 80px 0;
}
.faq-section .wrap { max-width: 900px; margin: auto; padding: 0 22px; }
.faq-section h2 {
    font-size: clamp(24px, 3vw, 34px);
    margin-bottom: 24px;
    color: var(--coal);
    font-weight: 800;
    line-height: 1.4;
}
.faq-section details {
    background: #fff;
    border: 1px solid var(--line);
    margin-bottom: 12px;
    transition: border-color .2s, box-shadow .2s;
}
.faq-section details[open] {
    border-color: var(--ember);
    box-shadow: 0 8px 26px #e0261b18;
}
.faq-section summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    font-weight: 800;
    font-size: 17px;
    color: var(--coal);
    transition: color .2s;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    border: solid var(--ember);
    border-width: 0 2.4px 2.4px 0;
    transform: rotate(45deg) translateY(-3px);
    transition: transform .25s;
}
.faq-section details[open] summary::after {
    transform: rotate(-135deg) translateY(-3px);
}
.faq-section summary:hover { color: var(--ember); }
.faq-section .ans {
    padding: 0 22px 18px;
    color: #3b3835;
    font-size: 15.5px;
    line-height: 1.9;
}
.faq-section .ans p { margin-bottom: 10px; }
.faq-section .ans p:last-child { margin-bottom: 0; }
.faq-section .ans a {
    color: var(--ember);
    font-weight: 500;
    border-bottom: 1px solid currentColor;
    transition: color .2s;
}
.faq-section .ans a:hover { color: var(--glow); }
.faq-section .ans b { color: var(--coal); font-weight: 800; }

@media (max-width: 760px) {
    .faq-section { padding: 60px 0; }
    .faq-section h2 { font-size: 22px; margin-bottom: 18px; }
    .faq-section summary { padding: 14px 18px; font-size: 15px; }
    .faq-section .ans { padding: 0 18px 16px; font-size: 14.5px; }
}

/* ===== PAGE INTRO (.pdt) ===== */
.pdt {
    color: var(--mute);
    font-size: 18px;
    text-align: center;
    max-width: 42em;
    margin: 0 auto 34px;
    line-height: 1.9;
}
@media (max-width: 860px) {
    .pdt { font-size: 16px; margin-bottom: 26px; }
}

/* ===== PRICE INQUIRY + REPRESENTATION ===== */
[hidden] { display: none !important; }
.pq { padding: 56px 0 84px; }
.pq .wrap { max-width: 900px; margin: auto; padding: 0 22px; }
.pq .fm { padding: 38px 38px 40px; }
.pq .in { color: var(--mute); margin-bottom: 8px; }
.fg { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.fg .fld.wide { grid-column: 1 / -1; }
.sec { margin: 30px 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sec h3 { font-size: 20px; line-height: 1.5; color: var(--coal); margin: 0; }
.sec p { color: var(--mute); font-size: 14px; margin: 4px 0 0; }
.grp { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.grp legend { padding: 0; margin-bottom: 10px; font-weight: 500; font-size: 15px; color: var(--coal); }
.grp .rq { color: var(--ember); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opts.price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    gap: 10px;
}
@media (max-width: 640px) {
    .opts.price-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-flow: row;
    }
}
.opt { position: relative; display: block; color: var(--coal); }
.opt input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}
.opt span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    min-height: 48px;
    border: 1.5px solid var(--line);
    border-radius: 4px;
    background: var(--paper);
    font-size: 15px;
    line-height: 1.6;
    color: var(--coal);
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.opt span::before {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--mute);
    border-radius: 4px;
    transition: all .2s;
}
.opt.r span::before { border-radius: 50%; }
.opt:hover span { border-color: var(--coal); }
.opt input:checked + span {
    border-color: var(--ember);
    background: #fff;
    box-shadow: 0 0 0 3px #e0261b18;
}
.opt input:checked + span::before {
    background: var(--ember);
    border-color: var(--ember);
    box-shadow: inset 0 0 0 3px #fff;
}
.opt:not(.r) input:checked + span::before {
    box-shadow: none;
    background: var(--ember) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center / 12px no-repeat;
}
.opt input:focus-visible + span { outline: 3px solid var(--glow); outline-offset: 2px; }
.grp .em { display: none; color: var(--ember); font-size: 13px; margin-top: 6px; }
.grp.err .em { display: block; }
.grp.err .opt span { border-color: #e0261b88; }

.fld input[type=file] { padding: 9px 12px; cursor: pointer; background: #fff; }
.fld input[type=file]::file-selector-button {
    margin-inline-end: 12px;
    padding: 7px 16px;
    border: 0;
    border-radius: 3px;
    background: var(--coal);
    color: #fff;
    font: 500 14px 'Kufi Arabic meee', Tahoma, sans-serif;
    cursor: pointer;
    transition: background .2s;
}
.fld input[type=file]:hover::file-selector-button { background: var(--ember); }
.fld.err input[type=file] { border-color: var(--ember); }

.pq .opts.three { grid-template-columns: repeat(3, 1fr); }
.pq .sec + .fld,
.pq .sec + .fg { margin-top: 0; }

@media (max-width: 640px) {
    .fg { grid-template-columns: 1fr; }
    .opts { grid-template-columns: 1fr; }
    .pq .fm { padding: 26px 20px 30px; }
    .pq .opts.three { grid-template-columns: 1fr; }
}

/* ===== OFFICIAL LINKS ===== */
main#top .wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.olt {
    text-align: center;
    font-size: clamp(24px, 3vw, 34px);
    margin: 40px 0 30px;
    color: var(--coal);
}
.olt::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, var(--ember), var(--glow));
    box-shadow: 0 0 18px #ff4d3d88;
}
.olg {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 56px;
    padding-bottom: 40px;
}
.ol {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 30px 22px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--ember);
    transition: transform .3s, box-shadow .3s;
}
.ol:hover { transform: translateY(-5px); box-shadow: 0 14px 34px #e0261b22; }
.ol .ic {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    background: var(--coal);
    border-radius: 50%;
}
.ol .ic svg {
    width: 34px;
    height: 34px;
    stroke: var(--glow);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ol h3 { font-size: 19px; color: var(--coal); }
.ol .nm { font-size: 18px; direction: ltr; color: var(--coal); }
.ol .nm:hover,
.ol .lk:hover { color: var(--ember); }
.ol .lk {
    font-weight: 500;
    color: var(--coal);
    border-bottom: 2px solid var(--ember);
    padding-bottom: 2px;
}

@media (max-width: 640px) { .olg { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ol, .ol:hover { transition: none; transform: none; } }

body.page-official-links header#hd {
    background: #1b1a19 !important;
    box-shadow: 0 2px 20px #0008;
}
body.page-official-links main#top {
    padding-top: calc(66px + env(safe-area-inset-top, 0px) + 40px);
    padding-bottom: 70px;
}
.olinks { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.olt {
    text-align: center;
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
    color: var(--coal);
    margin: 0 0 36px;
    line-height: 1.3;
}
.olt::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, var(--ember), var(--glow));
    box-shadow: 0 0 18px #ff4d3d88;
    border-radius: 2px;
}
.ol h3 { font-size: 19px; font-weight: 800; color: var(--coal); line-height: 1.4; margin: 0; }
.ol .nm {
    font-size: 18px;
    font-weight: 600;
    direction: ltr;
    color: var(--coal);
    transition: color .2s;
}
.ol .nm:hover,
.ol .lk:hover { color: var(--ember); }
.ol .lk {
    font-weight: 700;
    font-size: 15px;
    color: var(--coal);
    border-bottom: 2px solid var(--ember);
    padding-bottom: 2px;
    transition: color .2s;
}
@media (max-width: 640px) {
    .olg { grid-template-columns: 1fr; }
    .olt { font-size: 24px; margin-bottom: 28px; }
    .ol { padding: 26px 18px 24px; }
}

/* ===== GLOBAL LAYOUT FIX ===== */
body:not(:has(.slider)) header#hd {
    background: #1b1a19f2;
    box-shadow: 0 2px 20px #0008;
}
body:not(:has(.slider)) main#top {
    padding-top: calc(66px + env(safe-area-inset-top, 0px) + 30px);
}
body:has(.slider) main#top,
body:has(.ph) main#top {
    padding-top: 0;
}

main#top h1,
main#top h2,
main#top h3 { font-weight: 800; }

.olt,
.sec h3,
.pq .fm h2,
.pq .fm label,
.pq .fm legend,
.ol h3,
.card h2,
.pc h1,
.dark h1,
.dark h2,
.dark h3 { font-weight: 800; }

/* ===== PRODUCT PAGE ===== */
.pd { padding: 56px 0 72px; }
.pdg {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 52px;
    align-items: center;
}

.gal {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--ember);
    padding: 0;
    box-shadow: 0 18px 44px #1b1a1930;
    overflow: hidden;
}
.gal .vp {
    position: relative;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    outline-offset: -4px;
    background: radial-gradient(circle at 50% 100%, #f7f6f3, #ecebe8);
}
.gal .vp:active { cursor: grabbing; }
html[dir="rtl"] .gal .vp,
html[dir="rtl"] .gal .tr,
html[dir="rtl"] .gdots { direction: rtl; }
html[dir="ltr"] .gal .vp,
html[dir="ltr"] .gal .tr,
html[dir="ltr"] .gdots { direction: ltr; }
.gal .tr {
    display: flex;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
    will-change: transform;
}
.gal .tr.drag { transition: none; }
.gal .sl {
    flex: 0 0 100%;
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.gal .sl svg { width: 46%; height: auto; filter: drop-shadow(0 14px 20px #0003); }
.gal .sl img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .35s;
    filter: drop-shadow(0 18px 30px #0003);
    pointer-events: none;
    -webkit-user-drag: none;
    z-index: 1;
}
.gal .sl.has img { opacity: 1; }
.gal .sl.has svg { display: none; }

.gdots { display: flex; gap: 10px; justify-content: center; margin-top: 0; }
.gdots.gdots-overlay {
    position: absolute;
    bottom: 16px;
    inset-inline: 0;
    z-index: 10;
    pointer-events: none;
    padding: 0 12px;
}
.gdots.gdots-overlay button { pointer-events: auto; }
.gdots button {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(0, 0, 0, .35);
    padding: 0;
    cursor: pointer;
    transition: all .3s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.gdots button::before {
    content: "";
    position: absolute;
    inset: -12px;
    z-index: 1;
}
.gdots button:hover {
    border-color: var(--glow);
    background: rgba(224, 38, 27, .6);
}
.gdots button.on {
    background: var(--ember);
    border-color: #fff;
    box-shadow: 0 0 10px #e0261bcc, 0 1px 4px #000a;
    transform: scale(1.25);
}
@media (max-width: 520px) {
    .gdots button { width: 10px; height: 10px; }
    .gdots button::before { inset: -10px; }
    .gdots.gdots-overlay { bottom: 12px; }
}

.pi h2 { font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 2px; }
.pi .sub { color: var(--ember); font-weight: 500; font-size: 18px; margin-bottom: 14px; }
.pi .lead { color: var(--mute); margin-bottom: 22px; }
.pts {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin: 0 0 30px;
}
.pts li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.pts svg {
    flex: none;
    width: 22px;
    height: 22px;
    stroke: var(--ember);
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn.dk { background: transparent; color: var(--coal); border: 1.5px solid var(--coal); animation: none; }
.btn.dk:hover { background: var(--coal); color: #fff; filter: none; }

.abt { background: var(--ash); padding: 76px 0; }
.abt .wrap { max-width: 920px; }
.abt h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 18px; }
.abt h3 { font-size: 22px; margin: 34px 0 10px; }
.abt p { color: #3b3835; margin-bottom: 14px; text-align: justify; }
.note {
    margin-top: 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-inline-start: 4px solid var(--ember);
    padding: 22px 28px;
}
.note h3 { margin: 0 0 8px; font-size: 20px; color: var(--ember); }
.note ol { padding-inline-start: 22px; margin: 0; color: #3b3835; }
.note li { margin-bottom: 4px; }

.shp { background: #fff; padding: 80px 0; }
.shp .head { max-width: none; margin-bottom: 36px; }
.shi {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 52px;
    align-items: center;
    justify-content: center;
}
.shf {
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--ember);
    box-shadow: 0 18px 44px #1b1a1914;
    min-height: 220px;
}
.shf img { display: block; width: 100%; height: auto; }
.sht h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; }
.sht p { color: var(--mute); margin-bottom: 22px; font-size: 17px; }

.spec {
    margin: 0;
    border: 1px solid var(--line);
    background: var(--paper);
}
.spec div {
    display: flex;
    gap: 16px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--line);
    align-items: center;
}
.spec div:last-child { border-bottom: 0; }
.spec dt { color: var(--mute); flex: 1; text-align: start; }
.spec dd { display: inline-flex; align-items: baseline; gap: 6px; direction: ltr; }
.spec-unit {
    color: var(--mute);
    font-weight: 500;
    font-size: .92em;
    direction: rtl;
}
html[dir="rtl"] .spec div { flex-direction: row; direction: ltr; }
html[dir="rtl"] .spec dt { direction: rtl; text-align: start; }
html[dir="rtl"] .spec dd { direction: rtl; }
html[dir="ltr"] .spec div { flex-direction: row-reverse; direction: ltr; }
html[dir="ltr"] .spec dt { direction: ltr; text-align: end; }
html[dir="ltr"] .spec dd { direction: ltr; text-align: start; }

.spec.spec-collapsible .spec-extra { display: none; }
.spec.spec-collapsible.is-open .spec-extra { display: flex; }
.spec-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 18px;
    background: transparent;
    color: var(--ember);
    border: 1.5px solid var(--ember);
    border-radius: 4px;
    font: 500 14px 'Kufi Arabic meee', Tahoma, sans-serif;
    cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s;
}
.spec-toggle:hover {
    background: var(--ember);
    color: #fff;
    box-shadow: 0 6px 18px #e0261b33;
}
.spec-toggle:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.spec-toggle svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .25s;
}
.spec-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.band {
    position: relative;
    overflow: hidden;
    background: var(--coal);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}
.band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 120% at 50% 130%, #6b1d0f, #1b1a1900 70%);
    pointer-events: none;
}
.band .wrap { position: relative; }
.band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.band p { color: #d4cfc8; margin-bottom: 24px; }
.band .bp1 { margin-bottom: 10px; }
.band .acts { justify-content: center; }
.band a.tl {
    color: var(--glow);
    font-weight: 500;
    border-bottom: 1px solid currentColor;
    transition: color .2s;
}
.band a.tl:hover { color: #fff; }

.btn.tel {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 7px 22px;
    line-height: 1.5;
    text-align: center;
}
.btn.tel span { font-size: 13px; color: var(--mute); transition: color .2s; }
.btn.tel bdi { font-weight: 800; font-size: 17px; }
.btn.tel:hover span { color: #d4cfc8; }

@media (max-width: 860px) {
    .pdg { grid-template-columns: 1fr; gap: 34px; }
    .gal { max-width: 520px; margin-inline: auto; width: 100%; }
    .shi { grid-template-columns: 1fr; gap: 30px; }
    .shf { max-width: 420px; width: 100%; margin-inline: auto; }
    .shp { padding: 60px 0; }
}
@media (max-width: 520px) {
    .pts { grid-template-columns: 1fr; }
    .abt p { text-align: start; }
    .pi .acts > .btn:first-child { flex: 1 1 100%; text-align: center; }
    .pi .acts > .tel { flex: 1 1 calc(50% - 6px); padding-inline: 10px; }
}

/* ===== FORMULAS ===== */
.formulas {
    padding: 80px 0;
    background: var(--coal, #1b1a19);
    background-image:
        radial-gradient(ellipse 70% 100% at 50% 0%, rgba(224, 38, 27, .12), transparent 70%),
        radial-gradient(ellipse 50% 80% at 50% 100%, rgba(224, 38, 27, .06), transparent 70%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.formulas::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000, transparent 80%);
}
.formulas .wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 22px;
    position: relative;
    z-index: 1;
}
.formulas .head { text-align: center; margin-bottom: 48px; position: relative; }
.formulas .head::before {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    background: linear-gradient(90deg, var(--ember, #e0261b), #f0382b);
    margin: 0 auto 22px;
    border-radius: 2px;
    box-shadow: 0 0 16px rgba(224, 38, 27, .6);
}
.formulas .head h2 {
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.5;
    color: #fff;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .4);
}
.formulas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
}
.formula-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 28px 24px;
    display: flex;
    gap: 18px;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
    position: relative;
    overflow: hidden;
}
.formula-card::after {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(224, 38, 27, .18), transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    transform: translate(30%, -30%);
    opacity: 0;
    transition: opacity .4s ease;
}
.formula-card:hover {
    transform: translateY(-5px);
    border-color: rgba(224, 38, 27, .55);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 20px 40px rgba(224, 38, 27, .18), 0 0 0 1px rgba(224, 38, 27, .3) inset;
}
.formula-card:hover::after { opacity: 1; }
.formula-icon {
    flex: none;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ember, #e0261b), #f0382b);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, .08),
        0 0 0 6px rgba(224, 38, 27, .35),
        0 8px 24px rgba(224, 38, 27, .45);
    position: relative;
    z-index: 1;
    transition: transform .35s ease;
}
.formula-card:hover .formula-icon { transform: scale(1.06) rotate(-4deg); }
.formula-icon span {
    direction: ltr;
    font-size: 17px;
    font-family: 'Kufi Arabic meee', Tahoma, sans-serif;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.formula-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.formula-body h4 {
    font-size: 17px;
    margin: 0 0 8px;
    color: #fff;
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: -0.2px;
}
.formula-body p {
    color: rgba(255, 255, 255, .68);
    font-size: 14.5px;
    line-height: 1.75;
    margin: 0;
}
@media (max-width: 760px) {
    .formulas { padding: 60px 0; }
    .formulas .head { margin-bottom: 34px; }
    .formulas .head h2 { font-size: 20px; }
    .formulas-grid { grid-template-columns: 1fr; gap: 16px; }
    .formula-card { padding: 20px 18px; gap: 14px; }
    .formula-icon { width: 56px; height: 56px; font-size: 16px; }
    .formula-icon span { font-size: 15px; }
    .formula-body h4 { font-size: 16px; }
    .formula-body p { font-size: 13.5px; }
}

/* ===== VIDEO THUMBNAIL FALLBACK ===== */
.vtile { background: #2a2826; position: relative; }
.vtile .vthumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
.vtile .vthumb:not([src]),
.vtile .vthumb[src=""] { display: none; }
.vtile::before {
    content: "ðŸŽ¬";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 32px;
    color: #ffffff33;
    z-index: 0;
    pointer-events: none;
}