/* Общие стили */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  padding: 7px 0px;
  height: fit-content;
  color: #333;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background-color: #ffffff;
}

.header {
  background: url("../images/general/v49_18.png");
  background-size: cover;
  font-family: Verdana, sans-serif;
  font-weight: 900;
  font-size: 23px;
  color: #fff;
  padding: 20px;
  text-align: center;
}

nav {
  display: flex;
  justify-content: center;
  background: #fff;
  padding: 10px;
  align-items: center;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #446099;
  font-size: 18px;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #333;
}

.breadcrumbs {
  display: flex;
  margin: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.path {
  text-align: left;
  font-size: 20px;
  font-weight: bold;
  color: #666;
  width: 100%;
}

.main-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0px;
  margin-bottom: 10px;
  gap: 20px;
  padding: 0 15px;
}

.inside {
  max-width: 1000px;
}

.main-content img {
  height: auto;
  object-fit: cover;
  transition: transform 0.3s;
  cursor: pointer;
}

.main-content img:hover {
  transform: scale(1.05);
  transition: transform 0.3s;
}

.container {
  flex: 1 1 auto;
  background: #fff;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Плавное увеличение фото */
#large-photo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
}

#large-photo img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

#large-photo .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

.even {
  background-color: rgb(143, 173, 211);
  box-shadow: 0px 0px 2px 2px rgb(143, 173, 211);
  border-radius: 3px;
}

.odd {
  background-color: rgb(193, 213, 231);
  box-shadow: 0px 0px 2px 2px rgb(193, 213, 231);
  border-radius: 3px;
}

.content-with-photo {
  max-width: 1000px;
  min-width: 300px;
  padding-left: 20px;
}

.content {
  max-width: 800px;
}

.footer {
  text-align: left;
  width: 100%;
  background: url("../images/general/v29_389_1.png");
  background-repeat: no-repeat;
  /* background-position: center center; */
  background-size: cover;
  padding: 20px;
  padding-left: 40px;
  background-color: #446099;
  color: #fff;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  align-self: flex-end;
  margin-top: auto
}

.highlight {
  font-weight: bold;
}

.search-form {
  margin-left: 20px;
  display: flex;
  align-items: center;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 25px;
  padding: 5px 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  width: 100%;
  transition: box-shadow 0.3s ease;
}

.search-form:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.search-form input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 5px;
  background: none;
  color: #333;
}

.search-form input::placeholder {
  color: #aaa;
}

.search-form button {
  background-color: #446099;
  border: none;
  border-radius: 50%;
  color: white;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-form button:hover {
  background-color: #333;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
}

.result-item {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.result-item h2 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #446099;
}

.result-item p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}

.result-item:hover {
  background-color: #f9f9f9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.result-item a {
  text-decoration: none;
  color: #446099;
  transition: color 0.3s ease;
}

.result-item a:hover {
  color: #333;
}

.search-button {
  background: url("../images/general/search.png");
  background-repeat: no-repeat;
  /* background-position: center center; */
  background-size: cover;
  background-position-x: -7px;
  filter: invert(1);
}

.partners-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.partners-link {
  position: relative;
  flex: 1 1 calc(33% - 40px);
  background: #fff;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partners-link h3 {
  margin-bottom: 10px;
  font-size: 22px;
  color: #446099;
  margin-top: 5px;
}

.partners-link p {
  margin-bottom: 40px;
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}

.partners-link .button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #446099;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.partners-link img {
  width: 100%;
}

.partners-link .badge {
  position: absolute;
  bottom: 10px;
  align-self: center;
  color: white;
  background-color: #6287cf;
  padding: 5px 10px;
  font-size: 16px;
  border-radius: 10px;
}

.partners-link .ext-link:hover {
  color: #446099;
}

.partners-link .button:hover {
  background-color: #333;
}

.partners-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.home-link {
  flex: 1 1 calc(33% - 40px);
  background: #fff;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.home-link h2 {
  margin-bottom: 10px;
  font-size: 22px;
  color: #446099;
}

