/*desktop full*/
@media screen and (max-width: 1700px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .team__about {
    padding: 60px 80px;
    row-gap: 50px;
  }

  .team-text-wrapper {
    grid-template-columns: 2fr 20fr;
  }
}

/*desktop mini*/
@media screen and (max-width: 1500px) {
  .header,
  .footer,
  .section,
  .faq__item,
  .section--no-inline-padding .title-wrapper {
    padding-inline: 50px;
  }

  .section--no-inline-padding {
    padding-inline: 0;
  }

  .section {
    padding-block: 60px;
  }

  .section--hero {
    padding: 0;
  }

  .hero {
    padding: 70px 50px;
  }

  .hero__headline.text-74-600 {
    font-size: 64px;
  }

  .why-we__item {
    padding: 40px;
    border-radius: 110px;
  }

  .why-we__item:nth-child(3), .why-we__item:nth-child(4) {
    width: calc((100% - 20px) / 2);
  }

  .why-we__item:nth-child(5) {
    width: 100%;
  }

  .case__item {
    padding: 40px;
    column-gap: 40px;
  }

  .case__columns {
    flex-direction: column;
    row-gap: 20px;
  }

  .contacts__layout {
    column-gap: 80px;
  }

  .team__about {
    padding: 40px;
    row-gap: 30px;
  }

  .team__experience {
    padding: 80px 40px;
  }

  .team-card__info {
    padding: 40px;
  }

  .team__layout {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/*tablet*/
@media screen and (max-width: 1025px) {
  .header,
  .footer,
  .section,
  .faq__item,
  .section--no-inline-padding .title-wrapper {
    padding-inline: 25px;
  }

  .section--no-inline-padding {
    padding-inline: 0;
  }

  .section {
    padding-block: 40px;
  }

  .section--hero {
    padding: 0;
  }

  .hero {
    padding: 80px 25px 50px;
    row-gap: 30px;
  }

  .hero__headline.text-74-600 {
    font-size: 48px;
  }

  .header__inner {
    column-gap: 20px;
  }

  .burger-menu {
    display: grid;
  }

  .header__nav {
    --header-height: 82px;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: auto;
    height: calc(100dvh - var(--header-height));
    background-color: var(--yellow);

    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity .24s ease,
      visibility .24s ease;
  }

  .header__nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
  }

  .header__nav-item {
    display: flex;
  }

  .header__nav-link {
    font-size: 24px;
    padding: 16px 32px;
  }

  .header__nav-list {
    flex-direction: column;
  }

  .footer-info {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    row-gap: 80px;
  }

  .steps {
    padding: 30px;
  }

  .step__item, .service__item {
    padding: 40px;
  }

  .why-we__item:nth-child(1),
  .why-we__item:nth-child(2),
  .why-we__item:nth-child(3),
  .why-we__item:nth-child(4),
  .why-we__item:nth-child(5){
    width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .case__item {
    flex-direction: column-reverse;
    row-gap: 30px;
  }

  .case__column:nth-child(1), .case__content .case__icon {
    display: flex;
  }

  .case__task, .case__aside .case__icon {
    display: none;
  }

  .case__content {
    padding-inline: initial;
    border-left: initial;
  }

  .contacts__layout {
    display: flex;
    flex-direction: column-reverse;
    row-gap: 50px;
  }

  .case__icon--hexagons {
    --icon-ratio: 97 / 105;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .team__layout {
    grid-template-columns: 1fr 1fr;
  }

  .team__main {
    grid-column: span 2;
  }

  .faq-list {
    padding-top: 30px;
  }

  .faq__item {
    row-gap: 0;
  }

  .faq__item-question {
    margin-bottom: 10px;
  }

  .faq__item .faq__item-answer {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: none;
    transition:
      max-height var(--faq-mobile-answer-duration, 360ms) ease,
      opacity var(--faq-mobile-answer-duration, 360ms) ease;
  }

  .faq__item--active .faq__item-answer {
    display: block;
    max-height: var(--faq-answer-height, 0px);
    opacity: 1;
  }

  .faq__item-answer--marquee {
    animation: none;
    will-change: auto;
  }

  .faq__item .faq__item-answer, .faq__item-plug {
    white-space: initial;
  }
}

/*phone*/
@media screen and (max-width: 600px) {
  .header,
  .footer,
  .section,
  .faq__item,
  .section--no-inline-padding .title-wrapper {
    padding-inline: 10px;
  }

  .section--no-inline-padding {
    padding-inline: 0;
  }

  .section {
    padding-block: 30px;
    row-gap: 20px;
  }

  .section--hero {
    padding: 0;
  }

  .hero {
    padding: 70px 10px 40px;
    row-gap: 24px;
  }

  .hero__title {
    row-gap: 14px;
  }

  .hero__headline.text-74-600 {
    font-size: 34px;
    line-height: 1.08;
  }

  .hero__actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .hero__actions .button-main--big {
    padding: 14px 22px;
  }

  .header__inner {
    column-gap: 10px;
  }

  .footer {
    padding-block: 50px;
    row-gap: 50px;
  }

  .footer-info {
    grid-template-columns: 1fr;
    row-gap: 50px;
  }

  .footer-info__item {
    row-gap: 16px;
  }

  .footer__other:last-of-type {
    margin-top: 16px;
  }

  .title-wrapper {
    row-gap: 4px;
  }

  .why-we,
  .steps,
  .cases,
  .contacts__wrapper,
  .contacts__layout,
  .contacts__info,
  .services {
    row-gap: 12px;
  }

  .why-we__item {
    row-gap: 8px;
    padding: 30px;
    border-radius: 60px;
  }

  .steps {
    padding: 20px;
    border-radius: 80px;
  }

  .step__item, .service__item {
    row-gap: 8px;
    padding: 30px;
    border-radius: 60px;
  }

  .step__number {
    border-radius: 20px;
    width: 60px;
  }

  .steps::after {
    display: none;
  }

  .case__item {
    padding: 20px;
    row-gap: 20px;
    border-radius: 60px;
  }

  .case__icon {
    --icon-width: 70px;
    --icon-ratio: 70 / 71;
  }

  .case__content .text-40-500 {
    font-size: 24px;
  }

  .case__content .text-24-300 {
    font-size: 18px;
  }

  .case__list-item {
    padding-left: 18px;
  }

  .case__list-item::before {
    top: 5px;
    width: 12px;
    height: 12px;
  }

  .case__column {
    row-gap: 6px;
  }

  .case__list {
    row-gap: 4px;
  }

  .case__tags {
    row-gap: 4px;
  }

  .case__actions {
    display: flex;
    justify-content: center;
  }

  .contacts__wrapper {
    padding-bottom: 0;
  }

  .form__content {
    row-gap: 20px;
    padding: 30px;
  }

  .contacts__form {
    border-radius: 50px;
  }

  .contacts__link-icon {
    width: 24px;
    height: 24px;
  }

  .contacts__link {
    column-gap: 6px;
  }

  .contacts__social-link {
    width: 40px;
    height: 40px;
  }

  .service__1c-item::before {
    top: 5px;
    width: 20px;
    height: 20px;
  }

  .button-main--big {
    padding: 16px 32px;
  }

  .team__layout {
    grid-template-columns: 1fr;
  }

  .team__main {
    grid-column: initial;
  }

  .team__about {
    padding: 20px;
    row-gap: 30px;
  }

  .team-text-wrapper {
    grid-template-columns: initial;
  }

  .team__text {
    padding-left: 30px;
  }

  .team__more {
    padding: 50px;
  }

  .team__experience, .team-card__info {
    padding: 40px 20px;
  }

  .team__about {
    row-gap: 20px;
  }

  .service__item::after {
    max-height: 90px;
  }

  .faq-list {
    padding-top: 20px;
  }

}
