/* #Strat Hero */

.home-hero {
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  background-position-x: right;

}

.home-hero::after {
  content: "";
  background-image: linear-gradient(rgba(10, 16, 44, 0.425), rgba(1, 22, 36, 0.377)), url(../images/hero1.webp);
  background-size: cover;
  background-position: center;
  opacity: 95%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.home-hero .container {
  display: flex;
  flex-direction: column;
  gap: 70px;
  justify-content: space-between;
  align-items: space-between;
}

.home-hero h1 {
  line-height: 85px;
}

.home-hero-cards {
  display: flex;
  gap: 20px;
  overflow: hidden;
  justify-content: space-around;
}


.home-hero-cards .card {
  border-radius: 8px;
  /* padding: 24px; */
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
  flex: 1;
  width: 385px;
  /* min-width: 250px; */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* @media (max-width: 768px) {
  .home-hero-cards {}

  .home-hero h1 {
    font-size: 40px;
    line-height: 50px;
  }

  .home-hero .container {
    gap: 70px;
  }
} */



@media (max-width: 768px) {
  .home-hero .container {
    gap: 13px;
    justify-content: flex-start;
  }

  .home-hero h1 {
    font-size: 25px;
    line-height: 40px;
    text-align: center;
    margin: 0;
  }

  .home-hero-cards {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .home-hero-cards .card {
    width: 50%;
    max-width: 385px;
    text-align: center;
  }

  .home-hero-cards .card h2 {
    font-size: 25px;
    border-bottom: #A9A9A9 solid 1px;
  }

  .home-hero-cards .card h2 {
    font-size: 15px;
  }
}



/* #End Hero */

/* #Start our specializations */
.our-specializations {
  margin-top: var(--padding-big);
}

.specializations {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: flex-start; */
  justify-content: space-around;
  gap: 10px;
  margin-top: 30px;
}

.specialization-card {
  width: 32%;
  height: 40vh;
  max-width: 545px;
  position: relative;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.specialization-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.specialization-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.specialization-card:hover img {
  transform: scale(1.05);
}

.specializations .card-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.4s ease;
  z-index: 2;
}

.specialization-card:hover .card-content {
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
}

.text-wrapper {
  margin-bottom: 50px;
  transition: transform 0.4s ease;
  transform: translateY(20px);
}

.specialization-card:hover .text-wrapper {
  transform: translateY(0);
}

.specializations .card-title {
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 300;
  font-size: 24px;
  transition: color 0.3s;
}

.specialization-card:hover .card-title {
  color: #fff;
  font-weight: 500;
}

.specializations .card-description {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease 0.1s, max-height 0.4s ease;
  font-size: 14px;
  line-height: 1.5;
}

.specialization-card:hover .card-description {
  opacity: 1;
  max-height: 300px;
  margin-top: 15px;
}

.specializations .card-description ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.specializations .card-description li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 5px;
  opacity: 0;
  transform: translateX(-10px);
  animation: slideIn 0.3s forwards;
}

.specializations .card-description li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ffd700;
}


.specialization-card:hover .card-description li:nth-child(1) {
  animation-delay: 0.1s;
}

.specialization-card:hover .card-description li:nth-child(2) {
  animation-delay: 0.2s;
}

.specialization-card:hover .card-description li:nth-child(3) {
  animation-delay: 0.3s;
}

.specialization-card:hover .card-description li:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes slideIn {
  to {
    opacity: 0.9;
    transform: translateX(0);
  }
}

.specializations .card-footer {
  width: 230px;
  height: 50px;
  text-align: right;
  position: absolute;
  bottom: 0;
  right: 0;
  background-image: url(../images/rectangle.png);
  background-size: cover;
  color: white;
  font-size: 17px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  justify-content: end;
  align-items: center;
  transition: all 0.3s ease;
  padding-right: 10px;
  z-index: 3;
}

.card-footer:hover {
  padding-right: 15px;
}

.card-footer::after {
  content: '→';
  margin-left: 8px;
  font-weight: normal;
  transition: margin-left 0.3s;
}

.card-footer:hover::after {
  margin-left: 12px;
}


@media (max-width: 1024px) {
  .specialization-card {
    height: 31vh;
  }

  .specializations .card-footer {
    width: 157px;
    height: 38px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .specialization-card {
    width: 100%;
    max-width: 100%;
    height: 28vh;
    min-height: 250px;
  }

  .card-content {
    padding: 15px;
  }

  .specialization-card .card-content {
    background: rgba(0, 0, 0, 0.4);
  }

  .specializations .card-footer {
    font-size: 12px;
    width: 50%;
    height: 45px;
  }

  .specializations .card-title {
    font-size: 20px;
  }


  .specializations .card-description {
    /* Оставляем логику hover или меняем по желанию */
  }
}

/* #End our specializations */


/* #Start Leave a request */

.leave-request {
  background-image: url(../images/bg-prime.png);
  background-size: cover;
  background-repeat: no-repeat;
  padding: 40px 20px;
  margin-bottom: 50px;
  margin-top: 50px;
  border-radius: 7px;
}

.leave-request .buttons {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 50px;
  gap: 20px;
}

.leave-request .btn {
  padding-top: 0;
  padding-bottom: 0;
  height: 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 443px;
}


.leave-request span {
  font-size: 12px;
}

@media (max-width: 990px) and (min-width: 769px) {
  .leave-request .btn {
    font-size: 15px;
  }

  .leave-request a {
    font-size: 11px;
  }

  .leave-request span {
    font-size: 9px;
  }
}

@media (max-width: 848px) {
  .leave-request .buttons {
    flex-direction: column;
    gap: 10px;
  }

  .leave-request .btn {
    max-width: 100%;
  }
}

/* #End Leave a request */

/* #Start projects */

.projects {
  display: flex;
  flex-direction: column;
  margin-top: var(--padding-big);
  margin-bottom: var(--padding-big);
}

.projects>h3 {
  margin-bottom: 35px;
}

.project-buttons {
  margin-bottom: 35px;
  display: flex;
  gap: 20px;
}


.next-btn {
  font-weight: 200;
  font-size: 17px;
  border: none;
  color: #A9A9A9;
  align-self: flex-end;
  margin-bottom: 15px;
  text-transform: uppercase;
  background-color: transparent;
  cursor: pointer;
}

.slider-navigation {
  display: flex;
  gap: 20px;
  align-self: flex-end;
  margin-bottom: 15px;
}

.nav-arrow {
  background: transparent;
  border: 1.5px solid #2d7ae0;
  color: #2d7ae0;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 22px;
  font-family: sans-serif;
  padding-bottom: 2px;
}

.nav-arrow:hover {
  background-color: #2d7ae0;
  color: #fff;
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
}

.project-card {
  background-color: var(--primary-color);
  min-width: 100%;
  position: relative;
  height: 561px;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 1;
}

.project-card::after {
  content: "";
  background-image: linear-gradient(rgba(10, 16, 44, 0.301), rgba(0, 8, 14, 0.589));
  background-size: cover;
  background-position: center;
  opacity: 95%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

.bg-project {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  object-fit: cover;
}

.project-card .content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 20px;
  padding-bottom: 0;
  padding-right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stats {
  display: flex;
  gap: 30px;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bold;
}

.stats .stat {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}


.stats img {
  max-width: 60px;
  transform: translateX(12px);
}

.stats .stat:first-child img {
  transform: translateX(7px);
}

.stats .stat:last-child img {
  transform: translateX(22px)
}

.stats .text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-left: #fff 1px solid;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.stats .text.visible {
  opacity: 1;
  transform: translateY(0);
}

.stats .stat:nth-child(1) .text {
  transition-delay: 0.1s;
}

.stats .stat:nth-child(2) .text {
  transition-delay: 0.3s;
}

.stats .stat:nth-child(3) .text {
  transition-delay: 0.5s;
}


.stats .text p {
  border-top: #fff solid 1px;
  width: 100%;
  margin-left: 5px;
  text-transform: uppercase;
  font-size: 16px;
}

.text-project {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 50px;
}

.project-title {
  font-weight: 400;
  color: #ff6600;
}

.project-subtitle {
  font-size: 16px;
  margin: 5px 0 20px 20px;
}

.project-subtitle p {
  text-transform: uppercase;
}

.read-btn {
  font-size: 20px;
  position: relative;
  background-image: url(../images/rectangle.png);
  background-size: cover;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 281px;
  height: 52px;
  padding-left: 47px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.read-btn:hover {
  filter: brightness(1.2) hue-rotate(10deg);
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .project-card {
    height: 400px;
  }
}

@media (max-width: 990px) and (min-width: 769px) {
  .read-btn {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .project-card {
    height: 400px;
  }


  .stats img {
    max-width: 40px;
    transform: translateX(8px);
  }

  .stats .stat:first-child img {
    transform: translateX(7px);
  }

  .stats .stat:last-child img {
    transform: translateX(14px)
  }



  .stats .text p {
    font-size: 10px;
  }

  .project-subtitle {
    font-size: 14px;
    margin: 5px 0 20px 10px;
  }

  .project-title {
    font-size: 24px;
  }

  .projects>h3 {
    margin-bottom: 30px;
  }

  .project-buttons {
    order: 1;
    flex-direction: column;
    gap: 5px;
  }

  .slider-navigation {
    /* align-self: flex-start; */
    margin-bottom: 5px;
  }


  .next-btn {
    display: none;
  }

  .project-buttons .btn {
    width: 100%;
    margin: 0;
  }

  .project-card {
    padding-top: 10px;
    height: 315px;
  }

  .project-card .content {
    padding: 0;
  }

  .stats {
    margin-top: 13px;
    gap: 10px;
  }

  .stats .text {
    padding-left: 5px;
  }

  .stats .text h1 {
    font-size: 17px;
  }

  .stats .text p {
    border: none;
    font-size: 6px;
  }

  .text-project {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-title {
    margin-left: 10px;
    font-size: 30px;
  }

  .read-btn {
    width: 100%;
    text-align: center;
    background-color: var(--secondary-color);
    padding-left: 0px;
  }

  .project-subtitle p {
    font-size: 9px;
  }
}

@media (max-width: 350px) {
  .project-card {
    height: 290px;
  }

  .stats img {
    max-width: 30px;
  }

  .project-title {
    font-size: 24px;
  }

  .read-btn {
    font-size: 18px;
  }
}

/* #End projects */

/* #Start Why Choose Us */

.why-choose-us {
  margin-bottom: var(--padding-big);
  color: black;
  position: relative;
}

.why-choose-us::after {
  content: url(../images/bg-s.png);
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  width: 100vw;
  overflow: hidden;
}

.why-choose-us .section-title {
  margin-bottom: 30px;
  text-transform: uppercase;
}

.advantages {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
}

.advantage-card {
  width: 23%;
  margin-bottom: 30px;
  transition: transform 0.3s;
}

.advantage-card:hover {
  transform: scale(1.06);
}

.advantage-number {
  color: var(--secondary-color);
  font-size: 45px;
}

.advantage-text {
  border-top: black solid 1px;
}


@media (max-width: 768px) {
  .advantage-card {
    width: 45%;
  }
}
@media (max-width: 480px) {
  .advantages {
    padding: 12px;
  }

  .advantage-text {
    font-size: 13px;  
  }
}

/* #End Why Choose Us */

/* #Start client logos */

.client-logos {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--padding-big);
}

.logo-nav-buttons {
  align-self: flex-end;
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border: 1.5px solid #2D74C4;
  border-radius: 10px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.nav-btn:hover {
  background-color: #2D74C4;
}

.nav-btn:hover svg path {
  stroke: #ffffff;
}

.logos-carousel-container {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.logos-container {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease-in-out;
}

.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 calc(33.333% - 16px);
  min-width: 250px;
  background-color: #e9f0f5;
  padding: 32px;
  transition: all 0.3s ease;
  /* cursor: pointer; */
  box-shadow: none;
}

.logo-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: grayscale(100%);
}

@media (max-width: 440px) {
  .nav-btn {
    width: 39px;
    height: 39px;
  }


  .logos-container {
    gap: 21px;
  }

  .logo-card {
    min-width: 178px;
    padding: 23px;
  }

  .nav-btn {
    width: 36px;
    height: 36px;
  }
}

/* #End client logos */

/* #Start Qa accordion */

.qa-accordion {
  margin-top: 100px;
  display: flex;
  justify-content: space-between;
  align-content: space-between;
  transition: all ease 0.3s;
}

.qa-main-title {
  color: black;
}

.qa-accordion-cards {
  width: 100%;
  max-width: 1000px;
}

.qa-accordion-item {
  background-color: var(--primary-color);
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 10px;
  transition: all ease 0.3s;
}

.qa-accordion-item:hover {
  transform: translateY(-6px);
  cursor: pointer;
}

.qa-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qa-accordion-header div {
  display: flex;
  gap: 15px;
  align-items: center;
}

.qa-accordion-header .item-title {
  font-size: 25px;
  transition: all ease 0.3s;
}

.qa-accordion-header .card-num {
  color: var(--secondary-color);
}

.qa-accordion-item img {
  width: 16px;
  transition: all ease 0.3s;
}

.qa-accordion-text {
  transition: all ease 0.3s;
  max-height: 0;
  overflow: hidden;
}

.qa-accordion-text li {
  list-style: disc;
}

.qa-accordion-item.active {
  background-image: url(../images/bg-prime-2.png);
  background-size: cover;
  background-repeat: no-repeat;
}

.qa-accordion-item.active .item-title {
  color: var(--secondary-color);
}

.qa-accordion-item.active img {
  transform: rotate(180deg);
}


.qa-accordion-item.active .qa-accordion-text {
  max-height: 500px;
  padding-left: 40px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .qa-accordion {
    flex-direction: column;
    gap: 20px;
  }

  .qa-accordion-header div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .qa-main-title {
    font-size: 17px;
  }

  .qa-accordion-header .item-title {
    font-size: 15px;
  }

  .qa-accordion-text li {
    font-size: 14px;
  }
}


/* #End Qa accordion */

/* #Start Home News */



.home-news-section {
  margin-top: 100px;
  margin-bottom: 100px;
}

.home-news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.home-news-nav-controls {
  display: flex;
  gap: 20px;
  align-self: end;
}

.nav-circle-btn {
  width: 50px;
  height: 50px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-width: 1.5px;
  border-style: solid;
  border-color: rgb(45, 116, 196);
  border-image: initial;
  border-radius: 10px;
  transition: 0.3s;
  padding: 0px;
}

.nav-circle-btn span {
  display: block;
  width: 13px;
  height: 13px;
  border-top: 3px solid #2d7cc0;
  border-right: 3px solid #2d7cc0;
  border-radius: 2px;
}

#homeNewsPrevBtn span {
  transform: rotate(-135deg);
  margin-left: 6px;
}

#homeNewsNextBtn span {
  transform: rotate(45deg);
  margin-right: 6px;
}

.nav-circle-btn:hover {
  background-color: #f0f7ff;
}

.home-news-slider {
  display: flex;
  gap: 20px;
  overflow: hidden;
  scroll-behavior: smooth;
  padding-bottom: 30px;
}

.home-news-card {
  flex: 0 0 calc(32% - 10px);
  background: white;
  border-radius: 8px;
  padding: 24px;
  position: relative;
  box-sizing: border-box;
  min-height: 420px;
}

.home-news-card-item {
  transition: all 0.3s ease;
}

.home-news-card-item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.home-news-card-item .home-news-headline {
  transition: transform 0.3s ease;
  transform-origin: left;
  font-size: 25px;
}

.home-news-card-item:hover .home-news-headline {
  transform: scale(1.1);
}

.home-news-card-main {
  flex: 0 0 calc(36% - 10px);
  background: url(../images/bg-cards-prime.png);
  background-size: cover;
  color: var(--home-news-white);
}

.home-news-card-main-title {
  margin: 0 0 10px;
  font-weight: 300;
}

.home-news-card-main-subtitle {
  font-size: 14px;
  line-height: 1.4;
}

.home-news-label {
  font-size: 16px;
  color: black;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.home-news-headline {
  margin: 0;
  color: var(--secondary-color);
}

.home-news-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 18px;
  color: black;
}

@media (max-width: 1024px) {

  .home-news-card,
  .home-news-card-main {
    flex: 0 0 calc(50% - 10px);
    min-height: 303px;
  }
}

@media (max-width: 768px) {

  .home-news-card,
  .home-news-card-main {
    flex: 0 0 52%;
    min-height: 240px;
  }

  .home-news-card-main-title {
    font-size: 26px;
  }

  .home-news-card-main-subtitle {
    font-size: 14px;
  }

  .nav-circle-btn {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 445px) {

  .home-news-card,
  .home-news-card-main {
    flex: 0 0 78%;
    min-height: 145px;
  }

  .home-news-card-main-title {
    font-size: 17px;
  }

  .home-news-card-main-subtitle {
    /* font-size: 8px; */
  }
}

/* #End Home News */