:root {
  --white: #FFF;
  --black: #000;
  --light-gray: #E4E4E4;
  
  --blue: #003FE0;
  --light-blue: #68D0F3;
  --soft-blue: #C0DDFF;

  /* breakpoints */
  --mobile-breakpoint: 560px;
  --tablet-breakpoint: 980px;
  --desktop-breakpoint: 981px;
}

/* common start */
html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

* {
  padding: 0;
  margin: 0;
}

body {
  color: var(--black);
  background-color: var(--light-gray);
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
}

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

ul, ol {
  list-style: none;
}

button,
input,
textarea {
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
  border: none;
  outline: none;
}

h1, .ash1 {
  margin: 0;
  font-size: 48px;
  font-weight: 900;

  @media (max-width: 980px) {
    font-size: 36px;
  }

  @media (max-width: 560px) {
    font-size: 28px;
  }
}

h2, .ash2 {
  font-size: 36px;
  font-weight: 900;

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

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

h3, .ash3 {
  font-size: 28px;
  font-weight: 900;

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

  @media (max-width: 560px) {
    font-size: 18px;
  }
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;

  @media (max-width: 980px) {
    max-width: 790px;
  }
}

.title {
  margin-bottom: 40px;

  @media (max-width: 980px) {
    margin-bottom: 20px;
  }
}

.section {
  margin-bottom: 100px;

  @media (max-width: 980px) {
    margin-bottom: 60px;
  }
}

.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.layout__spacer {
  flex: 1;
}

.button {
  cursor: pointer;
  text-align: center;
}

.button.blue {
  color: var(--white);
  background-color: var(--blue);
}

.button.soft-blue {
  color: var(--black);
  background-color: var(--soft-blue);
}

.button.black {
  color: var(--white);
  background-color: var(--black);
}

.button.white {
  color: var(--black);
  background-color: var(--white);
}

.wave-text-container {
  background-image: url('../icons/wave.svg');
  background-repeat: no-repeat;
  background-position: center;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden-tablet {
  @media (max-width: 980px) {
    display: none;
  }
}

.hidden-mobile {
  @media (max-width: 560px) {
    display: none;
  }
}
/* common end */

/* header start */
.header {
  position: relative;
  z-index: 10;
}

.header-wrapper {
  background-color: var(--light-blue);
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__left,
.header__center,
.header__right {
  /* width: 100%; */
  /* flex: 1; */
}

.header__right {
  display: flex;
  justify-self: flex-end;
  column-gap: 40px;
}

.header__logo {
  width: 207px;
  padding: 24px 0 10px;
  display: flex;
  justify-content: center;

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

.header__logo-img {
  width: 150px;

  @media (max-width: 980px) {
    width: 100%;
  }
}

.header__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 28px;

  @media (max-width: 980px) {
    background-color: var(--light-blue);
    position: absolute;
    z-index: -1;
    left: 0;
    bottom: 0;
    width: 100%;
    min-height: 100%;
    align-items: center;
    transition: transform 300ms ease-in-out;
  }
}

.header__menu_opened {
  @media (max-width: 980px) {
    transform: translateY(100%);
  }
}

.header__menu-link {
  color: var(--white);
}

.header__menu-link:hover {
  color: var(--black);
}

.header__soft-link {
  padding: 10px 25px;
  margin-left: auto;
  border-radius: 10px;
}

.header__burger {
  display: none;

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

.burger-btn {
  margin-left: auto;
  background-color: transparent;
  cursor: pointer;
}

.burger-btn span {
  margin: 5px 0;
}

.burger-btn span,
.burger-btn::before,
.burger-btn::after {
  content: '';
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 1px;
  background-color: var(--white);
  transform-origin: left;
  transition: transform .25s,opacity .1s;
}

.burger-btn_opened span {
  opacity: 0;
}

.burger-btn_opened::before {
  transform: rotate(45deg);
}

.burger-btn_opened::after {
  transform: rotate(-45deg);
}
/* header end */

/* convert-block start */
.convert-block {}

.convert-block__title {
  text-align: center;
  text-wrap: balance;
  margin-top: 60px;

  @media (max-width: 980px) {
    margin-top: 50px;
  }
}

.convert-block__desc {
  max-width: 580px;
  text-align: center;
  padding: 0 20px;
  font-weight: 500;
}
/* convert-block end */

/* convert-form start */
.convert-form {
  max-width: 628px;
  margin: 0 auto 60px;

  @media (max-width: 980px) {
    margin-bottom: 40px;
  }
}

.convert-form__input-wrapper {
  border-radius: 20px;
  border: 1px solid var(--black);
  background-color: var(--white);
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  overflow: hidden;
  transition: border-color 0.3s ease;

  @media (max-width: 560px) {
    margin-bottom: 26px;
  }
}

.convert-form__input-wrapper:focus-within {
  border-color: #3EA6FF;
}

.convert-form__link-icon {
  width: 64px;
  height: 18px;
}

.convert-form__input {
  line-height: 64px;
  width: 100%;
  background-color: transparent;
}

.convert-form__footer {
  display: flex;
  align-items: center;
  margin-bottom: 16px;

  @media (max-width: 560px) {
    margin-bottom: 18px;
  }
}

.convert-form__footer-item {
  font-size: 18px;
  flex: 1;
  padding: 20px;
  border-radius: 20px;

  @media (max-width: 560px) {
    font-size: 16px;
    padding: 15px;
  }
}

.convert-form__footer-separator {
  font-size: 22px;
  margin: 0 25px;
}

.convert-form__terms {
  text-align: center;
  font-size: 14px;
  opacity: 0.5;

  @media (max-width: 560px) {
    font-size: 12px;
  }
}

.convert-form__terms-link {
  text-decoration: underline;
}
/* convert-form end */

/* video-preview start */
.preview {
  background-color: var(--white);
  max-width: 933px;
  width: fit-content;
  min-height: 398px;
  margin: 0 auto;
  padding: 32px 60px;
  border-radius: 6px;
  display: flex;
  column-gap: 20px;
  row-gap: 16px;
  justify-content: space-between;

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

  @media (max-width: 560px) {
    padding: 16px 12px 30px;
  }
}

.preview__video-container {
  max-width: 426px;
  display: none;
}

.preview__video-container_visible {
  display: block;
}

.preview__video-image {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 426 / 239;
  object-fit: cover;
  margin-bottom: 14px;
}

.preview__video-title {
  font-size: 18px;
  word-wrap: break-word;
  margin-bottom: 10px;
}

.preview__video-info {
  opacity: 0.5;
}

.format-list-wrapper {
  @media (max-width: 980px) {
    width: 100%;
  }
}

.format-list {
  width: 357px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  margin-bottom: 20px;

  @media (max-width: 980px) {
    width: 100%;
  }
}

.format-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);

  @media (max-width: 560px) {
    padding: 7px 18px 7px 12px;
  }
}

.format-list-item:last-of-type {
  border-bottom: none;
}

.format-list-item__format {
  font-weight: 700;
}

.format-list-item__subtext {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
}

.format-list-item__button {
  width: 140px;
  padding: 9px;
  border-radius: 20px;
  font-weight: 700;

  @media (max-width: 980px) {
    width: 122px;
  }
}

.format-list__back-to-index {
  display: block;
  width: 100%;
  border-radius: 20px;
  padding: 15px;
  font-weight: 700;
}
/* video-preview end */

/* progress start */
.progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 45px;
}

.progress__bar{
  display: none;
}

.progress__new-tab {
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 20px;
  margin-bottom: 23px;
}

.progress__info {
  position: relative;
  width: 200px;
  height: 200px;
}

.progress__preloader {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  animation: rotation 2.5s infinite normal linear;
}

.progress__preloader_inner {
  top: 10%;
  right: 10%;
  bottom: 10%;
  left: 10%;
}

.progress__preloader-item {
  position: absolute;
  border: 1px solid transparent;
  border-radius: 43%;
  border-width: 5px 0 0 0;
  width: 100%;
  height: 100%;
  border-color: #585EE6;
}

.progress__preloader-item_one {
  transform: rotate(0);
}

.progress__preloader-item_two {
  transform: rotate(120deg);
}

.progress__preloader-item_three {
  transform: rotate(240deg);
}

.progress__percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 62px;
  font-weight: 700;
}

