/* =========================================================
   Dr. Safwat Shaker Labs — front-end styles
   Brand: red + black (from the logo) with a warm amber accent
   ========================================================= */
:root {
  --brand: #D8211E;
  --ink: #151515;
  --accent: #F6A623;
  --brand-dark: color-mix(in srgb, var(--brand) 82%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 9%, #fff);
  --brand-line: color-mix(in srgb, var(--brand) 22%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, #fff);
  --cream: #FFF8EE;
  --paper: #FFFFFF;
  --line: #EEE6DA;
  --text: #24211E;
  --muted: #6E6862;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 10, 0, .05), 0 8px 28px rgba(40, 20, 0, .08);
  --shadow-lg: 0 2px 6px rgba(20, 10, 0, .06), 0 24px 60px rgba(40, 20, 0, .14);
  --font: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --display: "Lalezar", "Cairo", sans-serif;
  --wrap: 1200px;
}
.ltr { --display: "Cairo", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.75;
  color: var(--text); background: var(--paper); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
bdi { unicode-bidi: isolate; direction: ltr; display: inline-block; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 860px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--muted); }
.muted-light { color: rgba(255, 255, 255, .7); }

.ic { width: 1.25em; height: 1.25em; flex: none; }
.ic-sm { width: 1em; height: 1em; }
.ic-xs { width: .85em; height: .85em; opacity: .6; }
.rtl .flip { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  padding: .78em 1.4em; border-radius: 999px; font-weight: 700; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 32%, transparent); }
.btn-brand:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: .55em 1.05em; font-size: .9rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--brand); }
.link-arrow:hover { color: var(--brand-dark); }
.link-arrow:hover .ic { transform: translateX(3px); }
.rtl .link-arrow:hover .ic.flip { transform: scaleX(-1) translateX(3px); }

.kicker {
  display: inline-flex; align-items: center; gap: .5em; color: var(--brand);
  font-weight: 800; font-size: .85rem; letter-spacing: .02em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--brand); }
