@media (max-width: 1280px) {
  .featured__item, .intro__wrapper, .system__row {
    gap: 40px;
  }

  .featured-item__info, .intro__caption, .system-row__info {
    flex-basis: 320px;
  }


  :root {
    --main-padding: 40px;
  }

  h1, .title.general {
    font-size: 52px;
    line-height: 57px;
  }

  .title.footer__title {
    font-size: 56px;
    line-height: 61px;
  }

  .work__chapter {
    gap: 40px;
  }

  .work-chapter__info {
    width: 320px;
  }
}



@media (max-width: 1100px) {
  .next-info__buttons {
    flex-wrap: wrap;
  }

  .header.inner .header__logo {
    display: none;
  }

  .map__groups {
    flex-wrap: wrap;
  }

  .map__group {
    flex: 1 1 calc(50% - 8px);
  }

  .next__info {
    flex-basis: 300px;
  }


  .work__chapter {
    flex-direction: column;
    gap: 28px;
  }

  .work-chapter__info {
    width: 100%;
    max-width: 720px;
  }

  .work-chapter__projects {
    width: 100%;
  }

  .about__path {
    flex-wrap: wrap;
  }

  .about__step, .about__step-next {
    flex: 1 1 calc(33.333% - 11px);
  }
}



@media (max-width: 1024px) {
  .content.intro, .content.steps, .content.map, .content.featured, .content.compare, .content.takeaways, .content.system, .content.gallery, .content.phones, .content.marketing, .content.clients {
    padding-top: 88px;
  }

  .content.next {
    padding: 88px 0 96px;
  }

  .title.general.project__title {
    font-size: 48px;
    line-height: 53px;
  }

  .project__facts, .steps__list {
    flex-wrap: wrap;
  }

  .project__fact, .steps__item {
    flex: 1 1 calc(50% - 8px);
  }

  .featured__item {
    flex-direction: column;
    gap: 32px;
  }

  .featured-item__info {
    flex-basis: auto;
    max-width: 720px;
  }

  .system__row {
    flex-direction: column;
    gap: 32px;
  }

  .system-row__info {
    flex-basis: auto;
    max-width: 720px;
  }

  .system-row__palette, .image.system-row__image, .system-row__themes, .system-row__screens, .system-row__panel, .system-row__gallery {
    flex: 0 0 auto;
    width: 100%;
  }

  .phones__list {
    gap: 12px;
    padding: 24px;
  }

  .project__summary {
    flex-direction: column;
    gap: 24px;
  }

  .project-summary__text {
    flex-basis: auto;
    max-width: 720px;
  }

  .project-summary__numbers {
    width: 100%;
  }

  .works-group__shot {
    flex-basis: calc(50% - 8px);
  }

  .lightbox__wrapper {
    padding: 72px 72px 88px;
  }

  .takeaways__wrapper {
    padding: 40px;
  }

  .next__wrapper {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 40px;
  }

  .next__info {
    flex-basis: auto;
  }

  .next__media {
    flex: 0 0 auto;
    width: 100%;
  }


  h2, .title.high {
    font-size: 38px;
    line-height: 43px;
  }

  .title.about-intro-text__title {
    font-size: 34px;
    line-height: 39px;
  }

  .image.about-intro__image {
    width: 340px;
  }

  .about-intro__text {
    padding: 40px;
  }

  .about__facts, .about__cv {
    flex-wrap: wrap;
  }

  .about__fact {
    flex: 1 1 calc(50% - 8px);
  }

  .about-cv__group {
    flex: 1 1 calc(50% - 20px);
  }

  .footer__contacts {
    flex-wrap: wrap;
  }

  .footer__contact {
    flex: 1 1 calc(50% - 12px);
  }
}



@media (max-width: 900px) {
  .button.header__button-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    min-height: 44px;
    height: 44px;
    background: var(--surface-color);
    padding: 0;
  }

  .button.header__button-menu span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink-color);
    transition: transform 0.25s, opacity 0.25s;
  }

  .button.header__button-menu:hover, .button.header__button-menu:focus-visible {
    background: var(--line-color);
  }

  .header__content.active .button.header__button-menu span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .header__content.active .button.header__button-menu span:nth-child(2) {
    opacity: 0;
  }

  .header__content.active .button.header__button-menu span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .menu.header__menu, .button.header__button-cv {
    display: none;
  }

  .content.header__content {
    flex-wrap: wrap;
    gap: 12px;
  }

  .header__content.active .menu.header__menu {
    display: block;
    position: static;
    transform: none;
    order: 5;
    width: 100%;
  }

  .header__content.active .menu.header__menu ul {
    flex-direction: column;
    border-radius: 22px;
    padding: 8px;
  }

  .header__content.active .menu.header__menu a {
    border-radius: 14px;
    font-size: 16px;
    line-height: 20px;
    padding: 14px 16px;
  }

  .header__content.active .button.header__button-cv {
    display: inline-flex;
    order: 6;
    width: 100%;
    min-height: 54px;
    font-size: 16px;
    line-height: 19px;
  }
}



