/*=================== HERO =================== */
.hero {
  background-image: linear-gradient(#f3e8f8 13%, #ffecec 38%, #ffffff 102%);
  position: relative;
}

.hero__container {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  justify-content: center;
  align-items: center;
  max-width: 1280px;
  padding: 6% 0 5% 0;
  background-image: radial-gradient(circle, #fff 34%, #ffffff03 66%, #fff0);
  z-index: 2;
  position: relative;
}

.hero__title {
  font-size: 4rem !important;
}

.hero__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2rem;
  max-width: 700px;
}

.hero__btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background-color: #06022a;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  margin: 0 0 3rem 0;
}

.hero__btn:hover {
  background-color: #f44326;
  transition: background-color 0.1s ease;
}
/*=================== DIAGRAM =================== */
.diagram__container {
  max-width: 1280px;
  margin: 0 auto;
  background-color: #ffffff00;
  text-align: center;
  padding: 2rem;
  border-radius: 4rem;
  -webkit-box-shadow: 0px 0px 56px 24px rgba(34, 60, 80, 0.1);
  -moz-box-shadow: 0px 0px 56px 24px rgba(34, 60, 80, 0.1);
  box-shadow: 0px 0px 56px 24px rgba(34, 60, 80, 0.1);
  will-change: transform;
  border: 2px solid #ffffff74;
  position: relative;
  z-index: 2;
}

