:root {
    --ink: #0b1724;
    --ink-2: #13263a;
    --paper: #f7f5f0;
    --white: #ffffff;
    --text: #1d2733;
    --muted: #5d6875;
    --line: #e4dfd4;
    --gold: #b8913f;
    --gold-2: #d9b866;
    --radius: 22px;
    --shadow: 0 18px 50px rgba(11, 23, 36, .08);
    --basmov: #2563eb;
    --basgro: #1f7a5a;
    --agency: #7c3aed;
    --store: #be185d;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: clip;
}

[lang="en"] body, body:lang(en) { font-family: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.65; }

a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; line-height: 1.3; color: var(--ink); }
p { margin: 0; }

.shell { width: min(100% - 40px, 1180px); margin-inline: auto; }

.skip {
    position: absolute;
    inset-inline-start: 12px;
    top: -60px;
    z-index: 50;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 23, 36, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(217, 184, 102, .16);
}

.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .14em;
    text-decoration: none;
    white-space: nowrap;
}

.mark { width: 30px; height: 30px; fill: var(--gold-2); }
.mark .m2 { fill: rgba(217, 184, 102, .45); }

.nav { display: flex; gap: 6px; margin-inline-start: auto; }

.nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .74);
    font-size: .93rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s, background .2s;
}
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: var(--gold-2); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang {
    padding: 7px 14px;
    border: 1px solid rgba(217, 184, 102, .4);
    border-radius: 999px;
    color: var(--gold-2);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}
.lang:hover { background: rgba(217, 184, 102, .1); }

.menu { display: none; position: relative; }
.menu summary {
    display: grid;
    gap: 5px;
    place-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    cursor: pointer;
    list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--white); }
.menu-panel {
    position: absolute;
    inset-inline-end: 0;
    top: 52px;
    display: grid;
    min-width: 220px;
    padding: 8px;
    border-radius: 16px;
    background: var(--ink-2);
    border: 1px solid rgba(217, 184, 102, .2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.menu-panel a { padding: 12px 14px; border-radius: 10px; color: rgba(255, 255, 255, .86); text-decoration: none; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: rgba(255, 255, 255, .06); color: var(--gold-2); }

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.button:hover { transform: translateY(-2px); }
.button-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--ink); box-shadow: 0 10px 26px rgba(184, 145, 63, .3); }
.button-ghost { border-color: rgba(255, 255, 255, .28); color: var(--white); }
.button-ghost:hover { background: rgba(255, 255, 255, .06); }

/* Hero */
.hero, .page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 10%, rgba(217, 184, 102, .16), transparent 34%),
        radial-gradient(circle at 10% 90%, rgba(37, 99, 235, .14), transparent 36%),
        linear-gradient(160deg, #0b1724 0%, #10233a 60%, #0b1724 100%);
    color: var(--white);
}

.hero::after, .page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    pointer-events: none;
}

