.header__burger {
  display: none;
}

@media (max-width: 1200px) {
  .advantages__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 72px;
  }

  .advantage__text {
    font-size: 14px;
    line-height: 20px;
  }

  .footer__container {
    width: min(var(--container), calc(100% - 40px));
  }
}

@media (max-width: 1100px) {
  :root {
    --section-gap: 96px;
  }

  .two-columns,
  .product__row {
    column-gap: 40px;
  }

  .brands__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand__text {
    max-height: 140px;
    font-size: 14px;
    line-height: 20px;
  }

  .hero__title {
    font-size: 56px;
    line-height: 60px;
  }

  .footer {
    margin-top: var(--section-gap);
  }

  .footer__contacts {
    flex-basis: 300px;
  }

  .footer__navigation {
    flex-basis: 180px;
  }

  .footer__social {
    flex-basis: 320px;
  }
}

@media (max-width: 900px) {
  :root {
    --section-gap: 80px;
    --header-height: 72px;
  }

  .header__burger {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    padding: 0;

    border: 0;
    background: none;
    cursor: pointer;
  }

  .header__burger::before,
  .header__burger::after,
  .header__burger span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;

    border-radius: 1px;
    background-color: var(--color-dark-blue);
    content: "";
    transition: top 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  }

  .header__burger::before {
    top: 14px;
  }

  .header__burger span {
    top: 21px;
  }

  .header__burger::after {
    top: 28px;
  }

  .header.is-open .header__burger::before {
    top: 21px;
    transform: rotate(45deg);
  }

  .header.is-open .header__burger span {
    opacity: 0;
  }

  .header.is-open .header__burger::after {
    top: 21px;
    transform: rotate(-45deg);
  }

  .header__navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;

    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 24px;

    background-color: var(--color-white);
    box-shadow: 0 16px 24px rgb(0 31 62 / 12%);
  }

  .header.is-open .header__navigation {
    display: flex;
  }

  .header.is-scrolled .header__burger::before,
  .header.is-scrolled .header__burger::after,
  .header.is-scrolled .header__burger span {
    background-color: var(--color-white);
  }

  .header.is-scrolled .header__navigation .link {
    color: var(--color-dark-blue);
  }

  .header__navigation .link {
    width: 100%;
    padding: 14px 0;
  }

  .section-title {
    font-size: 32px;
    line-height: 36px;
  }

  .two-columns {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }

  .hero {
    height: auto;
    min-height: 560px;
    padding: 56px 0 88px;
  }

  .hero__title {
    font-size: 48px;
    line-height: 52px;
  }

  .hero__arrow {
    display: none;
  }

  .hero__dots {
    bottom: 24px;
  }

  .hero__dot {
    width: 24px;
    height: 24px;
    padding: 7px;
    background-clip: content-box;
  }

  .advantage {
    min-height: 0;
  }

  .partners__strip {
    height: 100px;
  }

  .partners__item {
    flex-basis: 150px;
  }

  .partners__item img {
    scale: 0.75;
  }

  main > .product:first-child {
    margin-top: 24px;
  }

  .product__photo + .section-title {
    margin-top: 32px;
  }

  .product__text {
    gap: 32px;
    margin-top: 24px;
  }

  .product__row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }

  .company,
  .company--history {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }

  .company + .company {
    margin-top: 56px;
  }

  .company--history .company__image {
    order: -1;
  }

  .company--history .company__content {
    padding-top: 0;
  }

  .company__text br {
    display: none;
  }

  .contacts {
    row-gap: 40px;
  }

  .contacts__left {
    gap: 32px;
  }

  .footer {
    min-height: 0;
    padding: 64px 0 24px;
  }

  .footer__container {
    gap: 40px;
  }

  .footer__top {
    flex-direction: column;
    gap: 40px;
    min-height: 0;
  }

  .footer__contacts,
  .footer__navigation,
  .footer__social {
    flex: none;
    width: 100%;
  }

  .footer__navigation {
    gap: 16px;
  }

  .footer__social {
    align-items: flex-start;
    height: auto;
  }

  .footer__social-row {
    justify-content: flex-start;
  }

  .footer__wordmark {
    height: auto;
  }

  .footer__wordmark img {
    margin: 0 5px;
  }
}

@media (max-width: 700px) {
  .brands__grid,
  .advantages__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directions__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .direction__title {
    height: 64px;
    padding: 0 20px;
    font-size: 20px;
    line-height: 24px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-gap: 64px;
    --header-height: 64px;
  }

  .header__logo img {
    width: 160px;
    height: auto;
  }

  .section-title {
    font-size: 28px;
    line-height: 32px;
  }

  .hero {
    min-height: 520px;
    padding: 40px 0 72px;
  }

  .hero__title {
    font-size: 36px;
    line-height: 40px;
  }

  .hero__description,
  .hero__description--short {
    max-width: none;
    font-size: 16px;
    line-height: 22px;
  }

  .hero__content .button {
    width: 100%;
    margin-top: 32px;
  }

  .brands__grid,
  .advantages__grid {
    margin-top: 40px;
  }

  .contacts__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .contacts__textarea {
    height: 160px;
  }

  .footer__phones a {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .brands__grid,
  .advantages__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .advantages__grid {
    row-gap: 80px;
  }
}

@media (max-width: 900px) {
  .catalog-download {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    margin-top: 40px;
    padding: 24px;
  }

  .catalog-download__actions {
    flex-direction: column;
  }

  .catalog-download .button {
    width: 100%;
  }
}