.hero,
.how,
.why,
.custom-tickets {
  overflow: hidden;
}
.hero {
  position: relative;
}

.hero::before {
  display: block;
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  width: 170%;
  aspect-ratio: 1;
  background-image: url("../img/design/shine_double_color.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.text-blue-main {
  color: #2c75ff;
  font-family: "Onder" !important;
  font-size: 15px !important;
  line-height: 2 !important;
}

.wrapper-btn {
  justify-content: space-between;
  align-items: center;
}

.box-grd {
  position: relative;
}

.box-grd::before,
.wrapper-cards-why::before {
  display: block;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170%;
  aspect-ratio: 1;
  background-image: url("../img/design/oreol_blue_dark.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.box-grd .mockup-text span,
.custom-tickets .mockup-text span {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 23px;
  font-weight: 900;
  color: #fff;
  font-family: "Exo2-Bold" !important;
  font-weight: 600;
}

.btn-how {
  color: #71a2ff !important;
}

.btn-how svg {
  width: auto;
}

.wrapper-mockup,
.wrapper-illustration {
  margin-top: 40px;
  width: 100%;
  height: 300px;
}

.custom-tickets .wrapper-mockup {
  height: 400px;
}

.wrapper-mockup img,
.wrapper-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wrapper-cards-pain {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.card-pain {
  padding: 0 !important;
  padding: 5px;
  border-radius: 30px;
  background: linear-gradient(
    0deg,
    rgba(133, 76, 255, 0.1) 0%,
    rgba(44, 117, 255, 0.2) 100%
  );
}

.card-pain .card-pain-content {
  padding: 30px 50px !important;
}

.card-pain .number-pain {
  color: white;
  font-family: "Exo2-Bold";
  font-weight: 600;
  line-height: 1 !important;
  font-size: 23px !important;
}

.content .title-main {
  font-size: 15px !important;
  font-family: "Onder" !important;
  line-height: 2 !important;
}

.title-pains,
.title-how,
.title-why,
.title-custom-tickets {
  font-size: 15px !important;
  font-weight: 900 !important;
  color: #fff !important;
  font-family: "Onder" !important;
  line-height: 2 !important;
}

.title-custom-tickets {
  position: relative;
}

.wrapper-cards-how {
  position: relative;
}

.wrapper-cards-how::before {
  display: block;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170%;
  aspect-ratio: 1;
  background-image: url("../img/design/blending_mob.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.card-how {
  padding: 30px 50px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
  border-radius: 30px;
  backdrop-filter: blur(5px);
  border: 0.5px solid #ffffff1c;
}

.card-why {
  position: relative;
  padding: 30px 50px;
  border-radius: 30px;
}

.wrapper-cards-why .wrapper-card-why:nth-of-type(1) .card-why {
  background-color: #2c75ff6e;
}

.wrapper-cards-why .wrapper-card-why:nth-of-type(2) .card-why,
.wrapper-cards-why .wrapper-card-why:nth-of-type(4) .card-why {
  background-color: #08090e;
}

.wrapper-cards-why .wrapper-card-why:nth-of-type(3) .card-why {
  background-color: #854cff80;
}

.card-how-title,
.card-title-why {
  font-size: 23px;
  color: #fff;
  font-family: "Exo2-Bold" !important;
  font-weight: 600;
}

.custom-tickets,
.wrapper-mockup,
.mockup-text {
  position: relative;
}

.custom-tickets::before {
  display: block;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 190%;
  aspect-ratio: 1;
  background-image: url("../img/design/shine_rctngl_mob.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.why .card-text {
  color: white !important;
}

@media (max-width: 768px) {
  .content.pad-40 {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 0;
    min-height: 100px;
  }

  .pain .btn-width,
  .how .btn-width,
  .why .btn-width {
    width: 100% !important;
  }

  .wrapper-mockup {
    margin-top: 40px;
    width: 100%;
    height: 300px;
    opacity: 0;
    transform: translateX(80px); /* начальное смещение вправо */
    transition: opacity 2s cubic-bezier(0.4, 1.4, 0.6, 1),
      transform 2s cubic-bezier(0.4, 1.4, 0.6, 1);
  }

  .wrapper-mockup.mockup-in-view {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 390px) {
  .mockup-text {
    font-size: 20px !important;
  }
}

/* Анимация карточек секции how - начало */
/* контейнер с перспективой как раньше */
.how .wrapper-cards-how {
  perspective: 1000px;
  perspective-origin: 50% 20%;
}

/* базовый стиль карточки */
.how .card-how {
  transform-style: preserve-3d;
  transform-origin: center bottom;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 420ms ease,
    filter 420ms ease, clip-path 420ms ease;
  backface-visibility: hidden;
  /* по умолчанию — без сужения верха */
  --taper: 0px;
  clip-path: polygon(
    var(--taper) 0,
    calc(100% - var(--taper)) 0,
    100% 100%,
    0 100%
  );
}

/* когда карточка «встала» (is-upright) — убираем трапецию */
.how .card-how.is-upright {
  --taper: 0px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
/* Анимация карточек секции how - конец */

.wrapper-illustration {
  height: 260px;
  margin-top: 10px;
}

/* =========================
   DESKTOP ADAPTIVE (>=992px)
   ========================= */
@media (min-width: 992px) {
  .content {
    min-height: auto !important;
  }
  .wrapper-illustration {
    height: 220px;
    margin-top: 0;
  }
  /* Общие отступы секций */
  .content.pad-40 {
    padding-left: 60px;
    padding-right: 60px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  /* HERO: делаем нормальный крупный заголовок */
  .content .title-main {
    font-size: 30px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em;
  }

  .text-blue-main {
    font-size: inherit !important; /* чтобы не ломало размер заголовка */
    line-height: inherit !important;
  }

  /* Подзаголовок в hero */
  .hero p {
    font-size: 18px;
    line-height: 1.6;
  }

  /* Кнопки: на десктопе лучше слева и с gap */
  .wrapper-btn {
    justify-content: space-evenly;
    gap: 18px;
    flex-wrap: wrap;
  }

  /* Мокап и подписи */
  .box-grd .mockup-text,
  .custom-tickets .mockup-text {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
  }

  .box-grd .mockup-text span,
  .custom-tickets .mockup-text span {
    font-size: 18px;
  }

  .wrapper-mockup {
    height: 520px; /* больше места мокапу */
    margin-top: 10px;
  }

  .custom-tickets .wrapper-mockup {
    height: 520px;
  }

  /* Заголовки секций */
  .title-pains,
  .title-how,
  .title-why,
  .title-custom-tickets {
    font-size: 34px !important;
    line-height: 1.2 !important;
  }

  /* Карточки */
  .card-pain .card-pain-content,
  .card-how,
  .card-why {
    padding: 28px 32px !important; /* на десктопе меньше “воздуха” внутри */
  }

  .card-pain .number-pain,
  .card-how-title,
  .card-title-why {
    font-size: 20px;
  }

  /* HOW: чтобы не было слишком узко */
  .wrapper-cards-how {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }

  /* WHY: контейнер у тебя уже есть, но усилим сетку */
  .why .container {
    max-width: 1200px;
  }
}

/* =========================
   LARGE DESKTOP (>=1200px)
   ========================= */
@media (min-width: 1200px) {
  .content.pad-40 {
    padding: 80px;
  }

  .hero-text {
    width: 100% !important;
  }

  .hero-text .hero-text-frst {
    text-align: left !important;
    margin: 0 !important;
    max-width: none !important;
  }

  .hero p {
    max-width: 560px;
  }

  .hero .box-grd {
    display: none !important;
  }

  .hero .wrapper-mockup {
    height: auto;
  }

  .wrapper-btn {
    justify-content: flex-start;
  }

  .phone-ticket-check {
    width: 50%;
    max-width: 350px;
  }

  .phone-ticket-check .mockup-text {
    display: flex;
    flex-direction: column;
  }

  .custom-tickets .wrapper-mockup {
    height: 620px;
  }

  .title-pains,
  .title-how,
  .title-why,
  .title-custom-tickets {
    font-size: 25px !important;
  }

  .pain .pain-row {
    align-items: flex-end; /* выравниваем колонки по нижней линии */
  }

  .pain .pain-row {
    margin-top: 60px !important;
  }

  .pain .wrapper-illustration {
    display: flex;
    align-items: flex-end; /* прижимаем картинку вниз внутри колонки */
    justify-content: center;
    margin-top: 0;
  }

  .pain .wrapper-illustration img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
  }

  .custom-tickets-content {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .custom-tickets-content .mockup-text {
    /* width: 30%; */
  }

  .custom-tickets-content .wrapper-mockup span {
    position: absolute;
    font-size: 23px;
    font-weight: 900;
    color: #fff;
    font-family: "Exo2-Bold" !important;
    font-weight: 600;
  }

  .custom-tickets-content .wrapper-mockup span:nth-of-type(1) {
    top: 150px;
    left: -310px;
  }

  .custom-tickets-content .wrapper-mockup span:nth-of-type(2) {
    bottom: 50%;
    right: -420px;
  }

  .custom-tickets-content .wrapper-mockup span:nth-of-type(3) {
    bottom: 150px;
    left: -310px;
  }

  .custom-tickets .wrapper-mockup {
    position: relative;
    width: 30%;
    max-width: 370px;
  }
}
