/* ==========================================================
   بسام للطباعة - BASSAM for printing
   ========================================================== */
:root {
  --navy: #123b63;
  --orange: #f2932a;
  --orange-dark: #d97b12;
  --amber: #ffc15e;
  --sky: #3d7fc4;

  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --surface: #ffffff;
  --field: #f6f8fb;
  --text: #1d2733;
  --muted: #5d6b7a;
  --heading: #123b63;
  --line: #e4e9ef;
  --dot-n: #123b63;
  --dot-o: #f2932a;
  --header-bg: rgba(255, 255, 255, .85);
  --dark-band: #123b63;
  --shadow: 0 10px 30px rgba(18, 59, 99, .08);
  --glow: rgba(242, 147, 42, .35);

  --radius: 16px;
  --font: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-head: "El Messiri", "Tajawal", serif;
  --header-h: 68px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0a1622;
  --bg-alt: #0e1e2f;
  --surface: #12263a;
  --field: #0d1d2d;
  --text: #e3ebf3;
  --muted: #9cb0c4;
  --heading: #f3f7fb;
  --line: #1f3852;
  --dot-n: #4d8fd6;
  --dot-o: #f5a142;
  --header-bg: rgba(10, 22, 34, .82);
  --dark-band: #081320;
  --shadow: 0 12px 34px rgba(0, 0, 0, .45);
  --glow: rgba(245, 161, 66, .3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
}
html[lang="en"] body { line-height: 1.7; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.35; margin: 0 0 .5em; color: var(--heading); transition: color .5s; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* Smooth color crossfade when switching theme */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, fill .5s ease, box-shadow .5s ease !important;
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 70;
  transform-origin: var(--origin, right); transform: scaleX(0);
  background: linear-gradient(90deg, var(--dot-n), var(--orange), var(--amber), var(--orange), var(--dot-n));
  background-size: 200% 100%;
  animation: flow 4s linear infinite;
}
html[dir="ltr"] .progress { --origin: left; }

/* ---------- Brand mark (SVG) ---------- */
.mark { width: 44px; height: 44px; flex: none; }
.mark circle { transform-box: fill-box; transform-origin: center; transition: fill .5s; }
.mark .n { fill: var(--dot-n); }
.mark .o { fill: var(--dot-o); }
.brand:hover .mark circle { animation: blip .7s ease both; }
.brand:hover .mark circle:nth-child(odd) { animation-delay: .08s; }
.brand:hover .mark circle:nth-child(3n) { animation-delay: .16s; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 1rem var(--font);
  padding: .8rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s, background-position .6s, color .25s, box-shadow .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--orange), var(--amber) 50%, var(--orange-dark)) 0 0 / 200% 100%;
  box-shadow: 0 8px 22px var(--glow);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 12px 30px var(--glow); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 4.5s ease-in-out infinite;
}
.btn-ghost { border-color: var(--heading); color: var(--heading); background: transparent; }
.btn-ghost:hover { background: var(--heading); color: var(--bg); }
.btn-block { width: 100%; }
.btn-sm { padding: .45rem 1rem; font-size: .9rem; }

.eyebrow {
  display: inline-block;
  font-weight: 700; font-size: .9rem;
  color: var(--orange-dark);
  margin-bottom: .5rem;
}
[data-theme="dark"] .eyebrow { color: var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
  transition: box-shadow .3s, background-color .5s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6rem; margin-inline-end: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-head); color: var(--heading); font-size: 1.2rem; }
.brand-text small { color: var(--orange-dark); font-size: .72rem; letter-spacing: .04em; direction: ltr; text-align: start; }
[data-theme="dark"] .brand-text small { color: var(--orange); }

