@media (max-height: 1000px) {
  .desc__content {
    padding-top: 0;
  }
}

@media (max-width: 1600px) {
  :root {
    --offset: 48px;
  }

  .switch-text {
    font-size: 1.8rem;
  }

  .hero-circle {
    right: 72px;
    bottom: 58px;
  }

  .hero-volume {
    right: 48px;
    bottom: 33px;
    width: 50px;
  }

  .hero-text {
    font-size: 18px;
  }

  .projects-button .button-label {
    font-size: calc(16px / var(--list-scale));
    transform: translateY(calc(1px * var(--scale) / var(--list-scale)));
  }

  .desc__title {
    font-size: 80px;
    margin-bottom: 8svh;
  }

  .desc__blocks-title {
    font-size: 37px;
  }

  .desc__blocks-subtitle {
    margin-top: 17px;
  }

  .desc__blocks-left {
    padding-right: var(--offset);
  }

  .desc__submit {
    font-size: 16px;
    gap: 6px;
  }

  .desc__submit svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 1500px) {
  .hero-title {
    font-size: 50px;
  }

  .hero-text {
    font-size: 16px;
  }

  .featured-title {
    font-size: 34px;
  }

  .featured-footer__left {
    gap: 36px;
  }

  .switch-text {
    font-size: 2.1rem;
  }

  .desc__content {
    padding: 0;
  }
}

@media (max-width: 1400px) {
  :root {
    --offset: 36px;
  }

  .hero-circle {
    right: 61px;
    bottom: 47px;
  }

  .hero-volume {
    right: 36px;
    bottom: 22px;
  }

  .projects-button .button-label {
    font-size: calc(14px / var(--list-scale));
  }

  .projects-button svg {
    width: calc(20px / var(--list-scale));
    height: calc(20px / var(--list-scale));
  }

  .desc {
    padding: var(--offset) 32px;
  }

  .desc__title {
    font-size: 70px;
    line-height: 1;
    margin-bottom: 7svh;
  }

  .desc__blocks-title {
    font-size: 33px;
  }

  .desc__blocks-text {
    font-size: 13px;
  }

  .desc__blocks-subtitle {
    font-size: 16px;
    margin-top: 15px;
  }

  .desc__field-label {
    margin: 0;
    font-size: 10px;
  }

  .desc__field-error {
    font-size: 10px;
    line-height: 1;
    margin: 5px 0 -15px;
  }

  .desc__field-input,
  .desc__field-textarea {
    font-size: 12px;
    line-height: 19px;
  }

  .desc__fields {
    gap: 24px;
    margin-bottom: 24px;
  }

  .desc__submit {
    font-size: 15px;
  }

  .desc__submit span {
    transform: none;
  }

  .desc-footer__title {
    font-size: 15px;
    line-height: 22px;
  }

  .desc-footer__link {
    font-size: 14px;
    line-height: 22px;
  }

  .desc__blocks-right {
    padding-right: 0;
  }
}

