.container-header {
  min-height: 300px;
  background-color: #071522;
  background-image:
    linear-gradient(90deg, rgba(4, 14, 25, .36), rgba(4, 14, 25, .08) 45%, rgba(4, 14, 25, .30)),
    url('/images/brand/dragkontakt-header-desktop.webp');
  background-position: center center;
  background-size: cover;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .24);
}

.container-header .grid-child:first-child {
  display: flex;
  align-items: center;
  min-height: 225px;
}

.container-header .navbar-brand {
  margin: 0 auto;
  padding: 1.1rem 1.8rem 1.25rem;
  text-align: center;
  background: rgba(4, 15, 28, .62);
  border: 1px solid rgba(212, 168, 82, .42);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
  backdrop-filter: blur(3px);
}

.container-header .brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.container-header .brand-logo img {
  display: none !important;
}

.container-header .brand-logo > span {
  display: none;
}

.container-header .brand-logo::before {
  content: "ДРАГКОНТАКТ";
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .10em;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .72);
}

.container-header .brand-logo::after {
  content: "Приём радиодеталей и технических драгоценных металлов";
  margin-top: .65rem;
  color: #e7bd68;
  font-size: clamp(.76rem, 1.35vw, 1.08rem);
  font-weight: 600;
  letter-spacing: .04em;
  text-shadow: 0 2px 7px rgba(0, 0, 0, .9);
}

.container-header .container-nav {
  width: 100%;
  max-width: none;
  padding: .55rem max(1rem, calc((100vw - 1320px) / 2));
  background: rgba(3, 12, 23, .86);
  border-top: 1px solid rgba(224, 184, 104, .28);
  backdrop-filter: blur(5px);
}

.container-header .mod-menu {
  justify-content: center;
  gap: .12rem;
}

.container-header .mod-menu > li > a {
  padding: .5rem .68rem;
  border-radius: 4px;
  color: #f6f8fb;
  font-weight: 600;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li.current > a {
  color: #101a25;
  background: #e7bd68;
}

body.site {
  background-color: #e9eef3;
  background-image:
    linear-gradient(rgba(238, 243, 247, .91), rgba(238, 243, 247, .91)),
    url('/images/brand/dragkontakt-header-desktop.webp');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

.site-grid {
  width: min(100% - 2rem, 1320px);
  margin: 1.25rem auto 2rem;
  padding: 1.15rem;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(19, 42, 67, .10);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(13, 31, 50, .12);
}

.container-footer {
  border-top: 3px solid #c99b42;
  background: linear-gradient(135deg, #071522, #142d4d 68%, #27395e);
}

@media (max-width: 1200px) {
  .container-header {
    background-image:
      linear-gradient(90deg, rgba(4, 14, 25, .36), rgba(4, 14, 25, .08) 45%, rgba(4, 14, 25, .30)),
      url('/images/brand/dragkontakt-header-tablet.webp');
  }

  body.site {
    background-image:
      linear-gradient(rgba(238, 243, 247, .91), rgba(238, 243, 247, .91)),
      url('/images/brand/dragkontakt-header-tablet.webp');
  }
}

@media (max-width: 991px) {
  .container-header .container-nav {
    padding: .6rem .85rem .75rem;
  }

  .container-header .container-nav .mod-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: .2rem .4rem;
  }

  .container-header .mod-menu > li > a {
    display: block;
    padding: .46rem .55rem;
    line-height: 1.2;
  }
}

@media (max-width: 768px) {
  html,
  body.site {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container-header {
    min-height: 0;
    background-position: center center;
    background-image:
      linear-gradient(90deg, rgba(4, 14, 25, .42), rgba(4, 14, 25, .10) 45%, rgba(4, 14, 25, .36)),
      url('/images/brand/dragkontakt-header-mobile.webp');
  }

  .container-header .grid-child:first-child {
    min-height: 165px;
    width: 100%;
  }

  .container-header .navbar-brand {
    width: calc(100% - 1rem);
    max-width: calc(100% - 1rem);
    margin-inline: .5rem;
    padding: .9rem 1rem 1rem;
    box-sizing: border-box;
  }

  .container-header .brand-logo::before {
    max-width: 100%;
    font-size: 1.65rem;
    letter-spacing: .035em;
  }

  .container-header .brand-logo::after {
    max-width: 100%;
    font-size: .68rem;
    line-height: 1.35;
  }

  .container-header .container-nav {
    padding: .55rem .65rem .7rem;
  }

  .container-header .container-nav .mod-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: .18rem .35rem;
  }

  .container-header .mod-menu > li > a {
    display: block;
    padding: .42rem .5rem;
    font-size: .86rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  body.site {
    background-attachment: scroll;
    background-image:
      linear-gradient(rgba(238, 243, 247, .93), rgba(238, 243, 247, .93)),
      url('/images/brand/dragkontakt-header-mobile.webp');
  }

  .site-grid {
    width: calc(100% - 1rem);
    margin-top: .6rem;
    padding: .65rem;
    border-radius: 8px;
  }
}
