.agency-page .hero-copy,
.agency-page .feature-card,
.agency-page .footer-inner > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.agency-page .section-heading {
  max-width: none;
  margin-inline: 0;
  margin-bottom: 48px;
}

/* Заголовок с классом container сам задаёт ширину и поля раздела. */
.agency-page .container.section-heading {
  margin-inline: auto;
}

.agency-page .hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.12;
}

@media (min-width: 1024px) {
  .agency-page .hero h1 {
    font-size: 54px;
  }
}

.agency-page .agency-cards,
.agency-page .agency-offer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agency-page .feature-card {
  min-height: auto;
}

.agency-page .agency-terms {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agency-page .check-list {
  display: grid;
  gap: 8px;
  margin-block: 16px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.agency-page .agency-note {
  margin-block: 28px 0;
  color: var(--muted);
}

.agency-page .commercial-request {
  margin-block: 72px;
}

.agency-page .commercial-request h2 {
  margin-top: 0;
}

.agency-page .commercial-form [hidden] {
  display: none !important;
}

.agency-page .commercial-form ::placeholder {
  color: #a8b0c8;
  opacity: 1;
}

.agency-page .commercial-status:empty {
  display: none;
}

.agency-page .commercial-request a,
.agency-page .faq-list p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Зависимости блока из landing.css. :where сохраняет исходную специфичность:
   общие классы уступают правилам trust.css, подключённым после этого файла. */
.agency-page .trust {
  --gold: #fbbf24;
  --line: rgba(210,216,240,.14);
  --text: #eef1fb;
  --muted: #9aa2c0;
  --font-sans: "Manrope", "Segoe UI", Arial, sans-serif;
  --r-xl: 34px;
  --shadow: 0 24px 80px rgba(0,0,0,.36);
  padding: 92px 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: normal;
}

:where(.agency-page .trust) .container {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

:where(.agency-page .trust) .result-shell {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 26px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.028));
  box-shadow: var(--shadow);
}

:where(.agency-page .trust) .metrics-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
}

:where(.agency-page .trust) .metric-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.046);
}

:where(.agency-page .trust) .metric-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

:where(.agency-page .trust) h2 {
  margin: 16px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(28px,3.4vw,42px);
  line-height: 1.08;
  letter-spacing: 0;
}

:where(.agency-page .trust) p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

:where(.agency-page .trust) .eyebrow {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(129,140,248,.26);
  border-radius: 999px;
  color: #cdd6f8;
  background: rgba(129,140,248,.09);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  white-space: normal;
}

:where(.agency-page .trust) img {
  max-width: none;
}

@media (min-width: 1181px) {
  .agency-page .hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 48px;
  }
}

@media (max-width: 1080px) {
  :where(.agency-page .trust) .result-shell { grid-template-columns: 1fr; }
  :where(.agency-page .trust) .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 860px) {
  .agency-page .agency-cards,
  .agency-page .agency-offer,
  .agency-page .agency-terms { grid-template-columns: 1fr; }
  .agency-page .trust { padding: 68px 0; }
  :where(.agency-page .trust) .metrics-grid { grid-template-columns: 1fr; }
}

@media (min-width: 861px) {
  .agency-page .agency-cards > :nth-child(2) {
    grid-column: 2;
    grid-row: span 2;
  }
}

@media (max-width: 620px) {
  .agency-page .trust { padding: 54px 0; }
  :where(.agency-page .trust) .container { width: min(100% - 24px, 1180px); }
  :where(.agency-page .trust) .result-shell { padding: 22px; }
}

@media (max-width: 560px) {
  .agency-page .header-inner {
    flex-wrap: wrap;
    justify-content: center;
  }
  .agency-page .header-actions {
    width: 100%;
    justify-content: center;
  }
  .agency-page .mobile-anchor-nav {
    position: relative;
    top: auto;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .agency-page .hero {
    padding-top: 32px;
  }
  .agency-page .commercial-form ::placeholder {
    font-size: 14px;
    text-overflow: ellipsis;
  }
  .agency-page .commercial-form input,
  .agency-page .commercial-form textarea {
    text-overflow: ellipsis;
  }
}
