/* ==========================================================================
   ПродАй — страница «Битрикс24»
   ========================================================================== */

.b24 {
  --b24: #2fc6f6;
  --b24-deep: #0b7fae;
  background: var(--paper);
}

.b24 .t-vk { background: var(--vk); }
.b24 .t-wb { background: var(--wb); }
.b24 .t-oz { background: #5b50ff; }

/* --- Первый экран ------------------------------------------------------------ */

.bxhero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
  background:
    radial-gradient(circle at 85% 20%, rgba(47, 198, 246, 0.28), transparent 45%),
    radial-gradient(circle at 60% 110%, rgba(255, 122, 24, 0.2), transparent 45%),
    var(--ink);
  color: #fff;
}

.bxhero__inner {
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  align-items: center;
}

@media (min-width: 1000px) {
  .bxhero__inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

.bxhero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bxhero__status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.25);
}

.bxhero__title {
  margin-top: 20px;
  font-size: clamp(2.2rem, 5.4vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.bxhero__title span {
  color: var(--b24);
}

.bxhero__lead {
  max-width: 54ch;
  margin-top: 20px;
  color: var(--muted-dark);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
}

.bxhero__cta {
  justify-content: flex-start;
}

.bxhero .btn--ghost {
  border-color: var(--ink-line);
  color: #fff;
}

.bxhero .btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

/* Иллюстрация портала */
.portal {
  position: relative;
  container-type: inline-size;
  overflow: visible;
  border-radius: 18px;
  background: #f3f6f9;
  color: #1f2a37;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}

.portal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 18px 18px 0 0;
  background: #e3e9ef;
}

.portal__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c3ccd6;
}

.portal__bar span {
  flex: 1;
  margin-left: 8px;
  padding: 4px 10px;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
  color: #6b7888;
  font: 500 clamp(0.6rem, 1.9cqw, 0.74rem)/1.2 var(--mono);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.portal__body {
  display: grid;
  grid-template-columns: 26% minmax(0, 1fr);
  min-height: 300px;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
}

.portal__menu {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 14px 10px;
  background: #17324a;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.62rem, 2cqw, 0.8rem);
  font-weight: 600;
}

.portal__menu span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.portal__menu span.is-on {
  background: rgba(47, 198, 246, 0.22);
  color: #fff;
}

.portal__menu .brand__mark {
  grid-template-columns: repeat(2, 5px);
  grid-template-rows: repeat(2, 5px);
  gap: 1.5px;
}

.portal__main {
  padding: 14px;
}

.portal__title {
  margin-bottom: 12px;
  font-size: clamp(0.75rem, 2.4cqw, 0.95rem);
  font-weight: 700;
}

.portal__board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.portal__col {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 200px;
  padding: 8px;
  border-radius: 10px;
  background: #e8edf2;
}

.portal__colname {
  padding-bottom: 4px;
  border-bottom: 2px solid var(--b24);
  color: #52606f;
  font-size: clamp(0.56rem, 1.8cqw, 0.7rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.portal__col:nth-child(2) .portal__colname { border-color: var(--signal); }
.portal__col:nth-child(3) .portal__colname { border-color: #1faa6e; }

.deal {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 42, 55, 0.08);
  font-size: clamp(0.58rem, 1.9cqw, 0.74rem);
  font-weight: 600;
  line-height: 1.25;
}

.deal em {
  justify-self: start;
  padding: 1px 5px;
  border-radius: 4px;
  color: #fff;
  font: 700 0.62em/1.4 var(--body);
  font-style: normal;
}

.deal small {
  color: #6b7888;
  font-weight: 500;
}

.portal__toast {
  position: absolute;
  right: -12px;
  bottom: -18px;
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  color: #1f2a37;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.45);
  font-size: 0.78rem;
}

.portal__toast b {
  color: #148a57;
}

@media (max-width: 999px) {
  .portal {
    transform: none;
  }

  .portal__toast {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .portal__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal__menu {
    display: none;
  }

  .portal__col {
    min-height: 150px;
  }
}

/* --- Связки ------------------------------------------------------------------ */

.flows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 16px 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.flow__from,
.flow__to {
  display: grid;
  justify-items: start;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
}

.flow__to {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(47, 198, 246, 0.14);
  color: var(--b24-deep);
}

.flow__chips {
  display: flex;
  gap: 4px;
}

.flow__chips i {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  color: #fff;
  font: 700 0.62rem/1 var(--body);
  font-style: normal;
}

.flow__chips .t-prod { background: var(--ink); }
.flow__chips .t-bot { background: var(--signal); }

.flow__arrow {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 5px, transparent 5px 9px);
  position: relative;
}

.flow__arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  transform: rotate(45deg);
}

.flow p {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.55;
}

/* --- Приложения ------------------------------------------------------------------ */

.apps {
  display: grid;
  gap: 14px;
}

@media (min-width: 960px) {
  .apps {
    grid-template-columns: 1.25fr 1fr 1fr;
  }
}

.app {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.app--main {
  border-color: rgba(47, 198, 246, 0.5);
  background: linear-gradient(160deg, rgba(47, 198, 246, 0.12), var(--paper) 55%);
}

.app__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  font-size: 1.3rem;
}

.app__icon--main {
  background: var(--ink);
}

.app__icon--main .brand__mark {
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
}

.app__icon--ai {
  background: linear-gradient(135deg, var(--signal), var(--wb));
  color: #fff;
}

.app__icon--bot {
  background: rgba(47, 198, 246, 0.2);
}

.app__name {
  font-family: var(--body);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.app__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: #c25a00;
  font: 500 0.7rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

.app__desc {
  color: var(--muted);
  line-height: 1.55;
}

.app__list {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  line-height: 1.45;
}

.app__list li {
  position: relative;
  padding-left: 22px;
}

.app__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--b24);
}

/* --- Модуль или веб-сервис ---------------------------------------------------- */

.choice {
  display: grid;
  gap: 14px;
}

@media (min-width: 760px) {
  .choice {
    grid-template-columns: 1fr 1fr;
  }
}

.choice__col {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.choice__col b {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.choice__col > p {
  color: var(--muted);
}

.choice__col ul {
  display: grid;
  gap: 8px;
  margin: 6px 0 12px;
}

.choice__col li {
  position: relative;
  padding-left: 26px;
  line-height: 1.45;
}

.choice__col li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1faa6e;
  font-weight: 700;
}

.choice__col .btn {
  justify-self: start;
}

.choice__col--b24 {
  border-color: rgba(47, 198, 246, 0.55);
  box-shadow: 0 24px 50px -36px rgba(11, 127, 174, 0.55);
}

/* --- Установка ---------------------------------------------------------------- */

.setup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
  counter-reset: setup;
}

.setup li {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 56px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  counter-increment: setup;
}

.setup li::before {
  content: "0" counter(setup);
  position: absolute;
  left: 20px;
  top: 20px;
  color: var(--b24-deep);
  font: 500 0.8rem/1 var(--mono);
  letter-spacing: 0.12em;
}

.setup span {
  color: var(--muted);
  line-height: 1.5;
}

/* --- Партнёрам ---------------------------------------------------------------- */

.bxpartner {
  background:
    radial-gradient(circle at 0% 100%, rgba(47, 198, 246, 0.22), transparent 45%),
    var(--ink);
  color: #fff;
}

.bxpartner .eyebrow,
.bxpartner .section__sub {
  color: var(--muted-dark);
}

.bxpartner__inner {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .bxpartner__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
  }
}

.bxpartner__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}

