/* ============================================================
 * Afox Services — futuristic promo landing (scoped under .afxs)
 * ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

/* Page chrome: transparent so fixed bg is visible */
body.afox-services-page,
body#module-afoxservices-landing,
body.afox-services-page #wrapper,
body#module-afoxservices-landing #wrapper,
body.afox-services-page #main,
body#module-afoxservices-landing #main,
body.afox-services-page .page-content,
body#module-afoxservices-landing .page-content,
body.afox-services-page #content-wrapper,
body#module-afoxservices-landing #content-wrapper,
body.afox-services-page #content,
body#module-afoxservices-landing #content {
  background: transparent !important;
  background-color: transparent !important;
}
body.afox-services-page #content-wrapper,
body#module-afoxservices-landing #content-wrapper {
  padding: 0 !important;
  max-width: none !important;
}
body.afox-services-page .breadcrumb,
body#module-afoxservices-landing .breadcrumb {
  display: none !important;
}
/* html keeps base color; body stays transparent so fixed bg shows */
html:has(body.afox-services-page),
html:has(body#module-afoxservices-landing) {
  background-color: #060914;
}
html body.afox-services-page,
html body#module-afoxservices-landing {
  background-color: transparent !important;
  background-image: none !important;
}

.afxs {
  --afxs-bg: #060914;
  --afxs-bg-2: #0a0e1a;
  --afxs-card: rgba(10, 14, 28, 0.55);
  --afxs-card-border: rgba(255, 255, 255, 0.1);
  --afxs-text: #e8eefc;
  --afxs-muted: #8b95b0;
  /* Один фирменный акцент вместо трёх. Имена переменных исторические
     (cyan/violet), меняем ЗНАЧЕНИЯ — так не надо править 26 мест использования.
     Это один тон в двух светлотах: там, где дизайн различал два цвета,
     разница сохраняется, но пестроты из трёх хюэ больше нет. */
  --afxs-cyan: #f47521;
  --afxs-violet: #f9a26c;
  --afxs-orange: #f47521;
  --afxs-font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --afxs-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --afxs-r: 18px;
  position: relative;
  /* no isolation — otherwise position:fixed is trapped and bg "disappears" */
  color: var(--afxs-text);
  font-family: var(--afxs-font);
  background: transparent;
  overflow: visible;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  padding: 0 0 80px;
  z-index: 1;
}

/* Fixed thematic background — viewport-locked while page scrolls */
.afxs__bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Page layers above fixed bg (z-index: 0) */
body.afox-services-page #header,
body#module-afoxservices-landing #header,
body.afox-services-page .header,
body#module-afoxservices-landing .header {
  position: relative;
  z-index: 30;
}
body.afox-services-page #wrapper,
body#module-afoxservices-landing #wrapper,
body.afox-services-page #main,
body#module-afoxservices-landing #main,
body.afox-services-page #content-wrapper,
body#module-afoxservices-landing #content-wrapper {
  position: relative;
  z-index: 1;
}
body.afox-services-page footer,
body#module-afoxservices-landing footer {
  position: relative;
  z-index: 2;
}
.afxs__bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  /* subtle so pattern is visible but calm */
  opacity: 1;
  filter: saturate(1.15) contrast(1.05);
}
/* Живые трассы поверх статичного SVG. Порядок в DOM уже даёт нужную
   послойность, z-index не нужен. Без JS слой пуст — остаётся SVG. */
.afxs__bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.afxs__bg-veil {
  position: absolute;
  inset: 0;
  /* lighter veil — image must remain readable as "background art" */
  /* brand-leaning: primary blue + soft accent, less pure cyber neon */
  background:
    linear-gradient(180deg, rgba(6, 9, 20, 0.32) 0%, rgba(6, 9, 20, 0.48) 50%, rgba(6, 9, 20, 0.64) 100%),
    radial-gradient(1000px 560px at 12% 0%, rgba(29, 111, 232, 0.14), transparent 55%),
    radial-gradient(800px 480px at 92% 8%, rgba(244, 117, 33, 0.08), transparent 50%);
}
/* Film grain — premium-ui craft, kills digital sterility (taste / premium skills) */
.afxs__bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Content above page chrome but bg is z-index -1 under body */
.afxs-hero,
.afxs-section,
.afxs-modal {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .afxs__bg-photo {
    object-position: 65% center;
  }
  .afxs__bg-veil {
    background:
      linear-gradient(180deg, rgba(6, 9, 20, 0.4) 0%, rgba(6, 9, 20, 0.58) 100%),
      radial-gradient(640px 380px at 20% 0%, rgba(244, 117, 33, 0.1), transparent 60%);
  }
}

