html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  position: relative;
  margin: 0;
  /*font-family: 'Roboto';*/
  line-height: inherit;
  background-color: var(--color-white);

}

h1,h2,h3 {
  margin: 0;
  font-weight: 400;
}

/*@font-face {*/
/*  font-family: 'Roboto';*/
/*  src: local("Roboto-Light"),*/
/*     url('../fonts/Roboto-Light.woff2') format('woff2'),*/
/*     url('../fonts/Roboto-light.woff') format('woff');*/
/*  font-weight: 300;*/
/*  font-style: normal;*/
/*  font-display: swap;*/
/*}*/


/*@font-face {*/
/*  font-family: 'Roboto';*/
/*  src: local("Roboto-Regular"),*/
/*     url('../fonts/Roboto-Regular.woff2') format('woff2'),*/
/*     url('../fonts/Roboto-Regular.woff') format('woff');*/
/*  font-weight: 400;*/
/*  font-style: normal;*/
/*  font-display: swap;*/
/*}*/

/*@font-face {*/
/*  font-family: 'Roboto';*/
/*  src: local("Roboto-Medium"),*/
/*     url('../fonts/Roboto-Medium.woff2') format('woff2'),*/
/*     url('../fonts/Roboto-Medium.woff') format('woff');*/
/*  font-weight: 500;*/
/*  font-style: normal;*/
/*  font-display: swap;*/
/*}*/

/*@font-face {*/
/*  font-family: 'Roboto';*/
/*  src: local('Roboto Bold'), local('Roboto-Bold'),*/
/*     url('../fonts/Roboto-Bold.woff2') format('woff2'),*/
/*     url('../fonts/Roboto-Bold.woff') format('woff');*/
/*  font-weight: 700;*/
/*  font-style: normal;*/
/*  font-display: swap;*/
/*}*/


/*glob*/
:root {
  --containerMaxWidth: 1600px;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-red: #ED1C24;
  --color-blue: #004781;
  --color-light-blue: #F2F5FD;
  --color-light-grey: #9AA2B0;
}

.btn-reset{
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.input-reset {
  all: unset;
  display: inline-block;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: none;
}

.input-reset:hover,
.input-reset:focus,
.input-reset:active {
  outline: none;
  box-shadow: none;
  background: transparent;
  color: inherit;
}

.ul-reset {
  margin: 0;
  padding: 0;
  list-style-type: none;
  list-style-position: outside;
  list-style-image: none;
  padding-inline-start: 0;
  -webkit-margin-before: 0;
  -webkit-margin-after: 0;
  -webkit-margin-start: 0;
  -webkit-margin-end: 0;
  -webkit-padding-start: 0;
  -moz-padding-start: 0;
  -moz-margin-start: 0;
  -ms-padding-start: 0;
  -ms-margin-start: 0;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
}

.visibility-hidden {
  position: absolute;
  display: inline-block;
  visibility: hidden;
  height: 0;
}

.container {
  margin: auto;
  max-width: var(--containerMaxWidth);
  height: 100%;
  width: auto!important;
}

.section {
  margin-bottom: 40px;
}

.section__title {
  margin-bottom: 30px;
  font-size: 32px;
  text-align: center;
}

.section__title--blue {
  color: var(--color-blue);
}

.section__descr {
  margin-bottom: 30px;
  font-size: 20px;
}

.section__descr b {
  font-weight: 500;
}

.section__descr > * {
  margin-bottom: 12px;
}

.section__descr > *:nth-last-child(1) {
  margin-bottom: 0;
}

.btn-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  width: max-content;
  min-height: 43px;
  border-radius: 10px;
  font-size: 20px;
  color: var(--color-white);
  line-height: 1;
  background-color: var(--color-blue);
}

.btn-link--red {
  background-color: var(--color-red);
}

/*modal*/
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: #424242a6;
  transition: display .3s ease-in-out;
}

.modal-container--open {
  display: flex;
}

.modal {
  position: relative;
  padding: 30px;
  min-height: 400px;
  width: 500px;
  height: fit-content;
  border-radius: 10px;
  background-color: var(--color-white);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  cursor: pointer;
}

/*swiper*/

.swiper {
  width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper__btn {
  width: auto;
  height: 30px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: var(--color-blue);
  transition: all .3s ease-in-out;
}

.swiper__btn::after {
  font-size: 14px;
  color: var(--color-white);
  transition: all .3s ease-in-out;
}

.swiper__btn.swiper-button-disabled {
  opacity: 1;
  border: 1px solid var(--color-blue);
  background-color: var(--color-white);
}

.swiper__btn.swiper-button-disabled::after {
  color: var(--color-blue);
}


/*main-hero*/

.main-hero__banners {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.main-hero__item {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  height: 421px;
  border-radius: 10px;
  font-size: 36px;
  text-align: center;
  color: var(--color-white);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}

.main-hero__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(237, 28, 36, 0.6) 100%);
  z-index: 1;
}

