/*
Theme Name: AVDI — AVD Integrator WordPress Theme
Theme URI: https://avdi.md
Author: AVD Integrator
Author URI: https://avdi.md
Description: Тема разработана по фирменной логике и брендингу AVD Integrator её подразделением по AI-разработке — NEWERADEVELOPMENT. Кастомная тёмная тема для IT-сервиса и AI-студии: адаптивный дизайн, блог, каталог услуг на пользовательских типах записей и готовность к WooCommerce.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avdi
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, dark, responsive
*/

/* ============================================
   AVD INTEGRATOR — DESIGN TOKENS
   ============================================ */
:root {
  --ink: #0b0d12;
  --ink-soft: #14161d;
  --paper: #111319;
  --surface: #1b1e27;
  --surface-hi: #232734;
  --volt: #3346ff;
  --volt-tint: #7c87ff;
  --volt-soft: rgba(51,70,255,0.18);
  --flux: #ff5027;
  --flux-soft: rgba(255,80,39,0.18);
  --lime: #c8ff4d;
  --text: #f2f1ec;
  --text-muted: #9195a3;
  --on-ink: #f2f1ec;
  --on-ink-muted: #9799a3;
  --line: rgba(242,241,236,0.10);
  --line-on-ink: rgba(242,241,236,0.14);
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
}
::selection { background: var(--volt); color: #fff; }
a { color: inherit; }
img { max-width: 100%; display: block; height: auto; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: 'Onest', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; width: 100%;
  padding: 1.1rem 4%;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 1000;
  background: rgba(11,13,18,0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.nav.scrolled { padding: 0.75rem 4%; border-bottom: 1px solid var(--line); box-shadow: 0 4px 30px rgba(11,13,18,0.05); }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; }
.logo-icon { width: 42px; height: 42px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .main { font-family: 'Onest', sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--text); }
.logo-text .sub { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; color: var(--text-muted); letter-spacing: 0.14em; text-transform: uppercase; }

.nav-links-group { display: flex; align-items: center; gap: 2.25rem; }
.nav-links { display: flex; gap: 2.25rem; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a::before { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: var(--flux); transition: width 0.25s; }
.nav-links a:hover { color: var(--volt-tint); }
.nav-links a:hover::before { width: 100%; }

/* mega-menu dropdown — any nav item with children (e.g. "Магазин" with
   product categories) gets a styled panel instead of the browser's
   default flat submenu. */
.nav-links li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 7px;
  opacity: 0.55;
  transition: transform 0.2s ease;
}
.nav-links li.menu-item-has-children:hover > a::after { transform: rotate(225deg); }
.nav-links .sub-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 1.4rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 320px;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.2rem 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  z-index: 1100;
}
.nav-links li.menu-item-has-children:hover > .sub-menu,
.nav-links li.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-links .sub-menu li { margin: 0; }
.nav-links .sub-menu a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-s);
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links .sub-menu a::before { display: none; }
.nav-links .sub-menu a:hover { background: rgba(51,70,255,0.14); color: var(--volt-tint); }

/* ---- Mega menu (Product-category dropdowns only) ----
   Full-width, two-panel layout: a scannable name+count list on the
   left (flows into 2 text columns — with 25+ categories a flat image
   wall would be enormous, this stays dense and glanceable) and a live
   image preview on the right that swaps as each category is
   hovered/focused, so the "picture" ask is answered without needing
   28 thumbnails rendered at once. */
/* left/right/top on a positioned element resolve against its nearest
   *containing block* — for "position: absolute" that's the narrow <li>
   itself (".nav-links > li { position: relative }"), not the nav bar,
   so "left:4%" collapses to 4% of the menu LABEL's width, and even
   viewport units (vw) don't fix that: they change how the *length* is
   computed, not which edge it's measured from — "left:50vw" still means
   "50vw past the li's own left edge", which is how it ended up almost
   entirely off-screen. The actual fix is "position: fixed" instead —
   .nav has "backdrop-filter", which (like "transform") makes an element
   its own containing block for fixed descendants, so plain percentages
   now correctly resolve against the *nav bar's* full width. */
