﻿body {
  font-family: sans-serif;
  margin: 0;
  max-width: 1920px;
  min-width: 1200px;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  background-color: #2563b5;
  color: #fff;
  height: 274px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto 84px;
}
header .logo {
  grid-row: 1/3;
  align-self: center;
  margin-left: 75px;
  height: 75px;
}
header .search {
  display: flex;
  align-items: center;
  height: 37px;
  width: 265px;
  border: 1px solid #fff;
  box-sizing: border-box;
  border-radius: 37px;
  padding-right: 14px;
  align-self: flex-end;
  justify-self: end;
  margin-bottom: 25px;
  margin-right: 40px;
}
header .search .search-icon {
  flex-shrink: 0;
  margin-left: 14px;
  margin-right: 14px;
}
header .search input {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 18px;
  flex: 1;
  width: 100%;
  height: 100%;
  line-height: 37px;
  outline: none;
}
header .search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

header .quick {
  margin-right: 40px;
  font-size: 20px;
  display: flex;
  gap: 1em;
  justify-self: end;
  align-self: start;
}
#switchLng {
  cursor: pointer;
}

header nav {
  grid-column: 1/-1;
  background: linear-gradient(
    to bottom,
    #650000 1px,
    #bb5b52 1px,
    #bb5b52 2px,
    #9f0d00 2px,
    #9f0d00 100%
  );
  position: relative;
}
header nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 0 140px;
  margin: 0;
  height: 100%;
  gap: 20px;
}
header nav li {
  flex: 1;
}
header nav .cur,
header nav li:hover {
  background-color: rgba(255, 255, 255, 0.18);
}
header nav li > a {
  font-size: 24px;
  font-weight: bold;
  display: block;
  line-height: 84px;
  width: 100%;
  text-align: center;
}
header nav .sub-menu {
  transition: all 500ms;
  opacity: 0;
  visibility: hidden;
  margin: 0;
  background-color: rgba(255, 255, 255, 0.6);
  color: #000;
  font-size: 18px;
  text-align: center;
  padding-top: 20px;
  padding-bottom: 20px;
  font-weight: normal;
}
header nav li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
}
header nav .sub-menu a {
  display: block;
  line-height: 50px;
}
header nav .sub-menu a:hover {
  color: #9f0d00;
}

footer {
  height: 268px;
  background: url(../images/footer.jpg) center;
  color: #fff;
  text-align: center;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
}
footer .links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 1em;
  font-size: 18px;
  justify-content: center;
  margin-top: 30px;
}

.videoMask {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.videoMask .video {
    max-width: 1280px;
    width: 90%;
}