.nav { display: flex; gap: 1.6rem; }
.nav a { font-weight: 500; color: var(--text); position: relative; padding: .25rem 0; transition: color .25s; }
.nav a:hover { color: var(--orange); }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  transform: scaleX(0); transition: transform .3s;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.tools { display: flex; align-items: center; gap: .4rem; }
.tool-btn {
  display: inline-grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 .6rem;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--heading);
  font: 700 .85rem var(--font); cursor: pointer;
  transition: transform .25s, border-color .25s, background-color .5s, color .5s;
}
.tool-btn:hover { transform: translateY(-2px); border-color: var(--orange); }
.tool-btn svg { width: 20px; height: 20px; }
.theme-btn { position: relative; overflow: hidden; width: 40px; padding: 0; }
.theme-btn svg { position: absolute; transition: transform .6s cubic-bezier(.5, 1.6, .4, 1), opacity .4s; }
.theme-btn .sun { color: var(--orange); }
.theme-btn .moon { color: var(--amber); transform: translateY(150%) rotate(-90deg); opacity: 0; }
[data-theme="dark"] .theme-btn .sun { transform: translateY(-150%) rotate(90deg); opacity: 0; }
[data-theme="dark"] .theme-btn .moon { transform: none; opacity: 1; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--heading); margin: 5px 0; border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav.open { max-height: 400px; }
  .nav a { padding: .9rem 16px; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
}
@media (max-width: 400px) {
  .brand-text small { display: none; }
  .mark { width: 38px; height: 38px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(3rem, 8vw, 6rem) 0;
  overflow: hidden;
}
.blob {
  position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(70px); opacity: .45;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-1 { width: 420px; height: 420px; background: var(--orange); top: -120px; inset-inline-start: -100px; opacity: .22; }
.blob-2 { width: 360px; height: 360px; background: var(--dot-n); bottom: -140px; inset-inline-end: -80px; opacity: .16; animation-duration: 22s; animation-delay: -6s; }
.blob-3 { width: 240px; height: 240px; background: var(--amber); top: 40%; inset-inline-start: 40%; opacity: .14; animation-duration: 26s; animation-delay: -12s; }
[data-theme="dark"] .blob-1 { opacity: .18; }
[data-theme="dark"] .blob-2 { opacity: .3; }

.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
.hero h1 .accent {
  display: block;
  background: linear-gradient(90deg, var(--orange), var(--amber), var(--orange-dark), var(--dot-n), var(--orange));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: flow 8s linear infinite;
}
.hero p { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }
.hero-social { list-style: none; margin: 0; padding: 0; display: flex; gap: .6rem; }
.hero-social a {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; background: var(--bg-alt); color: var(--heading);
  border: 1px solid var(--line);
  transition: background .3s, color .3s, transform .3s;
}
.hero-social a:hover { background: var(--orange); color: #fff; transform: translateY(-3px) rotate(-8deg); }
.hero-social svg { width: 20px; height: 20px; }

/* Hero entrance */
.hero-text > * { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero-text > *:nth-child(2) { animation-delay: .1s; }
.hero-text > *:nth-child(3) { animation-delay: .2s; }
.hero-text > *:nth-child(4) { animation-delay: .3s; }
.hero-text > *:nth-child(5) { animation-delay: .4s; }

/* Dot grid inspired by the logo: colors ripple in a diagonal wave */
.hero-art { display: grid; place-items: center; perspective: 900px; }
.dots-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(8px, 1.6vw, 16px);
  width: min(380px, 80vw); aspect-ratio: 1;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .4s ease-out;
}
.dots-grid i {
  --a: var(--dot-n); --b: var(--dot-o);
  border-radius: 50%; place-self: center; aspect-ratio: 1;
  background: var(--a);
  animation:
    pop .7s cubic-bezier(.3, 1.6, .5, 1) both,
    wave 7s ease-in-out infinite,
    bob 4s ease-in-out infinite;
  animation-delay:
    calc(var(--i, 0) * 60ms),
    calc(var(--i, 0) * 180ms + 1s),
    calc(var(--i, 0) * -350ms);
}
.dots-grid i.o { --a: var(--dot-o); --b: var(--dot-n); }
.dots-grid i.s { width: 45%; }
.dots-grid i.m { width: 72%; }
.dots-grid i.l { width: 100%; box-shadow: 0 10px 30px rgba(18, 59, 99, .2); }
.dots-grid i:hover { scale: 1.18; transition: scale .25s; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-art { order: -1; }
  .dots-grid { width: min(220px, 60vw); }
  .hero p { margin-inline: auto; }
  .hero-actions, .hero-social { justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.section-head h2::after {
  content: ""; display: block; width: 64px; height: 6px; margin: .7rem auto 0; border-radius: 6px;
  background: radial-gradient(circle, var(--orange) 3px, transparent 3.5px) 0 50% / 16px 6px repeat-x;
  animation: march 1.6s linear infinite;
}
.section-head p { color: var(--muted); }

/* Services cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.card {
  position: relative; isolation: isolate;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s, background-color .5s;
}
.card::before {
  content: ""; position: absolute; z-index: -1;
  width: 220px; height: 220px; border-radius: 50%;
  left: var(--mx, 50%); top: var(--my, 50%); translate: -50% -50%;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--orange); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 1rem;
  display: grid; place-items: center;
  background: rgba(242, 147, 42, .14); color: var(--orange-dark);
  transition: background .4s, color .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1), border-radius .4s;
}
.card:nth-child(even) .card-icon { background: rgba(61, 127, 196, .14); color: var(--dot-n); }
.card:hover .card-icon { background: var(--orange); color: #fff; transform: rotate(-8deg) scale(1.08); border-radius: 50%; }
.card:nth-child(even):hover .card-icon { background: var(--dot-n); color: #fff; }
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.feature { text-align: center; padding: 1rem; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; }
.feature-dot {
  display: block; width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 1rem; position: relative;
  animation: breathe 3.2s ease-in-out infinite;
}
.feature:nth-child(2) .feature-dot { animation-delay: -.8s; }
.feature:nth-child(3) .feature-dot { animation-delay: -1.6s; }
.feature:nth-child(4) .feature-dot { animation-delay: -2.4s; }
.feature-dot::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  inset-inline-end: -14px; top: -4px;
  animation: orbit 6s linear infinite;
  transform-origin: -7px 27px;
}
.feature-dot.o { background: var(--dot-o); }
.feature-dot.o::after { background: var(--dot-n); }
.feature-dot.n { background: var(--dot-n); }
.feature-dot.n::after { background: var(--dot-o); }

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.steps li { position: relative; text-align: center; padding: 0 .5rem; }
.steps li:not(:last-child)::before {
  content: ""; position: absolute; top: 28px; inset-inline-start: 60%; width: 80%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.step-num {
  position: relative; z-index: 1;
  display: grid; place-items: center; margin: 0 auto 1rem;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--dot-n); color: #fff; font: 700 1.4rem var(--font-head);
  transition: transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.step-num::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid currentColor; color: var(--dot-n);
  animation: ring 2.8s ease-out infinite;
}
.steps li:nth-child(even) .step-num { background: var(--dot-o); }
.steps li:nth-child(even) .step-num::after { color: var(--dot-o); }
.steps li:nth-child(2) .step-num::after { animation-delay: .7s; }
.steps li:nth-child(3) .step-num::after { animation-delay: 1.4s; }
.steps li:nth-child(4) .step-num::after { animation-delay: 2.1s; }
.steps li:hover .step-num { transform: scale(1.12) rotate(-6deg); }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .steps li::before { display: none; }
}

/* ---------- Quote ---------- */
.section-dark {
  isolation: isolate; overflow: hidden;
  background: var(--dark-band);
  color: #dbe5ef;
}
.section-dark::before, .section-dark::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px);
  animation: drift 16s ease-in-out infinite alternate;
}
.section-dark::before { width: 380px; height: 380px; background: var(--orange); opacity: .28; top: -140px; inset-inline-start: -120px; }
.section-dark::after { width: 320px; height: 320px; background: var(--sky); opacity: .25; bottom: -140px; inset-inline-end: -60px; animation-delay: -8s; }
.section-dark h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.section-dark .eyebrow { color: var(--orange); }
.quote-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
.quote-points { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.quote-points li { position: relative; padding-inline-start: 1.8rem; margin-bottom: .6rem; }
.quote-points li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .55em;
  width: 12px; height: 12px; border-radius: 50%; background: var(--orange);
  animation: breathe 2.4s ease-in-out infinite;
}
.quote-points li:nth-child(2)::before { animation-delay: -.8s; }
.quote-points li:nth-child(3)::before { animation-delay: -1.6s; }
.quote-form {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px); padding: clamp(1.2rem, 3vw, 2rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; color: var(--heading); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: .7rem .9rem; background: var(--field); width: 100%;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); background: var(--surface);
  box-shadow: 0 0 0 4px var(--glow);
}
.field .invalid { border-color: #e05555; animation: shake .4s; }
.field textarea { resize: vertical; }
.form-status { margin: .6rem 0 0; font-size: .95rem; text-align: center; min-height: 1.5em; color: var(--heading); }
.form-status.error { color: #e05555; }
@media (max-width: 860px) {
  .quote-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 520px) {
  .quote-form { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; max-width: 900px; margin: 0 auto; }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 1.4rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .3s, box-shadow .3s, border-color .3s, background-color .5s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--orange); }
.contact-card svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: #fff; flex: none; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.contact-card:hover svg { transform: rotate(-10deg) scale(1.1); }
.contact-card span { display: flex; flex-direction: column; line-height: 1.4; }
.contact-card strong { color: var(--heading); font-size: 1.1rem; }
.contact-card small { color: var(--muted); text-align: start; }
.contact-card.ig svg { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.contact-card.fb svg { background: #1877f2; }
.contact-card.wa svg { background: #25d366; }

.contact-card.loc svg { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }

/* ---------- Bags / products ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.product {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s, border-color .4s, background-color .5s;
}
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--orange); }
.product-img {
  margin: 0; aspect-ratio: 4 / 3.4; overflow: hidden; position: relative;
  background: linear-gradient(160deg, #ece7df, #d9d2c6);
}
.product-img-light { background: #fff; }
.product-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.product-img-light img { object-fit: contain; padding: 1rem; }
.product:hover .product-img img { transform: scale(1.07) rotate(-1deg); }
.product-body { padding: 1.3rem 1.5rem 1.6rem; }
.product-body h3 { font-size: 1.35rem; margin-bottom: .3em; }
.product-body p { color: var(--muted); margin: 0; font-size: .98rem; }
.tag {
  display: inline-block; font-size: .8rem; font-weight: 700;
  padding: .15rem .7rem; border-radius: 999px; margin-bottom: .6rem;
  background: rgba(242, 147, 42, .14); color: var(--orange-dark);
}
[data-theme="dark"] .tag { color: var(--orange); }
.product:nth-child(2) .tag { background: rgba(61, 127, 196, .14); color: var(--dot-n); }

.perk {
  margin-top: 2rem; position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  padding: 1.3rem 1.5rem; border-radius: calc(var(--radius) + 4px);
  background: var(--bg-alt); border: 1.5px dashed var(--orange);
}
.perk::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: radial-gradient(circle, var(--glow) 2px, transparent 2.5px) 0 0 / 22px 22px;
  animation: march-diag 12s linear infinite;
}
.perk > div { flex: 1 1 280px; }
.perk strong { color: var(--heading); font-family: var(--font-head); font-size: 1.2rem; }
.perk p { margin: .2rem 0 0; color: var(--muted); font-size: .97rem; }
.perk-icon {
  flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--orange); color: #fff;
  animation: wiggle 3s ease-in-out infinite;
}
.perk-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .products { grid-template-columns: 1fr 1fr; }
  .products .product:last-child { grid-column: 1 / -1; }
  .products .product:last-child .product-img { aspect-ratio: 16 / 7; }
}
@media (max-width: 560px) {
  .products { grid-template-columns: 1fr; }
  .products .product:last-child .product-img { aspect-ratio: 4 / 3.4; }
  .perk { text-align: center; justify-content: center; }
  .perk .btn { width: 100%; }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
}
.g-item {
  position: relative; overflow: hidden; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius); background: var(--bg-alt);
}
.g-item.g-wide { grid-column: span 2; grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.g-item::after {
  content: "+"; position: absolute; inset: 0; display: grid; place-items: center;
  font: 300 3rem/1 var(--font); color: #fff;
  background: linear-gradient(160deg, rgba(18, 59, 99, .55), rgba(242, 147, 42, .55));
  opacity: 0; transition: opacity .4s;
}
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.08); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }
.gallery-more { text-align: center; margin-top: 2rem; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
}
@media (max-width: 480px) {
  .gallery { grid-auto-rows: 170px; gap: .6rem; }
  .g-item.g-wide { grid-row: span 1; }
}

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100%; height: 100%; overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; animation: fadeIn .3s ease; }
.lightbox::backdrop { background: rgba(5, 12, 20, .88); backdrop-filter: blur(6px); }
.lightbox img {
  max-width: min(92vw, 900px); max-height: 84vh; border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  animation: zoomIn .4s cubic-bezier(.2, .8, .2, 1);
}
.lb-btn {
  position: fixed; z-index: 2; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; font: 400 2rem/1 var(--font);  transition: background .25s, transform .25s;
}
.lb-btn:hover { background: var(--orange); transform: scale(1.08); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 16px; inset-inline-end: 16px; }
.lb-prev { top: 50%; inset-inline-start: 16px; translate: 0 -50%; }
.lb-next { top: 50%; inset-inline-end: 16px; translate: 0 -50%; }
html[dir="ltr"] .lb-prev, html[dir="ltr"] .lb-next { scale: -1 1; }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.partners-img { margin: 0; position: relative; isolation: isolate; }
.partners-img img {
  width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover;
  border-radius: calc(var(--radius) + 8px); box-shadow: var(--shadow);
}
.partners-img::before, .partners-img::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  animation: breathe 4s ease-in-out infinite;
}
.partners-img::before { width: 120px; height: 120px; background: var(--dot-o); top: -26px; inset-inline-start: -26px; }
.partners-img::after { width: 80px; height: 80px; background: var(--dot-n); bottom: -20px; inset-inline-end: -20px; animation-delay: -2s; }
.partners-text h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.partners-text > p { color: var(--muted); }
.free-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.free-list li {
  position: relative; padding: .9rem 1.1rem; padding-inline-start: 3.2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s, transform .3s;
}
.free-list li:hover { border-color: var(--orange); transform: translateX(var(--nudge, -4px)); }
html[dir="ltr"] .free-list li { --nudge: 4px; }
.free-list li::before {
  content: "✓"; position: absolute; inset-inline-start: 1rem; top: 1rem;
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: .8rem; font-weight: 700;
}
.free-list li:nth-child(2)::before { background: var(--dot-n); }
.free-list strong { display: block; color: var(--heading); }
.free-list span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) {
  .partners { grid-template-columns: 1fr; gap: 2.5rem; }
  .partners-img { max-width: 420px; margin-inline: auto; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 2.2rem 0 calc(2rem + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-brand .mark { width: 52px; height: 52px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Install bar ---------- */
.install-bar {
  position: fixed; z-index: 60;
  inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 480px; margin-inline: auto;
  display: flex; align-items: center; gap: .7rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px; padding: .6rem .8rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  animation: slideUp .45s cubic-bezier(.2, .8, .2, 1);
}
.install-bar[hidden] { display: none; }
.install-bar .mark { width: 36px; height: 36px; }
.install-bar span { flex: 1; font-size: .95rem; line-height: 1.4; }
.install-close { background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 .2rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--delay, 0s); }
.reveal.visible { opacity: 1; transform: none; }

/* Page fade when switching language */
.lang-switching main, .lang-switching .site-header .nav { opacity: 0; transition: opacity .2s ease !important; }
main, .site-header .nav { transition: opacity .3s ease; }

/* ---------- Keyframes ---------- */
@keyframes pop   { from { scale: 0; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes blip  { 50% { transform: scale(.55); } }
@keyframes wave  { 0%, 35%, 100% { background: var(--a); } 50%, 85% { background: var(--b); } }
@keyframes bob   { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes flow  { to { background-position: 300% 0; } }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes rise  { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.15); } 100% { transform: translate(-40px, 80px) scale(.9); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes ring  { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes march { to { background-position: 16px 50%; } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes slideUp { from { transform: translateY(120%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.9); } }
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-12deg) scale(1.08); } 85% { transform: rotate(10deg) scale(1.08); } 92% { transform: rotate(-4deg); } }
@keyframes march-diag { to { background-position: 220px 220px; } }

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

/* Circular reveal when switching theme (View Transitions API) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