.nav-links .sub-menu.mega-menu {
  position: fixed;
  left: 4%;
  right: 4%;
  max-width: 1400px;
  min-width: 0;
  margin: 0 auto;
  transform: translateY(8px);
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  grid-template-columns: none;
}
.nav-links li.menu-item-has-children:hover > .sub-menu.mega-menu,
.nav-links li.menu-item-has-children:focus-within > .sub-menu.mega-menu {
  transform: translateY(0);
}
.mega-cat-list { flex: 1 1 auto; min-width: 0; padding: 1.75rem 1.5rem; margin: 0; }
/* CSS Grid, not multi-column ("columns: 2") — multicol's column-balancing
   doesn't fragment flex children (.mega-cat-link) correctly in Chrome and
   visibly overlaps content between columns. Grid cells size independently,
   so this sidesteps that bug entirely. */
.mega-cat-columns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 0.15rem 1.25rem;
}
.mega-cat-columns li { margin: 0; min-width: 0; }

/* every rule below is scoped ".nav-links .sub-menu.mega-menu .mega-cat-link"
   (3 classes) so it reliably beats the plain-submenu ".nav-links
   .sub-menu a" rules above (2 classes + a tag) instead of losing a
   specificity tie-break — those still need to apply as-is to a plain,
   non-mega submenu, so they can't just be deleted. */
