/* === Promo blocks === */
.promo {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  scroll-margin-top: calc(var(--header-h) + 58px);
}

.promo_workshop {
  min-height: 560px;
}

.promo_partner {
  min-height: 440px;
}

.promo__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.promo__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.promo__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(9, 17, 28, 0.95) 0%, rgba(9, 17, 28, 0.86) 34%, rgba(9, 17, 28, 0.42) 58%, rgba(9, 17, 28, 0.12) 100%);
}

.promo__container {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 96px;
}

.promo__content {
  max-width: 620px;
  color: #fff;
}

.promo__kicker {
  margin-bottom: 16px;
  color: #ffa96b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.promo__title {
  margin-bottom: 20px;
  font-family: var(--font-head);
  font-size: 46px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
}

.promo__text {
  max-width: 580px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.55;
}

.promo__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.promo__button {
  padding: 18px 40px;
  font-size: 16px;
}

.promo_partner .promo__container {
  padding-top: 80px;
  padding-bottom: 80px;
}

.promo_partner .promo__content {
  max-width: 540px;
}

.promo_partner .promo__title {
  margin-bottom: 16px;
  font-size: 38px;
}

.promo_partner .promo__text {
  margin-bottom: 26px;
  font-size: 18px;
}

/* === Test bar === */
.btest_bar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.btest_bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

.btest_bar__group {
  display: flex;
  align-items: center;
  margin-right: 26px;
}

.btest_bar__label {
  margin-right: 10px;
  color: var(--dark);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.btest_bar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.btest_bar__item {
  margin-right: 6px;
}

.btest_bar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.2s, color 0.2s;
}

.btest_bar__link:hover {
  background: var(--accent);
  color: #fff;
}

.btest_bar__note {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

/* === Test intro === */
.btest_intro {
  padding: 56px 0 64px;
  background: var(--soft);
}

.btest_intro__head {
  margin-bottom: 44px;
}

.btest_group {
  margin-bottom: 40px;
}

.btest_group_last {
  margin-bottom: 0;
}

.btest_group__title {
  margin-bottom: 20px;
  color: var(--dark);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.btest_grid {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}

.btest_card {
  flex: 0 1 calc(20% - 16px);
  margin-bottom: 20px;
}

.btest_card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.btest_card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--dark);
}

.btest_card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.4s;
}

.btest_card__link:hover .btest_card__image {
  transform: scale(1.04);
}

.btest_card__number {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(9, 17, 28, 0.82);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.btest_card__caption {
  margin-top: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

/* === Test bands === */
.btest_band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.btest_band__inner {
  padding-top: 28px;
  padding-bottom: 28px;
}

.btest_band__title {
  color: var(--dark);
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
}

.btest_band__note {
  max-width: 720px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* === Test tag === */
.btest_tag {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  max-width: 280px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(9, 17, 28, 0.72);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btest_tag__number {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btest_tag__text {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.35;
}

.btest_tag__source {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}

/* === 1250 === */
@media (max-width: 1250px) {
  .btest_card {
    flex: 0 1 calc(25% - 15px);
  }

  .promo__title {
    font-size: 42px;
  }
}

/* === 1024 === */
@media (max-width: 1024px) {
  .btest_card {
    flex: 0 1 calc(33.333% - 14px);
  }

  .promo__container {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .promo__content {
    max-width: 540px;
  }

  .promo__title {
    font-size: 38px;
  }
}

/* === 768 === */
@media (max-width: 768px) {
  .btest_bar__inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .btest_bar__group {
    flex: 0 0 auto;
    margin-right: 16px;
    margin-bottom: 0;
  }

  .btest_bar__note {
    display: none;
  }

  .btest_intro {
    padding: 40px 0 48px;
  }

  .btest_intro__head {
    margin-bottom: 32px;
  }

  .btest_card {
    flex: 0 1 calc(50% - 10px);
  }

  .promo_workshop {
    min-height: 520px;
  }

  .promo_partner {
    min-height: 420px;
  }

  .promo__container {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .promo__overlay {
    background: linear-gradient(90deg, rgba(9, 17, 28, 0.96) 0%, rgba(9, 17, 28, 0.84) 60%, rgba(9, 17, 28, 0.5) 100%);
  }

  .promo__title {
    font-size: 32px;
  }

  .promo__text {
    font-size: 17px;
  }

  .promo__button {
    padding: 16px 32px;
  }

  .promo_partner .promo__container {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .promo_partner .promo__title {
    font-size: 30px;
  }

  .promo_partner .promo__text {
    font-size: 17px;
  }

  .btest_tag {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
    padding: 10px 14px;
  }
}

/* === 480 === */
@media (max-width: 480px) {
  .btest_bar__label {
    margin-right: 6px;
    font-size: 12px;
  }

  .btest_bar__item {
    margin-right: 4px;
  }

  .btest_bar__link {
    width: 26px;
    height: 26px;
  }

  .btest_band__title {
    font-size: 22px;
  }

  .promo {
    min-height: 0;
  }

  .promo__container {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .promo__title {
    font-size: 28px;
  }

  .promo__text {
    font-size: 16px;
  }

  .btest_tag__source {
    display: none;
  }
}