@media (max-width: 768px) {
  .header__pager, .button.header__button-contact {
    display: none;
  }

  .intro__wrapper {
    flex-direction: column;
    gap: 24px;
  }

  .intro__caption {
    flex-basis: auto;
  }

  .compare-flow__states {
    flex-direction: column;
    gap: 32px;
  }

  .clients__list {
    flex-wrap: wrap;
  }

  .clients__item {
    flex: 0 0 calc(50% - 8px);
  }

  .marketing__wrapper {
    flex-direction: column;
  }

  .image.marketing__banner, .marketing__creatives {
    flex: 0 0 auto;
  }

  .image.marketing__banner {
    aspect-ratio: 672 / 420;
  }

  .takeaways__list {
    flex-wrap: wrap;
    gap: 24px;
  }

  .takeaways__item {
    flex: 1 1 calc(50% - 12px);
  }


  h1, .title.general {
    font-size: 44px;
    line-height: 48px;
    letter-spacing: -1.1px;
  }

  .title.footer__title {
    font-size: 44px;
    line-height: 48px;
    letter-spacing: -1.1px;
  }

  .about__intro {
    flex-direction: column;
  }

  .image.about-intro__image {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .image.about-intro__image img {
    max-width: none;
    object-position: center 30%;
  }

  .about__step, .about__step-next {
    flex: 1 1 calc(50% - 8px);
  }

  .work__chapter:nth-child(2) .work-chapter__projects {
    flex-direction: column;
    gap: 32px;
  }
}



@media (max-width: 600px) {
  .content.intro, .content.steps, .content.map, .content.featured, .content.compare, .content.takeaways, .content.system, .content.gallery, .content.phones, .content.marketing, .content.clients {
    padding-top: 64px;
  }

  .content.steps, .content.map, .content.featured, .content.compare, .content.system, .content.gallery, .content.phones, .content.marketing, .content.clients {
    gap: 16px;
  }

  .content.next {
    padding: 64px 0 72px;
  }

  .content.project {
    gap: 20px;
    padding-top: 24px;
  }

  .title.general.project__title {
    font-size: 34px;
    line-height: 37px;
    letter-spacing: -0.85px;
  }

  .project__facts, .steps__list, .map__groups {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .project__fact, .steps__item, .map__group {
    flex: 0 0 auto;
    padding: 20px;
  }

  .label.project__label span {
    display: none;
  }

  .project__summary {
    padding-top: 24px;
  }

  .project-summary__text {
    font-size: 16px;
    line-height: 26px;
  }

  .project-summary__numbers {
    flex-wrap: wrap;
  }

  .project-summary__number {
    flex: 0 0 calc(50% - 6px);
    padding: 20px;
  }

  .project-summary-number__value {
    font-size: 32px;
    line-height: 36px;
  }

  .content.works {
    padding-top: 56px;
  }

  .works__group {
    gap: 20px;
    padding-top: 32px;
  }

  .title.works-group__title {
    font-size: 22px;
    line-height: 30px;
    padding-top: 24px;
  }

  .works-group__shots {
    gap: 24px 12px;
  }

  .works-group__shot {
    flex-basis: calc(50% - 6px);
  }

  .works__group[data-group="dashboards"] .works-group__shot {
    flex-basis: 100%;
  }

  .shot {
    gap: 10px;
  }

  .image.shot__image {
    border-radius: 12px;
  }

  .shot__info {
    flex-basis: 100%;
  }

  .title.shot-info__title {
    font-size: 15px;
    line-height: 22px;
  }

  .shot-info__text {
    font-size: 13px;
    line-height: 19px;
  }

  .lightbox__wrapper {
    padding: 72px 12px 80px;
  }

  .lightbox__image {
    border-radius: 10px;
  }

  .lightbox__close {
    top: 12px;
    right: 12px;
  }

  .lightbox__prev, .lightbox__next {
    top: auto;
    bottom: 16px;
    margin-top: 0;
  }

  .lightbox__prev {
    left: 12px;
  }

  .lightbox__next {
    right: 12px;
  }

  .lightbox__caption {
    bottom: 28px;
    max-width: calc(100% - 140px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .project__cover {
    border-radius: 16px;
  }

  .project__cover:has(.project-cover__video) {
    aspect-ratio: 335 / 185;
  }

  .title.middle.intro-text__title {
    line-height: 30px;
  }

  .intro-text__description {
    font-size: 16px;
    line-height: 26px;
  }

  .intro-text__lead {
    font-size: 20px;
    line-height: 26px;
    letter-spacing: -0.2px;
  }

  .intro-text__points {
    flex-direction: column;
    gap: 16px;
    margin-top: 0;
  }

  .intro-text__point {
    padding-top: 20px;
  }

  .system__row {
    gap: 24px;
    padding: 24px 0;
  }

  .system-row__info {
    gap: 12px;
  }

  .title.system-row-info__title {
    font-size: 22px;
    line-height: 28px;
  }

  .system-row__palette, .image.system-row__image, .image.system-row-themes__image {
    border-radius: 12px;
  }

  .system-row-palette__color {
    gap: 4px;
    padding: 8px;
  }

  .system-row-palette-color__name {
    font-size: 10px;
    line-height: 13px;
  }

  .system-row-palette-color__code {
    font-size: 9px;
    line-height: 12px;
    letter-spacing: 0;
  }

  .system-row__screens {
    flex-wrap: wrap;
    gap: 12px;
    border-radius: 20px;
    padding: 16px;
  }

  .image.system-row-screens__image {
    flex: 1 1 calc(50% - 6px);
    border-radius: 16px;
  }

  .system-row__panel {
    border-radius: 16px;
  }

  .image.system-row-panel__image {
    display: none;
  }

  .image.system-row-panel__part {
    display: block;
  }

  .system-row__themes {
    flex-direction: column;
    gap: 16px;
  }

  .image.system-row-themes__image {
    flex: 0 0 auto;
  }

  .gallery__list, .marketing__wrapper, .marketing__creatives {
    gap: 16px;
  }

  .image.gallery__image, .image.gallery__image:first-child {
    flex-basis: 100%;
    border-radius: 12px;
  }

  .image.gallery__image:first-child {
    aspect-ratio: 1312 / 620;
  }

  .phones__list {
    flex-wrap: wrap;
    gap: 16px;
    border-radius: 20px;
    padding: 16px;
  }

  .image.phones__image {
    flex: 1 1 calc(50% - 8px);
    border-radius: 18px;
  }

  .image.phones__image:nth-child(2) {
    display: none;
  }

  .project-cover__wipe {
    border-radius: 8px 8px 0 0;
  }

  .system-row-gallery__thumbs {
    flex-wrap: wrap;
    gap: 12px;
  }

  .image.system-row-gallery__thumb {
    flex: 0 0 calc(50% - 6px);
  }

  .image.system-row-gallery__image, .image.system-row-gallery__thumb, .image.clients-item__image, .image.steps-shots__image {
    border-radius: 12px;
  }

  .system-row__gallery {
    gap: 12px;
  }

  .clients__description {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 16px;
  }

  .clients-item__caption {
    gap: 8px;
    font-size: 13px;
    line-height: 19px;
  }

  .steps__panel {
    flex-direction: column;
    gap: 12px;
    border-radius: 16px;
    padding: 12px;
    margin-top: 8px;
  }

  .image.steps-panel__image:nth-child(n) {
    flex: 0 0 auto;
    width: 100%;
  }

  .steps__shots {
    flex-direction: column;
  }

  .image.steps-shots__image {
    flex: 0 0 auto;
  }

  .marketing__description {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 16px;
  }

  .image.marketing__banner, .image.marketing__creative {
    border-radius: 12px;
  }

  .title.high.steps__title, .title.high.map__title, .title.high.featured__title, .title.high.compare__title, .title.high.system__title, .title.high.gallery__title, .title.high.phones__title {
    margin-bottom: 16px;
  }

  .steps__list {
    border-radius: 20px;
    padding: 12px;
  }

  .featured__item {
    gap: 24px;
    padding: 32px 0;
  }

  .title.featured-item-info__title {
    font-size: 22px;
    line-height: 28px;
  }

  .featured-item__gallery, .featured-item-gallery__thumbs {
    gap: 12px;
  }

  .image.featured-item-gallery__image, .image.featured-item-gallery__thumb {
    border-radius: 12px;
  }

  .image.featured-item-gallery__thumb:nth-child(3) {
    display: none;
  }

  .compare__flow {
    gap: 16px;
    padding-top: 24px;
  }

  .title.compare-flow__title {
    font-size: 18px;
    line-height: 26px;
  }

  .image.compare-flow-state__image {
    border-radius: 12px;
  }

  .takeaways__wrapper {
    gap: 24px;
    border-radius: 20px;
    padding: 24px;
  }

  .title.takeaways__title {
    font-size: 26px;
    line-height: 31px;
    letter-spacing: -0.52px;
  }

  .title.small.takeaways-item__title {
    font-size: 15px;
    line-height: 22px;
  }

  .takeaways-item__description {
    font-size: 14px;
    line-height: 22px;
  }

  .title.next-info__title {
    font-size: 24px;
    line-height: 29px;
    letter-spacing: -0.48px;
  }

  .next__media {
    border-radius: 12px;
  }


  :root {
    --main-padding: 20px;
  }

  html {
    scroll-padding-top: 72px;
  }

  body {
    font-size: 15px;
  }

  .content.header__content {
    gap: 8px;
    padding: 14px var(--main-padding);
  }

  .button.header__button-menu {
    width: 40px;
    min-height: 40px;
    height: 40px;
  }

  h1, .title.general {
    font-size: 34px;
    line-height: 37px;
    letter-spacing: -0.85px;
  }

  h2, .title.high {
    font-size: 30px;
    line-height: 34px;
    letter-spacing: -0.75px;
  }

  h3, .title.middle {
    font-size: 24px;
    line-height: 28px;
    letter-spacing: -0.48px;
  }

  h4, .title.small {
    font-size: 16px;
    line-height: 24px;
  }

  .content.hero {
    gap: 16px;
    padding: 24px 0 48px;
  }

  .hero__description {
    font-size: 16px;
    line-height: 26px;
  }

  .hero__showcase {
    gap: 8px;
  }

  .hero-showcase__list-top, .hero-showcase__list-bottom {
    gap: 8px;
    padding-right: 8px;
  }

  .hero-showcase__list-top {
    margin-left: -20px;
  }

  .hero-showcase__list-bottom {
    margin-left: -110px;
  }

  .image.hero-showcase-list-top__image, .image.hero-showcase-list-bottom__image {
    width: 200px;
    height: 119px;
    border-radius: 10px;
  }

  .content.about {
    padding: 48px 0;
  }

  .about-intro__text {
    gap: 16px;
    padding: 24px;
  }

  .title.about-intro-text__title {
    font-size: 30px;
    line-height: 34px;
    letter-spacing: -0.75px;
  }

  .about__facts, .about__path, .about__cv {
    flex-direction: column;
    flex-wrap: nowrap;
    border-top: 1px solid var(--line-color);
    padding-top: 16px;
  }

  .about__cv {
    gap: 24px;
    border-top: none;
    padding: 20px;
  }

  .about__fact, .about__step, .about__step-next {
    flex: 0 0 auto;
    padding: 20px;
  }

  .about-fact__value {
    font-size: 30px;
    line-height: 33px;
    letter-spacing: -0.75px;
    white-space: normal;
  }

  .about-cv__group {
    flex: 0 0 auto;
  }

  .content.work {
    padding: 48px 0 72px;
  }

  .title.work__title {
    margin-bottom: 24px;
  }

  .work__chapter {
    gap: 24px;
    padding: 24px 0;
  }

  .work-chapter-info__description {
    font-size: 16px;
  }

  .work-chapter__project {
    gap: 16px;
  }

  .button.work-chapter-project__button {
    gap: 0;
    width: 54px;
    height: 54px;
    padding: 0;
    font-size: 0;
  }

  .work-chapter-project__media {
    border-radius: 12px;
  }

  .work-chapter-project__media .image {
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(13, 18, 38, 0.14);
  }

  .image.work-chapter-project-media__image-phone, .image.work-chapter-project-media__image-screen {
    border-radius: 12px;
  }

  .content.footer__content {
    gap: 24px;
    padding: 48px var(--main-padding) 24px;
  }

  .title.footer__title {
    font-size: 34px;
    line-height: 37px;
    letter-spacing: -0.85px;
  }

  .footer__contacts {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 20px;
  }

  .footer__contact {
    flex: 0 0 auto;
    padding-top: 20px;
  }

  .footer-contact__value {
    font-size: 16px;
    line-height: 24px;
    white-space: normal;
    word-break: break-word;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 24px;
  }
}



@media (max-width: 400px) {
  h1, .title.general {
    font-size: 30px;
    line-height: 33px;
  }

  .header__logo {
    font-size: 15px;
  }

  .button.hero__button, .button.about__button {
    width: 100%;
  }
}



@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .reveal.active {
    opacity: 1;
    transform: translateY(0);
  }

  .header {
    animation: intro-down 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }

  .label.hero__label, .title.hero__title, .hero__description, .button.hero__button,
  .label.project__label, .title.project__title, .project__fact, .project__cover {
    animation: intro-up 1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }

  .label.hero__label, .label.project__label {
    animation-delay: 0.15s;
  }

  .title.hero__title, .title.project__title {
    animation-delay: 0.27s;
  }

  .hero__description, .project__fact:nth-child(1) {
    animation-delay: 0.42s;
  }

  .button.hero__button, .project__fact:nth-child(2) {
    animation-delay: 0.54s;
  }

  .project__fact:nth-child(3) {
    animation-delay: 0.62s;
  }

  .project__fact:nth-child(4) {
    animation-delay: 0.7s;
  }

  .project__cover {
    animation: intro-rise 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) 0.75s backwards;
  }

  .project__summary, .works__filters, .works__group:first-child .works-group__title, .works__group:first-child .works-group__shot:nth-child(-n+3) {
    animation: intro-up 1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }

  .project__summary {
    animation-delay: 0.75s;
  }

  .works__filters {
    animation-delay: 0.87s;
  }

  .works__group:first-child .works-group__title {
    animation-delay: 0.97s;
  }

  .works__group:first-child .works-group__shot:nth-child(1) {
    animation-delay: 1.07s;
  }

  .works__group:first-child .works-group__shot:nth-child(2) {
    animation-delay: 1.17s;
  }

  .works__group:first-child .works-group__shot:nth-child(3) {
    animation-delay: 1.27s;
  }

  .hero__showcase {
    animation: intro-fade 1.4s ease 0.6s backwards;
  }

  .hero-showcase__list-top {
    animation: showcase-left 60s linear infinite, intro-slide-left 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s backwards;
  }

  .hero-showcase__list-bottom {
    animation: showcase-right 60s linear infinite, intro-slide-right 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.72s backwards;
  }

  .hero__showcase:hover .hero-showcase__list-top, .hero__showcase:hover .hero-showcase__list-bottom {
    animation-play-state: paused;
  }
}



@media (prefers-reduced-motion: no-preference) and (min-width: 1025px) {
  .image.project-cover-screen__image-page {
    animation: cover-scroll 36s ease-in-out infinite;
  }

  .project-cover__phone:nth-child(odd) {
    animation: phone-from-top 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }

  .project-cover__phone:nth-child(even) {
    animation: phone-from-bottom 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }

  .project-cover__phone:nth-child(1) {
    animation-delay: 1s;
  }

  .project-cover__phone:nth-child(4) {
    animation-delay: 1.15s;
  }

  .project-cover__phone:nth-child(3) {
    animation-delay: 1.3s;
  }

  .project-cover__phone:nth-child(2) {
    animation: phone-from-bottom 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 1.45s backwards;
  }
}



@keyframes showcase-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes showcase-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes cover-scroll {
  0%, 8% {
    transform: translateY(0);
  }

  46%, 54% {
    transform: translateY(-85.24%);
  }

  92%, 100% {
    transform: translateY(0);
  }
}

@keyframes intro-down {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes intro-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes intro-rise {
  from {
    opacity: 0;
    transform: translateY(80px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes phone-from-top {
  from {
    transform: translateY(-125%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes phone-from-bottom {
  from {
    transform: translateY(125%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes intro-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes intro-slide-left {
  from {
    translate: 160px 0;
  }

  to {
    translate: 0 0;
  }
}

@keyframes intro-slide-right {
  from {
    translate: -160px 0;
  }

  to {
    translate: 0 0;
  }
}