.nav-links .sub-menu.mega-menu .mega-cat-link {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem 0.55rem 1rem;
  border-radius: var(--radius-s);
  transition: background 0.15s ease;
}
.nav-links .sub-menu.mega-menu .mega-cat-link::before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
  transition: background 0.2s ease;
}
.nav-links .sub-menu.mega-menu .mega-cat-link:hover,
.nav-links .sub-menu.mega-menu .mega-cat-link:focus-visible,
.nav-links .sub-menu.mega-menu .mega-cat-link.is-active { background: rgba(51,70,255,0.14); }
.nav-links .sub-menu.mega-menu .mega-cat-link:hover::before,
.nav-links .sub-menu.mega-menu .mega-cat-link:focus-visible::before,
.nav-links .sub-menu.mega-menu .mega-cat-link.is-active::before { background: var(--volt); }
.mega-cat-name { flex: 1 1 auto; min-width: 0; font-size: 0.86rem; line-height: 1.3; color: var(--text); }
.mega-cat-link:hover .mega-cat-name,
.mega-cat-link:focus-visible .mega-cat-name,
.mega-cat-link.is-active .mega-cat-name { color: var(--volt-tint); }
.mega-cat-count {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.mega-preview {
  flex: 0 0 340px;
  background: var(--paper);
  border-left: 1px solid var(--line);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mega-preview-img {
  flex: 1 1 auto;
  min-height: 0;
  border-radius: var(--radius-m);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1.25rem;
  transition: opacity 0.15s ease;
}
.mega-preview-img img { width: 100%; height: 100%; object-fit: contain; padding: 1.25rem; }
.mega-preview-placeholder { font-size: 3rem; opacity: 0.35; }
.mega-preview-name {
  flex-shrink: 0;
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  transition: opacity 0.15s ease;
}
.mega-preview-count {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: opacity 0.15s ease;
}

/* between the mega-menu's full two-panel layout and the 900px mobile-nav
   handoff, a fixed 340px preview column leaves the category list too
   narrow for 2 text columns */
@media (max-width: 1150px) {
  .mega-cat-columns { grid-template-columns: 1fr; max-height: 60vh; overflow-y: auto; }
  .mega-preview { flex-basis: 260px; padding: 1.5rem; }
  .mega-preview-img { height: 130px; }
}

.nav-cta {
  padding: 0.65rem 1.4rem; background: var(--volt); border: none; border-radius: 100px;
  color: #fff; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.25s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.nav-cta:hover { background: var(--flux); transform: translateY(-2px); }

.nav-cart {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  color: var(--text);
  text-decoration: none;
  border-radius: 50%;
  transition: background 0.2s;
}
.nav-cart:hover { background: rgba(242,241,236,0.06); }
.nav-cart-count {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--flux); color: #fff;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; font-weight: 700;
  line-height: 1;
  /* mostly still, with a brief glow pulse every few seconds — a gentle
     reminder that something's in the cart, not a constant distraction */
  animation: avdi-cart-pulse 4.5s ease-in-out infinite;
}
@keyframes avdi-cart-pulse {
  0%, 75% { box-shadow: 0 0 0 0 rgba(255, 80, 39, 0); transform: scale(1); }
  85% { box-shadow: 0 0 0 6px rgba(255, 80, 39, 0.35); transform: scale(1.12); }
  95%, 100% { box-shadow: 0 0 0 0 rgba(255, 80, 39, 0); transform: scale(1); }
}
.mobile-nav-cart {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--text); text-decoration: none; font-size: 1.05rem; font-weight: 600;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-family: 'Onest', sans-serif;
}
.mobile-nav-cart .nav-cart-count { position: static; }

.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.mobile-menu-btn span { width: 24px; height: 2px; background: var(--text); transition: all 0.3s; }
.mobile-nav {
  display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--paper); border-bottom: 1px solid var(--line); z-index: 999;
  padding: 1.5rem; flex-direction: column; gap: 0.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.active { display: flex; }
body.no-scroll { overflow: hidden; }
.mobile-nav a { color: var(--text); text-decoration: none; font-size: 1.05rem; font-weight: 600; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-family: 'Onest', sans-serif; }
/* plain top-level links are inline by default, so their border-bottom
   above only ran under the text width — barely visible — while
   "Интернет-магазин" (which has children) gets its divider from the
   full-width <li> instead (see .menu-item-has-children below), making
   it look like the only item with a line. Block-level fixes the rest
   to match. */
.mobile-nav > li > a { display: block; }
/* the "Оставить заявку" pill moved here from the cramped top bar (see
   .nav-cta below) — needs its own rule since ".mobile-nav a" above
   would otherwise flatten it back into a plain list-style link */
.mobile-nav a.mobile-nav-cta {
  justify-content: center;
  font-size: 0.95rem;
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-bottom: none;
  margin-bottom: 1rem;
}

/* submenu accordion (subcategories under e.g. "Магазин") — toggle
   button inserted next to the link by main.js, since touch has no hover */
.mobile-nav li.menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.mobile-nav li.menu-item-has-children > a { flex: 1 1 auto; border-bottom: none; }
.mobile-submenu-toggle {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--text-muted); cursor: pointer;
}
.mobile-submenu-toggle::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.mobile-nav li.is-open .mobile-submenu-toggle::after { transform: rotate(-135deg); }
.mobile-nav .sub-menu { list-style: none; flex-basis: 100%; max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.mobile-nav li.is-open .sub-menu { max-height: 1000px; }
.mobile-nav .sub-menu a { padding: 0.65rem 0 0.65rem 1rem; font-size: 0.95rem; font-weight: 500; color: var(--text-muted); border-bottom: none; }
.mobile-nav .sub-menu li:last-child a { padding-bottom: 1rem; }

/* category rows with a thumbnail + product count — same data as the
   desktop mega-menu, laid out inline since touch has no hover to
   reveal a separate preview panel */
.mobile-nav .sub-menu a.mobile-cat-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0 0.55rem 1rem;
  border-bottom: none;
  font-family: inherit;
  font-weight: 500;
  color: var(--text);
}
.mobile-cat-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-s);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mobile-cat-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 0.4rem; }
.mobile-cat-thumb-placeholder { font-size: 1.3rem; opacity: 0.4; }
.mobile-cat-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.mobile-cat-name { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.mobile-cat-count { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-muted); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 9rem 6% 4rem; position: relative; z-index: 1;
  background: var(--ink); color: var(--on-ink); overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-on-ink) 1px, transparent 1px), linear-gradient(90deg, var(--line-on-ink) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, black 10%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0.45rem 0.9rem 0.45rem 0.6rem;
  background: rgba(242,241,236,0.06); border: 1px solid var(--line-on-ink); border-radius: 100px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; letter-spacing: 0.06em; color: var(--on-ink-muted);
  margin-bottom: 2rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 { font-size: clamp(2.6rem, 7.2vw, 6.6rem); font-weight: 700; line-height: 0.98; margin-bottom: 1.75rem; max-width: 16ch; }
.hero h1 .accent { color: var(--lime); }
.hero h1 .outline { -webkit-text-stroke: 1.5px var(--on-ink); color: transparent; }
.hero-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-top: 2.5rem; }
.hero p { font-size: 1.15rem; color: var(--on-ink-muted); max-width: 46ch; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.btn-primary {
  padding: 1rem 2rem; background: var(--flux); border: none; border-radius: 100px;
  color: #fff; font-weight: 700; font-size: 0.98rem; cursor: pointer; transition: all 0.25s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--lime); color: var(--ink); transform: translateY(-2px); }
.btn-secondary {
  padding: 1rem 2rem; background: transparent; border: 1px solid var(--line-on-ink); border-radius: 100px;
  color: var(--on-ink); font-weight: 600; font-size: 0.98rem; cursor: pointer; transition: all 0.25s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { border-color: var(--on-ink); background: rgba(242,241,236,0.06); }

.hero.hero-light { min-height: 52vh; padding: 9rem 6% 3rem; }
/* Generic page hero (page.php) — plain one/two-word titles ("My account",
   "Корзина"...) look oversized and can crowd the fixed nav at the huge
   homepage-hero size, so scale it down instead of reusing that clamp(). */
.hero.hero-compact { min-height: 32vh; padding-top: 10rem; }
.hero.hero-compact h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 0; }
/* the section right after this hero doesn't need the usual 6.5rem
   section top padding on top of the hero's own bottom padding — that
   combination left a much bigger gap here than on other pages. */
.hero-compact + .section { padding-top: 2.5rem; }

.hero-stats-strip { display: grid; grid-template-columns: repeat(4, auto); gap: 3rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line-on-ink); }
.hero-stats-strip .num { font-family: 'Onest', sans-serif; font-size: 2rem; font-weight: 700; color: var(--on-ink); }
.hero-stats-strip .label { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--on-ink-muted); letter-spacing: 0.05em; text-transform: uppercase; }

