html, *{
    box-sizing: border-box;
    margin: 0;
    font-family: 'OldStandardTT', 'BonaNova', serif;
}

@font-face {
    font-family: 'BonaNova';
    src: url(../fonts/Bonanova/BonaNova-Regular.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BonaNova-bold';
    src: url(../fonts/Bonanova/BonaNova-Bold.ttf) format('truetype');
    font-weight: bold;
    font-style: normal;
}   

@font-face {
    font-family: 'OldStandardTT';
    src: url(../fonts/Oldstandart/OldStandardTT-Regular.ttf) format('truetype');
}


/* /adaptive */

img {
    /* aspect-ratio: 1 / 1; */
    border-radius: 40px;
    flex: 0 0 auto;
    height: 100%;
    overflow: hidden;
    position: relative;
    /* width: 100%; */
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

a{
  color: #fff;
  text-decoration: none;
}

.locked {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  pointer-events: none;
}

.header-nav a, .footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: 0.5s ease-in;
}



h1 {
    user-select: none;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    font-size: 168.59485245032397px;
    line-height: 1.1em;
    font-family: 'BonaNova';
}

h2 {
    font-size: 26px;
    font-family: 'BonaNova';
}

header {
    place-content: center flex-start;
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-flow: column;
    background-color: rgb(0, 18, 51);
    height: min-content;
    min-height: 800px;
    overflow: hidden;
    padding: 100px;
    position: relative;
    width: 100%;
}

.header-container {
    display: flex;
    flex: 0 0 auto;
    flex-flow: column;
    gap: 0px;
    height: min-content;
    max-width: 1100px;
    overflow: hidden;
    padding: 0px;
    position: relative;
    width: 100%;
}

.header-title{
    flex: 0 0 auto;
    height: auto;
    position: relative;
    white-space: pre;
    width: 100%;
    outline: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-shrink: 0;
    transform: none;
}

.header-nav ul{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 0 20px 0;
    z-index: 3;
}

.header-nav ul li {
    width: auto;
    display: inline-block;
    margin: 0 15px 0 10px;
}

/* Map-header */

.map-container{
  place-content: center;
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-flow: column;
  gap: 30px;
  height: min-content;
  overflow: hidden;
  padding: 0px;
  position: relative;
  width: 100%;
}

.map-title {
  outline: none;
  display: flex;
  color: #fff;
  flex-direction: column;
  justify-content: flex-start;
  flex-shrink: 0;
  transform: none;
}

.map-container .map{
  flex: 0 0 auto;
  position: relative;
  width: 90%;
  height: 544px;
}

.map-map {
  height: 100%;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 20px;
  filter: opacity(0.75);
}

.map-map::before{
  content: "География проектов";
  position: absolute;
  top: 0;
  left: 50%;
  width: 300px;
  transform: translateX(-50%);
  color: rgba(0, 0, 0, 0.6); /* Черный цвет с прозрачностью 50% */
  font-size: 30px;
  padding: 10px;
}


  /* Текст */

.text {
    place-content: center ;
    align-items: center;
    background-color: rgb(141, 169, 196);
    display: flex;
    flex: 0 0 auto;
    flex-flow: column;
    gap: 0px;
    height: min-content;
    overflow: visible;
    padding: 100px;
    position: relative;
    width: 100%;
}

.text-image{
  max-width: 1000px;
  width: 100%; 
}

.text-image img{
  width: 100%;
  opacity: 80%;
}

.text-container {
    place-content: flex-start;
    align-items: flex-start;
    display: flex;
    flex: 0 0 auto;
    flex-flow: column;
    gap: 40px;
    height: min-content;
    max-width: 1000px;
    overflow: visible;
    padding: 0px;
    position: relative;
    width: 100%;
}

.text-title {
    outline: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-shrink: 0;
    transform: none;
}

.text-content {
    place-content: flex-start center;
    align-items: flex-start;
    display: flex;
    flex: 0 0 auto;
    flex-flow: row;
    gap: 40px;
    height: min-content;
    overflow: hidden;
    padding: 0px;
    position: relative;
    width: 100%;
    color: #fff;
    font-size: 20px;
}


.text-first {
    outline: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-shrink: 0;
    transform: none;
    flex: 1 0 0px;
    height: auto;
    overflow: visible;
    position: relative;
    white-space: pre-wrap;
    width: 1px;
    word-break: break-word;
    overflow-wrap: break-word;
}


.text-second {
  outline: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-shrink: 0;
  transform: none;
  flex: 1 0 0px;
  height: auto;
  overflow: visible;
  position: relative;
  white-space: pre-wrap;
  width: 1px;
  word-break: break-word;
  overflow-wrap: break-word;
}

  /* Карточки */

.gallery {
    place-content: center;
    align-items: center;
    background-color: rgb(141, 169, 196);
    display: flex;
    flex: 0 0 auto;
    flex-flow: row;
    gap: 10px;
    height: min-content;
    overflow: hidden;
    padding: 100px;
    position: relative;
    width: 100%;
}

.grid{
    display: grid;
    flex: 1 0 0px;
    gap: 40px;
    grid-auto-rows: minmax(0px, 1fr);
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    grid-template-rows: repeat(2, minmax(0px, 1fr));
    height: min-content;
    justify-content: center;
    max-width: 1000px;
    overflow: hidden;
    padding: 5px;
    position: relative;
    width: 1px;
}

.item{
    place-content: center;
    align-items: center;
    place-self: start;
    display: flex;
    flex: 0 0 auto;
    flex-flow: column;
    gap: 30px;
    height: min-content;
    overflow: visible;
    padding: 0px;
    position: relative;
    width: 100%;
}

.grid-title a {
  color: #1b263c;
}

.item img {
    display: block;
    width: 100%;
    height: 322px;
    border-radius: 40px;
    mix-blend-mode: luminosity;
    opacity: 90%;
    object-position: center center;
    object-fit: cover;
    image-rendering: auto;
}

.grid-content {
    place-content: flex-start center;
    align-items: flex-start;
    display: flex;
    flex: 0 0 auto;
    flex-flow: column;
    gap: 10px;
    height: min-content;
    padding: 0px;
    position: relative;
    width: 100%;
    font-size: 20px;
}

.grid-title{
    outline: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-shrink: 0;
    transform: none;
    padding: 0 0 10px;
    color: #1b263c;
}

.grid-text{
    outline: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-shrink: 0;
    transform: none;
    color: #fff;
}




.footer-cont {
    place-content: center;
    align-items: center;
    background-color: rgb(141, 169, 196);
    display: flex;
    flex: 0 0 auto;
    flex-flow: column;
    gap: 10px;
    height: min-content;
    overflow: hidden;
    padding: 100px 0;
    position: relative;
    width: 100%;
}

.footer-nav {
  place-content: center space-between;
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-flow: row;
  height: min-content;
  overflow: hidden;
  padding: 0px 0px 28px;
  position: relative;
  width: 1000px;
  z-index: 1;
}

.footer-logo img{
  aspect-ratio: 1 / 1;
  border-radius: 40px;
  flex: 0 0 auto;
  height: 307px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.footer-nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 0 20px 0;
}

.footer-nav li {
  width: auto;
  display: inline-block;
  margin: 0 15px 0 10px;
}



/* Carousel */

  .container {
    overflow: hidden;
    padding: 20px;
    background: rgb(141, 169, 196);
  }
  
  .card-carousel {
    --card-width: 80%;
    --card-max-width: 280px;
    --card-height: 350px;
    --carousel-min-width: 600px;
    z-index: 1;
    position: relative;
    margin: 0 auto;
    width: 100%;
    height: var(--card-height);
    min-width: var(--carousel-min-width);
    transition: filter .3s ease;
  }
  
  .card-carousel.smooth-return {
    transition: all .2s ease;
  }
  
  .card-carousel .card {
    background: rgb(87, 129, 168);
    width: var(--card-width);
    max-width: var(--card-max-width);
    text-align: center;
    padding: 1em;
    min-width: 250px;
    height: var(--card-height);
    position: absolute;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.5);
    transition: inherit;
    -webkit-box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.3);
    -moz-box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.3);
    box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.3);
    border-radius: 1em;
    filter: brightness(.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .card img{
    border-radius: 25px;
    height: 320px;
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 99;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
  }
  
  .modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 90%;
  }
  
  .close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
  }
  