:root {
  --nav-height: 76px;
}

#logo {
  height: 60px;
  padding: 5px 0;
}

#nav-container {
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  position: fixed;
  background-color: #0f172a;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 0;
  height: 2px;
  background: #28a745;
  transition: width 0.3s ease;
}

.nav-link {
  color: #ffffff;
}

.nav-link:hover {
  color: #28a745;
}

.nav-link:hover::after {
  width: 100%;
}

.navbar-toggler {
  border-color: white;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#progressbar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 4px;
  background: #28a745;
}

#hero-block h2,
#hero-block h1 {
  color: #ffffff !important;
}

#hero-block {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  margin-top: var(--nav-height);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: scale(1.15);
  will-change: transform;
  pointer-events: none;
}

.about-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center;
  filter: blur(5px);
}

#hero-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.about-content {
  position: relative;
  z-index: 3;
}

@media (max-width: 320px) {
  #hero-block h1 {
    font-size: 1.7rem;
  }

  #hero-block h2 {
    font-size: 1rem !important;
  }
}

.advantages-container,
.contacts-container {
  background: #eeeeee;
}

.carousel-caption {
  padding-bottom: 2rem;
}

#early-detection {
  background-image: url(src/img/early-detection-image.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#fire-risk-reduction {
  background-image: url(src/img/fire-risk-reduction-image.webp);
  background-position: bottom 30% left 0%;
  background-size: cover;
  background-repeat: no-repeat;
}

#safety-increasing {
  background-image: url(src/img/safety-increasing-image.webp);
  background-position: top 30% left 0%;
  background-size: cover;
  background-repeat: no-repeat;
}

#prompt-react {
  background-image: url(src/img/prompt-react-image.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#damage-reduction {
  background-image: url(src/img/damage-reduction-image.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#visual-control {
  background-image: url(src/img/visual-control-image.webp);
  background-position: top 60% left 0%;
  background-size: cover;
  background-repeat: no-repeat;
}

#scalability {
  background-image: url(src/img/scalability-image.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.employee-card {
  background-color: #eaffd8;
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.employee-card h6 {
  margin-bottom: 0 !important;
}

.employee-photo {
  width: 80%;
  max-width: 300px;
  min-width: 110px;

  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;

  display: block;
  margin: 0 auto 1rem;
}

#igor_photo,
#sergey_photo {
  object-position: center 0%;
}

/* Anchor link fix */
#about-block,
#advantages-block,
#about-us-block,
#contacts-block {
  scroll-margin-top: calc(var(--nav-height));
}

.contacts-inner {
  gap: 5rem;
}

#contacts-block button {
  background: #28a745;
  color: #ffffff;
  font-weight: 500;
  font-size: 1.1rem;
}

.contacts-form p {
  font-size: 0.8rem;
  color: #575757;
}

.contacts-form p a {
  color: #155022;
}

.contacts-form p a:hover {
  text-decoration: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.privacy-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 16px;
}

.privacy-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.privacy-card h1 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.privacy-card h3 {
  font-size: 1.35rem;
  margin-top: 36px;
  margin-bottom: 16px;
}

.privacy-card p {
  margin-bottom: 12px;
}

.privacy-card ul {
  margin-bottom: 16px;
  padding-left: 1.5rem;
}

.privacy-card li {
  margin-bottom: 6px;
}

.privacy-meta {
  color: #666;
  margin-bottom: 24px;
}

.privacy-card a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-card a:hover {
  text-decoration: none;
}

@media (max-width: 576px) {
  .privacy-page {
    padding: 24px 12px;
  }

  .privacy-card {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .privacy-card h1 {
    font-size: 1.6rem;
  }

  .privacy-card h3 {
    font-size: 1.2rem;
  }
}

.consent-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 16px;
}

.consent-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.consent-card h1 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.consent-card h2 {
  font-size: 1.35rem;
  margin-top: 36px;
  margin-bottom: 16px;
}

.consent-card p {
  margin-bottom: 12px;
}

.consent-card ul {
  margin-bottom: 16px;
}

.consent-meta {
  color: #666;
  margin-bottom: 24px;
}

.consent-card a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-card a:hover {
  text-decoration: none;
}

@media (max-width: 576px) {
  .consent-page {
    padding: 24px 12px;
  }

  .consent-card {
    padding: 24px 18px;
  }

  .consent-card h1 {
    font-size: 1.6rem;
  }

  .consent-card h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 991px) {
  #footer-partner-text {
    font-size: 1rem !important;
  }

  .footer-contacts {
    justify-content: center !important;
  }
}

@media (max-width: 767px) {
  #footer-partner-text {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 575px) {
  #footer-partner-text {
    font-size: 1rem !important;
  }

  .footer-partners img {
    width: 75%;
    height: auto;
  }
}

.footer-logo {
  max-width: 230px;
  width: 100%;
  height: auto;
}

.footer-fond-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
}

.footer-contacts-policy-consent {
  min-width: 0;
}

.footer-contacts-policy-consent a {
  color: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  color: #575757;
}

.footer-contacts-policy-consent a:hover {
  text-decoration: none;
}

@media (max-width: 1199.98px) {
  .footer-contacts {
    text-align: center;
  }

  .footer-contacts > div {
    min-height: 70px;
  }
}