.afxs *,
.afxs *::before,
.afxs *::after {
  box-sizing: border-box;
}

.afxs__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.afxs-hero,
.afxs-section {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px;
}

.afxs-hero {
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 32px;
}

.afxs-hero__title {
  font-family: var(--afxs-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

/* Сплошной акцент вместо градиента по тексту: трёхцветная заливка заголовка —
   первый маркер, по которому дизайн читается как сгенерированный. */
.afxs-grad {
  color: var(--afxs-orange);
}

.afxs-hero__lead {
  max-width: 640px;
  color: var(--afxs-muted);
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0 0 28px;
}

/* ── Плата в герое ───────────────────────────────────────────────
   Разрозненные модули слетаются и защёлкиваются в систему, шина
   светится пока контур замкнут. Модули кликабельны: смысл страницы
   можно потрогать, а не только прочитать. */
.afxs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
  width: 100%;
}
.afxs-hero__inner { min-width: 0; }

.afxs-board {
  position: relative;
  aspect-ratio: 1 / 0.78;
  min-height: 320px;
  border: 1px solid var(--afxs-card-border);
  border-radius: var(--afxs-r);
  background: var(--afxs-card);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  overflow: hidden;
}
.afxs-board__hint,
.afxs-board__stamp,
.afxs-board__state {
  position: absolute;
  z-index: 3;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--afxs-muted);
}
.afxs-board__hint { left: 14px; top: 12px; }
.afxs-board__stamp { left: 14px; bottom: 12px; }
.afxs-board__stamp b {
  color: var(--afxs-orange);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.afxs-board__state { right: 14px; bottom: 12px; }
.afxs-board__state.is-done { color: var(--afxs-orange); }

/* Геометрию (left/top/width/height) ставит JS по фактическим краям модулей —
   здесь только вид. Высота НЕ фиксирована: магистраль вертикальная. */
.afxs-board__bus {
  position: absolute;
  z-index: 1;
  background: var(--afxs-card-border);
  transition: background 0.45s ease, box-shadow 0.45s ease;
}
.afxs-board__bus.is-lit {
  background: var(--afxs-orange);
  box-shadow: 0 0 14px rgba(244, 117, 33, 0.5);
}

.afxs-board__mod {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 3px;
  justify-items: start;
  padding: 9px 12px;
  min-width: 104px;
  text-align: left;
  font: inherit;
  color: var(--afxs-text);
  background: rgba(16, 22, 40, 0.82);
  border: 1px solid rgba(244, 117, 33, 0.5);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.afxs-board__mod:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.45); }
.afxs-board__mod:focus-visible { outline: 2px solid var(--afxs-orange); outline-offset: 3px; }
.afxs-board__name { font-size: 0.78rem; font-weight: 600; pointer-events: none; }
.afxs-board__pin {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--afxs-muted);
  pointer-events: none;
}
/* Модуль — ярлык услуги, а не переключатель: гасить его нечем и незачем.
   Диод горит всегда, на наведении рамка ярче — ведёт себя как обычная кнопка. */
.afxs-board__led {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--afxs-orange);
  box-shadow: 0 0 8px var(--afxs-orange);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  /* backwards, НЕ both: залипший финальный кадр перебил бы :hover в каскаде,
     и подъём модуля перестал бы работать. */
  .afxs-board__mod {
    animation: afxs-snap 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: var(--d);
  }
  @keyframes afxs-snap {
    from { transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(0.92); opacity: 0; }
    to   { transform: none; opacity: 1; }
  }
}

@media (max-width: 980px) {
  .afxs-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .afxs-board { min-height: 280px; }
}
@media (max-width: 560px) {
  .afxs-board__mod { min-width: 88px; padding: 7px 9px; }
  .afxs-board__name { font-size: 0.72rem; }
}

.afxs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--afxs-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.afxs-kicker--sm { margin-bottom: 4px; font-size: 0.72rem; }
.afxs-kicker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--afxs-cyan);
  box-shadow: 0 0 12px var(--afxs-cyan);
  animation: afxs-pulse 2s ease-in-out infinite;
}
@keyframes afxs-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.afxs-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