/* ============ SECTIONS ============ */
.section { padding: 6.5rem 6%; position: relative; z-index: 1; }
.section.tight { padding-top: 3rem; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 3.5rem; max-width: 1400px; margin-left: auto; margin-right: auto; flex-wrap: wrap; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; color: var(--text); line-height: 1.05; max-width: 14ch; }
.section-header .accent { color: var(--volt-tint); }
.section-header p { color: var(--text-muted); max-width: 34ch; font-size: 1.02rem; padding-bottom: 0.4rem; }
.section-eyebrow { color: var(--flux); margin-bottom: 0.75rem; display: block; }

/* ============ SERVICE CARDS ============ */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m);
  max-width: 1400px; margin: 0 auto;
  /* no overflow:hidden — it used to clip the outer corners cleanly, but
     it also clipped a featured card's glow (box-shadow) top/bottom
     whenever that card sat in the first/last row, while left/right
     stayed visible (those just bleed into a neighbouring card, not the
     grid's own edge). --line is barely-visible (10% opacity) so the
     unclipped background peeking past the rounded corner is a non-issue. */
}
.service-card { background: var(--surface); padding: 2.4rem 2rem; transition: background 0.25s; position: relative; }
.service-card:hover { background: var(--surface-hi); }
/* "Выделить карточку" (ACF true/false on the avdi_service CPT) — a slow
   orange glow breathing around the card, meant to draw the eye toward
   one recommended service without being a loud/flashy sale-style effect. */
.service-card.is-featured,
.ai-card.is-featured {
  z-index: 1;
  animation: avdi-card-breathe 3.5s ease-in-out infinite;
}
@keyframes avdi-card-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,80,39,0); }
  50% { box-shadow: 0 0 28px 6px rgba(255,80,39,0.35); }
}
.service-card .idx { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1.5rem; display: block; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--text); }
.service-card p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 1.4rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; padding: 0.3rem 0.65rem; background: var(--paper); border-radius: 100px; color: var(--text-muted); text-decoration: none; transition: all 0.2s; }
a.tag:hover { background: var(--volt); color: #fff; }

/* Homepage "Чем мы занимаемся" overview cards — image-led instead of
   the tag-list style used on the detail pages, so the four cards read
   at a glance. Inset with its own rounded corners (same treatment as
   .cat-tile-img on the shop page) rather than bled flush to the card's
   own edge — avoids fighting the grid's own outer border-radius. The
   photo gets a duotone treatment (grayscale + a colour-blend overlay)
   tied to which of the two company directions the card belongs to —
   blue for IT-service, orange for AI/dev, the same two colours as the
   diagonal strokes in the logo mark — so the images carry that
   grouping instead of just decorating the card. */
.services-grid-visual .card-img {
  position: relative;
  height: 160px;
  margin: 0 0 1.5rem;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--ink);
}
.services-grid-visual .card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.15) brightness(0.85);
  transition: transform 0.4s ease, filter 0.4s ease;
}
.services-grid-visual .card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--volt);
  mix-blend-mode: color;
}
.services-grid-visual .service-card:nth-child(n+3) .card-img::after { background: var(--flux); }
.services-grid-visual .service-card:hover .card-img img {
  transform: scale(1.06);
  filter: grayscale(0.5) contrast(1.1) brightness(0.95);
}