.main-hero__item:nth-child(2n)::before {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 71, 129, 0.8) 100%);
}

.main-hero__item:nth-child(2n) > .main-hero-btn {
  background-color: var(--color-red);
}

.main-hero-title, .main-hero-btn {
  z-index: 2;
}

.main-hero-desc {
  z-index: 2;
  font-size: 16px;
  color: var(--color-white);
}

.main-hero-btn {
  height: 48px;
}

/*photogallery*/

.photogallery__top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.photogallery__title {
  margin-bottom: 0;
}

.photogallery__btn-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

 .photogallery__swiper-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: fit-content;
}

.photogallery__item {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  text-align: start;
}

.photogallery__tile-image {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 3fr 2fr 3fr;
  gap: 20px;
}

.photogallery__tile-item {
  grid-column: span 1;
  grid-row: span 1;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  object-fit: cover;
}

.photogallery__tile-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: unset;
}

.photogallery__tile-item:nth-child(6) {
  grid-column: 3 / span 2;
  grid-row: 2 / span 2;
  aspect-ratio: unset;
}

.photogallery__swiper-btn {
  position: absolute;
  transform: translateY(-50%);
  top: 50%;
  height: 50px;
}

.photogallery__swiper-button-prev {
  right: calc(100% + 33px);
  left: unset;
}

.photogallery__swiper-button-next{
  left: calc(100% + 33px);
  right: unset;
}

.photogallery__item-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.photogallery__item-name {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 24px;
  transition: color .3s ease-in-out;
}

.photogallery__item-count {
  font-size: 24px;
  color: var(--color-light-grey);
}


.photogallery__item:hover .photogallery__item-name {
  color: var(--color-blue) ;
}



      .photogallery__slide {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        align-items: flex-start;
      }

.btn-link:focus, .btn-link:hover {
  background-color: var(--color-white);
  text-decoration: none;
}
.main-hero__item:nth-child(2n) > .main-hero-btn:hover {
  background-color: var(--color-white);
  text-decoration: none;
  color: var(--color-red);
}

@media(max-width: 1760px) {

  /*glob*/
  :root {
    --containerMaxWidth: 100%;
  }

  .container {
    padding: 0 42px;
  }

  /*photogallery*/

  .photogallery__swiper-btn {
    height: 30px;
  }

  .photogallery__swiper-button-next {
    left: calc(100% + 7px);
  }

  .photogallery__swiper-button-prev {
    right: calc(100% + 7px);
  }

}

@media(max-width: 1440px) {

  /*main-hero*/

  .main-hero__item {
    height: 300px;
    font-size: 28px;
  }

  .main-hero-btn {
    font-size: 18px;
  }

  /*photogallery*/

  .photogallery__tile-image {
    gap: 11px;
  }

}

@media(max-width: 1250px) {

  .section__descr {
    margin-bottom: 9px;
  }
}

@media(max-width: 1128px) {

  .section__title {
    margin-bottom: 20px;
  }

  /*main-hero*/

  .main-hero__item {
    padding: 10px;
    height: 390px;
    font-size: 24px;
  }

  .main-hero-btn {
    padding: 10px 30px;
    font-size: 16px;
  }

  /*photogallery*/

  .photogallery__top {
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
  }

  .photogallery__title {
    margin-bottom: 0;
  }

  .photogallery__btn-link {
    position: relative;
  }


}

@media(max-width: 990px) {

  .container {
    padding: 0 15px;
  }

  .section__title {
    font-size: 28px;
  }

  .btn-link {
    font-size: 16px;
  }

  /*main-hero*/

  .main-hero {
    overflow: hidden;
  }

  .main-hero__banners {
    display: flex;
    gap: 0;
  }

  .main-hero__swiper {
    overflow: visible;
  }

  /*photogallery*/

  .photogallery__tile-item {
    min-height: 95px;
  }

  .photogallery__btns-container {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .photogallery__swiper-btn {
    position: relative;
    right: unset;
    left: unset;
    top: unset;
    margin: 0;
    transform: unset;
  }

  .photogallery__item-name {
    font-size: 22px;
  }

  .photogallery__item-count {
    font-size: 22px;
  }

}

@media(max-width: 650px) {

  .section {
    margin-bottom: 20px;
  }

  .section__title {
    font-size: 20px;
  }

  .section__descr {
    font-size: 14px;
  }

  /*photogallery*/

  .photogallery__top {
    margin-bottom: 10px;
  }

  .photogallery__swiper-container {
    position: relative;
    width: 100%;
    /* height: 1250px;
    max-height: fit-content; */
  }

  .photogallery__item-name {
    font-size: 24px;
  }

  .photogallery__item-count {
    font-size: 24px;
  }

  .photogallery__item-name {
    -webkit-line-clamp: 5;
  }


  .photogallery__slide {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, auto);
  }

}

@media(max-width: 500px) {

  .btn-link {
    padding: 12px 10px;
    min-height: 40px;
    font-size: 16px;
  }
  
}