/* Flat rectangular outline buttons — transparent / glass + white border */
.afxs-btn {
  appearance: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 0;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
  line-height: 1.2;
  box-shadow: none;
  transform: none;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  min-height: 44px;
}
/* Перелив: одна волна слева направо на наведении, как импульс по трассе.
   z-index:-1 внутри isolate рисует её НАД фоном кнопки, но ПОД подписью,
   поэтому текст не замазывается. overflow клипует волну по окантовке. */
.afxs-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 24%,
    rgba(255, 255, 255, 0.18) 42%,
    rgba(244, 117, 33, 0.45) 52%,
    rgba(255, 255, 255, 0.18) 62%,
    transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.afxs-btn:hover::after,
.afxs-btn:focus-visible::after {
  transform: translateX(130%);
}
@media (prefers-reduced-motion: reduce) {
  .afxs-btn::after { transition: none; }
  .afxs-btn:hover::after { transform: translateX(0); opacity: 0.22; }
}

.afxs-btn:hover,
.afxs-btn:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
  box-shadow: none;
  transform: none;
}
.afxs-btn:active {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}
.afxs-btn--sm {
  padding: 9px 16px;
  font-size: 0.88rem;
  border-radius: 0;
  min-height: 40px;
}
/* Primary = slightly more fill, same flat outline language */
.afxs-btn--primary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: none;
}
.afxs-btn--primary:hover,
.afxs-btn--primary:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
  box-shadow: none;
  transform: none;
}
/* Ghost = more transparent, thinner presence */
.afxs-btn--ghost {
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}
.afxs-btn--ghost:hover,
.afxs-btn--ghost:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

