* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Atyp Display";
}

html,
body {
  height: 100%;
  margin: 0;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

body {
  background: #000;
  color: #fff;
}

/* HEADER */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  background: rgb(0, 0, 0);
  /* backdrop-filter: blur(10px); */
}

.logo {
  font-weight: bold;
}

.logo img {
  width: 80px;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a,
#menu a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  text-transform: uppercase;
  font-weight: bold;
}

.nav a.active,
#menu a.active {
  text-decoration: underline;
}

.socials {
  display: flex;
  gap: 15px;
}

.socials a {
  color: #fff;
  text-decoration: none;
}

.socials svg,
#menu svg {
  width: 24px;
  height: 24px;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.burger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero__bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__main-video {
  display: none;
  z-index: 2;
  max-width: 100%;
  /* max-height: 70%; */
  object-fit: contain;
}

.hero__content {
  position: relative;
  z-index: 3;
}

.logo-block {
  padding: 100px 20px;
  text-align: center;
  font-size: 40px;
}

.portfolio {
  padding: 80px 20px;
}

.portfolio-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.portfolio-section {
  margin-bottom: 80px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card iframe {
  width: 100%;
  height: 200px;
}

.card p {
  margin-top: 10px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 40px;
  border-top: 1px solid #222;
}

footer img {
  width: 40px;
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #fff;
  color: #000;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  display: none;
}

@media (max-width: 768px) {
  .nav,
  .socials {
    display: none;
  }

  .burger {
    display: flex;
  }

  .mobile-menu {
    position: fixed;
    z-index: 100;
    top: 100px;
    right: 0;
    width: 100%;
    height: 100%;
    background: #000;
    padding: 40px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .mobile-menu.active {
    display: flex;
  }

  .hero__bg-video {
    filter: blur(20px);
    transform: translate(-50%, -50%) scale(1.2);
  }

  .hero__main-video {
    display: block;
  }
}

main {
  padding: 100px 20px 20px;
  position: relative;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 100%;
}

.about-text {
  width: 70%;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .about-text {
    text-align: left;
    width: 100%;
  }
}

.contacts-container {
  flex-direction: row;
  justify-content: center;
  align-items: start;
  max-width: 100%;
  gap: 100px;
  margin: 0 auto;
}

.contacts-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.card-title {
  text-align: center;
}

.card-mail {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.card-photo {
  width: 100%;
  width: 400px;
  height: 500px;
  object-fit: cover;
  object-position: top;
}

.adress-container {
  margin-top: 50px;
}

.adress-cards {
  display: flex;
  gap: 15px;
  height: 400px;
  width: 100%;
  margin: 30px 0;
}

.adress-photo,
.adress-map {
  flex: 1;
  height: 400px;
}

.adress-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adress-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1023px) {
  .card-photo {
    width: 300px;
    height: 400px;
  }

  .contacts-container {
    gap: 50px;
  }

  .adress-cards {
    flex-direction: column;
    height: unset;
  }

  .adress-photo,
  .adress-map {
    flex: unset;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .contacts-container {
    flex-direction: column;
  }

  .card-photo {
    height: unset;
    width: unset;
    max-width: 100%;
  }
}

.work_cards-full,
.work_cards-commercials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.work_card {
  flex: 0 0 calc(50% - 10px);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.card_video {
  width: 100%;
  height: 100%;
  display: block;
}

.work_title {
  margin-bottom: 30px;
}

.video_box {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video_box iframe,
.video_box video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
    .work_card {
        flex: 0 0 100%;
    }
}

.video_box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.video_box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video_preview {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.video_preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video_preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.video_preview:hover::after {
  background: rgba(0, 0, 0, 0.3);
}

.play_button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.play_button span {
  display: block;
  width: 0;
  height: 0;
  border-left: 18px solid black;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

.video_preview:hover .play_button {
  transform: translate(-50%, -50%) scale(1.1);
}