@charset "UTF-8";

.subpage-main {
  margin-bottom: 120px;
}

.subpage-section {
  margin-bottom: 80px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.apps-separator {
  height: 32px;
}

.apps-card {
  border: 1px solid #EBEBEB;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.apps-card__ribbon {
  position: absolute;
  top: 22px;
  right: -46px;
  width: 190px;
  padding: 10px 0;
  background: linear-gradient(135deg, #1CC0F0 0%, #34C5F1 55%, #F243FF 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(35deg);
  box-shadow: 0 10px 22px rgba(52, 197, 241, 0.24);
  pointer-events: none;
  text-align: center;
  line-height: 1.1;
}

.apps-card__media {
  display: flex;
  align-items: center;
  min-height: 84px;
}

.apps-card h3 {
  color: #173746;
  font-size: 22px;
  font-weight: 500;
}

.apps-card p {
  color: #5E7F8D;
  font-size: 16px;
  line-height: 140%;
  margin: 0;
}

.apps-card a {
  color: #1CC0F0;
  font-weight: 600;
}

.apps-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: auto;
}

.apps-card__links a {
  color: #1CC0F0;
  font-weight: 600;
}

.tabs {
  margin-top: 24px;
}

.tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.tabs__btn {
  border: 1px solid #dbe6ec;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  color: #173746;
  background: #fff;
  transition: all 0.2s ease-in-out;
}

.tabs__btn.is-active {
  background: #1CC0F0;
  border-color: #1CC0F0;
  color: #fff;
}

.tabs__panel {
  display: none;
  border: 1px solid #ebebeb;
  border-radius: 18px;
  padding: 28px;
  background: #fff;
}

.tabs__panel.is-active {
  display: block;
}

.tabs__panel h3 {
  color: #173746;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.tabs__panel h4 {
  color: #173746;
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 8px;
}

.tabs__panel ul {
  margin: 0;
  padding-left: 20px;
}

.tabs__panel li {
  color: #5E7F8D;
  line-height: 150%;
  margin-bottom: 8px;
}

.tabs__panel p {
  color: #5E7F8D;
  line-height: 150%;
  margin-bottom: 12px;
}

.apps-card .apps-card__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 85px;
  max-height: 85px;
  object-fit: contain;
}

.b2b-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.b2b-item {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  border: 1px solid #EBEBEB;
  border-radius: 24px;
  padding: 36px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.b2b-item--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
}

.b2b-item--reverse .b2b-item__media {
  order: 2;
}

.b2b-item--reverse .b2b-item__content {
  order: 1;
}

.b2b-item__media {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b2b-item__image {
  max-width: 100%;
  max-height: 260px;
  height: auto;
}

.b2b-item__placeholder {
  width: 220px;
  height: 220px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #eef7fb 100%);
  box-shadow: 0 18px 32px rgba(28, 192, 240, 0.22), 0 6px 14px rgba(23, 55, 70, 0.12);
  color: #173746;
  font-size: 88px;
  font-weight: 700;
}

.b2b-item__placeholder--contractory {
  background: linear-gradient(135deg, #1CC0F0 0%, #34C5F1 55%, #F243FF 100%);
  color: #fff;
}

.b2b-item__content h3 {
  color: #173746;
  font-size: 32px;
  line-height: 120%;
  font-weight: 500;
  margin-bottom: 16px;
}

.b2b-item__content p {
  color: #5E7F8D;
  font-size: 18px;
  line-height: 140%;
  margin: 0;
}

@media (max-width: 900px) {
  .b2b-item,
  .b2b-item--reverse {
    grid-template-columns: 1fr;
  }

  .b2b-item--reverse .b2b-item__media,
  .b2b-item--reverse .b2b-item__content {
    order: initial;
  }
}

@media (max-width: 600px) {
  .b2b-item {
    padding: 28px;
    gap: 28px;
  }

  .b2b-item__media {
    min-height: 180px;
  }

  .b2b-item__placeholder {
    width: 160px;
    height: 160px;
    font-size: 64px;
  }

  .b2b-item__content h3 {
    font-size: 28px;
  }
}