.afxs-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.afxs-badges li {
  font-size: 0.78rem;
  color: var(--afxs-muted);
  border: 1px solid var(--afxs-card-border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 6px 12px;
}

.afxs-section__head {
  margin-bottom: 28px;
}
.afxs-section__head h2 {
  font-family: var(--afxs-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.afxs-section__head p {
  margin: 0;
  color: var(--afxs-muted);
  max-width: 640px;
}

/* Cards */
.afxs-caps__grid,
.afxs-tools__grid,
.afxs-services__grid {
  display: grid;
  gap: 14px;
}
.afxs-caps__grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.afxs-tools__grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.afxs-services__grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.afxs-cap-card,
.afxs-tool-card,
.afxs-svc,
.afxs-detail,
.afxs-process__item,
.afxs-final__card {
  background: var(--afxs-card);
  border: 1px solid var(--afxs-card-border);
  border-radius: var(--afxs-r);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.afxs-cap-card {
  padding: 22px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.afxs-cap-card h3 {
  font-family: var(--afxs-display);
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.afxs-cap-card p {
  margin: 0;
  color: var(--afxs-muted);
  font-size: 0.92rem;
}
.afxs-cap-card:hover {
  border-color: rgba(244, 117, 33, 0.35);
}

.afxs-tool-card {
  padding: 22px;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 180px;
}
.afxs-tool-card:hover {
  border-color: rgba(249, 162, 108, 0.45);
  box-shadow: 0 0 0 1px rgba(249, 162, 108, 0.15), 0 16px 40px rgba(0, 0, 0, 0.35);
  color: inherit;
  text-decoration: none;
}
.afxs-tool-card__icon {
  font-size: 28px;
  color: var(--afxs-violet);
}
.afxs-tool-card h3 {
  margin: 0;
  font-family: var(--afxs-display);
  font-size: 1.1rem;
}
.afxs-tool-card p {
  margin: 0;
  color: var(--afxs-muted);
  font-size: 0.9rem;
  flex: 1;
}
.afxs-tool-card__go {
  color: var(--afxs-cyan);
  font-size: 0.85rem;
  font-weight: 600;
}

.afxs-svc {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.afxs-svc::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--afxs-cyan), transparent);
  opacity: 0.7;
}
.afxs-svc--violet::before {
  background: linear-gradient(90deg, transparent, var(--afxs-violet), transparent);
}
.afxs-svc--orange::before {
  background: linear-gradient(90deg, transparent, var(--afxs-orange), transparent);
}
.afxs-svc__icon {
  font-size: 26px;
  color: var(--afxs-cyan);
  margin-bottom: 4px;
}
.afxs-svc--violet .afxs-svc__icon { color: var(--afxs-violet); }
.afxs-svc--orange .afxs-svc__icon { color: var(--afxs-orange); }
.afxs-svc h3 {
  margin: 0;
  font-family: var(--afxs-display);
  font-size: 1.2rem;
}
.afxs-svc__tag {
  margin: 4px 0 0;
  color: var(--afxs-muted);
  font-size: 0.9rem;
}
.afxs-svc__sum {
  margin: 0;
  color: #c5cde0;
  font-size: 0.92rem;
  line-height: 1.55;
}
.afxs-svc__list {
  margin: 0;
  padding-left: 18px;
  color: var(--afxs-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.afxs-svc__list li { margin-bottom: 4px; }
.afxs-svc__meta {
  display: grid;
  gap: 10px;
  font-size: 0.86rem;
  color: #c5cde0;
}
.afxs-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--afxs-muted);
  margin-bottom: 4px;
}
.afxs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.afxs-chip {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--afxs-card-border);
  background: rgba(255, 255, 255, 0.04);
}
.afxs-svc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}
.afxs-svc__badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--afxs-cyan);
  border: 1px solid rgba(244, 117, 33, 0.35);
  background: rgba(244, 117, 33, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
}
.afxs-svc--violet .afxs-svc__badge {
  color: var(--afxs-violet);
  border-color: rgba(249, 162, 108, 0.4);
  background: rgba(249, 162, 108, 0.1);
}
.afxs-svc--orange .afxs-svc__badge {
  color: #fdba74;
  border-color: rgba(244, 117, 33, 0.4);
  background: rgba(244, 117, 33, 0.1);
}

/* Tenders */
.afxs-tenders__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.afxs-tender-card {
  padding: 22px;
  background: var(--afxs-card);
  border: 1px solid var(--afxs-card-border);
  border-radius: var(--afxs-r);
  backdrop-filter: blur(14px);
}
.afxs-tender-card .material-icons {
  font-size: 28px;
  color: var(--afxs-orange);
  margin-bottom: 8px;
}
.afxs-tender-card h3 {
  margin: 0 0 8px;
  font-family: var(--afxs-display);
  font-size: 1.1rem;
}
.afxs-tender-card p {
  margin: 0;
  color: var(--afxs-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.afxs-tenders__note {
  margin: 0;
  color: var(--afxs-muted);
  font-size: 0.92rem;
  max-width: 720px;
}

.afxs-modal__sub {
  margin: 6px 0 0;
  color: var(--afxs-muted);
  font-size: 0.88rem;
  max-width: 420px;
}
.afxs-form__section {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.afxs-form__section-title {
  margin: 0 0 6px;
  font-family: var(--afxs-display);
  font-size: 0.95rem;
  color: var(--afxs-cyan);
  letter-spacing: 0.02em;
}
.afxs-form__section-hint {
  margin: 0 0 12px;
  color: var(--afxs-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.afxs-tender-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.afxs-check--block {
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: 0;
  padding: 10px 12px;
  min-height: 44px;
}
.afxs-check--block span {
  color: var(--afxs-text);
  font-size: 0.9rem;
  line-height: 1.3;
}
.afxs-field--file input[type="file"] {
  padding: 10px;
  font-size: 0.85rem;
  cursor: pointer;
}
.afxs-file-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.afxs-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--afxs-card-border);
  border-radius: 8px;
  font-size: 0.8rem;
}
.afxs-file-item__name {
  flex: 1 1 auto;
  word-break: break-word;
}
.afxs-file-item__size {
  flex: 0 0 auto;
  color: var(--afxs-muted);
  font-variant-numeric: tabular-nums;
}
.afxs-file-item__rm {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  line-height: 1;
  border: 0;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  font-size: 1rem;
  cursor: pointer;
}
.afxs-file-item__rm:hover,
.afxs-file-item__rm:focus-visible {
  background: rgba(239, 68, 68, 0.3);
}
.afxs-file-empty {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--afxs-muted);
}
.afxs-file-note {
  margin: 8px 0 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.32);
  color: #fcd34d;
  font-size: 0.8rem;
  line-height: 1.45;
}
.afxs-file-note a {
  color: inherit;
  text-decoration: underline;
}
.afxs-field--q {
  margin-bottom: 14px;
}
.afxs-qnum {
  font-style: normal;
  color: var(--afxs-cyan);
  font-weight: 700;
  margin-right: 4px;
}

/* ============================================================
 * LITE layout — меньше секций, accordion-услуги
 * ============================================================ */

.afxs--lite {
  padding-bottom: 48px;
  background: transparent !important;
}

/* ── Process flow scheme ── */
.afxs-flow__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 8px 0 4px;
}
.afxs-flow__line {
  position: absolute;
  top: 36px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(244, 117, 33, 0.15) 8%,
    rgba(244, 117, 33, 0.55) 50%,
    rgba(249, 162, 108, 0.45) 92%,
    transparent 100%);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}
