/* ===== SERVICES PAGE: HERO ===== */

.svc-hero {
  width: 100%;
  background: #fff;
}

.svc-hero__container {
  max-width: var(--container);
  margin: 0 auto;

  /* много воздуха как на макете */
  padding: 150px 20px 160px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.svc-hero__kicker {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.svc-hero__kicker-top,
.svc-hero__kicker-bottom {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(11, 11, 20, 0.55);
}

.svc-hero__title {
  margin: 0;
  font-family: var(--font);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #141431;
}

.svc-hero__btn {
  margin-top: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .svc-hero__container {
    padding: 110px 16px 120px;
  }
  .svc-hero__title {
    font-size: 34px;
  }
}

@media (max-width: 480px) {
  .svc-hero__container {
    padding: 92px 14px 110px;
  }
  .svc-hero__title {
    font-size: 30px;
  }
}






/* ===== VIDEO COURSES BLOCK ===== */
.svc-courses {
  width: 100%;
  background: #fff;
  padding: 30px 0 30px;
}

.svc-courses__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.svc-courses__head {
  text-align: center;
  margin-bottom: 28px;
}

.svc-courses__title {
  margin: 10px 0 10px;
  font-family: var(--font);
  font-size: 30px;
  font-weight: 800;
  color: #141431;
}

.svc-courses__subtitle {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(11, 11, 20, 0.60);
}

/* flex centered list: 1 or 2 per row, center always */
.svc-courses__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* ключ: центрируем любые остатки в ряду */
  gap: 26px;
  margin-top: 34px;
}

/* card */
.svc-course-card {
  width: min(520px, 100%);
  background: #fff;
  border: 1.6px solid rgba(87, 81, 225, 0.35);
  border-radius: 12px;
  padding: 22px;
  position: relative;
  overflow: hidden;

  font-family: var(--font);
}

/* top layout */
.svc-course-card__top {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.svc-course-card__img {
  width: 210px;
  height: 150px;
  border-radius: 10px;
  background: #fff;
  flex: 0 0 210px;
  display: flex;
  justify-content: center;
  align-items: center;
}


.svc-course-card__meta {
  flex: 1;
}

.svc-course-card__name {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  color: #141431;
}

.svc-course-card__sub {
  font-size: 14px;
  font-weight: 500;
  color: #141431;
  margin-bottom: 10px;
}

.svc-course-card__tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(11, 11, 20, 0.06);
  color: #141431;
  font-size: 12px;
  font-weight: 600;
}

.svc-course-card__price {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 800;
  color: #5751E1;
}

/* body */
.svc-course-card__body {
  margin-top: 16px;
  color: rgba(11, 11, 20, 0.55);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
}

.svc-course-card__content-title {
  margin: 12px 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(11, 11, 20, 0.60);
}

.svc-course-card__list {
  margin: 0 0 0 18px;
  padding: 0;
}

.svc-course-card__bullets {
  margin: 10px 0 0 18px;
  padding: 0;
}

/* ===== hover popup inside card ===== */
.svc-course-card__popup {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;

  transition: opacity .18s ease, transform .18s ease;
}

.svc-course-card:hover .svc-course-card__popup {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* the "Подробнее" link (as in screenshot: simple text button) */
.svc-course-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;

  font-size: 20px;
  font-weight: 800;
  color: #5751E1;
  text-decoration: none;
  background: transparent;
}

/* optional: dim content when hover to emphasize popup */
.svc-course-card:hover .svc-course-card__body {
  opacity: 0.16;
  transition: opacity .18s ease;
}
.svc-course-card .svc-course-card__body {
  transition: opacity .18s ease;
}

.svc-course-card__price-prefix {
  font-size: 16px;
  font-weight: 700;
  color: #5751E1;
  margin-right: 6px;
}


@media (min-width: 1180px) {
/* ===== SERVICES PAGE: HERO ===== */

.svc-hero__kicker-top,
.svc-hero__kicker-bottom {
  font-size: 13px; /* было 11 -> 12.1 -> 13 */
}

.svc-hero__title {
  font-size: 49px; /* было 44 -> 48.4 -> 49 */
}


/* ===== VIDEO COURSES BLOCK ===== */

.svc-courses__title {
  font-size: 33px; /* было 30 -> 33 */
}

.svc-courses__subtitle {
  font-size: 16px; /* было 13 -> 14.3 -> 15 */
}

.svc-course-card__name {
  font-size: 16px; /* было 14 -> 15.4 -> 16 */
}

.svc-course-card__sub {
  font-size: 16px; /* было 14 -> 15.4 -> 16 */
}

.svc-course-card__tag {
  font-size: 16px; /* было 12 -> 13.2 -> 14 */
}

.svc-course-card__price {
  font-size: 25px; /* было 22 -> 24.2 -> 25 */
}

.svc-course-card__body {
  font-size: 16px; /* было 12.5 -> 13.75 -> 14 */
}

.svc-course-card__content-title {
  font-size: 16px; /* было 12 -> 13.2 -> 14 */
}

.svc-course-card__more {
  font-size: 22px; /* было 20 -> 22 */
}

.svc-course-card__price-prefix {
  font-size: 18px; /* было 16 -> 17.6 -> 18 */
}
}



/* Responsive */
@media (max-width: 860px) {

  .svc-course-card__top {
    flex-direction: column;
    gap: 0;
  }
  .svc-course-card__img {
    width: 100%;
    flex: auto;
    height: 180px;
  }
  .svc-course-card__img img {
    width: 100%;
    height: 180px;
  }

}

@media (max-width: 480px) {
  .svc-courses { padding: 36px 0 70px; }
  .svc-courses__title { font-size: 26px; }
  .svc-course-card { padding: 18px; padding-top: 0;}
  .svc-course-card__more { font-size: 22px; }
}



#services-video-editing {
  background: url("./../images/services/services-video-editing-210-150.png") center / cover no-repeat;
}
#services-advertising-setup {
  background: url("./../images/services/services-advertising-setup-210-150.png") center / cover no-repeat;
}
#services-media-promotion {
  background: url("./../images/services/services-media-promotion-210-150.png") center / cover no-repeat;
}
#services-template-websites {
  background: url("./../images/services/services-template-websites-210-150.png") center / cover no-repeat;
} 
#services-design {
  background: url("./../images/services/services-design-210-150.png") center / cover no-repeat;
}
#services-development {
  background: url("./../images/services/services-development-210-150.png") center / cover no-repeat;
} 
#services-class-dream {
  background: url("./../images/services/services-class-dream-210-150.png") center / cover no-repeat;
}
#services-class-handmade {
  background: url("./../images/services/services-class-handmade-210-150.png") center / cover no-repeat;
} 
#services-mobile {
  background: url("./../images/services/services-mobile-210-150.png") center / cover no-repeat;
}
#services-strategy {
  background: url("./../images/services/services-strategy-210-150.png") center / cover no-repeat;
} 
/* 
# {
  background: url("./../images/services/") center / cover no-repeat;
} 
  */
/* Responsive */
@media (max-width: 860px) {
  #services-video-editing {
    background: url("./../images/services/services-video-editing-298-180.png") center / cover no-repeat;
  }
  #services-advertising-setup {
    background: url("./../images/services/services-advertising-setup-298-180.png") center / cover no-repeat;
  }
  #services-media-promotion {
    background: url("./../images/services/services-media-promotion-298-180.png") center / cover no-repeat;
  }
  #services-template-websites {
    background: url("./../images/services/services-template-websites-298-180.png") center / cover no-repeat;
  } 
  #services-design {
    background: url("./../images/services/services-design-298-180.png") center / cover no-repeat;
  }
  #services-development {
    background: url("./../images/services/services-development-298-180.png") center / cover no-repeat;
  } 
  #services-class-dream {
    background: url("./../images/services/services-class-dream-298-180.png") center / cover no-repeat;
  }
  #services-class-handmade {
    background: url("./../images/services/services-class-handmade-298-180.png") center / cover no-repeat;
  } 
  #services-mobile {
    background: url("./../images/services/services-mobile-298-180.png") center / cover no-repeat;
  }
  #services-strategy {
    background: url("./../images/services/services-strategy-298-180.png") center / cover no-repeat;
  } 
}