:root {
  --black-color: #000000;
  --white-color: #ffffff;
  --main-fs: 16px;
  --main-lh: 1.68;
  --mob-lh: 1.37;
  --trans-dur: 250ms;
  --trans-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--black-color);
  line-height: var(--main-lh);
  font-size: var(--main-fs);
  font-weight: 300;
  margin: 0;
  /* background-color: #f2f2f2; */
  @media (max-width: 561px) {
    & {
      line-height: var(--mob-lh);
    }
  }
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

ul,
ol {
  padding-left: 0;
  margin: 0;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

section {
  margin: 0 auto;
}

.link {
  text-decoration: none;
}

.list {
  list-style: none;
}

.container {
  position: relative;
  max-width: 1366px;
  margin: 0 auto;
}

.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-block-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}

@media (max-width: 561px) {
  .info-block {
    gap: 18px;
  }
  .info-block-title {
    font-size: 26px;
    text-align: center;
  }
}

.white {
  color: var(--white-color);
}

.bold {
  font-weight: 600;
}

.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.no-scroll {
  overflow-y: hidden;
}

.section-top-gradient {
  position: absolute;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  height: 8%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
  background-blend-mode: multiply;

  @media (max-width: 560px) {
    display: none;
  }
}

/* header */

.header {
  .container {
    padding: 40px 75px;
    display: flex;
    gap: 10px;
    align-items: center;

    @media (max-width: 561px) {
      & {
        padding: 30px 20px 10px 20px;
        justify-content: center;
      }
    }

    .mob-menu-btn {
      position: absolute;
      left: 30px;
      border: none;
      background-color: var(--white-color);
      cursor: pointer;

      @media (min-width: 561px) {
        & {
          display: none;
        }
      }
    }

    .logo-wrapper {
      min-width: 50px;
    }

    .navigation {
      flex-grow: 1;

      @media (max-width: 561px) {
        & {
          display: none;
        }
      }

      .menu-list {
        margin: 0 auto;
        display: flex;
        gap: min(32px, 2.2vw);
        justify-content: center;

        a {
          color: var(--black-color);
          font-weight: 500;
        }
      }
    }
  }
  .mob-menu {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 222;
    background-color: #111;
    min-width: 300px;
    width: 100vw;
    height: 100vh;
    padding-top: 38px;
    padding-bottom: 30px;
    transform: scale(1);
    transition: opacity var(--trans-dur) var(--trans-timing-function),
      visibility var(--trans-dur) var(--trans-timing-function),
      transform var(--trans-dur) var(--trans-timing-function);

    .logo-wrapper {
      width: 83px;
      margin: 0 auto;
      margin-bottom: 50px;
    }

    .mob-menu-close {
      position: absolute;
      top: 44px;
      right: 25px;
      border: none;
      background-color: transparent;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .mob-menu-list {
      display: flex;
      flex-direction: column;
      gap: 32px;
      align-items: center;

      a {
        color: var(--white-color);
        font-weight: 500;
      }
    }
  }
}

/* hero */

/* software */

.software {
  .software-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 6px 51px 48px 51px;

    .software-list-item {
      display: flex;
      flex-direction: column;
      align-items: center;

      img {
        width: auto;
      }
      p {
        text-align: center;
        margin-top: 10px;
      }
    }
  }

  @media (min-width: 561px) {
    .software-list {
      position: absolute;
      left: 15%;
      top: 15%;
      padding: 0;
      gap: 32px;

      .software-list-item {
        max-width: 387px;
        align-items: start;

        p {
          margin-top: 10px;
          text-align: left;
        }
      }
    }
  }
}

/* technologies */

