:root {
  --mainBlue: #003d7c;
  --mainGrey: #ccd8e5;
  --mainTransition: all 0.4s linear;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

.d-none {
  display: none;
}
/* цвет в лого - #003D7C*/
/*---------links------------*/
.link {
  color: var(--mainBlue);
  cursor: pointer;
}
.link:hover {
  text-decoration: none;
  color: black;
  transition: var(--mainTransition);
}
.login-link {
  font-size: 0.8rem;
}
/*----------buttons--------*/
.btn-primary {
  background-color: var(--mainBlue) !important;
}
.btn-primary:hover {
  background-color: white !important;
  color: var(--mainBlue) !important;
  transition: var(--mainTransition);
}
.btn-link {
  font-size: 0.9rem;
  border: 1px var(--mainBlue) solid;
  padding: 0.5rem;
  background: var(--mainBlue);
  color: #ffffff;
}
.btn-link:hover {
  background: var(--mainGrey);
  color: var(--mainBlue);
  transition: var(--mainTransition);
  text-decoration: none;
}
.btn-close {
  border: 1px var(--mainBlue) solid;
  color: var(--mainGrey);
  transition: var(--mainTransition);
  background-color: var(--mainBlue);
  font-size: 1.4rem;
  padding: 0.4rem;
}

.btn-close:hover {
  color: red;
}

/*------------nav-----------------*/
.nav-logo {
  height: 70px;
  width: auto;
}
.navbar {
  /*border: 1px solid black;*/
  padding-top: 0rem !important;
  padding-bottom: 0rem !important;
}
.nav-item {
  margin-left: 5px;
  margin-right: 5px;
}
.nav-link {
  font-size: 1.2rem;
}
.nav-link:hover {
  color: #003d7c !important;
  transition: var(--mainTransition);
}
.navbar-toggler {
  outline: none !important;
}
.nav-info {
  min-width: 374px;
}

@media (max-width: 500px) {
  .nav-logo {
    height: 50px;
    width: 250px;
  }
}
@media (max-width: 360px) {
  .nav-logo {
    height: 40px;
    width: 200px;
  }
}
@media (max-width: 1400px) {
  .nav-info {
    display: none !important;
  }
}

/*--------------------Banner-------------------*/
.max-height {
  /*min-height: calc(100vh - 80px);*/
  min-height: 100vh;
  background: -webkit-gradient(
      linear,
      left top,
      left bottom,
      from(rgba(0, 61, 124, 0.4)),
      to(rgba(0, 61, 124, 0.4))
    ),
    url("../img/hero-banner.jpg");
  background: linear-gradient(rgba(0, 61, 124, 0.4), rgba(0, 61, 124, 0.4)),
    url("../img/hero-banner.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
}
/*
@media (max-width: 500px) {
  .max-height {
    min-height: calc(100vh - 60px);
  }
}
@media (max-width: 360px) {
  .max-height {
    min-height: calc(100vh - 50px);
  }
}*/
.banner {
  background: rgba(231, 226, 221, 0.7);
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-top: 14rem !important; /* НАДПИСЬ БАННЕРА ЧУТЬ НИЖЕ. ОСТАВЛЯЕМ?*/
}
.banner-text {
  font-size: 1.8rem;
}
@media (max-width: 500px) {
  .banner-text {
    font-size: 1.5rem;
  }
}

/* --------- about us --------------*/
.about-img {
  transition: var(--mainTransition);
}

/* -----------NEWS-------------*/
.news {
  background-color: var(--mainGrey);
}
.news-container {
  box-shadow: 0px 0px 5px 1px rgba(108, 117, 125, 0.5);
}
.news-img {
  height: 14rem;
  width: auto;
  max-width: 100%;
}
.news-title {
  font-size: 1.4rem;
}

.news-img-full {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
}

.gallery-img {
  cursor: zoom-in;
  transition: var(--mainTransition);
}
.gallery-img:hover {
  transform: scale(3);
}
.gallery-img-container:hover {
  z-index: 10;
}

.main-news-article {
  background-color: white;
  border: 1px solid #e9e9e9;
  transition: all 0.1s ease-in-out;
}
.main-news-article:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0px 0px 35px 0px rgba(0, 0, 0, 0.75);
}

/* ------- footer -------*/
.footer {
  background-color: var(--mainGrey);
}

/* ---------------------------------------------------END OF MAIN PAGE--------------------------------------------------- */

/*--------------goods,partners,industries-----------------*/

main {
  margin-top: 100px !important;
  min-height: 80vh;
}

.header-sticky {
  background-color: var(--mainGrey);
  position: sticky;
  position: -webkit-sticky;
  top: 80px;
  z-index: 5;
}
@media (max-width: 576px) {
  /*.products-list {
    font-size: 0.8rem;
  }*/
  .header-sticky {
    display: none;
  }
}
/*mobile display for products*/
@media (max-width: 576px) {
  .product-name {
    font-size: 1.4rem;
  }
  .product-type {
    font-size: 0.8rem;
  }
  .goods-application {
    display: none;
  }
}

/* PDF icon */
.pdf-icon {
  color: red;
}
/*search bar*/
.search-box {
  background-color: var(--mainBlue);
  color: #ffffff;
  transition: var(--mainTransition);
}
.search-box:hover {
  cursor: pointer;
  background-color: #ffffff;
  color: var(--mainBlue);
}

/*-----active product --------*/

/*--overlay--*/
.product-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 61, 124, 0.8);
  z-index: 1031;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center; /* aligns on vertical for column */
  align-items: center; /* aligns on horizontal for column */
  text-align: center;
  visibility: hidden;
}
.transparent-overlay {
  visibility: visible;
}

/*---- display product----*/
.product {
  background: white;
  z-index: 1032;
  position: fixed;
  padding: 1rem;
  min-width: 50%;
  max-width: 90%;
  max-height: 90%;
  font-size: 1.4rem;
  overflow: scroll;
  transform: translateX(500%);
  transition: all ease-in-out 0.4s;
}
.show-product {
  transform: translateX(0%);
}

@media (max-width: 500px) {
  .show-product {
    font-size: 1rem;
  }
}

/*---------NEWS------------*/
.news-main {
  margin-top: 80px !important;
}
.news-articles {
  background-color: #f4f4f4;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.main-news-container {
  border: 1px solid #e9e9e9;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: white;
}
.pinned-icon {
  transform: rotate(40deg);
  -ms-transform: rotate(40deg);
}
.pinned-icon-grey {
  color: var(--mainGrey);
}

/* ----- admin ----------*/

.admin-page {
  min-height: 60vh;
}

.delete-product {
  color: var(--mainBlue);
  transition: var(--mainTransition);
}
.delete-product:hover {
  cursor: pointer;
  color: red;
}
.edit-product {
  color: var(--mainBlue);
  transition: var(--mainTransition);
}
.edit-product:hover {
  color: red;
  cursor: pointer;
}
/* deleting animation */
.single-product {
  transition: all ease-in-out 1s;
}
.deleting {
  transform: translateX(125%);
}
/* deleting for news */
.news-article {
  transition: var(--mainTransition);
}

.single-tech-doc-container {
  transition: var(--mainTransition);
}
/**/

/*------------------ partners  -------------------*/
.partner-row {
  border: 0.1rem solid var(--mainGrey);
}
.partner-img {
  height: 10vh;
  width: auto;
  max-height: 200px;
  min-height: 50px;
}
