/* ── Agents page («Агентам по приёму платежей») ──────────────────── */
/* Self-contained: gradient hero + light sections below. */

/* ── Hero — gradient header, dark-aware nav sits on top ── */
.agent-hero {
  padding: 152px 0 64px;
  background: var(--brand-gradient-hero, linear-gradient(180deg, rgb(62,180,240) 0%, rgb(102,89,220) 57%, rgb(116,66,200) 100%));
  color: #fff;
}
.agent-hero__inner { max-width: 720px; }
.agent-hero__title { color: #fff; }
.agent-hero__lead { color: rgba(255,255,255,0.9); max-width: 640px; }

/* first light section after the gradient hero needs breathing room */
.agent-hero + section.section { padding-top: var(--section-y); margin-top: 0; }

.agents-section-head { max-width: 720px; }
.agents-section-head--center {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

/* CTA contact line inside the gradient banner */
.agent-cta-contact { color: rgba(255,255,255,0.82); }
.agent-cta-contact__link { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.agent-cta-contact__link:hover { opacity: 0.85; }

/* ── Demo video (square 1:1 clip) ────────────────────────────────── */
/* Двухколоночный грид: текст слева, видео справа */
.agent-video-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.agent-video-layout__text { max-width: 520px; }
.agent-video {
  width: 100%;
  max-width: 480px;
  justify-self: end;
}
.agent-video__frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-1);
  background: #000;
  box-shadow: var(--shadow-2);
}
.agent-video__player {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
}
/* Заставка поверх постера: лёгкий скрим + кнопка play, чтобы кадр не выглядел «застывшим» */
.agent-video__cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(20,16,40,0.12) 0%, rgba(20,16,40,0.38) 100%);
  transition: background 0.2s ease;
}
.agent-video__cover:hover { background: linear-gradient(180deg, rgba(20,16,40,0.18) 0%, rgba(20,16,40,0.46) 100%); }
.agent-video__cover[hidden] { display: none; }
.agent-video__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding-left: 4px; /* оптический центр треугольника */
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.94);
  color: rgb(116, 66, 200);
  box-shadow: var(--shadow-2);
  transition: transform 0.2s ease, background 0.2s ease;
}
.agent-video__cover:hover .agent-video__play {
  transform: scale(1.06);
  background: #fff;
}

/* ── Benefits section — photo texture background ─────────────────── */
.agent-benefits-section {
  position: relative;
  overflow: hidden;
  /* внутренний воздух: у фотопанели видимые края, контент не должен к ним прилипать */
  padding: var(--section-y) 0;
  background-color: var(--bg-1);
}
/* Фото прилавка — текстура, не иллюстрация */
.agent-benefits-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../../assets/img/photo-retail.webp");
  background-size: cover;
  background-position: center 38%;
  opacity: 0.18;
  z-index: 0;
}
/* Светлый скрим: чистый верх под заголовком → лёгкий фиолетовый отсвет снизу */
.agent-benefits-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(248,248,248,0.82) 0%,
    rgba(248,248,248,0.55) 42%,
    rgba(236,230,252,0.42) 100%);
  z-index: 1;
}
.agent-benefits-section > .container {
  position: relative;
  z-index: 2;
}

/* ── Benefit cards ───────────────────────────────────────────────── */
.agent-benefits {
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.agent-benefit {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-0);
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.agent-benefit:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--tint-violet-line);
}
.agent-benefit__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--tint-violet);
  color: rgb(116, 66, 200);
  font: var(--h-5);
}
.agent-benefit__title {
  margin: 16px 0 8px;
  font: var(--h-6);
  color: var(--fg-1);
}
.agent-benefit__text {
  font: var(--body-sm);
  color: var(--fg-2);
}

/* ── Demo terminal card ──────────────────────────────────────────── */
.agent-demo {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--bg-1);
  border: 1px solid var(--border-1);
}
.agent-demo__title { font: var(--h-4); color: var(--fg-1); }
.agent-demo__text {
  margin-top: 12px;
  font: var(--body-md, 400 16px/1.5 var(--font-sans));
  color: var(--fg-2);
  max-width: 520px;
}
.agent-demo__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-self: end;
  min-width: 240px;
}
.agent-demo__note {
  font: var(--body-sm);
  color: var(--fg-3);
}

/* ── Legal operator info ─────────────────────────────────────────── */
.agent-legal {
  margin-top: 24px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-1);
  border: 1px solid var(--border-1);
}
.agent-legal__title {
  font: var(--h-6);
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.agent-legal__text {
  margin-top: 12px;
  font: var(--body-sm);
  color: var(--fg-2);
  max-width: 860px;
}
.agent-legal__text a { color: rgb(116, 66, 200); text-decoration: underline; text-underline-offset: 2px; }
.agent-legal__text a:hover { opacity: 0.85; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .agent-benefits { grid-template-columns: repeat(2, 1fr); }
  .agent-demo { grid-template-columns: 1fr; padding: 32px; }
  .agent-demo__actions { justify-self: stretch; min-width: 0; }
  .agent-video-layout { grid-template-columns: 1fr; gap: 32px; }
  .agent-video-layout__text { max-width: none; }
  .agent-video { justify-self: center; max-width: 520px; }
}
@media (max-width: 768px) {
  .agent-hero { padding: 112px 0 48px; }
}
@media (max-width: 480px) {
  .agent-hero { padding: 96px 0 40px; }
  .agent-benefits { grid-template-columns: 1fr; }
  .agent-demo { padding: 24px; }
  .agent-legal { padding: 24px; }
}