.home-link p {
  margin-bottom: 50px;
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}

.home-link .button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #446099;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.home-link .button:hover {
  background-color: #333;
}


.home-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.services-page h1 {
  text-align: left;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

.services-page {
  max-width: 980px;
}

@media (max-width: 600px) {
  .service-block {
    flex-direction: column; /* Меняем направление на колонку */
    row-gap: 10px;
  }
}

.service-block {
  display: flex;
  align-items: center;
  background-color: #eef1f7;
  padding: 20px;
  width: 100%;
}

.service-text {
  flex: 1;
  font-size: 18px;
  padding: 20px;
}

.service-image {
  flex: 1;
  text-align: center;
}

.service-image img {
  max-width: 100%;
  height: auto;
}

.project-title {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
}

.project-description {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
.project-photos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.project-photos img {
  flex: 1 1 calc(50% - 20px); /* Две картинки занимают половину экрана */
  max-width: 45%; /* Чтобы картинки не были слишком маленькими */
  height: auto;
  object-fit: cover;
  transition: transform 0.3s;
  cursor: pointer;
}

.project-photos img:hover {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .project-photos img {
    flex: 1 1 100%; /* На мобильных картинка занимает всю ширину */
    max-width: 100%;
  }
}

.text-404 {
  font-size: larger;
}

.about-us-container {
  display: flex;
  flex-direction: column;
}

.person-about {
  display: flex;
  flex-direction: row;
  margin: 30px;
}

.person-photo {
  border-radius: 5px;
  box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.2);
}

/* Адаптивность */

.menu-toggle {
  display: none;
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
}

.menu-to-hide {
  white-space: nowrap;
}

.project-container {
  width: 100%;
  padding: 30px 10px;
  font-family: 'Noticia', sans-serif;
  font-size: large;
}

.inactive {
  display: none;
}

@media (max-width: 940px) {
  .menu-toggle {
      display: inline-block;
  }
  
  .menu-to-hide {
      display: none;
      flex-direction: column;
      align-items: center;
      background: white;
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .menu-to-hide.active {
      display: flex;
  }

  .nav-menu.active {
    display: none;
  }

  .search-form {
    max-width: 600px;
  }

  .menu-to-open a {
    width: 100%;
    text-align: center;
    border-bottom: solid;
    border-width: 0.5px;
    border-color: #dbe1e7;
  }

  .path.inside {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .person-about {
    flex-direction: column; /* Меняем направление на колонку */
    row-gap: 10px;
  }
  .person-about figure {
    align-self: center;
  }
}

.menu-to-open a {
  color: #446099;
  font-size: 18px;
}

.menu-to-open {
  flex-direction: column;
  font-weight: bold;
  transition: color 0.3s ease;
  display: none;
  align-items: center;
  box-shadow: 0 -2px 1px rgba(204, 226, 247, 0.1);
}

@media (min-width: 600px) {
  .menu-to-open {
    display: none;
  }
}

.header p {
  width: 80%;
  margin-left: 10%;
  text-align: center;
}

/* Плавное появление страницы */
.main-content {
  transition: 0.8s;
}

.home-link {
  position: relative;
  transition: 0.8s;
}

.home-link a{
  position: absolute;
  align-self: flex-end;
  left: 50%;
  bottom: 10px;
  transform: translate(-50%);
}

.loaded {
  opacity: 0;
  transform: translateX(-10px);
}

/* Лого в футере */

.small-signs {
  width: 13px;
  margin-right: 5px;
}

/* Оформление ссылки на скачивание презентации */
.presentation-link {
    margin-top: 5px;
    margin-bottom: 10px;
}

.main-content inside a {
    font-weight: 500;
    text-decoration: underline;
    color: #1a4fd8;
}

.main-content inside a:hover {
    text-decoration: none;
}

.pdf-icon {
    width: 20px;
    height: 20px;
}

.presentation-link .pdf-button {
  align-items: center;
  gap: 10px;
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #446099;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.presentation-link .pdf-button:hover {
  background-color: #333;
}
