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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }

/* */
.entry-content img,
.ab-card img,
.ab-news__media img,
.ab-person__photo img {
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .5em;
  text-wrap: balance;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p, li { text-wrap: pretty; }
p { margin: 0 0 1rem; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::selection { background: var(--brand-100); color: var(--ink); }

/* -------------------------------------------------- Layout helpers */
.ab-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ab-section { padding-block: var(--section-y); }
.ab-section--tint { background: var(--surface-1); }
.ab-section--brand-soft { background: var(--brand-50); }

.ab-section__head { max-width: 720px; margin-bottom: 40px; }
.ab-section__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
  padding-left: 14px;
  position: relative;
}
/* */
.ab-section__eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 2px;
  background: var(--brand);
  transform: translateY(-50%);
}
.ab-section__lead { color: var(--ink-soft); font-size: 1.0625rem; }

/* Buttons */
.ab-btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--on-brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 22px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  min-height: 44px;
  transition-property: background-color, box-shadow, scale, color;
  transition-duration: var(--t-fast);
  transition-timing-function: var(--ease);
}
.ab-btn:hover { background: var(--btn-bg, var(--brand-600)); color: var(--btn-fg); }
.ab-btn:active { scale: 0.96; }

.ab-btn--primary:hover { background: var(--brand-600); }
.ab-btn--accent { --btn-bg: var(--accent); }
.ab-btn--accent:hover { background: var(--accent-600); }

.ab-btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--brand);
  box-shadow: inset 0 0 0 1.5px var(--brand-300);
}
.ab-btn--ghost:hover {
  --btn-fg: var(--brand-600);
  box-shadow: inset 0 0 0 1.5px var(--brand);
  background: var(--brand-50);
}

/* */
.ab-btn--icon-end { padding-right: 20px; }

/* Card base */
.ab-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-border);
  transition-property: box-shadow, transform;
  transition-duration: var(--t-base);
  transition-timing-function: var(--ease);
}
.ab-card:hover { box-shadow: var(--shadow-border-hover); }
.ab-card__title { margin-bottom: 8px; }
.ab-card__text { color: var(--ink-soft); margin: 0; }

/* */
.ab-card--cut { border-top-right-radius: 0; }

/* =================================================================
   HEADER
   ================================================================= */
.ab-header { position: relative; z-index: 50; background: #fff; }

/* */
.ab-topbar {
  border-bottom: 1px solid var(--line);
}
.ab-topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
}
.ab-social { display: flex; gap: 6px; align-items: center; }
.ab-social__link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  transition-property: background-color, color, scale;
  transition-duration: var(--t-fast);
  transition-timing-function: var(--ease);
}
.ab-social__link:hover { background: var(--brand-50); color: var(--brand); }
.ab-social__link:active { scale: 0.96; }
.ab-social__link svg { width: 20px; height: 20px; }

/* */
.ab-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1;
}
.ab-logo:hover { color: var(--ink); }
.ab-logo__mark { width: 34px; height: 34px; flex: none; }
.ab-logo__name b { color: var(--brand); }
.ab-logo__name span { color: var(--accent); }

.ab-usermenu { display: flex; gap: 10px; align-items: center; justify-self: end; }
.ab-usermenu a { font-weight: 500; }
.ab-usermenu .ab-btn { padding: 10px 18px; min-height: 40px; }

/* */
.ab-navbar { border-bottom: 1px solid var(--line); }
.ab-navbar__inner { display: flex; align-items: center; justify-content: center; }

.ab-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.ab-menu > li { position: relative; }

/* */
.ab-menu > li + li::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 1px; height: 80%;
  background: var(--line);
}