.technologies {
  .technologies-info-wrap {
    background-color: var(--black-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 51px 48px 51px;

    .img-wrapper {
      width: 164px;
      margin-bottom: 18px;
    }

    .info-block {
      align-items: center;

      .info-block-text {
        text-align: center;
      }
    }
    .memc {
      margin-bottom: 48px;
    }
  }

  @media (min-width: 561px) {
    .technologies-info-wrap {
      padding: 0;

      .info-block {
        max-width: 300px;
        align-items: start;

        .info-block-text {
          text-align: left;
        }
      }

      .memc {
        position: absolute;
        left: 2%;
        bottom: 10%;
        z-index: 5;
        margin: 0;
      }

      .upscaling {
        position: absolute;
        right: 2%;
        top: 11%;
        z-index: 6;
      }

      .img-wrapper {
        position: absolute;
        width: 22%;
        margin: 0;
      }

      .left-img {
        left: 5%;
        top: 11%;
      }

      .right-img {
        right: 7%;
        bottom: 10%;
      }
    }
  }
}

/* contrast-color */

.contrast-color {
  .section-top-gradient {
    @media (max-width: 560px) {
      height: 4%;
      display: block;
    }
  }

  .info-block {
    position: relative;
    padding: 6px 51px 48px 51px;
    align-items: center;

    &::before {
      content: '';
      width: 100%;
      height: 40px;
      position: absolute;
      top: -40px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
    }

    .info-block-text {
      text-align: center;
    }
  }

  @media (min-width: 561px) {
    .info-block {
      align-items: start;
      max-width: 370px;
      padding: 0;
      position: absolute;
      left: 7%;
      top: 10%;
      z-index: 6;

      &::before {
        display: none;
      }

      .info-block-text {
        text-align: left;
      }
    }
  }
}

/* uhd */

.uhd {
  .info-block {
    padding: 6px 51px 48px 51px;
    align-items: center;
    background-color: #242728;

    .info-block-text {
      text-align: center;
    }
  }

  @media (min-width: 561px) {
    .info-block {
      max-width: 370px;
      position: absolute;
      padding: 0;
      right: 8%;
      top: 13%;
      z-index: 6;
      background-color: transparent;
      align-items: flex-start;

      .info-block-text {
        text-align: left;
      }
    }
  }
}

/* sound-control */

.sound-control {
  .info-block {
    padding: 6px 51px 48px 51px;
    align-items: center;

    .info-block-text {
      text-align: center;
    }
  }

  @media (min-width: 561px) {
    .info-block {
      max-width: 300px;
      position: absolute;
      padding: 0;
      left: 7%;
      top: 11%;
      z-index: 6;

      .info-block-text {
        text-align: left;
      }
    }
  }
}

/* frameless */

.frameless {
  .info-block {
    padding: 6px 51px 48px 51px;
    align-items: center;
    background-color: #001f0c;

    .info-block-text {
      text-align: center;
    }
  }

  @media (min-width: 561px) {
    .info-block {
      max-width: 300px;
      position: absolute;
      background-color: transparent;
      padding: 0;
      right: 7%;
      top: 13%;
      z-index: 6;

      .info-block-text {
        text-align: left;
      }
    }
  }
}

/* service */

.service {
  .info-block-text {
    text-align: center;
  }

  .service-info {
    padding: 6px 51px 48px 51px;
    display: flex;
    flex-direction: column;
    gap: 18px;

    .service-info-list {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 18px;

      .service-info-item {
        width: 235px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: center;
      }
    }
  }

  @media (min-width: 561px) {
    .service-info {
      position: absolute;
      bottom: 0;
      flex-direction: row;
      gap: 40px;
      align-items: center;
      padding: 0 0 0 100px;
      padding-left: 100px;
      background: #ffffff9c;
      width: 100%;
      height: 234px;
      backdrop-filter: blur(20px);

      .info-block {
        max-width: 355px;

        .info-block-text {
          text-align: left;
        }
      }

      .service-info-list {
        flex-direction: row;
        gap: 40px;
      }
    }
  }
}

/* history */

.history {
  .history-logo-wrap {
    position: absolute;
    width: 166px;
    top: 12%;
    left: 50%;
    transform: translate(-50%, -50%);

    .history-logo-text {
      font-family: Inter;
      font-size: 18px;
      font-weight: 300;
      text-align: center;
      margin-top: 10px;
      color: var(--white-color);
    }
  }

  .history-info-list {
    background-color: #122544;
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 6px 51px 48px 51px;

    .history-info-wrap {
      display: flex;
      flex-direction: column;
      gap: 6px;
      align-items: center;
      color: var(--white-color);

      .history-info-title {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: center;
        font-family: Inter;
        font-size: 21px;
        font-weight: 600;
        line-height: 27px;
        text-align: center;
      }

      .history-img-wrap {
        width: 36px;
      }

      .history-info-text {
        text-align: center;
      }
    }
  }

  @media (min-width: 561px) {
    .history-logo-wrap {
      top: 7%;
      left: 7%;
      width: 200px;
      transform: translate(0, 0);

      .history-logo-text {
        font-size: 44px;
      }
    }

    .history-info-list {
      position: absolute;
      top: 0;
      height: 100%;
      padding: 0 20px;
      flex-direction: row;
      gap: 40px;
      background-color: transparent;
      background-image: url(../img/svg/vector-line.svg);
      background-repeat: no-repeat;
      background-position: 85% 0%;
      background-size: cover;

      .history-info-item {
        &:nth-child(1) {
          padding-top: 25%;
        }
        &:nth-child(2) {
          padding-top: 21%;
        }
        &:nth-child(3) {
          padding-top: 16.4%;
        }
        &:nth-child(4) {
          padding-top: 11.4%;
        }

        &:nth-child(5) {
          padding-top: 5.8%;
        }

        .history-info-wrap {
          gap: 16px;

          .history-info-title::after {
            content: '';
            display: block;
            width: 16px;
            height: 16px;
            background-color: #fff;
            border-radius: 50%;
          }
        }

        .history-img-wrap {
          width: 53px;
        }

        .history-info-text:last-child {
          max-width: 302px;
        }
      }
    }
  }
}

/* tvs */

.tvs {
  .container {
    padding: 64px 75px;
    /* display: flex;
    gap: 32px; */
  }
  @media (max-width: 561px) {
    .container {
      padding: 32px 40px 68px 40px;
    }
  }

  .tv-card {
    height: 100%;
    /* width: 384px; */
    background-color: #eae9e9;
    border: 1px solid #eae9e9;
    border-radius: 8px;
    overflow: hidden;

    .tv-img-wrap {
      background-color: #fff;
      padding: 0 42px;
      border-radius: 8px;
    }

    .tv-info-wrap {
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 24px;

      .tv-name-wrap {
        display: flex;
        font-family: Inter;
        justify-content: space-between;

        .tv-name-text {
          font-size: 24px;
          font-weight: 400;
          line-height: 1.4;
          width: 170px;
        }

        .tv-name-diagonal {
          width: 72px;
          height: 72px;
          border-radius: 50%;
          background-color: #fff;
          display: flex;
          align-items: center;
          justify-content: center;
          flex-shrink: 0;
          font-size: 36px;
          font-weight: 300;
          color: #00000080;
        }
      }

      .tv-tech-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;

        .tv-tech-item {
          padding: 4px 8px;
          background-color: #fff;
          border-radius: 4px;
          font-size: 16px;
          font-weight: 400;
          color: #000000bf;
        }
      }

      .tv-btn-wrap {
        padding: 24px 0;
        /* display: flex; */
        display: none;
        justify-content: center;
        border-top: 1px solid #0000001a;

        .tv-btn {
          font-family: Inter;
          font-size: 16px;
          font-weight: 800;
          letter-spacing: 0.03em;
          text-transform: uppercase;
          color: var(--white-color);
          background-color: #111;
          padding: 16px 32px;
          margin: 0 auto;
          border-radius: 4px;
        }
      }
    }
  }
}

