@font-face {
  font-family: "Clash Display";
  src:
    url("./fonts/ClashDisplay-Extralight.woff2") format("woff2"),
    url("./fonts/ClashDisplay-Extralight.woff") format("woff"),
    url("./fonts/ClashDisplay-Extralight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Clash Display";
  src:
    url("./fonts/ClashDisplay-Light.woff2") format("woff2"),
    url("./fonts/ClashDisplay-Light.woff") format("woff"),
    url("./fonts/ClashDisplay-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Clash Display";
  src:
    url("./fonts/ClashDisplay-Regular.woff2") format("woff2"),
    url("./fonts/ClashDisplay-Regular.woff") format("woff"),
    url("./fonts/ClashDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Clash Display Variable";
  src:
    url("./fonts/ClashDisplay-Medium.woff2") format("woff2"),
    url("./fonts/ClashDisplay-Medium.woff") format("woff"),
    url("./fonts/ClashDisplay-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Clash Display";
  src:
    url("./fonts/ClashDisplay-Semibold.woff2") format("woff2"),
    url("./fonts/ClashDisplay-Semibold.woff") format("woff"),
    url("./fonts/ClashDisplay-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Clash Display";
  src:
    url("./fonts/ClashDisplay-Bold.woff2") format("woff2"),
    url("./fonts/ClashDisplay-Bold.woff") format("woff"),
    url("./fonts/ClashDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: "Clash Display", sans-serif;
  color: #fff;
  background: #000;
  line-height: 1.5;
  scroll-behavior: smooth;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 140px;

  @media (max-width: 1400px) {
    padding: 0 120px;
  }

  @media (max-width: 1200px) {
    padding: 0 24px;
  }
}

.content {
  max-width: 1120px;
  margin: 0 auto;

  @media (max-width: 1200px) {
    padding: 0 24px;
  }
}

.section {
  padding-top: 200px;
}

/* Hamburger Menu */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;

  @media (max-width: 768px) {
    gap: 12px;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  justify-content: center;
  position: relative;

  @media (max-width: 768px) {
    display: flex;
  }
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;

  @media (max-width: 768px) {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #000;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid #333;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 0.3s ease,
      opacity 0.3s ease;

    &.active {
      max-height: 330px;
      opacity: 1;
    }
  }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  position: relative;

  @media (max-width: 1200px) {
    padding: 24px;
  }

  @media (max-width: 768px) {
    padding: 16px 24px;
  }
}

.nav a {
  color: #fff;
  text-align: center;
  font-family: "Clash Display Variable";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;

  &::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
  }

  &:hover {
    &::after {
      width: 100%;
    }
  }

  @media (max-width: 768px) {
    width: 100%;
    text-align: left;
    padding: 12px 8px;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s ease;

    &::after {
      display: none;
    }

    &:hover {
      background-color: rgba(255, 255, 255, 0.15);
    }
  }
}

.nav .mobile-btn {
  display: none;
  border: 1px solid #fff;
  border-radius: 8px;
  background: none;
  color: #fff;
  font-family: "Clash Display Variable";
  font-size: 16px;
  font-weight: 500;
  padding: 10px;
  height: 48px;
  width: 100%;
  margin-top: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;

  &:hover {
    background: #fff;
    color: #000;
  }

  @media (max-width: 768px) {
    display: block;
  }
}

/* btns */
.header-btn {
  color: #fff;
  text-align: center;
  font-family: "Clash Display Variable";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  width: 140px;
  height: 48px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid #fff;
  transition: all 0.3s ease;

  &:hover {
    background: #fff;
    color: #000;
  }

  @media (max-width: 768px) {
    display: none;
  }
}

.logo {
  color: #fff;
  font-family: "Clash Display Variable";
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
}

.hero-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  margin-top: 96px;

  @media (max-width: 768px) {
    gap: 30px;
  }
}

.hero {
  .title {
    color: #fff;
    text-align: center;
    font-family: "Clash Display Variable";
    font-size: 96px;
    font-style: normal;
    font-weight: 500;
    line-height: 1;

    @media (max-width: 768px) {
      font-size: 48px;
    }
  }

  .subtitle {
    color: #e1e1e1;
    text-align: center;
    font-family: "Clash Display";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    max-width: 517px;
  }
}

@media (max-width: 768px) {
  .wrapper-reverse {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
  }
}

.flex {
  display: flex;
  align-items: center;
  gap: 16px;
}

.link {
  color: #fff;
  font-family: "Clash Display Variable";
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;

  &:hover {
    text-decoration: underline;
  }
}

.herobg {
  margin-top: 35px;
  background: url("./img/hero2.svg") no-repeat center center;
  height: 500px;

  @media (max-width: 1200px) {
    object-fit: cover;
  }
}

.herobg {
  @media (max-width: 768px) {
    background: url("./img/hero2.svg") no-repeat center center/cover;
    height: 400px;
  }
}

.cars {
  .title {
    color: #fff;
    font-family: "Clash Display Variable";
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: 54px;

    @media (max-width: 768px) {
      font-size: 32px;
    }
  }

  .span {
    display: block;
    color: #999;
    font-family: "Clash Display Variable";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 1;
    margin: 40px 0;

    @media (max-width: 768px) {
      margin: 40px 0 24px 0;
    }
  }

  .wrap {
    margin-top: 48px;
    display: flex;
    justify-content: space-between;

    @media (max-width: 1200px) {
      flex-direction: column;
      gap: 40px;
    }

    @media (max-width: 768px) {
      flex-direction: column;
    }

    .subtitle {
      color: #999;
      font-family: "Clash Display Variable";
      font-size: 20px;
      font-style: normal;
      font-weight: 400;
      line-height: 30px;
      text-align: left;
      max-width: 544px;
    }
  }

  .list {
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;

    @media (max-width: 768px) {
      align-items: center;
      flex-direction: column;
    }

    .item {
      display: flex;
      flex-direction: column;
      gap: 20px;
      max-width: 100%;

      @media (max-width: 768px) {
        .carsImg {
          width: 100%;
          height: fit-content;
        }
      }
    }

    .list-title {
      color: #fff;
      font-family: "Clash Display Variable";
      font-size: 24px;
      font-style: normal;
      font-weight: 500;
      line-height: 24px;
      margin-top: 12px;
    }

    .list-descr {
      color: #999;
      font-family: "Clash Display Variable";
      font-size: 16px;
      font-style: normal;
      font-weight: 400;
      line-height: 24px;
    }

    .btn-more {
      margin-top: 12px;
      display: flex;
      gap: 8px;
      color: #fff;
      font-family: "Clash Display Variable";
      font-size: 16px;
      font-style: normal;
      font-weight: 400;
      line-height: 24px;

      &:hover {
        text-decoration: underline;
      }
    }
  }
}

.divider {
  width: 100%;
  max-width: 1120px;
  height: 1px;
  background: #999;
}

.card-video {
  margin-top: 120px;
  width: 100%;
  max-width: 1120px;
  height: 600px;
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%),
    url("./img/video.svg") lightgray 50% / cover no-repeat;

  .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: 100%;
    color: #fff;
    text-align: center;
    font-family: "Clash Display Variable";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 54px;

    img {
      width: 48px;
      height: 48px;
      cursor: pointer;
    }
  }
}

.info {
  display: flex;
  justify-content: space-around;
  align-items: center;

  .info-wrapper {
    display: flex;
    gap: 111px;

    @media (max-width: 1200px) {
      gap: 40px;
    }

    @media (max-width: 768px) {
      align-items: center;
      flex-direction: column;
    }
  }

  .title {
    color: #fff;
    font-family: "Clash Display Variable";
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: 54px;
  }

  .list {
    width: 100%;
    .item {
      @media (max-width: 768px) {
        display: flex;
        flex-direction: column;
        gap: 12px;
      }

      .wrap {
        display: flex;
        gap: 16px;
        align-items: center;
      }
      .item-title {
        color: #fff;
        font-family: "Clash Display Variable";
        font-size: 24px;
        font-style: normal;
        font-weight: 500;
        line-height: 24px;
      }

      .item-descr {
        color: #ccc;
        font-family: "Clash Display Variable";
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 24px;
      }

      .arrow {
        margin-top: 65px;
        color: #fff;
        font-family: "Clash Display Variable";
        font-size: 20px;
        font-style: normal;
        font-weight: 500;
        line-height: 36px;

        &:hover {
          text-decoration: underline;
        }
      }
    }
  }

  .item:nth-of-type(2) {
    margin-top: 44px;
  }

  .item:nth-of-type(3) {
    margin-top: 44px;
  }
}

.divider2 {
  width: 1px;
  max-height: 491px;
  background: rgba(255, 255, 255, 0.25);
}

.divider3 {
  background: rgba(255, 255, 255, 0.25);
  height: 1px;
  align-self: stretch;
  width: 100%;
  margin-top: 40px;
}

.details {
  background: url("./img/details.svg") no-repeat center center;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 16px;
  padding-top: 100px;
  padding-bottom: 100px;

  .wrapper {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 100px 64px;

    @media (max-width: 768px) {
      padding: 64px 24px;
    }
  }

  .title {
    color: #fff;
    font-family: "Clash Display Variable";
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: 54px;
    max-width: 425px;
    width: 100%;

    @media (max-width: 768px) {
      font-size: 32px;
    }
  }

  .descr {
    color: #ccc;
    font-family: "Clash Display Variable";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    max-width: 348px;
    width: 100%;
    margin-top: 40px;
  }

  .arrow {
    margin-top: 49px;
  }
}

.footer {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  padding-bottom: 20px;

  @media (max-width: 768px) {
    flex-direction: column;
  }

  .wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 80px;

    @media (max-width: 768px) {
      align-items: baseline;
      gap: 40px;
    }

    @media (max-width: 500px) {
      flex-direction: column;
      align-items: center;
    }
  }

  .left-side {
    .descr {
      margin-top: 32px;
      max-width: 352px;
      width: 100%;
      color: #999;
      font-family: "Clash Display Variable";
      font-size: 16px;
      font-style: normal;
      font-weight: 400;
      line-height: 22px;
    }
  }

  .right-side {
    display: flex;
    gap: 127px;

    @media (max-width: 768px) {
      margin-top: 40px;
      gap: 32px;
      justify-content: space-around;
    }

    .label {
      color: #999;
      font-family: "Clash Display Variable";
      font-size: 16px;
      font-style: normal;
      font-weight: 500;
      line-height: 30px;
    }

    .list {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .footer-link {
      color: #fff;
      font-family: "Clash Display Variable";
      font-size: 16px;
      font-style: normal;
      font-weight: 500;
      line-height: 30px;

      &:hover {
        text-decoration: underline;
      }
    }
  }

  .copyright {
    padding-top: 64px;
    display: flex;
    justify-content: space-between;

    @media (max-width: 768px) {
      flex-direction: column;
      align-items: center;
      gap: 32px;
    }

    span {
      color: #fff;
      text-align: center;
      font-family: "Clash Display Variable";
      font-size: 16px;
      font-style: normal;
      font-weight: 500;
      line-height: 24px;
    }

    .list {
      display: flex;
      gap: 32px;

      .item {
        color: #fff;
        font-family: "Clash Display Variable";
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 30px;
      }
    }
  }
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;

  &.active {
    opacity: 1;
    visibility: visible;
  }

  .flex{
    align-items: center;
  }
}

.modal-content {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlide 0.3s ease;

  @media (max-width: 768px) {
    padding: 24px;
    width: 95%;
  }
}

@keyframes modalSlide {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;

  &:hover {
    color: #ccc;
  }
}

.modal-icon {
  display: block;
  margin-left: 10px;
}

.modal-title {
  color: #fff;
  font-family: "Clash Display Variable";
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 8px;

  @media (max-width: 768px) {
    font-size: 24px;
  }
}

.modal-subtitle {
  color: #999;
  font-family: "Clash Display Variable";
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 32px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-input,
.modal-textarea {
  background: #000;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-family: "Clash Display Variable";
  font-size: 14px;
  padding: 12px 16px;
  transition: all 0.3s ease;

  &::placeholder {
    color: #666;
  }

  &:focus {
    outline: none;
    border-color: #fff;
    background: #0a0a0a;
  }
}

.modal-textarea {
  resize: vertical;
  min-height: 120px;
}

.modal-btn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  font-family: "Clash Display Variable";
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  padding: 12px 24px;
  height: 48px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;

  &:hover {
    background: #ccc;
    transform: translateY(-2px);
  }

  &:active {
    transform: translateY(0);
  }
}