.ab-menu li { position: relative; }
.ab-menu a {
  display: flex; align-items: center; gap: 6px;
  padding: 16px 22px;
  font-weight: 500;
  color: var(--ink);
  min-height: 44px;
  transition-property: color, background-color;
  transition-duration: var(--t-fast);
  transition-timing-function: var(--ease);
}
.ab-menu > li > a {
  position: relative;
  border-bottom: 1px solid transparent;
}
/* */
.ab-menu > li:hover > a,
.ab-menu > li.current-menu-item > a,
.ab-menu > li.current-menu-ancestor > a {
  background: var(--brand-50);
  border-bottom-color: var(--brand);
}
.ab-menu > li:hover > a { color: var(--brand); }

.ab-menu .menu-item-has-children > a::before {
  content: "";
  order: 2;
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .55;
}

/* */
.ab-menu .sub-menu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute;
  top: 100%; left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition-property: opacity, transform, visibility;
  transition-duration: var(--t-base);
  transition-timing-function: var(--ease);
  z-index: 60;
}
.ab-menu li:hover > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.ab-menu .sub-menu a { padding: 10px 12px; border-radius: var(--r-sm); font-weight: 500; }
.ab-menu .sub-menu a:hover { background: var(--brand-50); }
/* */
.ab-menu .sub-menu .sub-menu { top: -8px; left: 100%; }
.ab-menu .sub-menu .menu-item-has-children > a::before {
  margin-left: auto;
  transform: rotate(-45deg);
}

/* */
.ab-burger {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  border-radius: var(--r-sm);
  align-items: center; justify-content: center;
  color: var(--ink);
}
.ab-burger:hover { background: var(--brand-50); color: var(--brand); }
.ab-burger span, .ab-burger span::before, .ab-burger span::after {
  content: ""; display: block; position: relative;
  width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}
.ab-burger span::before { position: absolute; top: -7px; }
.ab-burger span::after  { position: absolute; top: 7px; }
.ab-burger[aria-expanded="true"] span { background: transparent; }
.ab-burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.ab-burger[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* =================================================================
   HERO
   ================================================================= */
.ab-hero {
  position: relative;
  background:
    radial-gradient(1200px 400px at 80% -10%, var(--brand-50), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--surface-1) 100%);
  padding-block: clamp(48px, 6vw, 96px);
  overflow: hidden;
}
.ab-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.ab-hero__title { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); margin-bottom: 18px; }
.ab-hero__title em { color: var(--brand); font-style: normal; }
.ab-hero__lead { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 28px; max-width: 52ch; }
.ab-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* */
.ab-hero__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  box-shadow: var(--shadow-pop);
  display: grid; place-items: center;
  color: #fff;
  overflow: hidden;
}
.ab-hero__visual::before,
.ab-hero__visual::after {
  content: "";
  position: absolute;
  width: 64px; height: 64px;
  border: 2px solid rgba(255,255,255,.5);
}
.ab-hero__visual::before { top: 18px; left: 18px; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.ab-hero__visual::after  { bottom: 18px; right: 18px; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.ab-hero__visual svg { width: 46%; opacity: .92; }

/* =================================================================
   FEATURE GRID
   ================================================================= */
.ab-feature {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-border);
  height: 100%;
  transition-property: box-shadow, transform;
  transition-duration: var(--t-base);
  transition-timing-function: var(--ease);
}
.ab-feature:hover { box-shadow: var(--shadow-border-hover); transform: translateY(-3px); }
.ab-feature__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand);
  margin-bottom: 18px;
}
.ab-feature__icon svg { width: 26px; height: 26px; }
.ab-feature--accent .ab-feature__icon { background: var(--accent-50); color: var(--accent); }
.ab-feature h3 { margin-bottom: 8px; }
.ab-feature p { color: var(--ink-soft); margin: 0; }

/* =================================================================
   PEOPLE / EXPERTS
   ================================================================= */