/* Category tile image (shop page) — inset within the card's own padding
   (not bled to the edges) so neighbouring tiles stay visually separated
   instead of their images running into each other. */
.cat-tile-img { display: block; height: 220px; border-radius: var(--radius-m); overflow: hidden; margin-bottom: 1.5rem; background: var(--paper); }
.cat-tile-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* When a card would otherwise sit alone in the last row, stretch it to
   the full row width instead. Opt-in via .fill-last-odd (used on the
   homepage services grid) — switches from fluid auto-fit to explicit
   per-breakpoint column counts so the "alone in a row" math is exact. */
.services-grid.fill-last-odd { grid-template-columns: repeat(4, 1fr); }
.services-grid.fill-last-odd .service-card:last-child:nth-child(4n+1) { grid-column: 1 / -1; }
@media (max-width: 1300px) {
  .services-grid.fill-last-odd { grid-template-columns: repeat(2, 1fr); }
  .services-grid.fill-last-odd .service-card:last-child:nth-child(4n+1) { grid-column: auto; }
  .services-grid.fill-last-odd .service-card:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .services-grid.fill-last-odd { grid-template-columns: 1fr; }
  .services-grid.fill-last-odd .service-card:last-child { grid-column: auto; }
}

/* ============ STAT BAR ============ */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; max-width: 1400px; margin: 0 auto; }
.stat-item { background: var(--surface); padding: 2.5rem 1.5rem; text-align: center; }
.stat-item .num { font-family: 'Onest', sans-serif; font-size: clamp(2rem, 3.2vw, 2.8rem); font-weight: 700; color: var(--volt-tint); }
.stat-item .label { font-family: 'JetBrains Mono', monospace; color: var(--text-muted); font-size: 0.75rem; margin-top: 0.5rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ============ REVIEWS ============ */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1400px; margin: 0 auto; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 2.2rem; position: relative; }
.review-card .stars { color: var(--flux); margin-bottom: 1.1rem; font-size: 1.1rem; letter-spacing: 2px; }
.review-card p { color: var(--text); font-size: 1rem; margin-bottom: 1.75rem; }
.review-author { display: flex; align-items: center; gap: 1rem; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-hi); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--volt-tint); font-family: 'Onest', sans-serif; }
.review-author .name { font-weight: 600; font-size: 0.94rem; }
.review-author .role { font-size: 0.8rem; color: var(--text-muted); }

/* ============ CTA ============ */
.cta-section { padding: 2rem 6% 7rem; position: relative; z-index: 1; }
.cta-box { max-width: 1400px; margin: 0 auto; background: var(--ink); border: 1px solid rgba(51,70,255,0.35); box-shadow: 0 0 80px rgba(51,70,255,0.14); border-radius: var(--radius-l); padding: 4.5rem 4rem; position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-box::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line-on-ink) 1px, transparent 1px), linear-gradient(90deg, var(--line-on-ink) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 60% 100% at 100% 50%, black, transparent 75%); }
.cta-box .cta-copy { position: relative; z-index: 1; max-width: 560px; }
.cta-box h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); color: var(--on-ink); margin-bottom: 0.75rem; }
.cta-box p { color: var(--on-ink-muted); font-size: 1.05rem; }
.cta-box .btn-primary { position: relative; z-index: 1; flex-shrink: 0; }

