.fi-agents-page {
  overflow: hidden;
  color: #111827;
  background: #ffffff;
}

.fi-agents-page .container {
  width: var(--sb-section-shell);
  max-width: none;
}

.fi-agents-hero,
.fi-agents-methods,
.fi-agents-request,
.fi-agents-faq {
  --sb-section-shell: min(1824px, calc(100% - 224px));
}

.fi-agents-hero {
  padding: 72px 0 52px;
  background: #ffffff;
}

.fi-agents-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 0.4fr);
  gap: 64px;
  align-items: start;
  margin-bottom: 34px;
}

.fi-agents-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--fonteia-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fi-agents-hero h1,
.fi-agents-page h2 {
  margin: 0;
  color: #111827;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0;
}

.fi-agents-hero h1 {
  max-width: 820px;
  font-size: 52px;
}

.fi-agents-hero-copy {
  max-width: 480px;
  margin: 112px 0 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.62;
}

.fi-agents-workspace {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  border: 1px solid #dbe5f2;
  border-radius: 28px;
  background: #ffffff;
  overflow: hidden;
}

.fi-agents-side {
  border-right: 1px solid #dbe5f2;
  background:
    linear-gradient(90deg, rgba(51, 99, 225, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(51, 99, 225, 0.05) 1px, transparent 1px),
    #f6f9fd;
  background-size: 46px 46px;
}

.fi-agents-side-title {
  padding: 30px 30px 22px;
  border-bottom: 1px solid #dbe5f2;
}

.fi-agents-side-title strong {
  display: block;
  color: #111827;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.12;
}

.fi-agents-side-title span {
  display: block;
  margin-top: 12px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.55;
}

.fi-agents-path-list {
  display: grid;
  padding: 18px;
  gap: 10px;
}

.fi-agents-path-link {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon text";
  gap: 5px 14px;
  align-items: start;
  min-height: 96px;
  padding: 18px;
  border: 1px solid transparent;
  border-radius: 22px;
  color: #111827;
  background: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.fi-agents-path-link:hover,
.fi-agents-path-link:focus {
  color: #111827;
  border-color: rgba(51, 99, 225, 0.22);
  background: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.fi-agents-path-link span {
  grid-area: icon;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #111827;
  background: #eaf1fb;
  font-size: 18px;
}

.fi-agents-path-link strong {
  grid-area: title;
  color: #111827;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.fi-agents-path-link small {
  grid-area: text;
  color: #5b667a;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.42;
}

.fi-agents-main-panel {
  display: grid;
  gap: 22px;
  min-width: 0;
  padding: 28px;
  background: #ffffff;
}

.fi-agents-panel-head {
  display: grid;
  gap: 8px;
}

.fi-agents-panel-head span {
  color: var(--fonteia-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fi-agents-panel-head strong {
  color: #111827;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.12;
}

.fi-agents-primary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.fi-agents-primary-card {
  min-height: 370px;
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 30px;
  border: 1px solid #dbe5f2;
  border-radius: 26px;
  color: #111827;
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.fi-agents-primary-card:hover,
.fi-agents-primary-card:focus {
  color: #111827;
  border-color: rgba(51, 99, 225, 0.26);
  text-decoration: none;
  transform: translateY(-2px);
}

.fi-agents-card-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #111827;
  background: #eef4fb;
  font-size: 22px;
}

.fi-agents-card-copy {
  display: grid;
  gap: 10px;
}

.fi-agents-card-copy strong {
  color: inherit;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.04;
}

.fi-agents-card-copy small {
  order: -1;
  color: var(--fonteia-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.fi-agents-card-copy em {
  color: #526174;
  font-size: 16px;
  font-style: normal;
  font-weight: 550;
  line-height: 1.56;
}

.fi-agents-card-cta {
  align-self: end;
  width: fit-content;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  color: #ffffff;
  background-image: linear-gradient(90deg, #1f4fc7 0 50%, var(--fonteia-blue) 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  font-size: 14px;
  font-weight: 600;
  transition: background-position 0.34s ease;
}

.fi-agents-primary-card:hover .fi-agents-card-cta,
.fi-agents-primary-card:focus .fi-agents-card-cta {
  color: #ffffff;
  background-position: 0 0;
}

.fi-agents-technical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.fi-agents-technical-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 170px;
  padding: 24px;
  border: 1px solid #dbe5f2;
  border-radius: 24px;
  color: #111827;
  background: #ffffff;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.fi-agents-technical-card:hover,
.fi-agents-technical-card:focus {
  color: #111827;
  border-color: rgba(51, 99, 225, 0.24);
  background: #f8fbff;
  text-decoration: none;
  transform: translateY(-1px);
}

.fi-agents-technical-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: #07111f;
  font-size: 22px;
}

.fi-agents-technical-card small {
  display: block;
  color: var(--fonteia-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fi-agents-technical-card strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.12;
}

.fi-agents-technical-card em {
  display: block;
  margin-top: 10px;
  color: #526174;
  font-size: 15px;
  font-style: normal;
  font-weight: 550;
  line-height: 1.5;
}

.fi-agents-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #dbe5f2;
  border-radius: 22px;
  background: #dbe5f2;
}

.fi-agents-support-grid a {
  min-height: 132px;
  padding: 22px;
  color: #111827;
  background: #f8fbff;
  text-decoration: none;
}

.fi-agents-support-grid a:hover,
.fi-agents-support-grid a:focus {
  color: var(--fonteia-blue);
  background: #ffffff;
  text-decoration: none;
}

.fi-agents-support-grid strong {
  display: block;
  color: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.fi-agents-support-grid span {
  display: block;
  margin-top: 9px;
  color: #5b667a;
  font-size: 14px;
  line-height: 1.45;
}

.fi-agents-methods,
.fi-agents-faq {
  padding: 78px 0;
  background: #f6f9fd;
}

.fi-agents-section-split,
.fi-agents-faq-layout {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.fi-agents-page h2 {
  font-size: 38px;
}

.fi-agents-section-copy {
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.62;
}

.fi-agents-method-list {
  display: grid;
  border-top: 1px solid #dbe5f2;
}

.fi-agents-method {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 112px;
  gap: 28px;
  align-items: center;
  min-height: 102px;
  border-bottom: 1px solid #dbe5f2;
}

.fi-agents-method code {
  color: var(--fonteia-blue);
  font-family: var(--sb-font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.fi-agents-method strong {
  color: #111827;
  font-size: 18px;
  font-weight: 700;
}

.fi-agents-method p {
  margin: 7px 0 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.48;
}

.fi-agents-method small {
  justify-self: end;
  color: #125f20;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.fi-agents-request {
  padding: 78px 0;
  background: #ffffff;
}

.fi-agents-request-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    var(--bg-dark);
  background-size: 48px 48px, 48px 48px, auto;
}

.fi-agents-request-box h2 {
  max-width: 680px;
  color: #ffffff;
  font-size: 38px;
}

.fi-agents-request-box p {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.58;
}

.fi-agents-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  color: #111827;
  background-image: linear-gradient(90deg, #eef4fb 0 50%, #ffffff 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-position 0.34s ease, color 0.18s ease;
}

.fi-agents-button:hover,
.fi-agents-button:focus {
  color: #111827;
  background-position: 0 0;
  text-decoration: none;
}

.fi-agents-faq-list {
  border-top: 1px solid #dbe5f2;
}

.fi-agents-faq-list details {
  border-bottom: 1px solid #dbe5f2;
}

.fi-agents-faq-list summary {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  list-style: none;
}

.fi-agents-faq-list summary::-webkit-details-marker {
  display: none;
}

.fi-agents-faq-list summary::after {
  content: "+";
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #cfdced;
  border-radius: 999px;
  color: var(--fonteia-blue);
  font-size: 22px;
  line-height: 1;
}

.fi-agents-faq-list details[open] summary::after {
  content: "-";
}

.fi-agents-faq-list p {
  max-width: 760px;
  margin: -6px 0 28px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.62;
}

@media (max-width: 1499.98px) {
  .fi-agents-hero,
  .fi-agents-methods,
  .fi-agents-request,
  .fi-agents-faq {
    --sb-section-shell: min(1520px, calc(100% - 120px));
  }
}

@media (max-width: 1099.98px) {
  .fi-agents-hero,
  .fi-agents-methods,
  .fi-agents-request,
  .fi-agents-faq {
    --sb-section-shell: calc(100% - 56px);
  }

  .fi-agents-hero-head,
  .fi-agents-workspace,
  .fi-agents-section-split,
  .fi-agents-request-box,
  .fi-agents-faq-layout {
    grid-template-columns: 1fr;
  }

  .fi-agents-hero-copy {
    max-width: 720px;
    margin-top: 0;
  }

  .fi-agents-side {
    border-right: 0;
    border-bottom: 1px solid #dbe5f2;
  }

  .fi-agents-primary-grid,
  .fi-agents-technical-grid,
  .fi-agents-support-grid {
    grid-template-columns: 1fr;
  }

  .fi-agents-method {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }

  .fi-agents-method small {
    justify-self: start;
  }
}

@media (max-width: 767.98px) {
  .fi-agents-hero,
  .fi-agents-methods,
  .fi-agents-request,
  .fi-agents-faq {
    --sb-section-shell: calc(100% - 24px);
  }

  .fi-agents-hero {
    padding: 52px 0 36px;
  }

  .fi-agents-hero h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  .fi-agents-hero-copy {
    font-size: 16px;
  }

  .fi-agents-page h2,
  .fi-agents-request-box h2 {
    font-size: 30px;
  }

  .fi-agents-workspace {
    border-radius: 22px;
  }

  .fi-agents-side-title {
    padding: 24px 22px 18px;
  }

  .fi-agents-path-list {
    padding: 12px;
  }

  .fi-agents-main-panel {
    padding: 18px;
  }

  .fi-agents-panel-head strong {
    font-size: 24px;
  }

  .fi-agents-primary-card {
    min-height: 0;
    padding: 24px;
  }

  .fi-agents-card-copy strong {
    font-size: 28px;
  }

  .fi-agents-support-grid a {
    min-height: 0;
  }

  .fi-agents-request-box {
    padding: 24px;
  }

  .fi-agents-button {
    width: 100%;
  }
}