/* footer */

.footer {
  padding: 64px 0 16px 0;
  background-color: #111111;

  @media (max-width: 561px) {
    & {
      padding: 40px 0 16px 0;
    }
  }

  .container {
    padding: 0 75px;

    @media (max-width: 561px) {
      & {
        padding: 0 51px;
      }
    }
  }

  .footer-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;

    @media (min-width: 561px) {
      & {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
      }
    }

    .footer-logo {
      min-width: 50px;
    }

    @media (max-width: 561px) {
      .footer-logo {
        display: none;
      }
    }

    .footer-title {
      font-weight: 600;
      color: var(--white-color);
      margin-bottom: 28px;

      @media (max-width: 561px) {
        & {
          margin-bottom: 16px;
        }
      }
    }

    .footer-link {
      display: block;
      font-size: 14px;
      font-weight: 400;
      color: #ffffff80;
      transition: color var(--trans-dur) var(--trans-timing-function);

      @media (max-width: 561px) {
        & {
          font-size: 14px;
        }
      }

      &:not(:last-child) {
        margin-bottom: 12px;

        @media (max-width: 561px) {
          & {
            margin-bottom: 8px;
          }
        }
      }

      &:hover,
      &:focus {
        color: #ffffff;
      }
    }

    .footer-phone {
      display: block;
      color: var(--white-color);
      font-size: 22px;
      font-weight: 600;
      margin-bottom: 12px;

      @media (max-width: 561px) {
        & {
          margin-bottom: 16px;
        }
      }
    }

    .footer-social-list {
      display: flex;
      gap: 16px;

      @media (max-width: 561px) {
        & {
          justify-content: space-between;
          max-width: 260px;
        }
      }
    }
  }

  .footer-copyright {
    border-top: 1px solid #ffffff1a;
    padding: 16px 0;
    display: flex;
    gap: 16px;
    align-items: center;

    @media (max-width: 561px) {
      flex-direction: column;
    }

    .footer-copyright-text {
      flex-shrink: 0;
      font-size: 12px;
      font-weight: 400;
      color: #ffffff80;
    }

    .footer-text-wrap {
      display: flex;
      flex-direction: column;
      gap: 4px;

      .footer-info-text {
        font-size: 10px;
        font-weight: 400;
        color: #ffffff80;
      }
    }
  }
}