/* ============ FOOTER ============ */
.footer { padding: 4.5rem 6% 2rem; background: var(--ink); color: var(--on-ink); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; max-width: 1400px; margin: 0 auto; }
.footer .logo-text .main { color: var(--on-ink); }
.footer .logo-text .sub { color: var(--on-ink-muted); }
.footer-brand p { color: var(--on-ink-muted); margin: 1.1rem 0 1.5rem; font-size: 0.94rem; max-width: 34ch; }
.footer-brand .socials { display: flex; gap: 0.75rem; }
.footer-brand .social { width: 38px; height: 38px; border-radius: 50%; background: rgba(242,241,236,0.06); border: 1px solid var(--line-on-ink); display: flex; align-items: center; justify-content: center; color: var(--on-ink); text-decoration: none; transition: all 0.25s; font-size: 1rem; }
.footer-brand .social:hover { border-color: var(--lime); color: var(--lime); }
.footer h4 { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; font-weight: 500; margin-bottom: 1.4rem; color: var(--on-ink-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.75rem; }
.footer ul li a { color: var(--on-ink); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.footer ul li a:hover { color: var(--lime); }
.footer-hours { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line-on-ink); color: var(--on-ink-muted); font-size: 0.85rem; line-height: 1.7; }
.footer-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding-top: 1.75rem; margin-top: 1.75rem; border-top: 1px solid var(--line-on-ink);
  color: var(--on-ink-muted); font-size: 0.82rem; font-family: 'JetBrains Mono', monospace;
}
.footer-bottom-menu { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.footer-bottom-menu li { display: flex; align-items: center; gap: 0.6rem; }
.footer-bottom-menu li::before { content: '•'; opacity: 0.5; }
.footer .footer-bottom-menu a { color: var(--on-ink-muted); text-decoration: none; font-size: inherit; font-family: inherit; }
.footer .footer-bottom-menu a:hover { color: var(--lime); }

/* ============ MOBILE ============ */
@media (max-width: 900px) {
  .hero-sub { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-stats-strip { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  /* cart stays visible in the compact bar (with its badge) so a
     shopper can see there's something in the cart without opening the
     menu; the CTA pill moves into the mobile menu instead (see
     .mobile-nav-cta) since there wasn't room for both without either
     wrapping to two lines or crowding the hamburger button. */
  .nav-cta { display: none; }
  /* with .nav-links hidden, .nav-links-group's only remaining child is
     the cart — as the middle item in .nav's 3-way space-between layout
     it was floating alone in the middle of the bar. Push it flush
     against the hamburger instead, as one tidy cluster on the right. */
  .nav-links-group { margin-left: auto; margin-right: 1.1rem; }
  .mobile-menu-btn { display: flex; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .cta-box { flex-direction: column; align-items: flex-start; text-align: left; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .footer-bottom { align-items: flex-start; }
}
@media (max-width: 600px) {
  .hero-stats-strip { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-box { padding: 2.5rem 1.75rem; }
  .shop-grid { grid-template-columns: 1fr !important; }
  .section { padding: 4.5rem 6%; }
}

/* ============ SCROLL ANIMATIONS ============ */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============ SHOP ============ */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; max-width: 1400px; margin: 0 auto; }
.shop-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; transition: all 0.3s ease; }
.shop-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.35); border-color: var(--volt); }
.shop-img { position: relative; height: 170px; background: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.shop-img .onsale {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  background: var(--flux);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
}
.shop-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-info { padding: 1.5rem; }
.shop-info h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.6rem; font-family: 'Inter', sans-serif; color: var(--text); }
.shop-info .price { font-family: 'Onest', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--text); }
.shop-info .old-price { text-decoration: line-through; color: var(--text-muted); font-size: 0.85rem; margin-left: 0.5rem; }
.shop-info .price del { color: var(--text-muted); font-weight: 400; font-size: 0.8em; text-decoration: line-through; }
.shop-info .price ins { text-decoration: none; }
.shop-btn { width: 100%; margin-top: 1.1rem; padding: 0.8rem; background: var(--volt); border: none; border-radius: 100px; color: #fff; font-weight: 600; cursor: pointer; transition: all 0.25s; text-decoration: none; display: block; text-align: center; }
.shop-btn:hover { background: var(--volt-tint); }
.shop-note { max-width: 1400px; margin: 0 auto 3rem; padding: 1.5rem 2rem; border: 1px dashed var(--line); border-radius: var(--radius-m); color: var(--text-muted); font-size: 0.92rem; display: flex; gap: 1rem; align-items: flex-start; }
.shop-note strong { color: var(--text); }

/* ============ HOMEPAGE "ЧТО МЫ ПРОДАЁМ" SHOWCASE ============ */
/* 3 category cards per row, each a compact self-contained block (not
   full-width stacked sections like before) — shows everything at once,
   no clicks/tabs needed, and takes far less vertical space. */
.woo-showcase-cats { max-width: 1400px; margin: 0 auto 3rem; }
/* .tag's default background (--paper) blends into the plain page
   background out here (unlike inside a --surface card), making the
   pill invisible until hover — give it a visible background instead. */
.woo-showcase-cats .tag { background: var(--surface); }

.woo-showcase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 1400px; margin: 0 auto; }
.woo-showcase-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.5rem;
}
.woo-showcase-cat-title { font-size: 1.05rem; margin-bottom: 1.1rem; color: var(--text); }
.woo-showcase-cat-title a { text-decoration: none; color: inherit; }
.woo-showcase-cat-title a:hover { color: var(--volt-tint); }