.diagram__img {
  max-width: 1270px;
  background-color: #ffffff00;
  text-align: center;
  border-radius: 4rem;
  border: 2px solid #ffffffaf;
  -webkit-box-shadow: 0px 0px 29px 10px rgba(34, 60, 80, 0.1);
  -moz-box-shadow: 0px 0px 29px 10px rgba(34, 60, 80, 0.1);
  box-shadow: 0px 0px 29px 10px rgba(34, 60, 80, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.diagram__img img {
  width: 100%;
  border-radius: 4rem;
}

/*===================== devops-mlops-services ====================== */

.devops-mlops-services__container {
  max-width: 1280px;
  margin: 10% auto 5% auto;
  display: flex;
  flex-direction: column;
  gap: 6rem;
  position: relative;
  z-index: 2;
}

.devops-mlops-services__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.devops-mlops-services__top_title {
  text-align: center;
}

.devops-mlops-services__top_texts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  text-align: center;
  max-width: 900px;
}

.devops-mlops-services__bottom {
  display: flex;
  justify-content: center;
  max-width: 1280px;
}

.devops-mlops-services__bottom_block {
  text-align: center;
  width: 33%;
  padding: 5% 0 0 0;
  border-top: 1px solid #cbcbcb6f;
}

._block2 {
  border-left: 1px solid #cbcbcb6f;
  border-right: 1px solid #cbcbcb6f;
}

.devops-mlops-services__block_number {
  color: #06022a;
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

/* ================== TECH ==================== */
.tech {
  background: #e5e8eb;
}

.tech__container {
  display: flex;
  flex-direction: column;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6% 0;
}

.tech__top {
  display: flex;
}

.tech__top_left {
  flex-grow: 1;
  width: 100%;
}

.tech__top_subtitle {
  margin-bottom: 1rem;
}

.tech__top_right {
  display: flex;
  align-items: center;
}

.tech__bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5rem;
  margin: 10% 0 0 0;
}

@media (max-width: 1024px) {
  .tech__bottom {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.tech__block_img {
  font-size: 1.9rem;
  color: #f44326;
}

.tech__block_title h3 {
  color: #40454f;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 1rem 0 0.7rem 0;
}

.tech__block_text p {
  font-size: 1.2rem;
}

/*====================== WHAT WE DO ======================== */
.whatWeDo {
  background-image: radial-gradient(
    circle at 65%,
    #3d1369,
    #1e2630 40%,
    #111 90%
  );
}

.whatWeDo__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5% 0 10% 0;
}

.whatWeDo__top {
  text-align: center;
}

.whatWeDo__top_subtitle {
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
}

.whatWeDo__top_title {
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(90deg, #f5826f, #fb928c 0%, #e3b9f2);
  -webkit-background-clip: text;
  background-clip: text;
  margin: 1rem 0 1.5rem 0;
  font-size: 3.5rem;
}

.whatWeDo__top_description {
  color: #ffffffed;
  font-size: 1.1rem !important;
}

.whatWeDo__bottom {
  display: flex;
  margin: 5% 0 0 0;
}

.whatWeDo__services {
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.whatWeDo__service_box {
  padding: 2rem;
  max-width: 400px;
  cursor: pointer;
}

.whatWeDo__service_title {
  display: flex;
  gap: 1rem;
  margin: 0 0 2rem 0;
  font-size: 1.3rem;
}

.whatWeDo__service_title h5 {
  font-size: 1.125rem;
  font-weight: 700 !important;
}

.whatWeDo__service_description {
  font-size: 1rem !important;
  line-height: 160%;
}

.whatWeDo__images {
  position: relative;
  width: 100%;
}

.whatWeDo__image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  width: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 0;
  border-radius: 1rem;
}

.whatWeDo__image.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.whatWeDo__service_box.active {
  background-color: #fff3;
  border-radius: 1rem;
}

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

.whatWeDo__CTA__text {
  position: relative;
  padding: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.whatWeDo__CTA__text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: #fff;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.whatWeDo__CTA__text span {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 100 !important;
  transition: transform 0.3s ease;
}

/* Hover effects */
@media (min-width: 769px) {
  .whatWeDo__CTA__text:hover::after {
    transform: scaleX(0);
  }

  .whatWeDo__CTA__text:hover span {
    transform: rotate(-45deg);
  }
}

/*=================== overview =================== */
.overview {
  background-color: #f5f7fa;
}

.overview__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10% 0;
}

.overview__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.overview__top_title {
  text-align: center;
}

.overview__top_description {
  text-align: center;
}

.overview__bottom {
  display: grid;
  justify-content: center;
  margin: 5rem 0 0 0;
  align-items: stretch;
  gap: 2rem;

  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .overview__bottom {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.overview__bottom_box {
  box-sizing: border-box;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.overview__box_description {
  flex-grow: 1;
}

.overview__box_icon {
  font-size: 3rem;
  color: #f44326;
}

.overview__box_title {
  font-size: 1.3rem;
  font-weight: 700 !important;
  margin: 1.3rem 0 0.8rem 0;
}

.overview__box_description {
  line-height: 150%;
}

.overview__CTA {
  margin-top: auto;
}

.overview__box_btn {
  color: #111;
  display: block;
}

.overview__CTA {
  margin: 2rem 0 0 0;
}

.overview__box_btn::after {
  background-color: #cbcbcb6f;
}

/*================== reviews ===================== */
.reviews__contaier {
  max-width: 100%;
  overflow: hidden;
  margin: 5rem 0 0 0;
}

.reviews__top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.reviews__title {
  text-align: center;
}

.reviews__description {
  text-align: center;
}

.reviews__carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 5rem 0;
}

.reviews__carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
  padding: 0 60px;
  box-sizing: content-box;
}

.reviews__carousel_top {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.reviews__carousel_name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.reviews__carousel_info {
  font-size: 1rem;
}

.reviews__carousel_description {
  line-height: 120%;
  margin: 1.5rem 0 0 0;
}

.reviews__carousel_testimonial {
  flex: 0 0 calc(33.333% - 20px);
  margin-right: 20px;
  box-sizing: border-box;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #06022a;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
}

.slider-button.prev {
  left: 10px;
}

.slider-button.next {
  right: 10px;
}
@media (max-width: 768px) {
  .reviews__carousel_testimonial {
    flex: 0 0 85%;
    margin-right: 16px;
  }
}

.reviews__CTA__text {
  color: #06022a;
  margin: 0 0 4% 0;
}

.reviews__CTA__text::after {
  background-color: #06022a;
}

/* ================= CALL ==================== */
.call {
  background-image: linear-gradient(225deg, #e6d0ed, #ffebeb);
  padding: 6% 0;
}

.call__container {
  display: flex;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.call__left {
  max-width: 45%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.call__right {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.call__btn {
  display: inline-block;
  padding: 1.35rem 2rem;
  background-color: #06022a;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  font-size: 1.3rem;
}

.call__btn:hover {
  background-color: #f44326;
  transition: background-color 0.1s ease;
}

/* ==============FAQ ============= */
.faq {
  padding: 5% 0;
  color: #333;
}

.faq__container {
  max-width: 1280px;
  margin: 0 auto;
}

.faq__title,
.faq__subtitle {
  text-align: center;
}

.faq__title {
  margin: 1.5rem 0 3% 0;
}

.faq__item + .faq__item {
  margin-top: 1rem;
}

.faq__question {
  width: 100%;
  padding: 1rem 1.125rem;
  background-color: #fff;
  border: 1px solid #ddd;
  font-size: 1.2rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #111;
}

.faq__question:hover {
  background-color: #f1f1f1;
  color: #111;
}

.faq__icon {
  font-weight: bold;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid #ddd;
  border-top: none;
  padding: 0 1.125rem;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__item--active .faq__answer {
  max-height: 200px;
  padding: 1rem 1.125rem;
}

.faq__item--active .faq__icon {
  transform: rotate(45deg);
}

/* ================= certificates ================= */
.certificates {
  padding: 5rem 2%;
  background-image: linear-gradient(135deg, #f5f5f5 0%, #e5e8eb 100%);
}

.certificates__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--gap);
  align-items: center;
  justify-items: center;
  margin: 5rem auto;
  max-width: 1200px;
}

.certificates__item {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  box-sizing: border-box;
}

.certificates__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: none;
}

.certificates__img--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  padding: 6px;
  box-sizing: border-box;
}

.certificates__slider-controls {
  display: none !important;
}

.certificates__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.certificates__nav--left {
  left: 8px;
}

.certificates__nav--right {
  right: 8px;
}

.certificates__btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--accent);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}

.certificates__title {
  text-align: center;
}

.certificates__dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}

.certificates__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s;
}

.certificates__dot--active {
  background: var(--accent);
}

/* ======= Responsive ======= */
@media (min-width: 768px) {
  .certificates__item {
    aspect-ratio: 5 / 3;
  }
}

@media (min-width: 1024px) {
  .certificates__grid {
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  }

  .certificates__item {
    aspect-ratio: 6 / 3;
  }
}

@media (max-width: 769px) {
  ._title {
    font-size: 3rem;
  }
  /* ============diagram =========== */

  .diagram__container {
    padding: 0.3rem;
    border-radius: 1rem;
    margin: 0 2%;
  }

  .diagram__img {
    padding: 0rem;
    border: none;
    border-radius: 1rem;
  }

  .diagram__img img {
    border-radius: 1rem;
  }

  /* devops-mlops-services */
  .devops-mlops-services__container {
    margin-top: 6.125rem;
  }

  .devops-mlops-services__top {
    margin: 0 2%;
  }

  .devops-mlops-services__bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 6rem;
  }

  .devops-mlops-services__bottom_block {
    border: none;
    width: 100%;
  }
  /* whatWeDo */
  .whatWeDo__container {
    padding: 6rem 0 10rem 0;
    background-image: radial-gradient(
      circle at 50% 80%,
      #3d1369,
      #1e2630 26%,
      #111 89%
    );
  }

  .whatWeDo__services {
    align-items: center;
  }
  .whatWeDo__bottom {
    flex-direction: column;
    margin: 6rem 2%;
  }

  .whatWeDo__images {
    margin: 60% 0 0 0;
  }

  .whatWeDo__image {
    width: 90%;
  }

  /* overview */
  .overview__container {
    margin: 0 2%;
  }

  /* tech */
  .tech__container {
    margin: 0 2%;
    padding: 6rem 0;
  }

  .tech__top {
    flex-direction: column;
    gap: 2rem;
  }

  .tech__bottom {
    grid-template-columns: 1fr;
  }

  /* tech */
  .tech__block {
    width: 100%;
  }

  /* call */
  .call__container {
    flex-direction: column;
    gap: 2rem;
    margin: 0 2%;
    padding: 3rem 0;
  }

  .call__title {
    text-align: center;
  }

  .call__description {
    text-align: center;
  }

  .call__left,
  .call__right {
    max-width: 100%;
    justify-content: center;
  }

  /* hero */
  .hero__title {
    font-size: 2.5rem !important;
  }

  /* faq % */
  .faq__container {
    margin: 0 2%;
    padding: 6rem 0;
  }

  /* ============reviews========== */
  .reviews__contaier {
    margin: 0 2%;
  }

  .scroll-right {
    display: none !important;
  }

  .reviews__carousel-container {
    overflow: hidden;
    padding: 3rem 0;
  }

  .reviews__carousel-track {
    gap: 1rem;
    padding: 0 1rem;
  }

  .reviews__carousel_testimonial {
    flex: 0 0 85%;
    margin-right: 0;
    scroll-snap-align: start;
  }

  .slider-button {
    display: none;
  }
  .reviews__CTA {
    margin: 3rem 0 0 0;
  }
}

@media (min-width: 769px) {
  .tech__container,
  .whatWeDo__container,
  .call__container {
    padding-left: 2%;
    padding-right: 2%;
  }
}