.ab-person { text-align: left; height: 100%; }
.ab-person__photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  border-bottom-right-radius: 0;
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 14px;
  box-shadow: var(--shadow-border);
}
.ab-person__photo > * { width: 100%; height: 100%; object-fit: cover; }
.ab-person__name { font-size: 1.0625rem; margin-bottom: 4px; }
.ab-person__role { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* =================================================================
   PROJECTS
   ================================================================= */
.ab-project {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 220px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-700), var(--brand));
  box-shadow: var(--shadow-border);
  transition-property: box-shadow, transform;
  transition-duration: var(--t-base);
  transition-timing-function: var(--ease);
}
.ab-project:nth-child(even) { background: linear-gradient(135deg, var(--accent-600), var(--accent)); }
.ab-project:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); color: #fff; }
.ab-project__body {
  position: absolute; inset: auto 0 0 0;
  padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(8,18,40,.55));
}
.ab-project__title { color: #fff; margin: 0; font-size: 1.25rem; }

/* =================================================================
   TIMELINE 
   ================================================================= */
.ab-timeline { position: relative; display: grid; gap: 28px; }
.ab-timeline::before {
  content: "";
  position: absolute; left: 7px; top: 6px; bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-100));
}
.ab-timeline__item { position: relative; padding-left: 36px; }
.ab-timeline__dot {
  position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px var(--brand);
}
.ab-timeline__year { font-family: var(--font-head); font-weight: 700; color: var(--brand); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.ab-timeline__text { color: var(--ink-soft); margin: 4px 0 0; }

/* =================================================================
   STATS 
   ================================================================= */
.ab-stat {
  background: #fff; border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--shadow-border); height: 100%;
}
.ab-stat__num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  line-height: 1; margin-bottom: 8px;
}
.ab-stat__label { color: var(--ink-soft); margin: 0; }

/* =================================================================
   PRICING 
   ================================================================= */
.ab-plan {
  background: #fff; border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-border); height: 100%;
  display: flex; flex-direction: column;
  transition-property: box-shadow, transform;
  transition-duration: var(--t-base); transition-timing-function: var(--ease);
}
.ab-plan:hover { box-shadow: var(--shadow-border-hover); }
.ab-plan--featured { box-shadow: var(--shadow-pop); background: var(--brand-50); }
.ab-plan__name { font-size: 1.35rem; margin-bottom: 4px; }
.ab-plan__price { color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-bottom: 16px; }
.ab-plan__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.ab-plan__list li { position: relative; padding-left: 26px; color: var(--ink-soft); }
.ab-plan__list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 14px; height: 9px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.ab-plan .ab-btn { margin-top: auto; justify-content: center; }

/* =================================================================
   NEWS
   ================================================================= */
.ab-news { display: block; height: 100%; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-border);
  transition-property: box-shadow, transform; transition-duration: var(--t-base); transition-timing-function: var(--ease); }