/* swiper */

.swiper-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-pagination {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
}
.swiper-button-next,
.swiper-button-prev {
  fill: #11111133;
  transition: fill var(--trans-dur) var(--trans-timing-function);

  &:hover {
    fill: #111111;
  }
}

.swiper-button-next {
  transform: rotate(180deg);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  content: '';
}

.swiper-pagination {
  bottom: 24px !important;
}

@media (max-width: 560px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

@media (min-width: 560px) {
  .swiper-pagination {
    display: none;
  }

  .swiper-slide {
    transition: opacity 1s ease;
  }

  .swiper-slide-active + .swiper-slide + .swiper-slide + .swiper-slide {
    opacity: 0.5;
  }

  .swiper-slide-prev {
    opacity: 0.5;
  }
}

.swiper-pagination-bullet {
  background-color: #eae9e9;
  width: 12px;
  height: 12px;
  opacity: 1;
  margin: 0 6px !important;
}

.swiper-pagination-bullet-active {
  background-color: #111111;
  width: 12px;
  height: 12px;
}

/* twentytwenty */

.twentytwenty-handle {
  width: 32px;
  height: 32px;
  border: none;
  margin-left: -17px;
  margin-top: -17px;
  background-color: #fff;

  @media (max-width: 560px) {
    width: 20px;
    height: 20px;
    margin-left: -10px;
  }
}

.twentytwenty-left-arrow {
  border-right: 6px solid #000000;
  left: 50%;
  margin-left: -15px;

  @media (max-width: 560px) {
    margin-left: -14px;
  }
}

.twentytwenty-right-arrow {
  border-left: 6px solid #000000;
  right: 50%;
  margin-right: -15px;

  @media (max-width: 560px) {
    margin-right: -14px;
  }
}

.twentytwenty-horizontal .twentytwenty-handle:before {
  margin-bottom: 18px;
  width: 2px;
}

@media (max-width: 560px) {
  .twentytwenty-horizontal .twentytwenty-handle:before {
    margin-bottom: 13px;
    width: 1px;
    margin-left: -0.5px;
  }
}

.twentytwenty-horizontal .twentytwenty-handle:after {
  margin-top: 18px;
  width: 2px;
}

@media (max-width: 560px) {
  .twentytwenty-horizontal .twentytwenty-handle:after {
    margin-top: 13px;
    width: 1px;
    margin-left: -0.5px;
  }
}