.kicker-light { color: #fff; }
.kicker-light::before { background: var(--accent); }
.h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); line-height: 1.3; font-weight: 900; margin: .25em 0 .35em; color: var(--ink); }
.h3 { font-size: 1.3rem; font-weight: 800; margin: 0 0 .8em; color: var(--ink); }
.lead { font-size: 1.08rem; color: var(--muted); }
.badge { display: inline-block; background: var(--brand); color: #fff; border-radius: 999px; padding: 0 .65em; font-size: .85rem; vertical-align: middle; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: rgba(255, 255, 255, .82); font-size: .84rem; }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 40px; }
.tb-item { display: inline-flex; align-items: center; gap: .45em; }
.tb-item .ic { color: var(--accent); width: 1.05em; }
a.tb-item:hover { color: #fff; }
.tb-spacer { flex: 1; }
.tb-lang { display: inline-flex; align-items: center; gap: .4em; background: rgba(255, 255, 255, .1); padding: 3px 12px; border-radius: 999px; color: #fff; font-weight: 700; }
.tb-lang:hover { background: var(--brand); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .07); }
.header-in { display: flex; align-items: center; gap: 22px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { height: 64px; width: auto; }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.brand-pill {
  font-family: "Lalezar", "Cairo", sans-serif; font-weight: 400; background: var(--brand); color: #fff;
  padding: 3px 14px 0; border-radius: 10px; font-size: 1.32rem; line-height: 1.45; letter-spacing: .01em;
  box-shadow: 0 3px 0 var(--brand-dark);
}
.ltr .brand-pill { font-family: "Cairo", sans-serif; font-weight: 900; font-size: 1.05rem; padding: 4px 12px; }
.brand-sub { font-size: .78rem; color: var(--muted); font-weight: 700; padding-inline-start: 2px; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.main-nav > a, .mega-trigger {
  display: inline-flex; align-items: center; gap: .3em; padding: .55em .85em; border-radius: 10px;
  font-weight: 700; font-size: .96rem; color: var(--ink); position: relative;
}
.main-nav > a:hover, .mega-trigger:hover { color: var(--brand); }
.main-nav > a.on, .has-mega.on .mega-trigger { color: var(--brand); }
.main-nav > a.on::after, .has-mega.on .mega-trigger::after {
  content: ""; position: absolute; inset-inline: .85em; bottom: .2em; height: 3px; border-radius: 3px; background: var(--brand);
}
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 50%; transform: translateX(50%) translateY(6px);
  width: min(660px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 14px; opacity: 0; visibility: hidden; transition: .18s;
}
.ltr .mega { transform: translateX(-50%) translateY(6px); }
.mega::before { content: ""; position: absolute; inset-inline: 0; top: -14px; height: 14px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(50%) translateY(0); }
.ltr .has-mega:hover .mega, .ltr .has-mega:focus-within .mega { transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-grid a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: .92rem; }
.mega-grid a:hover { background: var(--brand-soft); color: var(--brand); }
.mega-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; color: var(--brand); flex: none; }
.mega-all { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem; }
.mega-all:hover { background: var(--brand); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; place-items: center; cursor: pointer; }
.burger .ic { width: 24px; height: 24px; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(10, 8, 6, .5); }
.drawer[hidden] { display: none; }
.drawer-panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(360px, 88vw); background: #fff;
  padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; animation: slideIn .22s ease-out;
}
.ltr .drawer-panel { animation-name: slideInL; }
@keyframes slideIn { from { transform: translateX(-100%); } }
@keyframes slideInL { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.drawer-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.drawer-brand img { height: 46px; width: auto; max-width: 40px; object-fit: contain; flex: none; }
.drawer-brand .brand-pill { font-size: 1.05rem; padding: 2px 10px 0; white-space: nowrap; }
.ltr .drawer-brand .brand-pill { font-size: .85rem; padding: 3px 10px; }
.drawer-close { flex: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav > a, .drawer-nav summary { padding: 12px 6px; border-bottom: 1px solid var(--line); font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; }
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav summary { list-style: none; }
.drawer-nav details a { display: block; padding: 8px 14px; font-size: .95rem; color: var(--muted); }
.drawer-nav details a:hover { color: var(--brand); }
.drawer-lang { justify-content: flex-start !important; color: var(--brand); }
.drawer-phones { display: grid; gap: 8px; margin-top: auto; }
.drawer-phones .btn { justify-content: flex-start; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); padding: 56px 0 96px; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 420px at 85% 15%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    radial-gradient(520px 380px at 10% 90%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; background: #fff; border: 1px solid var(--line);
  padding: .35em 1em; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--ink); box-shadow: var(--shadow);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.hero-title {
  font-family: var(--display); font-weight: 400; color: var(--ink);
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.1rem); line-height: 1.25; margin: .35em 0 .3em;
}
.ltr .hero-title { font-weight: 900; line-height: 1.12; letter-spacing: -.015em; }
.hero-text { font-size: 1.12rem; color: var(--muted); max-width: 34em; margin: 0 0 1.5em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-search {
  margin-top: 26px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 6px; padding-inline-start: 16px; box-shadow: var(--shadow); max-width: 520px;
}
.hero-search .ic { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 10px 0; }
.hero-search button { border: 0; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 18px; font-weight: 700; cursor: pointer; }
.hero-search button:hover { background: var(--brand); }

.hero-media { position: relative; justify-self: center; width: min(100%, 470px); }
.hero-frame {
  border-radius: 30px; overflow: hidden; background: #fff; padding: 10px; box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}
.ltr .hero-frame { transform: rotate(2deg); }
.hero-frame img { border-radius: 22px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero-badge {
  position: absolute; inset-inline-start: -26px; bottom: 34px; background: var(--brand); color: #fff;
  border-radius: 22px; padding: 14px 20px; text-align: center; box-shadow: 0 16px 36px color-mix(in srgb, var(--brand) 40%, transparent);
  display: flex; flex-direction: column; line-height: 1.1; border: 4px solid #fff;
}
.hero-badge strong { font-family: "Lalezar", var(--font); font-weight: 400; font-size: 2.6rem; line-height: 1; padding-top: 6px; }
.hero-badge span { font-weight: 700; font-size: .85rem; }
.hero-chip {
  position: absolute; inset-inline-end: -14px; top: -16px; background: var(--ink); color: #fff; font-weight: 800;
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: .95rem;
}

/* ---------- Features ---------- */
.features { position: relative; z-index: 2; margin-top: -54px; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.feat { display: flex; gap: 14px; align-items: flex-start; padding: 22px 20px; }
.feat + .feat { border-inline-start: 1px solid var(--line); }
.feat-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.feat-ic .ic { width: 26px; height: 26px; }
.feat strong { display: block; font-weight: 800; color: var(--ink); line-height: 1.4; }
.feat span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.55; margin-top: 2px; }

/* ---------- Stats ---------- */
.stats { padding: 56px 0 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 10px; }
.stat strong { display: block; font-family: "Lalezar", var(--font); font-weight: 400; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); color: var(--brand); line-height: 1.15; }
.stat span { font-weight: 700; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-tint { background: var(--cream); }
.section-dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; inset-inline-end: -160px; top: -200px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 45%, transparent), transparent 65%); opacity: .55;
}
.section-dark .h2 { color: #fff; }
.section-dark .wrap { position: relative; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.sec-head p { margin: 0; max-width: 40em; }

/* About on home */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: var(--cream); min-height: 220px; object-fit: cover; }
.about-year {
  position: absolute; inset-inline-end: -18px; bottom: -22px; background: var(--ink); color: #fff; border-radius: 18px;
  padding: 12px 22px; text-align: center; line-height: 1.1; border: 4px solid #fff;
}
.about-year span { display: block; font-size: .8rem; font-weight: 700; color: var(--accent); }
.about-year strong { font-family: "Lalezar", var(--font); font-weight: 400; font-size: 2.2rem; }
.motto { font-family: var(--display); font-size: 1.6rem; color: var(--brand); margin: .2em 0 1em; }
.ltr .motto { font-weight: 900; font-size: 1.3rem; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.cat-grid-lg { margin-top: 30px; }
.cat-card {
  display: flex; flex-direction: column; gap: 12px; padding: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); transition: transform .18s, box-shadow .18s, border-color .18s; position: relative; overflow: hidden;
}
.cat-card::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: right; transition: transform .25s; }
.ltr .cat-card::after { transform-origin: left; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-line); }
.cat-card:hover::after { transform: scaleX(1); }
.cat-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; transition: .2s; }
.cat-ic .ic { width: 28px; height: 28px; }
.cat-card:hover .cat-ic { background: var(--brand); color: #fff; }
.cat-name { font-weight: 800; font-size: 1.06rem; color: var(--ink); line-height: 1.45; flex: 1; }
.cat-meta { display: flex; align-items: center; justify-content: space-between; font-size: .88rem; font-weight: 700; color: var(--muted); }
.cat-card:hover .cat-meta { color: var(--brand); }

/* Slider */
.slides-sec { padding-top: 0; }
.section-tint + .slides-sec { padding-top: 76px; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg); }
.slider-track { display: grid; }
.slide { grid-area: 1 / 1; margin: 0; opacity: 0; transition: opacity .7s; pointer-events: none; }
.slide.is-on { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: auto; max-height: 460px; object-fit: cover; }
.slide figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 28px 22px; color: #fff; font-weight: 800; font-size: 1.3rem; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.sl-btn {
  position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
}
.sl-btn:hover { background: var(--brand); color: #fff; }
.sl-prev { inset-inline-start: 14px; }
.sl-next { inset-inline-end: 14px; }
.rtl .sl-next .ic { transform: scaleX(-1); }
.ltr .sl-prev .ic { transform: scaleX(-1); }
.sl-dots { position: absolute; bottom: 14px; inset-inline: 0; display: flex; justify-content: center; gap: 7px; }
.sl-dots button { width: 9px; height: 9px; border-radius: 9px; border: 0; background: rgba(255, 255, 255, .55); cursor: pointer; padding: 0; transition: width .25s; }
.sl-dots button.on { width: 26px; background: #fff; }

/* Accordion */
.guide-home { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.guide-intro { position: sticky; top: 110px; }
.acc { display: grid; gap: 10px; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.acc-item[open] { border-color: var(--brand-line); box-shadow: var(--shadow); }
.acc-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 15px 18px; font-weight: 800; color: var(--ink); }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary > span:not(.acc-n) { flex: 1; }
.acc-ic { transition: transform .2s; color: var(--muted); }
.acc-item[open] .acc-ic { transform: rotate(180deg); color: var(--brand); }
.acc-n { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: .85rem; flex: none; }
.acc-body { padding: 0 18px 16px; color: var(--muted); }
.acc-cards .acc-body { padding-inline-start: 60px; }
.acc-body p { margin: 0 0 .5em; }
.acc-body ul { margin: 0; padding-inline-start: 1.2em; }
.acc-body li { margin-bottom: .35em; }
.acc-body li::marker { color: var(--brand); }

/* Branches */
.branch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.branch-card { background: #fff; color: var(--text); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 170px 1fr; box-shadow: var(--shadow); border: 1px solid var(--line); }
.branch-img { background: var(--cream); }
.branch-img img { width: 100%; height: 100%; object-fit: cover; min-height: 100%; }
.branch-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.branch-body h3 { display: flex; align-items: center; gap: .5em; margin: 0; font-size: 1.25rem; font-weight: 900; color: var(--ink); }
.branch-body h3 .ic { color: var(--brand); }
.branch-addr { display: flex; gap: .5em; margin: 0; color: var(--muted); font-weight: 600; }
.branch-addr .ic { margin-top: .3em; color: var(--brand); }
.branch-phones { display: flex; flex-wrap: wrap; gap: 8px; }
.ph { display: inline-flex; align-items: center; gap: .4em; padding: 6px 12px; border-radius: 10px; background: var(--cream); font-weight: 700; font-size: .92rem; border: 1px solid var(--line); }
.ph:hover { border-color: var(--brand); color: var(--brand); }
.ph-main { background: var(--brand); color: #fff; border-color: var(--brand); font-size: 1rem; }
.ph-main:hover { background: var(--brand-dark); color: #fff; }
.notice-bar { display: flex; align-items: center; justify-content: center; gap: .6em; margin: 26px 0 0; padding: 12px 18px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 255, 255, .25); font-weight: 800; }
.notice-bar .ic { color: var(--accent); }
.notice-light { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 50%, #fff); color: var(--ink); }
.notice-light .ic { color: var(--brand); }

/* Gallery */
.gal-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gal-grid { columns: 4 240px; column-gap: 14px; }
.gal-grid .gal-item { margin-bottom: 14px; break-inside: avoid; }
.gal-item { display: block; position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream); }
.gal-strip .gal-item { aspect-ratio: 4 / 3; }
.gal-strip .gal-item img { width: 100%; height: 100%; object-fit: cover; }
.gal-item img { transition: transform .4s; width: 100%; }
.gal-item:hover img { transform: scale(1.05); }
.gal-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 18px 12px 8px; color: #fff; font-weight: 700; font-size: .9rem; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(8, 6, 4, .92); display: grid; place-items: center; padding: 30px; }
.lb img { max-height: 86vh; max-width: 92vw; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: var(--brand); }
.lb .lb-close { top: 18px; inset-inline-end: 18px; }
.lb .lb-prev { inset-inline-start: 18px; top: 50%; translate: 0 -50%; }
.lb .lb-next { inset-inline-end: 18px; top: 50%; translate: 0 -50%; }
.rtl .lb .lb-next .ic, .ltr .lb .lb-prev .ic { transform: scaleX(-1); }

/* ---------- Inner pages ---------- */
.page-head { background: var(--ink); color: #fff; padding: 46px 0 50px; position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 90% 0%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%),
              radial-gradient(400px 260px at 0% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.page-head .wrap { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: rgba(255, 255, 255, .65); font-weight: 600; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: var(--accent); }
.page-title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); font-weight: 900; margin: .2em 0 0; line-height: 1.3; }
.page-sub { margin: .4em 0 0; color: rgba(255, 255, 255, .72); font-size: 1.05rem; }

.prose { font-size: 1.08rem; line-height: 1.95; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { color: var(--ink); line-height: 1.4; }
.prose strong { color: var(--ink); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 1.4em 0; padding: 18px 22px; background: var(--brand-soft); border-inline-start: 5px solid var(--brand);
  border-radius: 12px; font-size: 1.15rem; color: var(--ink);
}
.prose img { border-radius: 12px; margin: 1em 0; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-left { text-align: left; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-direction-rtl { direction: rtl; }
.page-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: start; }
.page-aside { position: sticky; top: 110px; display: grid; gap: 16px; }
.page-aside img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; background: var(--cream); }
.aside-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.aside-card strong { font-family: "Lalezar", var(--font); font-weight: 400; font-size: 2.6rem; color: var(--accent); line-height: 1; padding-top: 6px; }
.aside-card span { font-weight: 700; flex: 1; }

/* Tests */
.big-search {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--line); border-radius: 18px;
  padding: 8px; padding-inline-start: 18px; box-shadow: var(--shadow); max-width: 760px; margin-inline: auto;
}
.big-search:focus-within { border-color: var(--brand); }
.big-search .ic { color: var(--muted); width: 1.4em; height: 1.4em; }
.big-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 1.08rem; padding: 10px 0; background: transparent; }
.results { margin-top: 34px; }
.empty { display: flex; align-items: center; gap: .5em; flex-wrap: wrap; padding: 18px; background: var(--cream); border-radius: 12px; color: var(--muted); font-weight: 600; }
.empty a { color: var(--brand); font-weight: 800; }

.cat-layout { display: grid; grid-template-columns: 290px 1fr; gap: 30px; align-items: start; }
.cat-side { position: sticky; top: 104px; display: grid; gap: 16px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.side-title { font-size: .95rem; font-weight: 800; margin: 4px 8px 10px; color: var(--muted); }
.side-nav { display: grid; gap: 2px; max-height: 60vh; overflow-y: auto; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-weight: 700; font-size: .92rem; line-height: 1.4; }
.side-nav a .ic { color: var(--brand); width: 1.15em; }
.side-nav a:hover { background: var(--cream); }
.side-nav a.on { background: var(--brand); color: #fff; }
.side-nav a.on .ic { color: #fff; }
.side-help { background: var(--cream); display: grid; gap: 10px; justify-items: start; padding: 18px; }
.side-help p { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.6; }
.cat-intro { margin-bottom: 18px; }

.filter { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; margin-bottom: 14px; }
.filter:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.filter .ic { color: var(--muted); }
.filter input { flex: 1; border: 0; outline: 0; padding: 10px 0; background: transparent; min-width: 0; }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow); }
.tests-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.tests-table thead th {
  position: sticky; top: 0; background: var(--ink); color: #fff; text-align: start; padding: 13px 16px; font-weight: 800; font-size: .9rem; z-index: 1;
}
.tests-table td { padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top; text-align: start; }
.tests-table td[dir="ltr"] { text-align: left; }
.rtl .tests-table td[dir="ltr"] { text-align: right; }
.tests-table tbody tr:not(.sec-row):hover td { background: var(--cream); }
.tests-table .num { width: 64px; color: var(--muted); font-weight: 700; text-align: center !important; }
.tests-table .tname { font-weight: 700; color: var(--ink); }
.tests-table .tname small { display: block; font-weight: 600; color: var(--brand); font-size: .82rem; margin-top: 3px; line-height: 1.5; }
.tests-table td a { color: var(--brand); font-weight: 700; }
.sec-row th { background: var(--brand-soft); color: var(--brand); text-align: start; padding: 11px 16px; font-weight: 900; border-top: 1px solid var(--brand-line); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; margin-top: 40px; align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.info-list .ic { color: var(--brand); width: 1.5em; height: 1.5em; margin-top: .1em; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; }
.form label span { font-weight: 700; font-size: .92rem; }
.form input, .form textarea { width: 100%; border: 1px solid var(--line); background: var(--cream); border-radius: 12px; padding: 11px 14px; outline: 0; transition: .15s; }
.form input:focus, .form textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.form .btn { justify-self: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; inset-inline-start: -9999px; height: 0; overflow: hidden; }
.alert { display: flex; align-items: center; gap: .6em; padding: 12px 16px; border-radius: 12px; font-weight: 700; margin: 0; }
.alert-ok { background: #E9F8EE; color: #116B34; }
.alert-err { background: var(--brand-soft); color: var(--brand-dark); }
.branch-grid-light .branch-card { box-shadow: var(--shadow); }

/* 404 */
.nf { padding: 100px 0; }
.nf-code { font-family: "Lalezar", var(--font); font-size: 7rem; line-height: 1; color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: #0E0E0E; color: rgba(255, 255, 255, .7); padding-top: 60px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.1fr 1fr; gap: 36px; padding-bottom: 40px; }
.brand-light .brand-sub { color: var(--accent); }
.f-about p { margin: 16px 0 0; line-height: 1.8; }
.f-notice { display: flex; gap: .5em; align-items: center; color: #fff; font-weight: 700; }
.f-notice .ic { color: var(--accent); }
.f-title { color: #fff; font-size: 1.05rem; font-weight: 800; margin: 0 0 16px; }
.f-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.f-links a:hover, .f-phones a:hover, .fb-in a:hover { color: #fff; }
.f-branch { display: grid; gap: 2px; margin-bottom: 16px; }
.f-branch strong { color: #fff; }
.f-phones { display: flex; flex-wrap: wrap; gap: 4px 12px; font-weight: 700; }
.f-hours { display: flex; gap: .6em; align-items: flex-start; margin: 0 0 12px; }
.f-hours .ic { color: var(--accent); margin-top: .3em; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; font-size: .85rem; }
.fb-in { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fb-in a { color: var(--accent); font-weight: 700; }

/* WhatsApp */
.wa-float { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 55; display: flex; align-items: center; gap: 10px; flex-direction: row-reverse; }
.wa-btn {
  position: relative; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37, 211, 102, .5); transition: transform .2s;
}
.wa-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: waPulse 2.2s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-btn .ic { width: 32px; height: 32px; }
.wa-float:hover .wa-btn { transform: scale(1.07); }
.wa-label {
  background: #fff; color: var(--ink); font-weight: 800; font-size: .9rem; padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14); white-space: nowrap; opacity: 0; transform: translateX(-8px); transition: .2s; pointer-events: none;
}
.rtl .wa-label { transform: translateX(8px); }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { opacity: 1; transform: none; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1DA851; }
.btn-wa .ic { width: 1.25em; height: 1.25em; }
.branch-body .btn-wa { align-self: flex-start; }
.f-wa { display: inline-flex; align-items: center; gap: .35em; color: #25D366; }
.f-wa .ic { width: 1.1em; height: 1.1em; }
.wa-li .ic { color: #25D366 !important; }
@media (max-width: 640px) { .wa-float { bottom: 16px; inset-inline-start: 16px; } .wa-btn { width: 56px; height: 56px; } .wa-label { display: none; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .main-nav { display: none; }
  .burger { display: grid; }
  .header-cta { margin-inline-start: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero { padding: 36px 0 90px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { width: min(100%, 420px); }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .feat:nth-child(3) { border-inline-start: 0; }
  .feat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .guide-home, .page-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .guide-intro, .page-aside { position: static; }
  .cat-layout { grid-template-columns: 1fr; }
  .cat-side { position: static; order: 2; }
  .gal-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding-inline: 16px; }
  .hide-sm { display: none !important; }
  .hide-md { display: none !important; }
  .header-in { min-height: 72px; gap: 12px; }
  .brand-mark { height: 50px; }
  .brand-pill { font-size: 1.1rem; padding: 2px 10px 0; }
  .ltr .brand-pill { font-size: .9rem; }
  .brand-sub { font-size: .7rem; }
  .hero-badge { inset-inline-start: -6px; padding: 10px 14px; }
  .hero-badge strong { font-size: 2rem; }
  .hero-chip { inset-inline-end: 10px; top: -12px; font-size: .85rem; }
  .hero-actions .btn { flex: 1; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat + .feat { border-inline-start: 0; border-top: 1px solid var(--line); }
  .section { padding: 56px 0; }
  .branch-card { grid-template-columns: 1fr; }
  .branch-img img { aspect-ratio: 16 / 9; height: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .acc-cards .acc-body { padding-inline-start: 18px; }
  .tests-table { font-size: .9rem; }
  .tests-table td, .tests-table thead th { padding: 10px 10px; }
  .tests-table .num { width: 40px; }
  .about-year { inset-inline-end: 8px; }
  .topbar-in { gap: 10px; }
}
@media (max-width: 380px) {
  .brand-sub { display: none; }
}