.progress__percent::after {
  content: '%';
}

@keyframes rotation {
  from {
    transform: rotate(0) scale(1, 1);
    filter: hue-rotate(-60deg);
  }

  60% {
    transform: rotate(360deg) scale(0.8, 0.8);
    filter: hue-rotate(10deg);
  }

  to {
    transform: rotate(720deg) scale(1, 1);
    filter: hue-rotate(-60deg);
  }
}
/* progress end */

/* download start */
.download {
  background-color: var(--white);
  border-radius: 6px;
  max-width: 933px;
  /* width: fit-content; */
  margin: 0 auto;
  padding: 30px 38px 30px 70px;
  display: flex;
  justify-content: space-between;
  gap: 30px;

  @media (max-width: 980px) {
    padding: 20px;
  }

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

  @media (max-width: 560px) {
    padding: 20px 12px;
  }
}

.download-container {
  display: flex;
  flex-direction: column;
  max-width: 320px;

  @media (max-width: 800px) {
    align-items: center;
  }
}

.result-title {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 20px;
  text-wrap: balance;

  @media (max-width: 800px) {
    text-align: center;
  }

  @media (max-width: 560px) {
    font-size: 18px;
  }
}

.download-link {
  margin-bottom: 18px;
}

.download-link,
.download__new-tab {
  font-weight: 700;
  padding: 22px;
  border-radius: 20px;
  max-width: 278px;
  width: 100%;
}