.bxpartner__list li {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.bxpartner__list span {
  color: var(--muted-dark);
  line-height: 1.5;
}

/* --- Заявка ------------------------------------------------------------------ */

.bxreq {
  display: grid;
  gap: 28px;
  align-items: start;
}

@media (min-width: 940px) {
  .bxreq {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 56px;
  }
}

.bxreq .section__sub a {
  color: var(--text);
}

.bxform {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.bxform__tabs[hidden] {
  display: none;
}

.bxform__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.bxform__tabs button {
  position: relative;
  min-height: 56px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 650 0.98rem/1.2 var(--body);
  cursor: pointer;
}

.bxform__tabs button:hover {
  color: var(--text);
}

.bxform__tabs button[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
}

.bxform__tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -1px;
  height: 3px;
  border-radius: 3px;
  background: var(--b24);
}

.bxform__fields {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface);
}

.bxform__lead {
  color: var(--muted);
}

.bxform__grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .bxform__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.bxfield {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.bxfield[hidden] {
  display: none;
}

.bxfield--wide {
  grid-column: 1 / -1;
}

.bxfield > span,
.bxfield legend {
  padding: 0;
  font-size: 0.9rem;
  font-weight: 650;
}

.bxfield small {
  color: var(--muted);
  font-weight: 500;
}

.bxfield input,
.bxfield textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: 500 1rem/1.4 var(--body);
}

.bxfield textarea {
  resize: vertical;
}

.bxfield input:focus,
.bxfield textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(13, 18, 32, 0.08);
}

.bxfield.is-invalid input {
  border-color: #d9493e;
}

.bxfield .xs,
.bxfield .xs__btn {
  width: 100%;
}

.bxfield .xs__btn {
  min-height: 48px;
  border-radius: 12px;
}

.bxfield__error {
  color: #c43a2f;
  font-size: 0.84rem;
  font-style: normal;
}

.bxfield__error[hidden] {
  display: none;
}

.bxchecks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.bxchecks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

.bxchecks label:has(input:checked) {
  border-color: var(--ink);
  background: var(--paper);
}

.bxchecks input,
.bxconsent input {
  width: 17px;
  height: 17px;
  accent-color: var(--b24-deep);
}

.bxconsent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
}

.bxconsent input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.bxconsent a {
  color: var(--text);
}

.bxconsent__error {
  margin-top: -10px;
}

.bxform__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.bxform__status {
  flex: 1 1 220px;
  font-size: 0.92rem;
}

.bxform__status.is-ok { color: #148a57; }
.bxform__status.is-error { color: #c43a2f; }

.bxform__done {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
}

.bxform__done b {
  font-family: var(--display);
  font-size: 1.4rem;
}

.bxform__done p {
  color: var(--muted);
}

/* --- Вопросы ------------------------------------------------------------------ */

.bxfaq {
  max-width: 860px;
}

.bxfaq .faq a {
  color: var(--text);
}

.bxfaq__note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.82rem;
}
