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

@font-face {
    font-family: 'AvenirNextCyr';
    src: url('/static/fonts/avenirnextcyr-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AvenirNextCyr';
    src: url('/static/fonts/avenirnextcyr-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ====== ГЛОБАЛЬНО ====== */
body {
  font-family: 'AvenirNextCyr', 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;
}

.footer-nav .nav-combo{
  white-space: nowrap;
}

.footer-nav .nav-combo .sep{
  opacity:.9; margin: 0 .25rem;
}

.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: #ffffff !important;
}

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

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

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

footer i {
  color: #A4FFDD;
}

.footer-card{
  display: flex;
  flex-direction: column;
  height: 100%;         
}

footer h5{ 
  margin-bottom: .75rem; 
}

.footer-logo{
  height:64px;         
  width:auto;
  max-width:100%;
  object-fit:contain;
  flex:0 0 auto;        
  align-self:flex-start;
}

footer .small li{ 
  line-height:1.35; 
  margin-bottom: .25rem; 
}

footer h5{ margin-bottom: .75rem; }

.footer-card p.small{
  font-size: 0.85rem;  
  line-height: 1.3;    
}



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

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

.site-footer{
  background-color:#00315C !important; 
  color:#fff;
}


.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;
  inset: 0;
  display: grid;
  place-items: center;        
  padding: 0 32px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.25) 40%);
}

.hero-title {
  color: #fff;
  font-weight: 700;
  font-size: clamp(22px, 7.5vw, 56px);
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);


  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  max-width: 95vw;            
}

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

/* ====== ССЫЛКИ ЗЕЛЕНЫЕ ====== */
.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 (min-width: 992px){
  .footer-logo{ 
    height:80px; 
  }
}

@media (max-width: 768px) {
  .logo img {
    height: 100px;
  }

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

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

@media (max-width: 360px){
  .hero-title{ font-size: clamp(20px, 9vw, 40px); }
  .hero-text{ padding: 0 16px; }
}

@media (max-width: 420px){
  footer .small{ font-size: 0.9rem; }
}

@media (max-width: 420px){
  .footer-nav .nav-combo{ white-space: normal; }
}

/* ====== НОВОСТИ ====== */
.img-thumbnail {
    object-fit: cover;
    width: 100px;
    height: auto;
}

/* ====== CAPTCHA ====== */
.captcha-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
  }

/* ====== ПОИСК ====== */  
  .highlight {
  background-color: yellow;
  font-weight: bold;
}