.shop-grid.shop-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; max-width: none; margin: 0; }
.shop-card-sm .shop-img { height: 190px; font-size: 1.6rem; }
/* show the whole product photo instead of cropping it to fill the box */
.shop-card-sm .shop-img img { object-fit: contain; }
.shop-card-sm .shop-info { padding: 0.75rem 0.75rem 0.25rem; }
.shop-card-sm .shop-info h3 { font-size: 0.88rem; margin-bottom: 0; line-height: 1.3; font-weight: 500; }
.shop-card-sm .shop-info .price { font-size: 1rem; }
.shop-card-sm .shop-img .onsale { font-size: 0.6rem; padding: 0.22rem 0.55rem; top: 0.4rem; left: 0.4rem; }

/* price row + "add to cart" icon button, same look as the nav cart icon */
.shop-card-sm .shop-info-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.25rem 0.75rem 0.75rem; }
.shop-cart-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--volt);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s;
  /* barely-visible orange pulse so the button stands out against the
     card without competing with the .is-featured card glow, which is
     the same colour but a much bigger/brighter effect */
  animation: avdi-cart-icon-glow 3.5s ease-in-out infinite;
}
.shop-cart-icon:hover { background: var(--volt-tint); animation: none; }
@keyframes avdi-cart-icon-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,80,39,0); }
  50% { box-shadow: 0 0 8px 2px rgba(255,80,39,0.4); }
}

/* Tablet width (e.g. iPad portrait, ~768px): the 2 category groups per
   row still fit fine, but that only leaves each group half the page
   width, so its 3 product columns get too cramped — drop to 1 per row
   here while keeping the 2-per-row category layout untouched. */
@media (min-width: 701px) and (max-width: 900px) {
  .shop-grid.shop-grid-3 { grid-template-columns: 1fr !important; }
}
@media (max-width: 700px) {
  .woo-showcase-grid { grid-template-columns: 1fr; }
  /* !important to beat the generic ".shop-grid { grid-template-columns:
     1fr !important }" mobile rule further down — that one is meant for
     the full shop page grid, not these compact in-card thumbnails. */
  .shop-grid.shop-grid-3 { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 420px) { .shop-grid.shop-grid-3 { grid-template-columns: 1fr !important; } }

/* ============ PLAIN PAGE CONTENT (page.php) ============
   Styles whatever an admin types into the block editor for an ordinary
   page (Условия использования, Политика конфиденциальности, etc.) —
   the theme has no other say over this markup, so it's generic prose. */
.page-content { color: var(--text-muted); font-size: 1rem; line-height: 1.75; }
.page-content > *:first-child { margin-top: 0; }
.page-content h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--text); line-height: 1.15; margin: 2.5rem 0 1rem; }
.page-content h3 { font-size: 1.3rem; color: var(--text); margin: 2rem 0 0.9rem; }
.page-content h4 { font-size: 1.05rem; color: var(--text); margin: 1.5rem 0 0.75rem; }
.page-content p { margin-bottom: 1.4rem; }
.page-content a { color: var(--volt-tint); text-decoration: underline; text-underline-offset: 2px; }
.page-content a:hover { color: var(--volt); }
.page-content ul, .page-content ol { margin: 0 0 1.4rem 0.2rem; padding: 0; }
.page-content li { margin-bottom: 0.5rem; }
.page-content ul { list-style: none; }
.page-content ul li { position: relative; padding-left: 1.3rem; }
.page-content ul li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--volt); }
.page-content ol { list-style: decimal; padding-left: 1.3rem; }
.page-content ol li::marker { color: var(--volt-tint); font-weight: 600; }
.page-content strong, .page-content b { color: var(--text); font-weight: 600; }
.page-content blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--volt);
  background: var(--surface);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--text-muted);
  font-style: italic;
}
.page-content hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.page-content table th, .page-content table td { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.92rem; }
.page-content table th { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.page-content table tr:last-child td { border-bottom: none; }
.page-content img { border-radius: var(--radius-m); margin: 0.5rem 0; }
.page-content code { font-family: 'JetBrains Mono', monospace; font-size: 0.88em; background: var(--paper); padding: 0.15em 0.4em; border-radius: 4px; color: var(--volt-tint); }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 1300px; margin: 0 auto; }
.contact-info h3 { font-size: 1.4rem; margin-bottom: 1.75rem; color: var(--text); }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.6rem; }
.contact-item .icon { width: 46px; height: 46px; border-radius: var(--radius-s); background: var(--volt-soft); color: var(--volt); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-item h4 { font-size: 0.98rem; margin-bottom: 0.3rem; font-family: 'Onest', sans-serif; }
.contact-item p { color: var(--text-muted); font-size: 0.92rem; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 2.5rem; }
.contact-form h3 { font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--text); }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.5rem; letter-spacing: 0.04em; text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.85rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--text); font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s; color-scheme: dark; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--volt); box-shadow: 0 0 0 3px var(--volt-soft); }
.form-consent { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 1.4rem; cursor: pointer; }
.form-consent input[type="checkbox"] { flex-shrink: 0; width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--volt); }
.form-consent span { color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; }
.form-consent a { color: var(--volt-tint); text-decoration: underline; }
.form-consent a:hover { color: var(--volt); }
.form-group textarea { min-height: 110px; resize: vertical; }

