/* New site common css: header, footer and shared layout helpers */

.wrap {
  width: 1200px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: -40px;
  z-index: 100;
  background: #fff;
}

.top-line {
  height: 40px;
  border-bottom: 1px solid #f2f2f2;
  color: #555;
  font-size: 14px;
  line-height: 40px;
}

.top-line__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  white-space: nowrap;
}

.nav-line {
  height: 82px;
  background: rgba(248, 250, 253, .96);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
}

.nav-line__inner {
  display: flex;
  align-items: center;
  height: 82px;
}

.brand {
  flex: 0 0 auto;
  width: 340px;
}

.brand img {
  width: 340px;
  height: 35px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  color: #333;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav__item {
  position: relative;
}

.main-nav > .main-nav__item > a {
  position: relative;
  display: inline-block;
  line-height: 82px;
  transition: color .2s ease;
}

.main-nav > .main-nav__item > a:hover,
.main-nav > .main-nav__item:hover > a {
  color: #d91f1f;
}

.main-subnav {
  position: absolute;
  top: 100%;
  left: 50%;
  display: none;
  min-width: 168px;
  padding-top: 14px;
  transform: translateX(-50%);
}

.main-subnav::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  margin-left: -8px;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
  border-left: 8px solid transparent;
}

.main-subnav a {
  display: block;
  padding: 12px 20px;
  background: #fff;
  color: #666;
  text-align: center;
  border-bottom: 1px solid #f1f1f1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.main-subnav a:first-child {
  border-radius: 8px 8px 0 0;
}

.main-subnav a:last-child {
  border-radius: 0 0 8px 8px;
  border-bottom: 0;
}

.main-subnav a:hover {
  color: #d91f1f;
}

.main-nav__item:hover .main-subnav {
  display: block;
}

.header-tel {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 30px;
  color: #d91f1f;
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}

.header-tel img {
  width: 22px;
  height: 22px;
}

.site-footer {
  min-height: 392px;
  background: #141414;
  color: #fff;
}

.footer-nav {
  display: flex;
  align-items: center;
  height: 92px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.footer-nav a:not(.footer-phone) {
  padding: 0 26px;
  border-right: 1px solid rgba(255, 255, 255, .16);
}

.footer-nav a:first-child {
  padding-left: 0;
}

.footer-nav a:nth-child(7) {
  border-right: 0;
}

.footer-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  color: #e02020;
  font-size: 16px;
  font-weight: 400;
}

.footer-phone img {
  width: 16px;
  height: 16px;
}

.footer-main {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 96px 96px;
  gap: 38px;
  align-items: center;
  min-height: 164px;
  padding: 26px 0 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 0 24px 0 0;
  border-right: 1px solid rgba(255, 255, 255, .14);
}

.footer-brand__logo {
  width: 170px;
  max-width: 100%;
  height: auto;
}

.footer-info h3 {
  margin: 0 0 12px;
  color: #cfcfcf;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}

.footer-info p {
  margin: 6px 0;
  color: #8d8d8d;
  font-size: 12px;
  line-height: 1.6;
}

.footer-qrs {
  color: #8d8d8d;
  text-align: center;
  font-size: 12px;
}

.footer-qrs img {
  width: 84px;
  height: 84px;
  margin: 0 auto 8px;
  object-fit: cover;
}

.footer-qrs p {
  margin: 0;
}

.copyright {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: #696969;
  text-align: center;
  font-size: 11px;
  line-height: 44px;
}

.news-feature__cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
}

@media only screen and (max-width: 1200px) {
  .top-line__inner {
    gap: 12px;
    font-size: 12px;
  }

  .main-nav {
    gap: 16px;
    font-size: 14px;
  }

  .header-tel {
    display: none;
  }

  .footer-main {
    grid-template-columns: 220px minmax(0, 1fr) 84px 84px;
    gap: 24px;
  }
}