.afxs-flow__line::after {
  content: '';
  position: absolute;
  inset: -3px 0;
  background: inherit;
  filter: blur(6px);
  opacity: 0.45;
}
.afxs-flow__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  animation: afxs-flow-in 0.55s ease both;
  animation-delay: calc(var(--i, 0) * 0.07s);
}
@keyframes afxs-flow-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.afxs-flow__node {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(244, 117, 33, 0.18), rgba(249, 162, 108, 0.12)),
    rgba(8, 12, 24, 0.85);
  border: 1px solid rgba(244, 117, 33, 0.35);
  box-shadow:
    0 0 0 4px rgba(6, 9, 20, 0.55),
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(244, 117, 33, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.afxs-flow__step:hover .afxs-flow__node {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(244, 117, 33, 0.65);
  box-shadow:
    0 0 0 4px rgba(6, 9, 20, 0.55),
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(244, 117, 33, 0.22);
}
.afxs-flow__num {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  color: #041016;
  background: linear-gradient(135deg, #f47521, #f9a26c);
  box-shadow: 0 2px 8px rgba(244, 117, 33, 0.4);
}
.afxs-flow__icon {
  font-size: 28px;
  color: var(--afxs-cyan);
}
.afxs-flow__card {
  width: 100%;
  padding: 12px 10px 14px;
  border-radius: 14px;
  background: rgba(8, 12, 24, 0.55);
  border: 1px solid var(--afxs-card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 92px;
}
.afxs-flow__card h3 {
  margin: 0 0 6px;
  font-family: var(--afxs-display);
  font-size: 0.98rem;
  font-weight: 600;
}
.afxs-flow__card p {
  margin: 0;
  color: var(--afxs-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}
.afxs-flow__arrow {
  display: none;
}

@media (max-width: 991px) {
  .afxs-flow__track {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 12px;
  }
  .afxs-flow__line {
    display: none;
  }
}

@media (max-width: 575px) {
  .afxs-flow__track {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 8px;
  }
  .afxs-flow__step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
    padding: 0 0 20px 12px;
    border-left: 2px solid rgba(244, 117, 33, 0.25);
  }
  .afxs-flow__step:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
  }
  .afxs-flow__node {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    flex: none;
  }
  .afxs-flow__icon { font-size: 22px; }
  .afxs-flow__card {
    min-height: 0;
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .afxs-flow__step { animation: none; }
}
.afxs--lite .afxs-hero--compact {
  min-height: auto;
  padding: 40px 20px 20px;
}
.afxs--lite .afxs-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}
.afxs--lite .afxs-hero__lead {
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 20px;
}
.afxs--lite .afxs-hero__meta {
  margin: 0;
  color: var(--afxs-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}
.afxs--lite .afxs-dot {
  margin: 0 6px;
  opacity: 0.5;
}
.afxs--lite .afxs-section {
  padding: 28px 20px;
}
.afxs--lite .afxs-section__head {
  margin-bottom: 16px;
}
.afxs--lite .afxs-section__head h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

/* Accordion service rows */
/* ── Рейка: услуги стыкуются к общей направляющей ──────────────────
   Одиннадцать одинаковых строк подряд читались как список без ритма.
   Теперь каждая въезжает сбоку и притягивается штырём к шине — тот же
   мотив, что у платы в герое: модуль встаёт в систему. */
.afxs-rack {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
}
.afxs-rack__rail {
  position: relative;
}
.afxs-rack__rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--afxs-card-border);
  transform: translateX(-0.5px);
}
/* Заливка направляющей по мере прокрутки — заполненность системы. */
.afxs-rack__fill {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--afxs-orange);
  box-shadow: 0 0 12px rgba(244, 117, 33, 0.5);
  transform: translateX(-0.5px) scaleY(0);
  transform-origin: top;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .afxs-rack__fill {
      animation: afxs-rail-fill linear both;
      animation-timeline: view();
      animation-range: cover 5% cover 85%;
    }
    @keyframes afxs-rail-fill {
      to { transform: translateX(-0.5px) scaleY(1); }
    }
  }
}

.afxs-rack__slot {
  position: relative;
}
/* Штырь от шины к строке. Рисуем на слоте, а не на строке: у неё
   overflow:hidden (схлопывает тело аккордеона) и он бы его срезал. */
