@media (max-width: 1057px) {
  .video__info {
    -ms-grid-column-span: 5;
    grid-column: span 5;
  }
  .video__iframe {
    -ms-grid-column-span: 7;
    grid-column: span 7;
  }
}

@media (max-width: 1024px) {
  .container {
    max-width: 90vw;
    -ms-grid-columns: 1fr 16px 1fr 16px 1fr 16px 1fr 16px 1fr 16px 1fr;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
  .hero__block_big,
  .medicine__block_big {
    padding: 60px 24px;
    -ms-grid-column-span: 4;
    grid-column: span 4;
  }
  .hero__img,
  .hero__block,
  .medicine__img_big,
  .medicine__block,
  .footer__info,
  .footer__links,
  .footer__requisites {
    max-width: 100%;
    -ms-grid-column-span: 2;
    grid-column: span 2;
  }
  .video__info,
  .video__iframe {
    width: 100%;
    -ms-grid-column-span: 6;
    grid-column: span 6;
  }
  .pet-card__img,
  .pet-card__block,
  .donation__img_m,
  .donation__block_xl,
  .donation__block,
  .donation__block_m,
  .partner__img,
  .partner__block {
    -ms-grid-column-span: 3;
    grid-column: span 3;
  }
  .block__text-container {
    gap: 30px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  .donation__img {
    display: none;
  }
  .donation__block,
  .partner__block:nth-of-type(2) {
    min-height: 420px;
  }
  .hero__heading {
    font-size: 52px;
  }
  .block {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .wrapper {
    padding: 40px 5px;
  }
  .container {
    -ms-grid-columns: 1fr 12px 1fr;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .block,
  .hero__block_big,
  .medicine__block_big,
  .donation__block_xl {
    min-height: -webkit-fit-content;
    min-height: -moz-fit-content;
    min-height: fit-content;
    padding: 32px 12px;
    border-radius: 16px;
  }
  .hero__heading {
    font-size: 36px;
  }
  .hero__sub-heading,
  .title {
    font-size: 20px;
  }
  .hero__img,
  .donation__img_m,
  .img {
    border-radius: 16px;
    max-width: 100%;
    aspect-ratio: 4 / 3;
  }
  .header {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 20px;
    min-height: unset;
    padding: 16px 5px;
  }
  .header__links {
    gap: 12px;
  }
  .pet-card__block:first-of-type {
    -webkit-box-ordinal-group: 0;
    -ms-flex-order: -1;
    order: -1;
  }
  .block__heading {
    font-size: 18px;
  }
  .medicine__img_big {
    display: none;
  }
  .hero__block:last-child,
  .hero__block_big,
  .video__info,
  .video__iframe,
  .medicine__block_big,
  .donation__block_xl,
  .donation__img_m,
  .partner__block,
  .partner__img,
  .footer__info,
  .footer__links,
  .footer__requisites {
    -ms-grid-column-span: 2;
    grid-column: span 2;
  }
  .donation__block_xl {
    -webkit-box-ordinal-group: 0;
    -ms-flex-order: -1;
    order: -1;
  }
  .hero__block,
  .donation__block,
  .donation__block_m {
    -ms-grid-column-span: 1;
    grid-column: span 1;
  }
  .donation__block {
    gap: 30px;
  }
  .partner__img {
    -webkit-box-ordinal-group: 0;
    -ms-flex-order: -1;
    order: -1;
  }
  .footer__links ul,
  .footer__requisites ul,
  .footer__contacts {
    gap: 10px;
  }
  .footer__links {
    margin: 20px 0;
  }
}

@media (max-width: 480px) {
  .container {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 98vw;
  }
  .block,
  .hero__block_big,
  .medicine__block_big,
  .donation__block_xl {
    padding: 20px;
    border-radius: 10px;
  }
  .header__link:before {
    background: none;
    width: 0;
    height: 0;
  }
  .hero__heading {
    font-size: 24px;
  }
  .hero__sub-heading,
  .title {
    font-size: 16px;
  }
  .hero__sub-heading {
    margin: 12px 0 24px;
  }
  .hero__text {
    margin-top: 20px;
  }
  .footer {
    padding: 16px 4px;
  }
  .hero__block:last-child,
  .hero__block_big,
  .hero__img,
  .video__info,
  .video__iframe,
  .medicine__block_big,
  .medicine__block,
  .donation__block_xl,
  .donation__img_m,
  .partner__block,
  .partner__img,
  .footer__info,
  .footer__links,
  .footer__requisites {
    -ms-grid-column-span: 1;
    grid-column: span 1;
  }
  .footer__links ul,
  .footer__requisites ul {
    gap: 6px;
  }
  .header {
    padding: 8px 2px;
  }
  .logo {
    width: 90px;
    height: 30px;
  }
  .link,
  .link_bg,
  .donation__link,
  .ym-btn-pay {
    font-size: 14px !important;
    padding: 8px 12px !important;
  }
  .block__heading {
    font-size: 16px;
  }
  .block__text,
  .footer__requisites li {
    font-size: 12px;
  }
  .donation__block_m {
    min-height: 300px;
  }
  .partner__block:nth-of-type(2) {
    min-height: 360px;
  }
}