.ab-news:hover { box-shadow: var(--shadow-border-hover); transform: translateY(-3px); }
.ab-news__media { aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.ab-news__media > * { width: 100%; height: 100%; object-fit: cover; }
.ab-news__body { padding: 20px; }
.ab-news__date { color: var(--ink-muted); font-size: .875rem; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.ab-news__title { font-size: 1.15rem; margin: 0; color: var(--ink); }
.ab-news:hover .ab-news__title { color: var(--brand); }

/* =================================================================
   CTA 
   ================================================================= */
.ab-cta {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(32px, 4vw, 56px);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff;
  overflow: hidden;
}
.ab-cta h2 { color: #fff; }
.ab-cta p { color: rgba(255,255,255,.85); max-width: 56ch; }
.ab-cta .ab-btn--primary { background: #fff; color: var(--brand-700); }
.ab-cta .ab-btn--primary:hover { background: #f0f5ff; }
.ab-cta::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
}

/* =================================================================
   CONTENT + SIDEBAR layout
   ================================================================= */
.ab-main { padding-block: 56px; }
.ab-content { min-width: 0; }
.entry-title { margin-bottom: 16px; }
.entry-meta { color: var(--ink-muted); font-size: .9rem; margin-bottom: 24px; }
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content blockquote {
  margin: 1.5rem 0; padding: 16px 22px;
  border-left: 3px solid var(--brand);
  background: var(--brand-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink);
}

.ab-article-card {
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-border); margin-bottom: 28px;
  transition-property: box-shadow; transition-duration: var(--t-base); transition-timing-function: var(--ease);
}
.ab-article-card:hover { box-shadow: var(--shadow-border-hover); }
.ab-article-card__body { padding: 24px; }

.ab-pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.ab-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border-radius: var(--r-sm); background: #fff; color: var(--ink);
  box-shadow: var(--shadow-border); font-weight: 500;
  transition-property: background-color, color, box-shadow; transition-duration: var(--t-fast); transition-timing-function: var(--ease);
}
.ab-pagination .page-numbers:hover { background: var(--brand-50); color: var(--brand); }
.ab-pagination .page-numbers.current { background: var(--brand); color: #fff; }

/* Sidebar */
.ab-sidebar { min-width: 0; }
.ab-widget {
  background: #fff; border-radius: var(--r-lg); padding: 22px;
  box-shadow: var(--shadow-border); margin-bottom: 24px;
}
.ab-widget__title {
  font-size: 1.15rem; margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.ab-widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ab-widget ul a { color: var(--ink-soft); }
.ab-widget ul a:hover { color: var(--brand); }

/* =================================================================
   FOOTER
   ================================================================= */
.ab-footer { margin-top: 64px; }


.ab-footer-top {
  background: var(--footer-bg);
  color: var(--ink);
  border-top: 1px solid var(--footer-line);
}
.ab-footer-top .ab-container { padding-inline: 0; max-width: var(--container-max); }

.ab-footer-top__head {
  text-align: center;
  padding: 40px var(--gutter) 28px;
  border-bottom: 1px solid var(--footer-line);
}
.ab-footer-top__head .ab-section__eyebrow { padding-left: 0; }
.ab-footer-top__head .ab-section__eyebrow::before { content: none; }
.ab-footer-top h2 { color: var(--ink); margin: 0; }


.ab-footer-top .row { --bs-gutter-x: 0; --bs-gutter-y: 0; }
.ab-foot-promo {
  position: relative;
  display: block; height: 100%;
  background: var(--footer-bg);
  padding: 28px var(--gutter);
  transition-property: background-color; transition-duration: var(--t-base); transition-timing-function: var(--ease);
}
.ab-foot-promo:hover { background: #EAEDF2; }
.ab-foot-promo h3 { color: var(--ink); margin-bottom: 6px; }
.ab-foot-promo p { color: var(--ink-soft); margin: 0; }

.ab-footer-top [class*="col-"] + [class*="col-"] .ab-foot-promo::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 80%;
  background: var(--footer-line);
}


.ab-footer-mid {
  background: var(--footer-bg);
}
.ab-footer-mid .ab-container { padding-inline: 0; max-width: var(--container-max); }
.ab-footer-mid .row { --bs-gutter-x: 0; --bs-gutter-y: 0; }
.ab-footer-mid .ab-foot-col {
  position: relative;
  background: var(--footer-bg);
  padding: 40px var(--gutter); height: 100%;
}

.ab-footer-mid [class*="col-"] + [class*="col-"] .ab-foot-col::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 1px; height: 80%;
  background: var(--footer-line);
}
.ab-foot-col h3 { margin-bottom: 16px; }
.ab-foot-menu { columns: 2; list-style: none; margin: 0; padding: 0; }
.ab-foot-menu li { margin-bottom: 10px; break-inside: avoid; }
.ab-foot-menu a { color: var(--ink-soft); }
.ab-foot-menu a:hover { color: var(--brand); }

.ab-foot-news__item { display: block; padding: 10px 0; border-bottom: 1px solid var(--footer-line); }
.ab-foot-news__item:last-child { border-bottom: 0; }
.ab-foot-news__date { color: var(--ink-muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.ab-foot-news__title { color: var(--ink); font-weight: 500; }
.ab-foot-news__item:hover .ab-foot-news__title { color: var(--brand); }

/* */
.ab-sub-form { display: flex; flex-direction: column; gap: 12px; }
.ab-input {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff;
  transition-property: border-color, box-shadow; transition-duration: var(--t-fast); transition-timing-function: var(--ease);
}
.ab-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.ab-form-note { font-size: .8rem; color: var(--ink-muted); margin: 0; }

/* */
.ab-footer-bottom { background: var(--ink-soft); padding-block: 22px; }
.ab-footer-bottom__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.ab-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.ab-legal a, .ab-copy { color: var(--footer-line); font-size: .9rem; }
.ab-legal a { color: var(--brand-300); }
.ab-legal a:hover { color: var(--brand); }

/* =================================================================
   SCROLL REVEAL 
   ================================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition-property: opacity, transform, filter;
  transition-duration: 600ms;
  transition-timing-function: var(--ease);
  will-change: transform, opacity;
}
.js .reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }
.js .reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .ab-btn:active { scale: 1; }
}

/* =================================================================
   RESPONSIVE 
   ================================================================= */
@media (max-width: 991.98px) {
  .ab-hero__grid { grid-template-columns: 1fr; }
  .ab-hero__visual { max-width: 440px; }

  .ab-topbar__inner { grid-template-columns: auto 1fr; row-gap: 10px; }
  .ab-logo { justify-self: start; order: -1; }
  .ab-usermenu { justify-self: end; }
  .ab-social { grid-column: 1 / -1; order: 3; }

  .ab-burger { display: inline-flex; }
  .ab-navbar__inner { position: relative; }
  .ab-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-radius: 0 0 var(--r-md) var(--r-md);
    box-shadow: var(--shadow-pop);
    padding: 8px;
    z-index: 60;
  }
  .ab-menu.is-open { display: flex; }
  .ab-menu > li > a::after { content: none; }
  .ab-menu .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; padding-left: 14px; min-width: 0;
    display: none;
  }
  .ab-menu .sub-menu.is-open { display: block; }
  .ab-menu .menu-item-has-children > a { justify-content: space-between; }
}

/* =================================================================
   МОДАЛЬНЫЕ ОКНА
   ================================================================= */
.ab-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}

.ab-modal.is-open {
  display: flex;
}

.ab-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.ab-modal__content {
  position: relative;
  background: var(--surface-1);
  border-radius: var(--r-lg);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-pop);
  animation: modalSlideIn 0.3s var(--ease);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ab-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: background var(--t-fast) var(--ease);
}

.ab-modal__close:hover {
  background: var(--brand-100);
  color: var(--brand);
}

.ab-modal__close svg {
  width: 16px;
  height: 16px;
}

.ab-modal__body {
  padding: 32px;
}

/* =================================================================
   ТАБЫ
   ================================================================= */
.ab-tabs {
  margin-bottom: 32px;
}

.ab-tabs__nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--surface-2);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ab-tabs__nav::-webkit-scrollbar {
  display: none;
}

.ab-tabs__tab {
  padding: 12px 20px;
  border: none;
  background: none;
  color: var(--ink-soft);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
}

.ab-tabs__tab:hover {
  color: var(--brand);
}

.ab-tabs__tab.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.ab-tabs__panel {
  display: none;
  animation: tabFadeIn 0.3s var(--ease);
}

.ab-tabs__panel.is-active {
  display: block;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* =================================================================
   АККОРДЕОН
   ================================================================= */
.ab-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ab-accordion__item {
  background: var(--surface-1);
  border-radius: var(--r-md);
  overflow: hidden;
}

.ab-accordion__trigger {
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: none;
  text-align: left;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--t-fast) var(--ease);
}

.ab-accordion__trigger:hover {
  background: var(--surface-2);
}

.ab-accordion__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease);
}

.ab-accordion__item.is-open .ab-accordion__icon {
  transform: rotate(180deg);
}

.ab-accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-base) var(--ease);
}

.ab-accordion__item.is-open .ab-accordion__content {
  max-height: 1000px;
}

.ab-accordion__inner {
  padding: 0 20px 16px;
  color: var(--ink-soft);
}
