/* =========================================================
   Dark Sistem – درباره ما
   Uses main.css tokens → light + dark. RTL · mobile-first overrides. Prefix: ab-
   Breakpoints: ≥1200 · ≤1023 (tablet) · ≤860 · ≤700 · ≤560 · ≤380
   ========================================================= */

[hidden] { display: none !important; }
.ab { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.ab .i { flex: none; }
.ab-section { padding-top: clamp(2.6rem, 5.5vw, 5rem); }

/* ---------- shared bits ---------- */
.ab-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; width: fit-content; padding: .22rem .85rem; border: 1px solid rgba(167, 139, 250, .45); border-radius: 99px;
  background: rgba(139, 92, 246, .16); color: #d8ccff; font-size: .8rem; font-weight: 700; line-height: 1.7;
}
.ab-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.ab-eyebrow--accent { border-color: var(--line); background: var(--accent-soft); color: var(--accent); }
:root[data-theme="dark"] .ab-eyebrow--accent { color: #c8b2ff; }

.ab-btn-o {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .6rem 1.5rem; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px;
  background: rgba(255, 255, 255, .07); color: #fff; font-size: .95rem; font-weight: 700; line-height: 1.5; cursor: pointer; backdrop-filter: blur(4px);
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.ab-btn-o:hover { background: #fff; border-color: #fff; color: #160f45; transform: translateY(-1px); }
.ab-btn-o--accent { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); backdrop-filter: none; }
.ab-btn-o--accent:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
:root[data-theme="dark"] .ab-btn-o--accent { color: #d8ccff; }
:root[data-theme="dark"] .ab-btn-o--accent:hover { color: #fff; }

.ab-ic {
  display: grid; place-items: center; width: 54px; height: 54px; flex: none; border: 1px solid var(--line); border-radius: 15px;
  background: linear-gradient(145deg, var(--accent-soft), transparent); color: var(--accent);
}
.ab-ic .i { width: 26px; height: 26px; }
.ab-ic--sm { width: 42px; height: 42px; border-radius: 12px; }
.ab-ic--sm .i { width: 21px; height: 21px; }
.ab-ic--dark { border-color: rgba(167, 139, 250, .35); background: rgba(139, 92, 246, .22); color: #d8ccff; }
:root[data-theme="dark"] .ab-ic { color: #c8b2ff; }

.ab-head { max-width: 640px; margin: 0 auto clamp(1.5rem, 3.2vw, 2.6rem); text-align: center; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.ab-head h2, .ab-story__text h2 { font-size: clamp(1.4rem, 2.9vw, 2.05rem); font-weight: 800; line-height: 1.55; color: var(--text-strong); }
.ab-head p:last-child { font-size: clamp(.88rem, 1.4vw, .98rem); line-height: 2; color: var(--muted); }

/* scroll reveal (only when JS is running; content is visible without it) */
.ab-js .ab-reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.ab-js .ab-reveal.is-in { opacity: 1; transform: none; }
.ab-why li:nth-child(3n+2), .ab-flow li:nth-child(2) { transition-delay: .08s; }
.ab-why li:nth-child(3n), .ab-flow li:nth-child(3) { transition-delay: .16s; }
.ab-flow li:nth-child(4) { transition-delay: .24s; }

/* ---------- hero ---------- */
.ab-hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  min-height: clamp(320px, 38vw, 440px); margin-top: 1rem; padding: clamp(1.2rem, 3.2vw, 2.4rem) clamp(1.2rem, 3.4vw, 3rem) clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #04030f; color: #fff;
}
.ab-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 15% center; }
.ab-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(4, 3, 15, .96) 0, rgba(4, 3, 15, .84) 38%, rgba(4, 3, 15, .2) 78%), linear-gradient(to top, rgba(4, 3, 15, .8), transparent 45%); }
.ab-hero__body { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; max-width: min(100%, 580px); }
.ab-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; margin: 0 0 .4rem; padding: 0; font-size: .8rem; color: #b9b3e0; }
.ab-crumbs li { display: inline-flex; align-items: center; gap: .5rem; }
.ab-crumbs li + li::before { content: "‹"; opacity: .6; }
.ab-crumbs a:hover { color: #fff; }
.ab-crumbs li > span { color: #fff; }
.ab-hero h1 { text-wrap: balance; font-size: clamp(1.7rem, 4.4vw, 3.1rem); font-weight: 800; line-height: 1.5; color: #fff; }
.ab-hero h1 span { color: #b79bff; }
.ab-hero__lead { max-width: 52ch; font-size: clamp(.9rem, 1.6vw, 1.08rem); line-height: 2.05; color: #d8d3ff; }
.ab-hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .3rem; }
.ab-hero__perks { display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; margin: 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.ab-hero__perks li { display: inline-flex; align-items: center; gap: .5rem; font-size: .84rem; font-weight: 500; color: #e9e5ff; }
.ab-hero__perks .i { width: 20px; height: 20px; color: #b79bff; }

/* ---------- story ---------- */
.ab-story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.6rem, 4.5vw, 4.5rem); align-items: center; }
.ab-story__text { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; min-width: 0; }
.ab-story__text p:not(.ab-eyebrow) { font-size: clamp(.9rem, 1.4vw, 1rem); line-height: 2.1; color: var(--muted); }
.ab-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.2rem; width: 100%; margin-top: .4rem; }
.ab-checks li { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; font-weight: 600; line-height: 1.8; color: var(--text); }
.ab-checks .i { width: 22px; height: 22px; padding: 3px; margin-top: .2rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); stroke-width: 2.4; }

.ab-story__media { position: relative; min-width: 0; }
.ab-story__media::before { content: ""; position: absolute; z-index: -1; inset: 8% -4% -6% 8%; border-radius: var(--r-lg); background: radial-gradient(70% 70% at 30% 30%, var(--accent-soft), transparent 70%); }
.ab-story__frame { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); background: #04030f; }
.ab-story__frame img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 28% center; }
.ab-float {
  position: absolute; inset-inline-start: -1.2rem; bottom: -1.3rem; display: flex; align-items: center; gap: .8rem; padding: .8rem 1.1rem .8rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--shadow); line-height: 1.5;
}
:root[data-theme="dark"] .ab-float { background: #120f2e; }
.ab-float__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--btn-bg); color: #fff; box-shadow: var(--btn-shadow); }
.ab-float strong { display: block; font-size: .9rem; color: var(--text-strong); }
.ab-float small { font-size: .76rem; color: var(--muted); }

/* ---------- stats ---------- */
.ab-stats { margin-top: clamp(2.6rem, 5.5vw, 5rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
:root[data-theme="dark"] .ab-stats { background: linear-gradient(180deg, #120f2e, #0a0820); }
.ab-stats ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ab-stats li { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: clamp(1.1rem, 2.6vw, 2rem) .8rem; text-align: center; }
.ab-stats li + li { border-inline-start: 1px solid var(--line); }
.ab-stats b {
  font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="dark"] .ab-stats b { background-image: linear-gradient(135deg, #c8b2ff, #8b5cf6); }
.ab-stats span { font-size: clamp(.78rem, 1.3vw, .9rem); line-height: 1.8; color: var(--muted); }

/* ---------- why us ---------- */
.ab-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 1.8vw, 1.3rem); }
.ab-card {
  display: flex; flex-direction: column; gap: .7rem; padding: clamp(1.1rem, 2vw, 1.6rem); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s, opacity .65s ease;
}
:root[data-theme="dark"] .ab-card { background: linear-gradient(180deg, #120f2e, #0a0820); }
.ab-card:hover { border-color: var(--accent-2); transform: translateY(-4px); }
.ab-js .ab-card.ab-reveal:not(.is-in) { transform: translateY(18px); }
.ab-card h3 { font-size: 1.05rem; font-weight: 800; line-height: 1.6; color: var(--text-strong); }
.ab-card p { font-size: .88rem; line-height: 2; color: var(--muted); }

/* ---------- services (always dark band) ---------- */
.ab-services {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); gap: clamp(1.4rem, 3.5vw, 3rem); align-items: center;
  margin-top: clamp(2.6rem, 5.5vw, 5rem); padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid rgba(139, 92, 246, .4); border-radius: var(--r-lg); color: #fff;
  background: radial-gradient(60% 90% at 0% 0%, rgba(124, 58, 237, .45), transparent 70%), radial-gradient(50% 80% at 100% 100%, rgba(79, 70, 229, .35), transparent 70%), linear-gradient(135deg, #0b0828, #17104a);
}
.ab-services__head { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.ab-services h2 { font-size: clamp(1.4rem, 2.9vw, 2.05rem); font-weight: 800; line-height: 1.55; color: #fff; }
.ab-services__head p:last-child { font-size: .92rem; line-height: 2; color: #d0c9f5; }
.ab-srv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; counter-reset: srv; }
.ab-srv li { position: relative; display: flex; align-items: flex-start; gap: .9rem; padding: 1.1rem; border: 1px solid rgba(167, 139, 250, .28); border-radius: var(--r-md); background: rgba(255, 255, 255, .05); backdrop-filter: blur(6px); transition: background-color .2s, border-color .2s, transform .2s; }
.ab-srv li:hover { background: rgba(255, 255, 255, .09); border-color: rgba(167, 139, 250, .6); transform: translateY(-3px); }
.ab-srv h3 { margin-bottom: .25rem; font-size: .98rem; font-weight: 800; line-height: 1.6; color: #fff; }
.ab-srv p { font-size: .84rem; line-height: 1.95; color: #cfc8f5; }

/* ---------- flow ---------- */
.ab-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.6rem); }
.ab-flow li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
.ab-flow li:not(:last-child)::before { content: ""; position: absolute; top: 27px; inset-inline-start: calc(50% + 38px); width: calc(100% - 76px + clamp(.8rem, 2vw, 1.6rem)); border-top: 2px dashed var(--line); }
.ab-flow__n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--btn-bg); color: #fff; font-size: 1.3rem; font-weight: 800; box-shadow: var(--btn-shadow), 0 0 0 6px var(--accent-soft); }
.ab-flow h3 { margin-top: .5rem; font-size: 1rem; font-weight: 800; line-height: 1.6; color: var(--text-strong); }
.ab-flow p { max-width: 26ch; font-size: .85rem; line-height: 2; color: var(--muted); }

/* ---------- brands ---------- */
.ab-brands { margin-top: clamp(2.6rem, 5.5vw, 5rem); padding-block: clamp(1.4rem, 3vw, 2.2rem); border-block: 1px solid var(--line); text-align: center; }
.ab-brands h2 { margin-bottom: 1.2rem; font-size: .9rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.ab-brands ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem clamp(1.6rem, 5vw, 4.5rem); }
.ab-brands .wm { font-size: clamp(1.3rem, 3.2vw, 2.1rem); color: var(--muted); opacity: .85; transition: color .2s, opacity .2s; }
.ab-brands .wm:hover { color: var(--text-strong); opacity: 1; }
.ab-brands p { margin-top: 1rem; font-size: .8rem; color: var(--muted); }

/* ---------- visit ---------- */
.ab-visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 4rem); align-items: stretch; }
.ab-visit__info { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; min-width: 0; }
.ab-visit__info h2 { font-size: clamp(1.4rem, 2.9vw, 2.05rem); font-weight: 800; line-height: 1.55; color: var(--text-strong); }
.ab-visit__info > p:not(.ab-eyebrow) { font-size: clamp(.9rem, 1.4vw, 1rem); line-height: 2.05; color: var(--muted); }
.ab-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; width: 100%; margin-top: .3rem; }
.ab-contact li { display: flex; align-items: center; gap: .8rem; min-width: 0; padding: .8rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
:root[data-theme="dark"] .ab-contact li { background: linear-gradient(180deg, #120f2e, #0a0820); }
.ab-contact li > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.6; }
.ab-contact small { font-size: .74rem; color: var(--muted); }
.ab-contact strong { font-size: .88rem; font-weight: 700; color: var(--text-strong); overflow-wrap: anywhere; }
.ab-contact a:hover strong { color: var(--accent); }
.ab-visit__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .4rem; }

.ab-visit__map { position: relative; overflow: hidden; min-height: 340px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(145deg, #0b0828, #17104a); box-shadow: var(--shadow); }
.ab-visit__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ab-map__grid { stroke: rgba(167, 139, 250, .16); }
.ab-map__roads { stroke: rgba(139, 92, 246, .4); }
.ab-visit__tag { position: absolute; inset-inline-start: 1rem; bottom: 1rem; padding: .35rem .95rem; border: 1px solid rgba(167, 139, 250, .45); border-radius: 99px; background: rgba(8, 7, 30, .8); color: #fff; font-size: .8rem; font-weight: 600; backdrop-filter: blur(6px); }

/* ---------- final CTA ---------- */
.ab-cta {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap;
  margin-top: clamp(2.6rem, 5.5vw, 5rem); padding: clamp(1.4rem, 4vw, 2.8rem); border: 1px solid rgba(139, 92, 246, .45); border-radius: var(--r-lg); color: #fff;
  background: radial-gradient(60% 120% at 100% 50%, rgba(124, 58, 237, .5), transparent 70%), linear-gradient(135deg, #0b0828, #1a1052);
}
.ab-cta h2 { font-size: clamp(1.25rem, 2.6vw, 1.8rem); font-weight: 800; line-height: 1.6; color: #fff; text-wrap: balance; }
.ab-cta p { margin-top: .3rem; font-size: clamp(.86rem, 1.4vw, .98rem); line-height: 2; color: #d0c9f5; }
.ab-cta__actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 1400px) {
  .ab-hero { min-height: 460px; }
}

@media (max-width: 1023px) {
  .ab-story { grid-template-columns: minmax(0, 1fr); }
  .ab-story__media { max-width: 640px; width: 100%; margin-inline: auto; }
  .ab-float { inset-inline-start: .9rem; bottom: .9rem; }
  .ab-services { grid-template-columns: minmax(0, 1fr); }
  .ab-visit { grid-template-columns: minmax(0, 1fr); }
  .ab-visit__map { min-height: 280px; aspect-ratio: 16 / 9; }
  .ab-hero__bg { object-position: 8% center; }
}

@media (max-width: 860px) {
  .ab-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* vertical timeline */
  .ab-flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ab-flow li { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "n t" "n p"; column-gap: 1rem; row-gap: .1rem; align-items: start; padding-bottom: 1.5rem; text-align: start; }
  .ab-flow li:last-child { padding-bottom: 0; }
  .ab-flow__n { grid-area: n; }
  .ab-flow h3 { grid-area: t; margin-top: .1rem; align-self: end; }
  .ab-flow p { grid-area: p; max-width: none; }
  .ab-flow li:not(:last-child)::before { top: 62px; bottom: 6px; inset-inline-start: 27px; width: 0; height: auto; border-top: 0; border-inline-start: 2px dashed var(--line); }
  .ab-hero::after { background: linear-gradient(to left, rgba(4, 3, 15, .95) 0, rgba(4, 3, 15, .8) 60%, rgba(4, 3, 15, .55) 100%); }
}

@media (max-width: 700px) {
  .ab-stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-stats li:nth-child(3) { border-inline-start: 0; }
  .ab-stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ab-srv { grid-template-columns: minmax(0, 1fr); }
  .ab-contact { grid-template-columns: minmax(0, 1fr); }
  .ab-checks { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .ab-hero { min-height: 0; margin-top: .6rem; gap: 1.4rem; border-radius: 18px; }
  .ab-hero__actions .btn, .ab-hero__actions .ab-btn-o { flex: 1 1 100%; }
  .ab-hero__perks { gap: .5rem 1.1rem; }
  .ab-hero__perks li { font-size: .78rem; }
  .ab-why { grid-template-columns: minmax(0, 1fr); }
  .ab-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic h" "ic p"; column-gap: .9rem; row-gap: .15rem; align-items: start; }
  .ab-card .ab-ic { grid-area: ic; width: 48px; height: 48px; }
  .ab-card h3 { grid-area: h; align-self: center; }
  .ab-card p { grid-area: p; }
  .ab-story__frame img { aspect-ratio: 4 / 3; }
  .ab-float { padding: .6rem .9rem; }
  .ab-float__ic { width: 38px; height: 38px; }
  .ab-visit__actions .btn, .ab-visit__actions .ab-btn-o { flex: 1 1 100%; }
  .ab-visit__map { aspect-ratio: 4 / 3; min-height: 240px; }
  .ab-cta { flex-direction: column; align-items: flex-start; }
  .ab-cta__actions { width: 100%; }
  .ab-cta__actions .btn, .ab-cta__actions .ab-btn-o { flex: 1 1 100%; }
}

@media (max-width: 380px) {
  .ab-stats li { padding-inline: .4rem; }
  .ab-flow li { grid-template-columns: 48px minmax(0, 1fr); column-gap: .8rem; }
  .ab-flow__n { width: 48px; height: 48px; font-size: 1.1rem; }
  .ab-flow li:not(:last-child)::before { top: 54px; inset-inline-start: 23px; }
  .ab-srv li { padding: .9rem; gap: .7rem; }
  .ab-ic--dark { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-js .ab-reveal { opacity: 1; transform: none; transition: none; }
  .ab-card, .ab-srv li, .ab-btn-o { transition: none; }
  .ab-card:hover, .ab-srv li:hover { transform: none; }
}