@media (max-width: 1200px) {
  :root {
    --offset: 24px;
  }

  .hero-title {
    font-size: 46px;
    margin-bottom: calc(var(--offset));
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-footer__link {
    font-size: 13px;
  }

  .hero-circle {
    right: 49px;
    bottom: 36px;
  }

  .hero-volume {
    right: 24px;
    bottom: 11px;
  }

  .featured-year {
    font-size: 14px;
  }

  .featured-right {
    gap: 6px;
  }

  .featured-footer__left {
    gap: 16px;
  }

  .featured-footer-text {
    font-size: 11px;
    line-height: 12px;
  }

  .featured-footer__right {
    gap: 8px;
  }

  .featured-title {
    font-size: 31px;
  }

  .featured-content-header {
    margin-bottom: var(--offset);
  }

  .switch-text {
    font-size: 15px;
  }

  .switch-text,
  .progress,
  .progress::after {
    font-size: 20px;
  }

  .desc__blocks-title,
  .desc__blocks-subtitle {
    margin-bottom: var(--offset);
  }
}

@media (max-width: 1080px) {
  .preloader {
    transform: scale(0.8);
  }

  .hero-circle {
    transform: translate(50%, 50%) scale(0.15);
    right: 42px;
    bottom: 35px;
  }

  .hero-volume {
    bottom: 16px;
    width: 38px;
  }

  .volume {
    width: 16px;
    height: 16px;
  }

  .switch {
    margin-left: 2.4rem;
    transform: scale(1);
  }

  .featured-title {
    font-size: 28px;
  }

  .featured-footer {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    min-height: auto;
    gap: 2px;
  }

  /* TODO: change to right when it appear */
  .featured-footer__left {
    min-height: 22px;
  }

  .projects-button .button-label {
    font-size: calc(13px / var(--list-scale));
  }

  .projects-button svg {
    width: calc(16px / var(--list-scale));
    height: calc(16px / var(--list-scale));
  }

  .desc__title {
    font-size: 52px;
  }

  .desc__blocks-title,
  .desc__blocks-subtitle {
    margin-bottom: 20px;
  }

  .desc__blocks-title {
    font-size: 31px;
  }

  .desc__blocks-subtitle {
    font-size: 15px;
    margin-top: 13px;
  }

  .desc__blocks-text {
    font-size: 12px;
  }

  .desc__submit {
    font-size: 13px;
  }

  .desc__submit span {
    transform: translateY(1px);
  }

  .desc__submit svg {
    width: 16px;
    height: 16px;
  }

  .desc-footer__title,
  .desc-footer__link {
    font-size: 13px;
  }
}

@media (max-width: 870px) {
  .preloader {
    transform: scale(0.7);
  }

  .featured-title {
    font-size: 23px;
  }

  .desc__title {
    font-size: 48px;
  }

  .desc__blocks-title {
    font-size: 25px;
  }

  .desc__blocks-subtitle {
    font-size: 14px;
    margin-top: 9px;
  }

  .desc__blocks-title,
  .desc__blocks-subtitle {
    margin-bottom: 16px;
  }

  .desc__blocks-text {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .hero,
  .featured,
  .sticky-wrap {
    height: auto;
  }

  .sticky {
    height: 100%;
  }

  .hero {
    margin-right: 0;
    position: relative;
  }

  .hero-canvas,
  .hero-info {
    width: 100%;
    height: 100svh;
  }

  .hero-text {
    max-width: 400px;
    margin-bottom: auto;
    font-size: 15px;
  }

  .hero-title {
    font-size: 37px;
  }

  .hero-footer {
    margin-top: 0;
  }

  .sticky-wrap,
  .step2,
  .step3,
  .desc {
    position: static;
  }

  .step1 {
    flex-direction: column;
  }

  .featured:nth-child(2)::after {
    right: 0;
  }

  .featured:nth-child(3n)::after {
    display: none;
  }

  .featured:nth-child(n + 4) .featured-content {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .image-img,
  .featured-content-header,
  .featured-title,
  .featured-footer-text,
  .featured-footer__right,
  .desc__title,
  .desc__field-wrapper,
  .desc__field-line,
  .desc__field-error,
  .desc__blocks-title,
  .desc__blocks-text,
  .desc-footer__title,
  .desc-footer__link,
  .desc__blocks-subtitle,
  .desc__submit {
    transform: none !important;
    opacity: 1 !important;
  }

  .featured-title {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .featured-projects,
  .featured-image-container {
    width: 100%;
  }

  .featured-image-container,
  .image-img {
    height: auto;
  }

  .featured-projects {
    flex-wrap: wrap;
  }

  .featured-footer {
    gap: 6px;
  }

  /* TODO: change to right when it appear */
  .featured-footer__left {
    min-height: auto;
  }

  .featured {
    width: calc(100% / 3);
    display: block;
  }

  .featured.hidden {
    display: block;
  }

  .featured-content {
    min-height: 200px;
    padding: 16px;
  }

  .featured-content-header {
    margin-bottom: 16px;
  }

  .featured-items {
    display: none;
  }

  .projects-item:first-child {
    display: none;
  }

  .featured:nth-child(3),
  .projects-item {
    margin-left: 0;
  }

  .projects-item {
    display: none;
  }

  .projects-item--button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 36px 0;
  }

  .projects-item--button .projects-button {
    min-height: 22px;
  }

  .projects-button .button-label {
    font-size: 15px;
    transform: none;
  }

  .projects-button svg {
    width: 20px;
    height: 20px;
  }

  .step3 {
    pointer-events: auto;
  }

  .mobile .circle {
    display: none;
  }

  .desc {
    width: 100%;
    height: 100%;
    padding: 0 16px 20px;
  }

  .desc-footer {
    margin-top: var(--offset);
  }

  .desc__fields {
    margin-bottom: 28px;
  }

  .desc__title {
    margin-bottom: 40px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 320px;
  }

  .hero-title {
    font-size: 27px;
  }

  .hero-text {
    font-size: 13px;
  }

  .featured {
    width: 50%;
  }

  .featured::after {
    display: none;
  }

  .featured:nth-child(odd)::after {
    display: block;
  }

  .featured:nth-child(n + 4) .featured-content {
    border-bottom: none;
  }

  .featured:nth-child(n + 5) .featured-content {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .featured-title {
    font-size: 20px;
  }

  .switch {
    margin-left: 12px;
  }

  .projects-button .button-label {
    font-size: 14px;
  }

  .projects-item--button {
    padding: 30px 0;
  }

  .desc__blocks-left {
    padding-right: 16px;
  }
}

@media (max-width: 540px) {
  .desc__blocks {
    flex-direction: column;
  }

  .desc__blocks-subtitle {
    margin: 0 0 12px;
  }

  .desc__blocks-left {
    padding-right: 0;
  }

  .desc {
    min-height: calc(100lvh - 20px);
    height: 0;
  }

  .desc-footer {
    margin-top: auto;
    padding-top: var(--offset);
  }
}

@media (max-width: 480px) {
  .featured-title {
    font-size: 18px;
  }

  .desc__title {
    margin-bottom: 28px;
    font-size: 43px;
  }
}

@media (max-width: 400px) {
  .hero-footer {
    gap: 20px;
  }

  .hero-footer__link {
    font-size: 11px;
  }

  .featured {
    width: 100%;
  }

  .featured:nth-child(odd)::after {
    display: none;
  }

  .featured:nth-child(n + 5) .featured-content {
    border-bottom: none;
  }

  .featured:last-child .featured-content {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .featured-title {
    font-size: 27px;
  }

  .featured-image-container,
  .image-img {
    height: auto;
  }
}
