@font-face {
  font-family: "RAMNEX";
  src: url("../fonts/RAMNEXFont-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@import url(https://fonts.googleapis.com/css?family=Fira+Sans:400,500);

html,
body {
  font-family: "Fira Sans", sans-serif;
  text-align: justify;
}

* {
  font-family: "Fira Sans", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.border,
.NGO-title,
.military-title,
.emergency-title,
.commercial-title,
figcaption h5 {
  font-family: "RAMNEX", sans-serif;
  text-transform: uppercase;
}

.wrapper-text {
  flex-wrap: wrap;
}

.NGO-title,
.military-title,
.emergency-title,
.commercial-title {
  text-align: center;
  font-weight: bold;
}

.custom-mt-40 {
  margin-top: 40px;
}

.pl-custom-15 {
  padding-left: 15px;
}

.row {
  display: flex;
  flex-direction: row;
}

.mt-3 {
  margin-top: 10px;
}

.mt-10 {
  padding-top: 40px;
}

.mt-20 {
  margin-top: 20px;
}

.pt-3 {
  display: flex;
  flex-direction: column;
  column-gap: 10px;
  margin-top: 30px;
}

.bl-4 {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

/*
About RAMNEX Hello-section
*/

.Hello-section {
  padding-top: 30px;
}

.about-wrapper,
.contact-wrapper {
  width: 90%;
}

.about-wrapper {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.about-wrapper-item {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
  flex-direction: row;
  align-items: baseline;
}

.about-text-wrapper {
  padding: 20px !important;
  text-align: start;
  padding-top: 0px !important;
}

.about-text-1 {
  font-size: 20px;
  line-height: 28px;
}

.about-text-2 {
  margin-top: 20px;
  font-size: 20px;
  line-height: 28px;
}

.impressum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.logo-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
  margin: 0 auto;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-img {
  display: block;
  height: 96px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 40px;
}

.navbar-brand img {
  max-height: 40px;
  width: auto;
  transition: all 0.3s ease;
}

.navbar-brand img:hover {
  opacity: 0.8;
}

.icon {
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.icon-xs {
  font-size: 18px;
}

.icon-secondary {
  color: #fff;
}

.icon-secondary:hover {
  opacity: 0.8;
}

.border {
  border-bottom: 1px solid #e5e5e5;
  width: 100%;
  display: block;
  margin-bottom: 20px;
}

.border-full {
  border-bottom: 1px solid #1a1919;
  width: 100%;
  display: block;
}

.contact-section {
  padding: 60px 0;
  background: #f5f5f5;
  position: relative;
}

.contact-info {
  margin: 30px auto 40px;
  text-align: center;
  max-width: 600px;
}

.contact-info p,
.contact-info a {
  display: block;
  margin-bottom: 15px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
}

.contact-info a:hover {
  color: #666;
}

.map-wrapper {
  height: 400px;
  width: 100%;
  background: #e5e5e5;
  margin: 20px auto;
  max-width: 1200px;
}

.map-container {
  position: relative;
  width: 100%;
  height: 400px;
  margin: 20px 0;
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Прибираємо зелений колір при наведенні */
.navbar-nav > li > a:hover,
.navbar-nav > li.active > a,
.sf-menu > li > a:hover,
.sf-menu > li.active > a,
.rights a:hover,
.rights a:focus,
.rights a:active {
  color: inherit !important;
  opacity: 0.8;
}

/* Вирівнюємо розміри фотографій */
.about-wrapper figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.cardWrapper img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.rights {
  text-align: center;
  margin: 0;
}

.rights a {
  color: inherit !important;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.rights a:hover {
  color: inherit !important;
  opacity: 0.8;
}

.rights strong {
  font-weight: 500;
}

footer {
  background: #f5f5f5;
  padding: 20px 0;
}

footer .rights {
  text-align: center;
  margin: 0;
}

footer .rights a,
footer .rights a:link,
footer .rights a:visited,
footer .rights a:hover,
footer .rights a:active,
footer .rights a:focus {
  color: #333 !important;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

footer .rights a:hover,
footer .rights a:focus {
  opacity: 0.8;
  color: #333 !important;
}

footer .rights strong {
  font-weight: 500;
}

.pb-10px {
  margin-bottom: 10px;
}

.toggleHidden {
  display: flex;
}

.cardWrapper {
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  padding: 0;
}

.cardWrapper:hover {
  transform: scale(1.05);
}

.cardWrapper:hover h5 a {
  color: inherit;
}

.init_background {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: right center;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

.init_content {
  width: 100%;
  max-width: 790px;
  position: relative;
  z-index: 3;
  text-align: left;
  box-sizing: border-box;
}

.init_content h1 {
  font-size: 70px;
  line-height: 80px;
  color: #fff;
  margin-bottom: 40px;
  text-align: left;
}

.init_content h1 span {
  color: #c550e9;
  font-size: larger;
}

.init_content p {
  font-size: 26px;
  line-height: 34px;
  color: #fff;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.initial_section {
  height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  align-items: flex-start;
}

.initial_section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2));
  pointer-events: none;
  z-index: 2;
}

.wrapper {
  margin: 0;
  display: flex;
  justify-content: flex-start;
  position: relative;
  flex-wrap: wrap;
  padding-left: 50px;
  width: 100%;
  box-sizing: border-box;
}

.about-text-wrapper {
  padding: 20px !important;
  text-align: start;
  padding-top: 0px !important;
}

.about-text-1 {
  font-size: 20px;
  line-height: 28px;
}

.about-text-2 {
  margin-top: 20px;
  font-size: 20px;
  line-height: 28px;
}

.impressum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

figcaption h5 {
  padding-bottom: 10px;
  font-size: 14px;
  padding-left: 10px;
  padding-right: 10px;
}

@media (max-width: 768px) {
  .mt-10 {
    margin-top: 10px;
  }

  .about-wrapper {
    flex-wrap: wrap;
  }

  .init_background {
    background-position: left center;
  }

  .init_content {
    width: 100%;
    padding-left: 20px;
  }

  .init_content h1 {
    font-size: 40px;
    line-height: 50px;
  }

  .init_content p {
    font-size: 20px;
    line-height: 28px;
    max-width: 100%;
  }

  .wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }
  .about-wrapper-item {
    grid-template-columns: 1fr 1fr;
  }

  .logo-img {
    height: 77px;
    max-width: 288px;
  }
}

@media (max-width: 767px) {
  .rd-mobilemenu,
  .rd-mobilepanel {
    display: none !important;
  }

  .header-panel {
    display: none !important;
  }

  body {
    padding-top: 0 !important;
  }

  .logo-img {
    height: 77px;
    max-width: 388px;
    margin-bottom: 0;
  }

  .init_content {
    padding-top: 0;
  }

  .wrapper {
    padding-top: 0;
  }

  .initial_section {
    padding-top: 0;
  }

  .map-container {
    height: 300px;
    margin: 15px 0;
    position: relative;
    width: 100%;
    overflow: hidden;
    display: block !important;
  }

  .map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: auto;
    display: block !important;
  }

  .contact-section {
    padding: 30px 0;
  }

  .contact-info {
    margin: 20px 0;
  }
}

@media (max-width: 480px) {
  .about-wrapper-item {
    grid-template-columns: 1fr;
  }

  .logo-img {
    max-width: 238px;
  }

  .mt-10 {
    margin: 10px 0;
    padding: 10px 0;
  }

  .mt-20 {
    margin-top: 10px;
  }

  .wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }

  .Hello-section,
  .projects {
    padding: 10px 0;
  }

  .footer-container {
    padding-top: 0 !important;
    padding-bottom: 10px !important;
  }

  .init_content p {
    font-size: 18px;
    line-height: 24px;
  }

  .border {
    line-height: normal;
    font-size: 14px;
  }
}