.afxs-rack__slot::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--afxs-card-border);
  transform: translateY(-0.5px) scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease 0.12s, background 0.25s ease;
}
.afxs-rack__slot::after {
  content: "";
  position: absolute;
  left: -31.5px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--afxs-bg);
  border: 1px solid var(--afxs-card-border);
  transform: translateY(-50%) scale(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.38s,
              border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.afxs-rack__slot.is-in::before { transform: translateY(-0.5px) scaleX(1); }
.afxs-rack__slot.is-in::after { transform: translateY(-50%) scale(1); }

/* Пятак загорается там, где есть состояние: наведение или раскрытая услуга. */
.afxs-rack__slot:hover::after,
.afxs-rack__slot:has(.afxs-svc-row.is-open)::after {
  border-color: var(--afxs-orange);
  background: var(--afxs-orange);
  box-shadow: 0 0 10px rgba(244, 117, 33, 0.5);
}
.afxs-rack__slot:hover::before,
.afxs-rack__slot:has(.afxs-svc-row.is-open)::before {
  background: rgba(244, 117, 33, 0.55);
}

/* Стыковка сбоку вместо общего выезда снизу. Специфичнее базового
   [data-afxs-reveal], поэтому перебивает его. */
.afxs-rack__slot[data-afxs-reveal] {
  opacity: 0;
  transform: translateX(26px);
}
.afxs-rack__slot[data-afxs-reveal].is-in {
  opacity: 1;
  transform: none;
}

.afxs-svc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 560px) {
  .afxs-rack { grid-template-columns: 14px minmax(0, 1fr); }
  .afxs-rack__slot::before { left: -14px; width: 14px; }
  .afxs-rack__slot::after { left: -17.5px; }
}
.afxs-svc-row {
  border: 1px solid var(--afxs-card-border);
  border-radius: 14px;
  background: var(--afxs-card);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.afxs-svc-row.is-open {
  border-color: rgba(244, 117, 33, 0.35);
}
.afxs-svc-row--violet.is-open {
  border-color: rgba(249, 162, 108, 0.4);
}
.afxs-svc-row--orange.is-open {
  border-color: rgba(244, 117, 33, 0.4);
}
.afxs-svc-row__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.afxs-svc-row__head:hover {
  background: rgba(255, 255, 255, 0.03);
}
/* Иконки нейтральные. После сведения палитры к одному тону все 11 подряд
   стали одинаковыми оранжевыми пятнами и список превратился в рябь.
   Акцент теперь работает структурно — загорается там, где есть состояние
   (наведение / раскрытая услуга), а не красит всё подряд. */
.afxs-svc-row__icon {
  font-size: 22px;
  color: var(--afxs-muted);
  flex: none;
  transition: color 0.18s ease;
}
.afxs-svc-row:hover .afxs-svc-row__icon,
.afxs-svc-row.is-open .afxs-svc-row__icon {
  color: var(--afxs-orange);
}
.afxs-svc-row__titles {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.afxs-svc-row__title {
  font-family: var(--afxs-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.25;
  color: inherit;
}
.afxs-svc-row__tag {
  color: var(--afxs-muted);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.afxs-svc-row__chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--afxs-muted);
  border-bottom: 2px solid var(--afxs-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex: none;
  margin-right: 4px;
  margin-bottom: 4px;
}
.afxs-svc-row.is-open .afxs-svc-row__chev {
  transform: rotate(225deg);
  margin-bottom: 0;
  margin-top: 4px;
}
.afxs-svc-row__body {
  padding: 0 16px 16px 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0;
  padding-top: 14px;
}
.afxs-svc-row__body[hidden] {
  display: none !important;
}
.afxs-svc-row__sum {
  margin: 0 0 12px;
  color: #c5cde0;
  font-size: 0.92rem;
  line-height: 1.55;
}
.afxs-svc-row__cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
@media (max-width: 700px) {
  .afxs-svc-row__body { padding-left: 16px; }
  .afxs-svc-row__cols { grid-template-columns: 1fr; }
}
.afxs-svc-row__list {
  margin: 0;
  padding-left: 18px;
  color: var(--afxs-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.afxs-svc-row__list li { margin-bottom: 4px; }
.afxs-svc-row__side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.86rem;
  color: #c5cde0;
}
.afxs-svc-row__meta .afxs-label {
  margin-bottom: 2px;
}
.afxs-svc-row__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.afxs-svc-row__hint {
  color: var(--afxs-muted);
  font-size: 0.8rem;
}

/* Compact strips */
.afxs-strips {
  display: grid;
  gap: 12px;
}
.afxs-strip {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--afxs-card-border);
  background: rgba(255, 255, 255, 0.03);
}
.afxs-strip h3 {
  margin: 0 0 10px;
  font-family: var(--afxs-display);
  font-size: 1rem;
}
.afxs-strip__steps {
  margin: 0;
  padding-left: 18px;
  color: var(--afxs-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.afxs-strip__steps li { margin-bottom: 4px; }
.afxs-strip__steps b { color: var(--afxs-text); font-weight: 600; }
.afxs-strip__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.afxs-strip__links a {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--afxs-card-border);
  color: var(--afxs-text);
  text-decoration: none;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.15s, background 0.15s;
}
.afxs-strip__links a:hover {
  border-color: rgba(244, 117, 33, 0.4);
  background: rgba(244, 117, 33, 0.08);
  color: #fff;
  text-decoration: none;
}

.afxs--lite .afxs-final__card--compact {
  padding: 28px 22px;
}
.afxs--lite .afxs-final__card--compact h2 {
  font-size: 1.35rem;
}
.afxs--lite .afxs-final__card--compact > p {
  font-size: 0.92rem;
  margin-bottom: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .afxs-svc-row__chev { transition: none; }
}

.afxs-detail {
  padding: 22px;
  margin-bottom: 12px;
}
.afxs-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.afxs-detail__head h3 {
  margin: 0;
  font-family: var(--afxs-display);
  font-size: 1.15rem;
}
.afxs-detail p { color: var(--afxs-muted); }
.afxs-detail__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.afxs-detail h4 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--afxs-cyan);
}
.afxs-detail ul {
  margin: 0;
  padding-left: 18px;
  color: var(--afxs-muted);
  font-size: 0.9rem;
}

.afxs-process__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  counter-reset: none;
}
.afxs-process__item {
  padding: 18px;
}
.afxs-process__num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(244, 117, 33, 0.12);
  color: var(--afxs-cyan);
  font-weight: 700;
  font-family: var(--afxs-display);
  margin-bottom: 10px;
}
.afxs-process__item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-family: var(--afxs-display);
}
.afxs-process__item p {
  margin: 0;
  color: var(--afxs-muted);
  font-size: 0.88rem;
}

