/* ==========================================================================
   Front page only — hero slider, testimonials
   Loaded via enqueue.php only on is_front_page()
   ========================================================================== */

/* --- Hero slider --- */

.hero {
  padding: 0;
}

.hero-swiper {
  width: 100%;
}

.hero-slide {
  min-height: 100vh;
  border-radius: 0;
  background: #0a1625;
  overflow: hidden;
  box-shadow: none;
  display: grid;
  align-items: center;
  position: relative;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(95deg, rgba(4, 10, 20, 0.72) 0%, rgba(4, 10, 20, 0.36) 42%, rgba(4, 10, 20, 0.18) 100%);
  z-index: 1;
}

.hero-slide__content {
  color: #fff;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  max-width: none;
  padding: clamp(120px, 17vh, 200px) 0 clamp(72px, 10vh, 116px);
  position: relative;
  z-index: 2;
}

.hero-slide h1,
.hero-slide h2 {
  margin: 0;
  font-size: clamp(42px, 5.1vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 760px;
  text-transform: none;
}

.hero-slide p {
  font-size: clamp(16px, 1.2vw, 22px);
  font-weight: 500;
  max-width: 680px;
  margin: 22px 0 34px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-trust-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
}

.hero-trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(9, 18, 29, 0.4);
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-trust-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(242, 190, 116, 0.22);
}

.hero .swiper-button-prev,
.hero .swiper-button-next {
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(5, 9, 17, 0.28);
}

.hero .swiper-button-prev::after,
.hero .swiper-button-next::after {
  font-size: 16px;
  font-weight: 700;
}

.hero .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.58);
  opacity: 1;
}

.hero .swiper-pagination-bullet-active {
  background: #fff;
}

.home .hero-slide__content .btn,
.home .hero-slide__content .sc_button.sc_button_default.sc_button_size_normal {
  margin-inline: auto;
}

/* --- Testimonials --- */

.testimonials-slider{
  margin-top: 24px;
}

.testimonials-block {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-inline: 0;
}

.testimonials-block .container {
  width: min(var(--container), calc(100% - 48px));
}

.testimonials-block .section-subtitle,
.testimonials-block .section-title {
  text-align: center;
}

.testimonials-block .section-title {
  max-width: 920px;
  margin-inline: auto;
  margin-bottom: 6px;
}

.testimonials-proof-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.testimonials-proof-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 21, 33, 0.5);
  color: rgba(231, 238, 250, 0.96);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
}

.testimonials-proof-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.testimonials-slider__grid {
  display: flex;
  align-items: start;
}

.testimonial-card {
  border-radius: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(26, 28, 36, 0.96), rgba(23, 24, 31, 0.96));
  box-shadow: none;
  padding: clamp(34px, 3vw, 48px);
  min-height: 340px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  --helper-x: 72%;
  --helper-y: 70%;
}

.testimonial-card__content {
  max-width: 520px;
}

.testimonial-card__mark {
  display: inline-block;
  margin-bottom: 18px;
  color: #ea3d86;
  font-size: 76px;
  line-height: 0.65;
  font-weight: 700;
}

.testimonial-card__content p {
  margin: 0 0 26px;
  font-size: clamp(16px, 1.14vw, 19px);
  line-height: 1.7;
  color: rgba(224, 230, 242, 0.88);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-card__author img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__avatar-fallback {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.testimonial-card__author-name {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: #fff;
}

.testimonial-card__author-city {
  color: rgba(185, 196, 216, 0.88);
  font-size: 16px;
}

.testimonial-card__hover-helper {
  position: absolute;
  left: var(--helper-x);
  top: var(--helper-y);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(5, 7, 12, 0.96);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity .22s ease, transform .22s ease, background .22s ease, left .12s linear, top .12s linear;
  pointer-events: none;
  will-change: left, top, transform, opacity;
}

.testimonial-card__hover-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 255, 255, 0.96);
}

.testimonial-card:hover .testimonial-card__hover-helper,
.testimonial-card:focus-within .testimonial-card__hover-helper {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.testimonials-block .swiper-pagination {
  margin-top: 28px;
  position: static;
  display: flex;
  justify-content: center;
  gap: 10px;
  min-height: 12px;
}

.testimonials-block .swiper-pagination-bullet {
  width: 11px;
  height: 11px;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.28);
  opacity: 1;
}

