/* Партнёрская программа AI-агентов (/agents/partners). Макет: Figma «Сайт Podpislon.ru», node 1065:2073 */
/* Onest — шрифт макета и UI-kit сайта. Лежит у нас (OFL, fontsource 5.3.1; текст лицензии — docs/licenses/Onest-OFL.txt), без внешних запросов;
   latin-ext нужен ради знака ₽ */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url(../../fonts/Onest/onest-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url(../../fonts/Onest/onest-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url(../../fonts/Onest/onest-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url(../../fonts/Onest/onest-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url(../../fonts/Onest/onest-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url(../../fonts/Onest/onest-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url(../../fonts/Onest/onest-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url(../../fonts/Onest/onest-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url(../../fonts/Onest/onest-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url(../../fonts/Onest/onest-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url(../../fonts/Onest/onest-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url(../../fonts/Onest/onest-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.apartners-lp {
  --ap-brand: #F68909;
  --ap-brand-hover: #E06C00;
  --ap-brand-light: #FF9C1F;
  --ap-eyebrow: #9E4C00;
  --ap-ink: #1A1A1A;
  --ap-text: #3B3D42;
  --ap-text-2: #505258;
  --ap-muted: #666666;
  --ap-card: #FEF9F4;
  --ap-card-2: #FFFAF5;
  --ap-icon-bg: #FFEFDB;
  --ap-dark: #1A1A1A;
  --ap-container: 1220px;
  --ap-gutter: 16px;

  font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ap-ink);
  background: #FFFFFF;
  overflow-x: hidden;
}

.apartners-lp *,
.apartners-lp *::before,
.apartners-lp *::after { box-sizing: border-box; }
.apartners-lp [hidden] { display: none !important; }
/* сброс весит как один класс: бьёт стили тегов сайта, но уступает классам блоков ниже по файлу */
.apartners-lp :where(h1, h2, h3, p, ul) { margin: 0; padding: 0; }
.apartners-lp :where(ul) { list-style: none; }
/* common.css вешает GothamPro прямо на h1–h6 — заголовкам тоже нужен Onest страницы */
.apartners-lp :where(h1, h2, h3, h4, h5, h6) { font-family: inherit; }
.apartners-lp img { display: block; max-width: 100%; height: auto; }
.apartners-lp section[id] { scroll-margin-top: 120px; }
.apartners-lp svg { flex-shrink: 0; }

.ap-container {
  width: 100%;
  max-width: calc(var(--ap-container) + var(--ap-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--ap-gutter);
}

/* ---------- общие элементы ---------- */
.ap-section { padding: 64px 0 96px; }

.ap-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.ap-head_split { flex-direction: row; justify-content: space-between; gap: 16px; }
.ap-head_split > div { display: flex; flex-direction: column; gap: 16px; max-width: 603px; }
.ap-head__note { max-width: 598px; padding-top: 39px; font-size: 16px; line-height: 24px; color: var(--ap-text); }
.ap-head__note_lg { font-size: 18px; line-height: 28px; color: #6B6E76; padding-top: 34px; }

.ap-eyebrow {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ap-eyebrow);
}
.ap-eyebrow_light { color: var(--ap-brand-light); }

.ap-title {
  font-size: 36px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ap-ink);
}
.ap-title_light { color: #FFFFFF; }

.ap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
/* состояния — компонент Button-website из UI-kit (node 195:5468), размер M */
/* Primary Brand / Standard — на светлом фоне */
.ap-btn_primary { background: var(--ap-brand); color: #FFFFFF; }
/* «Стать партнёром» при наведении — Button/Primary/Default/Light из UI-kit (node 161:4487):
   подложка #FF9C1F, текст #1A1A1A (замечание тестирования, круг 5) */
.ap-btn_primary:hover,
.ap-btn_primary:focus-visible { background: var(--ap-brand-light); color: var(--ap-ink); }
.ap-btn_primary:disabled { background: var(--ap-brand-light); color: #FBC579; cursor: default; }
/* Primary Brand / Invert — на тёмных секциях; hover тот же, что у Standard (UI-kit node 161:4487) */
.ap-btn_primary-invert { background: var(--ap-brand); color: #FFFFFF; }
.ap-btn_primary-invert:hover,
.ap-btn_primary-invert:focus-visible { background: var(--ap-brand-light); color: var(--ap-ink); }
.ap-btn_primary-invert:disabled { background: var(--ap-brand); color: #FBC579; cursor: default; }
/* Ghost Neutral / Invert — цвет текста не меняется, появляется подложка */
.ap-btn_ghost-dark { background: transparent; color: #FFFFFF; }
.ap-btn_ghost-dark:hover,
.ap-btn_ghost-dark:focus-visible { background: #292A2E; color: #FFFFFF; }
.ap-btn_block { width: 100%; }

/* Ghost Neutral / Standard — «Полные условия программы» */
.ap-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #1E1F21;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.ap-link:hover,
.ap-link:focus-visible { background: #F8F8F8; color: #1E1F21; }
/* Ghost Neutral / Invert — «Подробнее об AI-агентах»: hover из UI-kit (node 184:2337) —
   подложка #292A2E, текст и стрелка белые. Отрицательный отступ держит текст на линии абзаца */
.ap-link_light { margin-left: -16px; color: #FFFFFF; }
.ap-link_light:hover,
.ap-link_light:focus-visible { background: #292A2E; color: #FFFFFF; }

/* ---------- тёмные секции: сетка и свечение из макета ---------- */
.ap-dark {
  position: relative;
  background: var(--ap-dark);
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}
.ap-dark::after {
  /* нижнее размытое пятно (Ellipse 336px, blur 160) */
  content: '';
  position: absolute;
  z-index: -1;
  left: calc(50% + 98px);
  bottom: -370px;
  width: 700px;
  height: 700px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 156, 31, 0.3) 0%, rgba(255, 156, 31, 0.1) 30%, rgba(255, 156, 31, 0) 60%);
  pointer-events: none;
}
.ap-dark__bg {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 821px;
  background-repeat: no-repeat;
  background-position: right top;
  background-size: auto 100%;
  pointer-events: none;
}

/* ---------- hero ---------- */
/* .wrapper__content компенсирует только верхнюю строку шапки (82px), строка меню (56px)
   лежит поверх контента — сдвигаем секцию внешним отступом, как .atpl-hero */
@media screen and (min-width: 1200px) {
  .ap-hero { margin-top: 56px; }
}
.ap-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 640px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.ap-hero__copy { flex: 0 1 640px; }
.ap-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 40px;
  background: #3A2C1F;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ap-brand-light);
}
.ap-hero__title {
  margin-top: 16px;
  font-size: 60px;
  line-height: 68px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}
.ap-hero__lead {
  margin-top: 16px;
  font-size: 18px;
  line-height: 28px;
  color: #FFFFFF;
}
.ap-hero .ap-actions { margin-top: 40px; }
.ap-hero__media { flex: 0 1 540px; }
/* тени карточки — эффекты Dashboard Mockup из макета; скругление срезает непрозрачные углы экспорта */
.ap-hero__media img {
  width: 540px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 10px 20px rgba(0, 0, 0, 0.13);
}

/* ---------- два формата ---------- */
.ap-formats { padding: 96px 0 64px; }
.ap-formats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ap-format {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-radius: 12px;
  background: var(--ap-card);
}
.ap-format__top { display: flex; flex-direction: column; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #E0E0E0; }
.ap-format__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ap-format__title { font-size: 24px; line-height: 32px; font-weight: 700; }
.ap-format__tag {
  padding: 4px 12px;
  border-radius: 16px;
  background: #FFEBD2;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #995E13;
  white-space: nowrap;
}
.ap-format__text { font-size: 18px; line-height: 28px; }
.ap-format__rate { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.ap-format__percent { font-size: 48px; line-height: 56px; font-weight: 600; letter-spacing: -0.02em; }
.ap-format__rate-note { font-size: 16px; line-height: 24px; color: var(--ap-muted); }
.ap-format__points { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.ap-format__points li { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 24px; }

/* ---------- три шага ---------- */
.ap-steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ap-step { padding: 24px; border-left: 1px solid #EBEBEB; }
.ap-step__title { margin-top: 20px; font-size: 18px; line-height: 28px; font-weight: 600; }
.ap-step__text { margin-top: 8px; max-width: 320px; font-size: 16px; line-height: 24px; color: var(--ap-text-2); }

/* ---------- что вы будете продавать ---------- */
.ap-platform__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 640px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.ap-platform__copy { flex: 0 1 598px; }
.ap-platform__copy .ap-title { margin-top: 16px; }
.ap-platform__text { margin-top: 20px; font-size: 16px; line-height: 24px; color: #CFCFCF; }
.ap-platform__copy .ap-link { margin-top: 24px; }
.ap-platform__media { flex: 0 1 600px; }
.ap-platform__media img {
  width: 600px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06), 0 -6px 12px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* ---------- преимущества агентов ---------- */
.ap-benefits { padding: 96px 0 64px; }
.ap-benefits__grid { display: grid; grid-template-columns: 702fr 494fr; gap: 24px; }
.ap-benefits__col { display: flex; flex-direction: column; gap: 24px; }
.ap-bcard {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ap-card-2);
}
.ap-bcard_integrations,
.ap-bcard_models { min-height: 360px; padding: 32px; }
.ap-bcard__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 296px;
  max-width: 316px;
}
.ap-bcard_models .ap-bcard__copy { max-width: 270px; }
.ap-bcard__number {
  font-size: 72px;
  line-height: 76px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ap-brand);
}
.ap-bcard__title { margin-top: 8px; font-size: 24px; line-height: 32px; font-weight: 600; }
.ap-bcard__copy .ap-bcard__text { margin-top: auto; padding-top: 24px; }
.ap-bcard__text { font-size: 18px; line-height: 28px; color: var(--ap-text-2); }
.ap-bcard_models .ap-bcard__text { max-width: 237px; }
.ap-bcard__orbit { position: absolute; top: 25px; left: 359px; width: 310px; }
.ap-bcard__models { position: absolute; top: 0; right: 0; width: 239px; }
.ap-bcard_row { display: flex; align-items: flex-start; gap: 20px; min-height: 160px; padding: 32px; }
.ap-bcard__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.ap-bcard__heading { font-size: 24px; line-height: 32px; font-weight: 600; }
.ap-bcard_map .ap-bcard__body { max-width: 470px; }
.ap-bcard__map { position: absolute; top: 8px; right: 32px; width: 197px; }

/* ---------- партнёрство без лишних условий ---------- */
.ap-conditions { padding: 64px 0; }
.ap-conditions__inner { display: flex; gap: 24px; }
.ap-conditions__copy {
  flex: 0 1 494px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.ap-conditions__copy .ap-title { margin-top: 16px; }
.ap-conditions__text { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--ap-text); }
.ap-conditions__copy .ap-actions .ap-link { padding-left: 16px; }

.ap-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ap-cards_conditions { flex: 0 1 702px; }
.ap-card {
  display: flex;
  flex-direction: column;
  min-height: 226px;
  padding: 24px;
  border-radius: 12px;
  background: var(--ap-card);
}
.ap-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ap-icon-bg);
}
.ap-card__title { margin-top: 20px; font-size: 20px; line-height: 30px; font-weight: 600; }
.ap-card__text { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--ap-text); }

/* ---------- для кого ---------- */
.ap-audience .ap-card__icon { background: #FFEDDB; }

/* ---------- FAQ ---------- */
.ap-faq { padding: 80px 0; background: #F7F7F7; }
.ap-faq .ap-title { margin-bottom: 32px; }
.ap-faq__list { padding: 0 16px; border-radius: 12px; background: #FFFFFF; }
.ap-faq__item + .ap-faq__item { border-top: 1px solid #F3F4F8; }
.ap-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.ap-faq__q::-webkit-details-marker { display: none; }
.ap-faq__q svg { transform: rotate(180deg); transition: transform .2s ease; }
.ap-faq__item[open] .ap-faq__q { padding-bottom: 8px; }
.ap-faq__item[open] .ap-faq__q svg { transform: none; }
.ap-faq__a {
  max-width: 790px;
  padding-bottom: 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ap-muted);
}
.ap-faq__a a { color: var(--ap-muted); text-decoration: underline; }
.ap-faq__a a:hover { color: var(--ap-brand); }

/* ---------- заявка ---------- */
.ap-cta::after { display: none; }
.ap-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 80px;
  padding-bottom: 80px;
}
.ap-cta__copy { flex: 0 1 598px; }
.ap-cta__title {
  font-size: 60px;
  line-height: 68px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.ap-cta__text { margin-top: 20px; font-size: 18px; line-height: 28px; color: #DDDEE1; }
.ap-cta__perks { display: flex; flex-direction: column; gap: 24px; max-width: 494px; margin-top: 40px; }
.ap-cta__perks li { display: flex; align-items: flex-start; gap: 16px; font-size: 18px; line-height: 28px; }
.ap-cta__perks svg { margin-top: 2px; }

.ap-form-card {
  flex: 0 1 598px;
  padding: 32px;
  border: 1px solid #292A2E;
  border-radius: 12px;
  background: #1E1F21;
}
.ap-form { display: flex; flex-direction: column; gap: 24px; }
.ap-form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ap-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ap-field__label { font-size: 14px; line-height: 20px; font-weight: 500; color: #FFFFFF; }
.ap-field__input {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border: 1px solid #3B3D42;
  border-radius: 8px;
  background: #26272A;
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  color: #FFFFFF;
  outline: none;
  transition: border-color .2s ease;
}
.ap-field__input::placeholder { color: #9A9CA2; opacity: 1; }
.ap-field__input:focus { border-color: var(--ap-brand); }
.ap-field__input.is-invalid { border-color: #E5484D; }

.ap-form__checks { display: flex; flex-direction: column; gap: 20px; }
.ap-check { position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 0; cursor: pointer; }
.ap-check input { position: absolute; opacity: 0; width: 16px; height: 16px; margin: 0; }
.ap-check__box {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1px solid #5A5C63;
  border-radius: 4px;
  background: transparent no-repeat center / 12px 12px;
  transition: background-color .2s ease, border-color .2s ease;
}
.ap-check input:checked + .ap-check__box {
  border-color: #DE7C00;
  background-color: #DE7C00;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M12 5L6.5 10.5L4 8' stroke='white' stroke-width='1.6666' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 16px 16px;
}
.ap-check input:focus-visible + .ap-check__box { outline: 2px solid var(--ap-brand-light); outline-offset: 2px; }
.ap-check input.is-invalid + .ap-check__box { border-color: #E5484D; }
.ap-check__text { font-size: 14px; line-height: 20px; color: #B8B8B8; }
.ap-check__text a { color: #B8B8B8; text-decoration: underline; }
.ap-check__text a:hover { color: #FFFFFF; }

.ap-form__error { font-size: 14px; line-height: 20px; color: #FF8A8A; }
.ap-form__done { padding: 24px 0; }
.ap-form__done-title { font-size: 24px; line-height: 32px; font-weight: 500; color: #FFFFFF; }
.ap-form__done p { margin-top: 8px; font-size: 16px; line-height: 24px; color: #DDDEE1; }

/* ---------- адаптив ---------- */
@media (max-width: 1260px) {
  .ap-bcard__orbit { left: auto; right: 10px; }
}

@media (max-width: 1100px) {
  .ap-bcard__orbit { width: 240px; top: 20px; right: 0; opacity: .9; }
  .ap-bcard_integrations .ap-bcard__copy { max-width: 300px; }
}

@media (max-width: 990px) {
  .ap-section { padding: 48px 0 64px; }
  .ap-formats,
  .ap-benefits { padding: 64px 0 48px; }
  .ap-conditions { padding: 48px 0; }
  .ap-faq { padding: 56px 0; }

  .ap-head_split { flex-direction: column; }
  .ap-head__note,
  .ap-head__note_lg { padding-top: 0; }

  .ap-hero__inner,
  .ap-platform__inner,
  .ap-cta__inner { flex-direction: column; align-items: stretch; min-height: 0; padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .ap-hero__copy,
  .ap-platform__copy,
  .ap-cta__copy,
  .ap-form-card { flex-basis: auto; }
  .ap-hero__media,
  .ap-platform__media { flex-basis: auto; }
  .ap-hero__media img { width: 100%; max-width: 540px; margin: 0 auto; }
  .ap-platform__media img { width: 100%; max-width: 600px; margin: 0 auto; }
  .ap-hero__title,
  .ap-cta__title { font-size: 44px; line-height: 52px; }

  .ap-benefits__grid { grid-template-columns: 1fr; }
  .ap-conditions__inner { flex-direction: column; gap: 32px; }
  .ap-conditions__copy { flex-basis: auto; }
  .ap-cards_conditions { flex-basis: auto; }
  .ap-steps__grid { grid-template-columns: 1fr; gap: 0; }
  .ap-step { padding: 20px 0 20px 24px; }
}

@media (max-width: 767px) {
  .ap-title { font-size: 28px; line-height: 36px; }
  .ap-hero__title,
  .ap-cta__title { font-size: 34px; line-height: 42px; }
  .ap-hero__lead,
  .ap-cta__text { font-size: 16px; line-height: 24px; }
  .ap-hero__badge { font-size: 13px; }

  .ap-formats__grid,
  .ap-cards { grid-template-columns: 1fr; gap: 16px; }
  .ap-card { min-height: 0; }
  .ap-format__head { flex-direction: column; align-items: flex-start; }
  .ap-format__text { font-size: 16px; line-height: 24px; }

  .ap-bcard_integrations { padding-bottom: 260px; }
  .ap-bcard_integrations .ap-bcard__copy { min-height: 0; max-width: none; }
  .ap-bcard__orbit { top: auto; bottom: 0; left: 50%; right: auto; width: 250px; transform: translateX(-50%); }
  .ap-bcard_models { padding-right: 150px; }
  /* на узком экране картинка обрывается внутри карточки — гасим её края, чтобы не было ступеньки */
  .ap-bcard__models {
    width: 160px;
    right: -20px;
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 35%);
    mask-image: linear-gradient(to top, transparent 0, #000 35%);
  }
  .ap-bcard_models .ap-bcard__copy { min-height: 0; }
  .ap-bcard__number { font-size: 56px; line-height: 60px; }
  .ap-bcard__heading,
  .ap-bcard__title { font-size: 20px; line-height: 28px; }
  .ap-bcard__text { font-size: 16px; line-height: 24px; }
  .ap-bcard_row { flex-direction: column; gap: 16px; padding: 24px; }
  .ap-bcard__map { opacity: .5; top: auto; bottom: 0; right: 0; }

  .ap-form-card { padding: 24px 16px; }
  .ap-form__row { grid-template-columns: 1fr; }
  .ap-cta__perks li { font-size: 16px; line-height: 24px; }
  .ap-dark__bg { width: 100%; opacity: .6; }
}
