.on-page .container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--s-4);
  padding-right: var(--s-4);
}

.on-narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.on-page p + p {
  margin-top: var(--s-3);
}

.on-section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.on-section-head {
  margin-bottom: var(--s-5);
}

.on-section-head--center {
  text-align: center;
}

.on-section-head--center p {
  margin-left: auto;
  margin-right: auto;
  max-width: 62ch;
}

.on-hero h1 span {
  color: #e11d2f;
}

.on-kdo-jsme__content {
  position: relative;
  background:
    radial-gradient(140% 130% at 0% 0%, rgba(225, 29, 47, 0.46), transparent 58%),
    radial-gradient(120% 110% at 100% 100%, rgba(185, 28, 44, 0.24), transparent 62%),
    linear-gradient(135deg, #2a0a10 0%, #12151d 56%, #090b12 100%);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 34px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.22);
  text-align: center;
}

.on-page .on-section__kicker {
  font-size: 12px !important;
  line-height: 1 !important;
}

.on-kdo-jsme__content .on-section__kicker {
  margin: 0 auto 12px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.14);
}

.on-kdo-jsme__content h2 {
  color: #f8fafc;
}

.on-kdo-jsme__content p {
  color: rgba(226, 232, 240, 0.9);
  margin-left: auto;
  margin-right: auto;
  max-width: 66ch;
}

.on-kdo-jsme__quote {
  margin-top: var(--s-4);
  color: #f8fafc;
  font-style: italic;
  border-left: 0;
  border-top: 1px solid rgba(226, 232, 240, 0.26);
  padding-left: 0;
  padding-top: 12px;
}

.on-thinking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}

.on-thinking h2 span {
  color: #e11d2f;
}

.on-thinking__stats {
  margin-top: var(--s-4);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.on-stat {
  border-radius: 14px;
  border: 1px solid #dbe2ea;
  background: #ffffff;
  padding: 12px 14px;
  min-width: 148px;
}

.on-stat--feature {
  min-width: 280px;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
}

.on-stat__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  margin: 0;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
}

.on-stat__icon svg {
  width: 17px;
  height: 17px;
}

.on-thinking__stats--features .on-stat--feature:nth-child(1) .on-stat__icon {
  background: #e11d2f;
  color: #ffffff;
}

.on-thinking__stats--features .on-stat--feature:nth-child(2) .on-stat__icon {
  background: #0f172a;
  color: #ffffff;
}

.on-stat strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: #e11d2f;
}

.on-stat span {
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.on-stat--feature strong {
  grid-column: 2;
  grid-row: 1;
  font-size: 22px;
  line-height: 1.18;
  color: #0f172a;
  margin: 0;
}

.on-stat--feature > span:not(.on-stat__icon) {
  grid-column: 2;
  grid-row: 2;
  margin-top: 6px;
  display: block;
  color: #475569;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
}

.on-thinking__media {
  justify-self: end;
  width: 100%;
  max-width: 520px;
  position: relative;
}

.on-thinking__media img {
  display: block;
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.on-thinking__badge {
  position: absolute;
  left: 20px;
  bottom: -18px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.14);
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.on-thinking__badge strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.on-thinking__badge span {
  font-size: 16px;
  color: #0f172a;
  font-weight: 700;
}

.on-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.on-principle {
  border-radius: 16px;
  border: 1px solid #dbe2ea;
  background: #ffffff;
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.on-principle__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 12px;
  color: #ffffff;
}

.on-principle__icon svg {
  width: 18px;
  height: 18px;
}

.on-principle__icon--red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.on-principle__icon--dark {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.on-principle__icon--rose {
  background: linear-gradient(135deg, #fda4af 0%, #fb7185 100%);
}

.on-process {
  position: relative;
  overflow: hidden;
  text-align: center;
  background-color: #000000;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.64) 0%, rgba(0, 0, 0, 0.82) 100%),
    url("../img/ny-avtobus-1539x600.webp") center / cover no-repeat;
}

.on-process__headline {
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.3;
  font-weight: var(--fw-bold);
}

.on-process__headline span {
  color: #ef4444;
}

@media (min-width: 1025px) {
  .on-process {
    background-attachment: fixed;
  }
}

.on-balance .on-narrow {
  text-align: center;
}

.on-balance__actions {
  margin-top: var(--s-4);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
}

.on-balance__actions .btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
}

.on-final {
  padding: clamp(52px, 7vw, 86px) 0;
  background: #ffffff;
  border-top: 1px solid #dbe2ea;
}

.on-final .on-narrow {
  text-align: center;
  max-width: 700px;
}

.on-final p {
  margin: 0 auto var(--s-4);
  max-width: 62ch;
}

.on-final__btn {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
}

@media (max-width: 1024px) {
  .on-thinking {
    grid-template-columns: 1fr;
  }

  .on-thinking__media {
    justify-self: start;
  }

  .on-thinking__badge {
    position: static;
    margin-top: 12px;
    display: inline-grid;
  }

  .on-principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .on-section,
  .on-final {
    padding: var(--s-6) 0;
  }

  .on-stat--feature {
    min-width: 100%;
  }

  .on-principles-grid {
    grid-template-columns: 1fr;
  }

  .on-balance__actions {
    display: grid;
    width: 100%;
  }

  .on-balance__actions .btn {
    width: 100%;
  }
}
