/* ====== ШРИФТЫ: Avenir Next Cyr ====== */
@font-face {
  font-family: 'Avenir Next Cyr';
  src: url('../fonts/avenirnextcyr-regular.woff2') format('woff2'),
       url('../fonts/avenirnextcyr-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Avenir Next Cyr';
  src: url('../fonts/avenirnextcyr-medium.woff2') format('woff2'),
       url('../fonts/avenirnextcyr-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Avenir Next Cyr';
  src: url('../fonts/avenirnextcyr-bold.woff2') format('woff2'),
       url('../fonts/avenirnextcyr-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

/* ====== ГЛОБАЛЬНО ====== */
body {
  font-family: 'Avenir Next Cyr', sans-serif !important;
  font-size: 16px;
  color: #2e2e2e;
  background-color: #ffffff;
  line-height: 1.6;
}

a {
  color: #00805C;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #0056b3;
}

main {
  padding-top: 20px;
  padding-bottom: 40px;
}

h3.green {
  color: #00805C !important;
}

/* ====== COOKIE-БАННЕР ====== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #222;
  color: #fff;
  padding: 15px;
  z-index: 9999;
}

.cookie-banner .cookie-link {
  color: #0d6efd;
  text-decoration: underline;
}

.d-none {
  display: none !important;
}

/* ====== ХЕДЕР ====== */
.logo img {
  height: 180px;
  max-width: 100%;
  object-fit: contain;
}

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 18px;
  color: #00315C !important;
}

.navbar-nav .nav-link:hover {
  color: #00805C !important;
}

.custom-link {
  position: relative;
  color: #00315C;
  padding-bottom: 6px;
  transition: color 0.3s ease;
}

.custom-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #00805C;
  transition: width 0.3s ease;
}

.custom-link:hover::after,
.custom-link:focus::after {
  width: 100%;
}

.custom-link:hover,
.custom-link:focus {
  color: #00805C;
}

.navbar-nav .nav-link.custom-link.active::after {
  width: 100%;
}

.navbar-nav .nav-link.custom-link:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

/* ====== ПОДВАЛ ====== */
footer {
  background-color: #00315C;
  color: #ffffff;
}

footer .text-success {
  color: #A4FFDD !important;
}

footer p,
footer a {
  font-size: 14px;
  color: #ffffff;
}

footer a:hover {
  text-decoration: underline;
}

footer ul li a:hover {
  text-decoration: underline;
}

footer i {
  color: #A4FFDD;
}

/* ====== МЕЛОЧИ ====== */
.divider {
  border-bottom: 1px solid #ccc;
  margin-bottom: 20px;
}

.text-shadow {
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

/* ====== ХЕРо ====== */
.hero-wrapper {
  position: relative;
  width: 100%;
  max-height: 300px;
  overflow: hidden;
  margin-top: 20px; 
}

.hero-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  filter: brightness(0.5);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
    padding: 0 10px; 
    word-break: break-word;
  }

  .hero-text {
    padding: 0 10px;
  }
}

/* ====== ССЫЛКИ ЗЕЛЕНЫЕ ====== */
.link-green {
  color: #00805C;
  text-decoration: none;
}

.link-green:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* ====== БЛОКИ ====== */
.block h5 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.block p {
  font-size: 0.95rem;
}

/* ====== АДАПТИВ ====== */
@media (max-width: 768px) {
  .logo img {
    height: 100px;
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-link {
    font-size: 16px;
    padding: 8px 0;
  }
}