.hero-inner, .page-hero .shell { position: relative; z-index: 1; }
.hero-inner { padding: 110px 0 120px; max-width: 900px; }
.page-hero .shell { padding: 80px 0 84px; }
.page-hero .shell > * { max-width: 820px; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: var(--gold-2);
    font-family: "Inter", sans-serif;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.kicker::before { content: ""; width: 32px; height: 1px; background: var(--gold-2); }
[dir="rtl"] .kicker { letter-spacing: 0; font-family: inherit; font-size: .9rem; }
[dir="rtl"] .hero .kicker { letter-spacing: .2em; font-family: "Inter", sans-serif; font-size: .8rem; }

.hero h1, .page-hero h1 { color: var(--white); font-weight: 700; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.25; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.accent {
    background: linear-gradient(100deg, #f4e4b5, var(--gold-2) 45%, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead { margin-top: 24px; color: rgba(255, 255, 255, .72); font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.9; max-width: 760px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.meta span { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; color: rgba(255, 255, 255, .66); font-size: .85rem; }

/* Sections */
.section { padding: 90px 0; }
.section-soft { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p:not(.eyebrow) { margin-top: 12px; color: var(--muted); }
.eyebrow { margin-bottom: 10px; color: var(--gold); font-size: .9rem; font-weight: 600; }
[lang="en"] .eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }

/* Products */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.products-detailed { grid-template-columns: repeat(2, 1fr); gap: 22px; }

.product {
    --c: var(--gold);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--c); }
.product:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); box-shadow: 0 24px 60px rgba(11, 23, 36, .12); }
.product-basmov { --c: var(--basmov); }
.product-basgro { --c: var(--basgro); }
.product-agency { --c: var(--agency); }
.product-store { --c: var(--store); }

.product-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.product-badge {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--c) 12%, white);
    color: var(--c);
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.status { padding: 4px 12px; border-radius: 999px; background: #f1eee6; color: var(--muted); font-size: .78rem; font-weight: 600; }
.status.is-live { background: #e8f6ee; color: #17663f; }

.product h3 { font-family: "Inter", sans-serif; font-size: 1.3rem; }
.product-category { margin-top: 4px; color: var(--c); font-size: .9rem; font-weight: 600; }
.product-summary { margin-top: 12px; color: var(--muted); }
.product-points { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.product-points li { position: relative; padding-inline-start: 24px; color: var(--text); font-size: .95rem; }
.product-points li::before {
    content: "";
    position: absolute;
    inset-inline-start: 4px;
    top: .7em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 15%, white);
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
.product-link .arrow { color: var(--c); transition: transform .2s; }
[dir="rtl"] .product-link .arrow { transform: scaleX(-1); }
.product:hover .product-link .arrow { transform: translateX(4px); }
[dir="rtl"] .product:hover .product-link .arrow { transform: scaleX(-1) translateX(4px); }
.products-detailed .product { padding: 32px; }
.products-detailed .product-link { align-self: flex-start; margin-top: auto; padding: 10px 20px; border-radius: 999px; background: color-mix(in srgb, var(--c) 10%, white); }
.products-detailed .product-summary { font-size: 1.02rem; }
.products-detailed .product > :nth-last-child(2) { margin-bottom: 24px; }

/* Why / beliefs */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-3 { grid-template-columns: repeat(3, 1fr); }
.why-item { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.section-soft .why-item { background: var(--paper); }
.why-num { display: block; margin-bottom: 14px; color: var(--gold); font-family: "Inter", sans-serif; font-weight: 700; }
.why-item h3 { font-size: 1.12rem; }
.why-item p { margin-top: 8px; color: var(--muted); font-size: .96rem; }

/* Split + prose */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.split h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.prose { display: grid; gap: 16px; color: var(--muted); font-size: 1.05rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 26px; border-top: 3px solid var(--gold); background: var(--white); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; margin-bottom: 10px; color: var(--gold); font-family: "Inter", sans-serif; font-weight: 700; }
.steps h3 { font-size: 1.1rem; }
.steps p { margin-top: 6px; color: var(--muted); font-size: .95rem; }

/* CTA band */
.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 44px 48px;
    border-radius: 28px;
    background: radial-gradient(circle at 90% 0%, rgba(217, 184, 102, .22), transparent 40%), var(--ink);
    color: var(--white);
}
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-band p { margin-top: 8px; color: rgba(255, 255, 255, .7); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; flex: none; }
.cta-mail { color: var(--gold-2); font-family: "Inter", sans-serif; font-weight: 600; text-decoration: none; }
.cta-mail:hover { text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 600; }

/* Legal */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 100px; display: grid; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.toc strong { margin-bottom: 8px; color: var(--ink); font-size: .9rem; }
.toc a { padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: .92rem; text-decoration: none; }
.toc a:hover { background: var(--paper); color: var(--ink); }
.legal-body { display: grid; gap: 40px; max-width: 780px; }
.legal-body section { scroll-margin-top: 100px; }
.legal-body h2 { display: flex; align-items: baseline; gap: 12px; font-size: 1.4rem; }
.legal-body h2 span { color: var(--gold); font-family: "Inter", sans-serif; font-size: 1rem; }
.legal-body p { margin-top: 12px; color: #3b4652; }
.notice { padding: 20px 24px; border-inline-start: 4px solid var(--gold); border-radius: 12px; background: var(--white); color: var(--muted); }
.text-link { color: var(--gold); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 22px; }
.mail-card { padding: 30px; border-radius: var(--radius); background: var(--ink); color: rgba(255, 255, 255, .72); }
.mail-card .eyebrow { color: var(--gold-2); }
.mail-card a { display: inline-block; margin-bottom: 12px; color: var(--white); font-family: "Inter", sans-serif; font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; text-decoration: none; word-break: break-all; }
.mail-card a:hover { color: var(--gold-2); }
.channels { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.channels h2 { margin-bottom: 10px; font-size: 1.1rem; }
.channel { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.channel span { color: var(--muted); }
.channel strong { color: var(--ink); }
.channel a { color: var(--ink); font-family: "Inter", sans-serif; font-weight: 600; text-decoration: none; }
.channel a:hover { color: var(--gold); }

.form-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); scroll-margin-top: 100px; }
.form-card h2 { margin-bottom: 22px; font-size: 1.4rem; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { color: var(--ink); font-size: .92rem; font-weight: 600; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    color: var(--text);
    font: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 145, 63, .15); }
.field small { color: #b42318; font-size: .85rem; }
.has-error input, .has-error textarea { border-color: #e5484d; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-card .button { width: 100%; }
.alert { margin-bottom: 22px; padding: 16px 18px; border-radius: 14px; font-size: .95rem; }
.alert strong { display: block; }
.alert-ok { background: #e8f6ee; color: #17663f; }
.alert-error { background: #fdecec; color: #9b1c1c; }
.alert a { color: inherit; font-weight: 700; }

.not-found .shell { padding-block: 120px; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .62); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 44px; }
.footer-grid h2 { margin-bottom: 14px; color: var(--white); font-size: .95rem; }
.footer-grid > div:not(.footer-brand) { display: grid; align-content: start; gap: 8px; }
.footer-grid a { color: rgba(255, 255, 255, .62); font-size: .93rem; text-decoration: none; }
.footer-grid a:hover { color: var(--gold-2); }
.footer-brand p { margin: 16px 0 12px; max-width: 320px; font-size: .95rem; }
.footer-brand .footer-mail { color: var(--gold-2); font-family: "Inter", sans-serif; font-weight: 600; }
.footer-bottom { padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }

/* Responsive */
@media (max-width: 1080px) {
    .products { grid-template-columns: repeat(2, 1fr); }
    .why, .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav, .header-actions > .lang { display: none; }
    .menu { display: block; }
    .header-actions { margin-inline-start: auto; }
    .split, .contact, .legal { grid-template-columns: 1fr; gap: 28px; }
    .toc { position: static; }
    .why-3 { grid-template-columns: 1fr; }
    .cta-band { flex-direction: column; align-items: flex-start; padding: 34px 28px; }
}

@media (max-width: 640px) {
    .shell { width: min(100% - 32px, 1180px); }
    .hero-inner { padding: 72px 0 80px; }
    .page-hero .shell { padding: 56px 0 60px; }
    .section { padding: 64px 0; }
    .products, .products-detailed, .why, .steps { grid-template-columns: 1fr; }
    .products-detailed .product, .form-card { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
    .actions .button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
