body {
  padding: 0;
  margin: 0;
  min-width: 320px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5rem;
}

iframe {
  width: 100%;
  height: calc(100vh - 90px);
  border: none;
  display: none;
}

@media (max-width: 480px), (min-width: 481px) and (max-width: 768px) {
  iframe {
    margin-top: 60px;
  }
}

iframe.active {
  display: block;
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 60vw;
  height: 70vh;
  max-width: 1152px;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 0 5px #fff;
  overflow: auto;
  min-height: 500px;
  z-index: 10000000;
  padding: 10px;
  text-align: center;
  font-size: 20px;
  line-height: 1.5;
  margin: 20px 10px;
}

.popup.active {
  display: block;
}

.popup video {
  max-width: 200px;
  margin: 0 10px 10px 0;
  background: #fff;
}

@media (max-width: 480px), (min-width: 481px) and (max-width: 768px) {
  .popup {
    width: 85%;
    height: 90vh;
  }
  .popup h2 {
    margin: 10px 0;
  }
  .popup video {
    max-width: 130px;
    margin: 0;
  }
  .popup p {
    margin: 10px;
  }
}

.popup-background {
  display: none;
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000000;
}

.popup-background.active {
  display: block;
}

.burger-menu {
  display: inline-block;
  width: 40px;
  height: 40px;
  position: relative;
  margin: 10px;
  display: none;
}

@media (max-width: 480px), (min-width: 481px) and (max-width: 768px) {
  .burger-menu {
    display: inline-block;
  }
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  margin-top: 8px;
  background: #000;
}

.burger-menu span:first-child {
  margin-top: 0;
}

.burger-menu .lines,
.burger-menu .crossed {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  -moz-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.burger-menu .crossed {
  display: none;
}

.burger-menu .lines {
  display: block;
}

.burger-menu.active .crossed {
  display: block;
}

.burger-menu.active .lines {
  display: none;
}

.burger-menu.active .crossed span {
  position: absolute;
  margin: 0;
  width: 100%;
}

.burger-menu.active .crossed span:first-child {
  -moz-transform: rotateZ(45deg);
  -webkit-transform: rotateZ(45deg);
  -ms-transform: rotateZ(45deg);
  transform: rotateZ(45deg);
}

.burger-menu.active .crossed span:last-child {
  -moz-transform: rotateZ(-45deg);
  -ms-transform: rotateZ(-45deg);
  -webkit-transform: rotateZ(-45deg);
  transform: rotateZ(-45deg);
}

section {
  padding: 2rem 10rem;
}

@media (max-width: 480px), (min-width: 481px) and (max-width: 768px), (min-width: 769px) and (max-width: 1024px) {
  section {
    padding: 2rem;
  }
}

.col-left {
  grid-area: column-left;
}

.col-right {
  grid-area: column-right;
}

.section-row {
  grid-area: footer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  grid-template-areas: "column-left column-right" "footer footer";
  align-items: center;
  column-gap: 8rem;
  row-gap: 8rem;
  @container;
}

@media (max-width: 480px), (min-width: 481px) and (max-width: 768px), (min-width: 769px) and (max-width: 1024px) {
  .section-content {
    column-gap: 2rem;
    row-gap: 2rem;
  }
}

@media (max-width: 480px), (min-width: 481px) and (max-width: 768px) {
  .section-content {
    grid-template-columns: 1fr;
    grid-template-areas: "column-left" "column-right" "footer";
  }
}

@media (max-width: 480px), (min-width: 481px) and (max-width: 768px) {
  section:nth-child(even) .section-content {
    grid-template-areas: "column-right" "column-left" "footer";
  }
}

.section-column img {
  max-width: 100%;
}

section.gray {
  background: #f5f5f5;
}

section.light {
  background: #fff;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #63a308;
}

@media (max-width: 480px), (min-width: 481px) and (max-width: 768px) {
  nav {
    position: absolute;
    top: 0;
    width: 100%;
  }
}

nav.active {
  display: grid;
  grid-template-columns: 3fr 50px;
  grid-template-rows: auto;
  grid-template-areas: "mobile-nav-logo toggle-mobile-menu" "mobile-nav-menu .";
}

nav.active .logo {
  grid-area: mobile-nav-logo;
}

nav.active #top-menu {
  grid-area: mobile-nav-menu;
}

nav.active #top-menu li {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

nav.active #toggle-mobile-menu {
  grid-area: toggle-mobile-menu;
  justify-self: end;
}

nav .logo {
  max-width: 180px;
  padding: 5px;
  box-sizing: border-box;
}

nav .logo img {
  width: 100%;
  vertical-align: bottom;
}

nav .top-menu {
  margin: 0;
  list-style: none;
  display: flex;
  padding: 0;
}

@media (max-width: 480px), (min-width: 481px) and (max-width: 768px) {
  nav .top-menu {
    display: none;
  }
  nav .top-menu.active {
    display: flex;
    flex-direction: column;
  }
}

nav .top-menu li {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  padding: 1rem 2rem;
  position: relative;
  transition: all 0.3s linear;
}

nav .top-menu li::before {
  content: '';
  display: inline-block;
  position: absolute;
  bottom: 0.6rem;
  background: #fff;
  height: 1px;
  width: calc(100% - 4rem);
  transition: all 0.3s linear;
}

nav .top-menu li:hover {
  color: #272a7b;
}

nav .top-menu li:hover::before {
  opacity: 1;
  background: #272a7b;
}

nav .top-menu li a {
  text-decoration: none;
  color: inherit;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 3px;
  background: #140083;
  color: #fff;
}

.x-close-btn {
  display: inline-block;
  position: absolute;
  width: 35px;
  height: 35px;
  top: 5px;
  right: 5px;
}

.x-close-btn .x-line {
  width: 25px;
  height: 3px;
  background: #000;
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
}

.x-close-btn .x-line:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.x-close-btn .x-line:last-child {
  transform: translate(-50%, -50%) rotate(135deg);
}

footer {
  background: #000;
  color: #fff;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 5px 0;
  flex-wrap: wrap;
  font-size: 14px;
}

footer hr {
  display: none;
}

@media (max-width: 480px) {
  footer hr {
    display: block;
    border-color: #dadada;
    flex: 100%;
  }
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer .links {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
}

footer .links li {
  padding: 0.5rem;
  margin: 0 1rem;
}

@media (max-width: 480px) {
  footer .links li {
    margin: 0 5px;
    padding: 5px;
  }
}

header {
  height: 33rem;
  width: 100%;
  background: url(./assets/header_5.jpg);
  background-size: cover;
  background-position: 0 28%;
  display: flex;
  align-items: center;
  justify-content: center;
}

header h1 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  font-weight: 400;
  text-shadow: 0 0 5px #515151;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 2rem;
}

header h1 small {
  display: block;
  margin-top: 20px;
}

@media (max-width: 480px), (min-width: 481px) and (max-width: 768px) {
  header {
    height: auto;
    min-height: 50vh;
  }
  header h1 {
    font-size: 1.5rem;
  }
}