.afxs-outcomes__table {
  display: grid;
  gap: 10px;
}
.afxs-outcomes__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--afxs-card-border);
  background: rgba(255, 255, 255, 0.03);
}
@media (max-width: 700px) {
  .afxs-outcomes__row { grid-template-columns: 1fr; }
}

.afxs-final__card {
  padding: 36px 28px;
  text-align: center;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(244, 117, 33, 0.12), transparent 70%),
    var(--afxs-card);
}
.afxs-final__card h2 {
  font-family: var(--afxs-display);
  margin: 0 0 10px;
}
.afxs-final__card > p {
  color: var(--afxs-muted);
  margin: 0 0 22px;
}
.afxs-final .afxs-hero__cta {
  justify-content: center;
  margin-bottom: 0;
}

/* Reveal */
[data-afxs-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-afxs-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Modal */
.afxs-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.afxs-modal[hidden] { display: none !important; }
.afxs-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 12, 0.72);
  backdrop-filter: blur(6px);
}
.afxs-modal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: linear-gradient(180deg, #0d1220, #0a0e18);
  border: 1px solid rgba(244, 117, 33, 0.2);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 22px;
  color: var(--afxs-text);
}
.afxs-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.afxs-modal__head h2 {
  margin: 0;
  font-family: var(--afxs-display);
  font-size: 1.35rem;
}
.afxs-modal__x {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--afxs-card-border);
  color: var(--afxs-muted);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.afxs-modal__x:hover { color: #fff; border-color: rgba(244, 117, 33, 0.4); }

.afxs-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 560px) {
  .afxs-form__grid { grid-template-columns: 1fr; }
}
.afxs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--afxs-muted);
  margin-bottom: 12px;
}
.afxs-field input,
.afxs-field select,
.afxs-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--afxs-card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--afxs-text);
  padding: 10px 12px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.afxs-field input:focus,