/* honeypot — off-screen rather than display:none, since some bots skip
   fields hidden that way; real visitors never see or tab into it */
.avdi-honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.map-embed { border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); max-width: 1300px; margin: 2rem auto 0; }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ============ REQUISITES ============ */
.requisites-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); max-width: 1300px; margin: 0 auto; overflow: hidden; }
.requisites-row { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; padding: 1.1rem 2rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.requisites-row:last-child { border-bottom: none; }
.req-label { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; flex-shrink: 0; }
.req-value { font-family: 'JetBrains Mono', monospace; font-size: 0.92rem; color: var(--text); text-align: right; }
@media (max-width: 600px) {
  .requisites-row { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .req-value { text-align: left; }
}

/* ============ AI PAGE ============ */
.ai-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); max-width: 1400px; margin: 0 auto; }
.ai-card { background: var(--surface); padding: 2.4rem 2rem; position: relative; transition: background 0.25s; }
.ai-card:hover { background: var(--surface-hi); }
.ai-card .ai-num { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--flux); margin-bottom: 1.5rem; display: block; }
.ai-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; color: var(--text); }
.ai-card p { color: var(--text-muted); font-size: 0.92rem; }

.tech-stack { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-start; margin-top: 3rem; max-width: 1400px; margin-left: auto; margin-right: auto; }
.tech-item { padding: 0.55rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 100px; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--text); }

/* ============ PROCESS STEPS ============ */
.process-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 1400px; margin: 0 auto; }
.process-step { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--volt); }
.process-step .step-num { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--flux); }
.process-step h4 { font-family: 'Onest', sans-serif; font-size: 1.05rem; margin: 0.6rem 0 0.5rem; }
.process-step p { color: var(--text-muted); font-size: 0.88rem; }
@media (max-width: 900px) { .process-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .process-strip { grid-template-columns: 1fr; } }

/* ============ PAGE TRANSITIONS ============ */
.avdi-page { display: none; animation: fadeInPage 0.5s ease; }
.avdi-page.active { display: block; }
@keyframes fadeInPage { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ============ WORDPRESS SPECIFIC ============ */
.wp-caption { max-width: 100%; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ============ ADMIN BAR FIX ============ */
body.admin-bar .nav { top: 32px; }
body.admin-bar .mobile-nav { top: calc(68px + 32px); }
@media (max-width: 782px) {
  body.admin-bar .nav { top: 46px; }
  body.admin-bar .mobile-nav { top: calc(68px + 46px); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .hero-badge .dot { animation: none; }
  html { scroll-behavior: auto; }
  .service-card.is-featured,
  .ai-card.is-featured { animation: none; box-shadow: 0 0 20px 3px rgba(255,80,39,0.3); }
  .shop-cart-icon { animation: none; }
}
