.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}

.image-background {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  z-index: 0;
}
.cover {
  position: absolute;
  opacity: 0;
  height: 100%;
  width: 100%;
  background: #05193a99;
  z-index: 1;
  overflow: hidden;
}

.image-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  height: 50rem;
  width: 90rem;
  padding: 2rem;
  z-index: 1;
}

@media (max-width: 768px) {
  .header {
    justify-content: start;
    flex-direction: column;
    box-sizing: border-box;
  }
  .main {
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }
  .image-background img {
    height: 100vh;
    width: auto;
    object-fit: cover;
    transform: translateX(-25%);
    z-index: 0;
  }
}

.breadcrumbs {
  height: 20%;
}
.main-title {
  display: flex;
  flex-direction: column;
  align-items: start;
  text-transform: uppercase;
  font-family: "Roboto";
  font-size: 4.587rem;
  font-weight: 700;
  line-height: 5.493rem;
  letter-spacing: -0.125rem;
  text-align: left;
  color: #ffffff;
  height: 60%;
  width: 70%;
}
@media (max-width: 768px) {
  .main-title {
    height: fit-content;
    font-size: 35px;
    font-weight: 700;
    line-height: 41.02px;
    letter-spacing: -0.03em;
  }
}
.main-subtitle {
  box-sizing: border-box;
  height: 20%;
  width: 100%;
  display: flex;
  align-items: end;
  gap: 1rem;
}
.main-subtitle-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: start;
  width: fit-content;
  overflow: hidden;
}

.rectangle-parent-white {
  position: absolute;
  top: 50%;
  left: 100%; /* Начальное состояние - за пределами экрана */
  transform: translate(0, -50%);
  overflow: hidden;
  width: 300px;
  height: 6rem;
  transition: 1s;
  display: flex;
  align-items: center;
}
.animated-rectangle-white {
  width: 300px; /* Изначально полный размер */
  height: 70%;
  background-color: #ffffff;
  transition: width 1s ease;
}
.rectangle-parent-white.active {
  left: 0; /* Сдвиг в исходное положение при активации */
}

.animated-rectangle-white.active {
  width: 0.3rem; /* Изменение ширины при активации */
}

.main-subtitle-text {
  font-family: "Roboto";
  text-wrap: nowrap;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.318rem;
  text-align: left;
  color: #ffffff;
  text-transform: uppercase;
  margin-left: 2rem;
}

/* years */
.year {
  width: 100%;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050c1a;
  margin-top: 50px;
}
.year-container {
  box-sizing: border-box;
  width: 90rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2rem;
}
.year-box {
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 2rem;
}

.period {
  display: flex;
  align-items: start;
  gap: 1rem;
  font-family: "Roboto";
  font-size: 5.253rem;
  font-weight: 700;
  line-height: 6.156rem;
  letter-spacing: -0.03em;
  text-align: left;
  width: 40rem;
}
@media (max-width: 768px) {
  .year-container {
    width: 100%;
    padding: 0 20px;
  }
  .year-box {
    flex-direction: column;
  }
  .period {
    font-size: 45px;
    line-height: 52.73px;
    letter-spacing: -0.03em;
  }
}
.blue {
  color: #337bef !important;
}
.paragraph {
  width: 44rem;
}
.year-text {
  margin-top: 4rem;
  width: 100%;
  display: flex;
  gap: 2rem;
}
.year-text .paragraph {
  width: 40rem;
}