.soft-block {
  max-width: 448px;
  background-color: #030303;
  color: var(--white);
  border-radius: 6px;
  padding: 22px 64px;

  @media (max-width: 980px) {
    padding: 22px 20px;
  }
}

.soft-block__title {
  font-size: 24px;
  margin-bottom: 8px;
}

.soft-block__subtitle {
  margin-bottom: 12px;
}

.soft-block__title,
.soft-block__subtitle {
  text-align: center;
  font-weight: 700;
}

.soft-block__content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.soft-block__img-container {
  width: 171px;

  @media (max-width: 560px) {
    width: 131px;
  }
}

.soft-block__img {
  width: 100%;
}

.soft-block__desc {
  width: 138px;
  align-self: center;

  @media (max-width: 560px) {
    width: 100%;
    text-align: center;
    order: 3;
  }
}

.soft-block__desc-text {
  font-size: 14px;
}

.soft-block__link {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 16px;
  width: 100%;
  border-radius: 20px;
  padding: 6px;
  font-weight: 700;

  @media (max-width: 560px) {
    margin: 8px 0 11px;
  }
}
/* download end */

/* video-list start */
.video-list {
  margin-bottom: 72px;

  @media (max-width: 980px) {
    margin-bottom: 60px;
  }
}

.video-list-wrapper {
  max-width: 814px;
  margin: 0 auto;
}

.video-list__title {
  text-align: center;

  @media (max-width: 560px) {
    margin-bottom: 30px;
  }
}

.video-list__list {
  display: flex;
  flex-direction: column;
  row-gap: 6px;
}

.video-item {
  background-color: var(--white);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  column-gap: 25px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;

  @media (max-width: 980px) {
    column-gap: 9px;
  }
}

.video-item__img-wrapper {
  flex-shrink: 0;
  width: 158px;
  display: flex;

  @media (max-width: 980px) {
    width: 104px;
  }
}

.video-item__img {
  width: 100%;
  object-fit: contain;
  aspect-ratio: 158 / 119;
}

.video-item__info {}

.video-item__title {
  font-size: 18px;
  font-weight: 400;
  margin: 18px 0 12px;

  @media (max-width: 980px) {
    font-size: 16px;
    margin: 0 0 7px;
  }
}

.video-item__duration {
  display: inline-block;
  padding: 9px 14px;
  color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.2);

  @media (max-width: 980px) {
    padding: 4px 9px;
  }
}

.video-item__arrow-wrapper {
  margin-left: auto;
  margin-right: 10px;
  display: flex;
  align-items: center;
}
/* video-list end */

/* about start */
.about {
  display: flex;
  flex-direction: column;
  row-gap: 60px;

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

.about__row {
  max-width: 990px;
  width: 100%;
  margin: 0 auto;
}

.about__title {}

.about__text a {
  color: #337ab7;
}

.about__text a:hover {
  text-decoration: underline;
}

.about__text li:not(:last-child) {
  margin-bottom: 10px;
}
/* about end */

/* tubidy-top-videos start */
.tubidy-top-videos {
  max-width: 1240px;
}

.tubidy-top-videos__title {
  margin-top: 100px;
  text-align: center;

  @media (max-width: 980px) {
    margin-top: 60px;
  }
}

.tubidy-top-videos__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 30px;
  row-gap: 30px;
}

.tubidy-top-videos-item {
  max-width: 380px;
  border-radius: 20px;
  padding: 10px;
  background-color: var(--white);
  cursor: pointer;
}

.tubidy-top-videos-item__thumbnail-container {
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  aspect-ratio: 360 / 200;
  margin-bottom: 10px;
}

.tubidy-top-videos-item__thumbnail {
  width: 100%;
  object-fit: cover;
}

.tubidy-top-videos-item__details {
  display: flex;
  justify-content: space-between;
}

.tubidy-top-videos-item__info {}

.tubidy-top-videos-item__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tubidy-top-videos-item__views {
  color: rgba(0, 0, 0, 0.5);
}

.tubidy-top-videos-item__views span {
  margin-right: 26px;
}

.tubidy-top-videos-item__arrow {
  align-self: flex-end;
}
/* tubidy-top-videos end */

/* footer start */
.footer__top {
  background-color: var(--white);
  padding: 40px 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 28px;
}

.footer__item {
  text-wrap: nowrap;
}

.footer__item:not(:first-child)::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #258BFF;
  margin-right: 28px;
}

.footer__link:hover {
  text-decoration: underline;
}

.footer__bottom {
  color: var(--white);
  background-color: var(--light-blue);
  text-align: center;
  padding: 12px 0;
}
/* footer end */