.afxs-field select:focus,
.afxs-field textarea:focus {
  border-color: rgba(244, 117, 33, 0.55);
  box-shadow: 0 0 0 3px rgba(244, 117, 33, 0.12);
}
.afxs-field select option { background: #0d1220; color: #fff; }
.afxs-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.afxs-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 0;
  border: 1px solid var(--afxs-card-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--afxs-text);
  font-size: 0.88rem;
  line-height: 1.3;
  cursor: pointer;
}
/* Единый размер всех чекбоксов анкеты (не наследуют min-height: 44px у input) */
.afxs-form input[type="checkbox"],
.afxs-check input[type="checkbox"],
.afxs-field input[type="checkbox"],
.afxs-checkboxes input[type="checkbox"],
.afxs-tender-checks input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  margin: 0;
  padding: 0;
  flex: 0 0 18px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  vertical-align: middle;
  accent-color: transparent;
  position: relative;
}
.afxs-form input[type="checkbox"]:checked,
.afxs-check input[type="checkbox"]:checked,
.afxs-field input[type="checkbox"]:checked,
.afxs-checkboxes input[type="checkbox"]:checked,
.afxs-tender-checks input[type="checkbox"]:checked {
  background: rgba(255, 255, 255, 0.9);
  border-color: #fff;
}
.afxs-form input[type="checkbox"]:checked::after,
.afxs-check input[type="checkbox"]:checked::after,
.afxs-field input[type="checkbox"]:checked::after,
.afxs-checkboxes input[type="checkbox"]:checked::after,
.afxs-tender-checks input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #0a0e1a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.afxs-form input[type="checkbox"]:focus-visible,
.afxs-check input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}
.afxs-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  align-items: center;
}
.afxs-form__step[hidden] {
  display: none !important;
}
.afxs-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
}
.afxs-steps__item {
  appearance: none;
  border: 1px solid var(--afxs-card-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--afxs-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: default;
  min-height: 36px;
}
.afxs-steps__item.is-active {
  color: #fff;
  background: rgba(29, 111, 232, 0.25);
  border-color: rgba(29, 111, 232, 0.55);
}
.afxs-steps__item.is-done {
  color: var(--afxs-text);
  border-color: rgba(244, 117, 33, 0.3);
}
.afxs-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.afxs-field select,
.afxs-field textarea {
  min-height: 44px;
}
.afxs-field textarea {
  min-height: 88px;
}
.afxs-form__err {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
}
.afxs-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.afxs-form__success {
  text-align: center;
  padding: 24px 8px;
}
.afxs-form__success[hidden] { display: none !important; }
.afxs-form[hidden] { display: none !important; }
.afxs-success-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #041016;
  background: linear-gradient(135deg, var(--afxs-cyan), #f9a26c);
  box-shadow: 0 0 30px rgba(244, 117, 33, 0.35);
}
.afxs-form__success h3 {
  font-family: var(--afxs-display);
  margin: 0 0 8px;
}
.afxs-form__success p {
  color: var(--afxs-muted);
  margin: 0 0 18px;
}

@media (max-width: 767px) {
  .afxs__canvas { opacity: 0.3; }
  .afxs-hero { min-height: auto; padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .afxs__glow,
  .afxs-kicker__dot,
  [data-afxs-reveal] {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .afxs__canvas { display: none; }
}

/* ── Мобильные правки модала ──────────────────────────────────────
   ВНИЗУ ФАЙЛА ОСОЗНАННО: специфичность совпадает с базовыми правилами
   (.afxs-steps__item и т.п.), поэтому решает порядок. Выше по файлу
   этот блок молча проигрывал каскад. */
@media (max-width: 767px) {
  /* Поля НЕ мельче 16px: Safari на iOS принудительно зумит страницу при
     фокусе на поле с font-size < 16px — человек тыкает в «Имя», страница
     прыгает, и он выщипывает её обратно. Подписи остаются 0.85rem. */
  .afxs-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  .afxs-field select,
  .afxs-field textarea,
  .afxs-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  .afxs-form select,
  .afxs-form textarea {
    font-size: 16px;
  }

  /* Палец крупнее курсора: цели нажатия не мельче 44px. */
  .afxs-modal__x {
    width: 44px;
    height: 44px;
  }
  .afxs-steps__item {
    min-height: 44px;
  }
  .afxs-file-item__rm {
    width: 32px;
    height: 32px;
  }
}
/* Лендинг услуг: появление карточек (translateX) и плата в шапке не расширяют страницу на телефоне — 12.09.2026 */
.afxs{overflow-x:clip}
/* уже 400px min-height платы через aspect-ratio раздувал её ширину (280/0.78 = 359 px при колонке 335) */
@media (max-width:400px){.afxs-board{aspect-ratio:auto}}