.period-text {
  font-family: "Manrope";
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.536rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ports {
  width: 100%;
  display: flex;
  align-items: start;
  gap: 2rem;
}
.big-port {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.port-title {
  font-family: "Manrope";
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.536rem;
  text-align: left;
  color: #050c1a73;
}
.port-text {
  font-family: "Manrope";
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.536rem;
  text-align: left;
  width: 40.375rem;
}
@media (max-width: 768px) {
  .paragraph {
    width: 100%;
  }
  .year-text {
    flex-direction: column;
  }
  .year-text .paragraph {
    width: 100%;
  }
  .period-text {
    font-size: 16px;
    line-height: 21.86px;
  }
  .ports {
    flex-direction: column;
  }
  .port-title {
    font-size: 16px;
    line-height: 21.86px;
  }
  .port-text {
    font-size: 16px;
    line-height: 21.86px;
    width: 100%;
  }
}

.seaport-port {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* priority */
.priority {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5rem;
  color: #050c1a;
  margin-top: 7%;
}
.priority-container {
  box-sizing: border-box;
  width: 90rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2rem;
}

.priority-title-box {
  display: flex;
  flex-direction: column;
}
.priority-title-mobile {
  display: none;
}

.priority-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-transform: uppercase;
  font-family: "Roboto";
  font-size: 4.687rem;
  font-weight: 700;
  line-height: 5.493rem;
  letter-spacing: -0.03em;
  text-align: left;
}
@media (max-width: 768px) {
  .priority-container {
    padding: 0 20px;
    width: 100%;
  }
  .priority-title-box {
    display: none;
  }
  .priority-title-mobile {
    display: flex;
    flex-direction: column;
  }
  .priority-title {
    font-size: 25px;
    line-height: 29.3px;
    letter-spacing: -0.03em;
  }
}
.priority-text {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.priority-text-box {
  width: 40.375rem;
  font-family: "Manrope";
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.536rem;
  text-align: left;
}
@media (max-width: 768px) {
  .priority-text {
    flex-direction: column;
    justify-content: start;
    gap: 20px;
  }
  .priority-text-box {
    width: 100%;
    font-size: 16px;
    line-height: 21.86px;
  }
}

/* swiper */
.priority-swiper {
  position: relative;
  display: flex;
  width: 100%;
  z-index: 20;
  margin-left: 25%;
}
.priority-swiper .swiper-container {
  height: fit-content;
  width: 100%;
  overflow: hidden;
}
.priority-swiper .swiper-wrapper {
  display: flex;
  height: 100%;
  width: 100%;
}
.priority-swiper .swiper-slide {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 81.25rem;
  height: 46.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.0625rem solid #00000050;
  padding: 0.5rem;
  overflow: hidden;
}
.priority-swiper .swiper-slide:last-child {
  border: none;
}

.priority-swiper .swiper-slide img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center center; 
}
@media (max-width: 768px) {
  .priority-swiper {
    margin-left: 20px;
    box-sizing: border-box;
  }
  .priority-swiper .swiper-slide {
    overflow: hidden;
    height: 360px;
    width: 340px !important;
    border-left: 1px solid #737373;
  }
  .priority-swiper .swiper-slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center; 
  }
}

.inline-items {
  width: 100vw;
  display: flex;
  gap: 50vw;
  margin-top: 2rem;
}

.priority-widgets {
  order: 2;
  position: relative;
  width: 10rem;
  z-index: 10;
  display: flex;
  text-transform: uppercase;
  font-family: "Montserrat";
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.371rem;
  text-align: right;
}

.priority-widgets .swiper-button-next::after,
.priority-widgets .swiper-button-prev::after {
  display: none !important;
}

.priority-pagination {
  order: 1;
  position: relative;
}
.priority-swiper-pagination {
  position: relative;
  right: 0;
  display: flex;
  align-items: center;
  height: 1rem;
  width: 20rem;
}
.priority-progress {
  position: absolute;
  top: 50%;
  left: 7rem;
  transform: translate(0, -50%);
}

.priority-swiper .swiper-pagination {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translate(0, -50%);
  width: 3rem !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Montserrat";
  font-size: "1.125rem";
  font-weight: 400;
  line-height: 1.371rem;
  text-align: center;
  color: #050c1a !important;
}

.priority-swiper .swiper-pagination span:first-child {
  color: #337bef !important;
}
.progress-line {
  position: relative;
  height: 0.125rem;
  background-color: #050c1a;
  width: 19.375rem;
}

.blue-bar {
  position: absolute;
  top: -0.0625rem;
  left: 0;
  height: 0.25rem;
  background-color: #337bef;
  width: 50%;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .priority-swiper .swiper-pagination {
    font-size: 16px;
    font-weight: 600;
    line-height: 19.5px;
  }
  .priority-swiper-pagination {
    padding-bottom: 50px;
  }
  .priority-progress {
    left: 90px;
  }
  .progress-line {
    width: 70vw;
  }
  .priority-widgets {
    display: none;
  }
}

/* filter */
.filter {
  margin-top: 10%;
  width: 100%;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050c1a;
}

.filter-container {
  box-sizing: border-box;
  width: 90rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.filter-title {
  box-sizing: border-box;
  width: 100%;
  padding: 0 3rem;
  text-transform: uppercase;
  font-family: "Roboto";
  font-size: 4.687rem;
  font-weight: 700;
  line-height: 5.156rem;
  letter-spacing: -0.125rem;
  text-align: left;
}
@media (max-width: 768px) {
  .filter-container {
    width: 100%;
  }
  .filter-title {
    font-size: 45px;
    line-height: 49.5px;
    letter-spacing: -2px;
  }
}

.filter-tab {
  height: fit-content;
  width: 100%;
}

.tabs {
  display: flex;
  cursor: pointer;
  width: 100%;
}

.tab {
  background: #ffffff;
  border: 0.0625rem solid #050c1a;
  width: 28rem;
  height: 5.937rem;
  outline: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-transform: uppercase;
  font-family: "Manrope";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.366rem;
  text-align: left;
  padding: 0.5rem 1rem;
  transition: 0.5s;
}
.tab:last-child {
  width: 100%;
}

.tab.active {
  background: #337bef !important;
  color: #ffffff !important;
}

.filter-count {
  width: 100%;
  display: flex;
  justify-content: end;
}
.category-title {
  width: 100%;
}
p:nth-child(2) {
  transition-delay: 0s !important;
}

.tab-content {
  border-radius: 0 0 5px 5px;
  padding: 2rem 0;
  background: #fff;
}

.tab-item {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.tab-item.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.tab-item a {
  color: #050c1a;
}
.tab-item.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.filter-block {
  display: flex;
  align-items: start;
  height: 50rem;
}

.our-projects-block {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: start;
  justify-content: space-between;
  z-index: 10;
  background: #ffffff;
  height: fit-content;
  width: 100%;
}
.our-projects-block ul {
  height: 100%;
  width: 100%;
}
.our-projects-block ul li {
  box-sizing: border-box;
  height: 10%;
  width: 100%;
  color: #050c1a;
  transition: 0s;
  cursor: pointer;
}

.our-projects {
  opacity: 0;
  transition: 0.5s;
}

.our-projects-block ul li:hover .our-projects {
  opacity: 1;
}
.our-projects-block ul li:hover {
  background: #337bef !important;
  color: #ffffff !important;
  opacity: 1;
}

.our-projects-block ul li p,
.our-projects-block p:nth-child(1) {
  transition: 0.1s !important;
}

.our-projects-block ul li p,
.our-projects-block ul li p:hover,
.our-projects-block p:nth-child(1) {
  transition-delay: 0s !important;
}

.our-projects-inline-items {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  border: 0.0625rem solid #00000020;
  padding: 1rem;
}

.our-projects-image-box {
  width: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.our-projects-img {
  width: 1.625rem;
  height: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.our-projects-img img {
  width: 100%;
  height: 100%;
}

.our-projects-content-box {
  display: flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: start;
  width: 100%;
  padding: 0.5rem 2rem;
  transition: ease 0.5s;
  height: 100%;
}

.our-projects-content-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Manrope";
  overflow: hidden;
  width: 100%;
  text-align: left;
}
.our-projects-content-title {
  font-size: 1.125rem;
  line-height: 1.536rem;
  text-align: left;
  font-weight: 600;
}
.our-projects-content-title p {
  text-wrap: nowrap;
}
.our-projects-content-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.536rem;
  text-wrap: nowrap;
}
@media (max-width: 768px) {
  .our-projects-img {
    display: none;
  }
  .our-projects-inline-items {
    padding: 20px;
    box-sizing: border-box;
  }
  .our-projects-content-box {
    padding: 0;
  }
  .our-projects-content-title p {
    font-size: 18px;
    font-weight: 600;
    line-height: 24.59px;
    text-wrap: auto;
    display: -webkit-box; /* Для поддержки flex-контейнера */
    -webkit-line-clamp: 1; /* Ограничение на 2 строки */
    -webkit-box-orient: vertical;
    overflow: hidden; /* Скрытие переполненного текста */
    text-overflow: ellipsis;
  }
  .our-projects-content-year {
    display: none;
  }
}

/* other */

.other {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 100vh;
}
.other-container {
  width: 90rem;
  height: 35rem;
  display: flex;
  align-items: center;
}
@media (max-width: 768px) {
  .other {
    justify-content: start;
    margin-top: 100px;
    margin-bottom: 0;
  }
  .other-container {
    height: 100%;
    width: 100%;
    flex-direction: column;
    padding: 0 20px;
    box-sizing: border-box;
  }
}
.other-text {
  box-sizing: border-box;
  height: 100%;
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 3rem;
}

.other-title {
  text-transform: uppercase;
  font-family: "Roboto";
  font-size: 4.687rem;
  font-weight: 700;
  line-height: 5.493rem;
  letter-spacing: -0.03em;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.other-desxription {
  font-family: "Manrope";
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.536rem;
  text-align: left;
  width: 30.75rem;
}

.other-block {
  position: relative;
  height: 100%;
  width: 60%;
  z-index: 10;
}
.other-box {
  position: relative;
  width: 100%;
  height: 90%;
  display: flex;
  align-items: center;
  background: #337bef;
  color: #ffffff;
}

.other-box-link {
  font-family: "Manrope";
  font-size: 0.675rem;
  font-weight: 400;
  line-height: 0.921rem;
  text-align: left;
  width: 5.225rem;
  height: 1.875rem;
  border-left: 0.0625rem solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 0.4rem;
}
.other-box-image {
  width: 100%;
  height: 100%;
}

.other-box-image img {
  width: 100%;
  height: 100%;
}
@media (max-width: 768px) {
  .other {
    box-sizing: border-box;
    overflow: hidden;
    height: fit-content;
    padding-bottom: 100px;
  }

  .other-text {
    width: 100%;
    height: fit-content;
    justify-content: start;
  }
  .other-title {
    font-size: 45px;
    line-height: 52.73px;
    letter-spacing: -0.03em;
  }
  .other-desxription {
    width: 100%;
    font-size: 16px;
    line-height: 21.86px;
  }
  .other-block {
    width: 100%;
    height: fit-content;
  }
  .other-box {
    height: 240px;
  }
  .other-box-image {
    width: 100%;
    overflow: hidden;
  }
  .other-box-image img {
    height: 100%;
    width: auto;
  }
}

.other-link {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #337bef40;
  transition: 0.5s;
  opacity: 0;
}

.other-box:hover .other-link {
  opacity: 1;
}

.other-link-box {
  width: 18.312rem;
  height: 4.687rem;
  border: 0.0625rem solid #ffffff;
}

.other-link-box a {
  height: 100%;
  width: 100%;
  font-family: "Manrope";
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 2.048rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .other-link-box {
    width: 248px;
    height: 80px;
  }
  .other-link-box a {
    font-size: 16px;
    line-height: 21.86px;
  }
}

/* contacts */
.contacts {
  height: 90vh !important;
}

@media (max-width: 768px) {
  .contacts {
    height: 100vh !important;
  }
}

.contact-section {
  height: 100% !important;
}

.contact-box {
  margin-top: 2rem !important;
}
.contact-section-mini {
  height: 100% !important;
}
.contacts-conteiner {
  height: 100% !important;
}

/* modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

.modal-container {
  position: relative;
  background: #fff;
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  padding: 20px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}
.modal-container:focus {
  outline: none;
}

.close-btn {
  position: absolute;
  right: 0;
  top: 2%;
  width: 1.5rem;
  height: 1.5rem;
  background: #337bef;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.close-btn img {
  width: 60%;
  height: 60%;
}
@media (max-width: 768px) {
  .modal-container {
    padding-top: 80px;
  }
  .close-btn {
    top: 130px;
    width: 24px;
    height: 24px;
  }
}

.modal-year-box {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.modal-period {
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: "Roboto";
  font-size: 5.253rem;
  font-weight: 700;
  line-height: 6.156rem;
  letter-spacing: -0.03em;
  text-align: left;
}

.modal-container .priority {
  margin-top: 0 !important;
}
.modal-container .priority-swiper {
  height: 85vh;
  align-items: center !important;
  margin-bottom: 5%;
}

.modal-container .swiper-slide img {
}

@media (max-width: 768px) {
  .modal-container .swiper-slide img {
    transform: translateX(-5%);
  }
}

.modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

.modal-overlay.active .modal-container {
  transform: translateX(0);
}

.no-scroll {
  overflow: hidden;
}