.testimonials-block .swiper-pagination-bullet-active {
  background: #2d5bff;
  transform: scale(1.05);
}

.testimonials-conversion-cta {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 26, 39, 0.58);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.testimonials-conversion-cta p {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.45;
}

/* --- Mobile overrides --- */

@media (max-width: 860px) {
  .hero .swiper-button-prev,
  .hero .swiper-button-next {
    display: none;
  }

  .hero-slide {
    min-height: 90vh;
  }

  .hero-slide__content {
    width: calc(100% - 32px);
    padding: 120px 0 66px;
  }

  .hero-slide h1,
  .hero-slide h2 {
    font-size: clamp(34px, 10vw, 54px);
    max-width: 460px;
  }

  .hero-slide p {
    font-size: 16px;
    margin-top: 16px;
    margin-bottom: 24px;
  }

  .hero-trust-list {
    margin-top: 18px;
    gap: 8px;
  }

  .hero-trust-list li {
    font-size: 11px;
    padding: 7px 10px;
  }

  .testimonials-slider__grid {
    display: flex;
  }

  .testimonial-card {
    min-height: 0;
    padding: 28px 24px;
  }

  .testimonial-card__hover-helper {
    display: none;
  }

  .testimonial-card__mark {
    margin-bottom: 12px;
    font-size: 58px;
  }

  .testimonial-card__author img,
  .testimonial-card__avatar-fallback {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 390px) {
  .hero-slide {
    min-height: 86vh;
  }

  .hero-slide__content {
    width: calc(100% - 22px);
    padding: 98px 0 36px;
  }

  .hero-slide h1,
  .hero-slide h2 {
    font-size: clamp(27px, 8.8vw, 34px);
    line-height: 1.03;
    max-width: 100%;
  }

  .hero-slide p {
    font-size: 14px;
    line-height: 1.42;
    margin: 11px 0 14px;
  }

  .hero .btn,
  .hero .sc_button.sc_button_default.sc_button_size_normal {
    width: 100%;
    justify-content: center;
    padding: 11px 13px;
    font-size: 12px;
  }

  .hero-trust-list {
    gap: 6px;
    margin-top: 10px;
  }

  .hero-trust-list li {
    font-size: 10px;
    padding: 5px 8px;
  }
}

/* --- CTA section (bottom of front page) --- */

.cta-block {
  background: linear-gradient(180deg, rgba(20, 30, 45, 0.96), rgba(18, 27, 40, 0.96));
}

.cta-block h2,
.cta-block .section-title {
  text-transform: uppercase;
}

.cta-block .sc_button,
.cta-block .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.cta-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* --- Director grid (front page variant) --- */

.director-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 30px;
  align-items: center;
}

.director-grid img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
}

.director-quote {
  position: relative;
  margin: 0 0 20px;
  padding: 18px 20px 18px 28px;
  border-left: 3px solid var(--color-primary);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 10px 10px 0;
  font-size: clamp(18px, 2.3vw, 28px);
  line-height: 1.3;
}

.director-quote::before {
  content: '"';
  position: absolute;
  left: 10px;
  top: 4px;
  font-size: 34px;
  color: var(--color-primary);
  line-height: 1;
}

.director-quote p {
  margin: 0;
}

/* --- Mobile overrides for front-page sections --- */

@media (max-width: 860px) {
  .director-grid {
    grid-template-columns: 1fr;
  }

  .cta-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  .services-icons-block,
  .services-grid-block,
  .cta-block {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .services-icons-block .container,
  .services-grid-block .container,
  .cta-block .container {
    width: calc(100% - 24px);
  }

  .cta-grid {
    gap: 10px;
  }

  .cta-grid .section-title {
    font-size: clamp(20px, 7.8vw, 26px);
    line-height: 1.08;
    margin-bottom: 8px;
  }

  .cta-grid .wysiwyg {
    font-size: 13px;
    line-height: 1.4;
  }

  .cta-grid .sc_button.sc_button_default.sc_button_size_normal {
    width: 100%;
    justify-content: center;
    padding: 11px 13px;
    font-size: 12px;
  }
}
