@media (max-width: 1480px) {
  .container {
    max-width: 1200px;
  }

  .header::before {
    width: calc(50vw - 300px);
  }

  .header__text {
    margin-right: 5%;
  }

  .header__wrap-cap {
    margin-right: 5%;
  }

  .production__text {
    font-size: 20px;
    line-height: 24px;
    bottom: -8px;
  }

  .contacts__form {
    padding-left: 550px;
  }

  .contacts__title {
    margin-bottom: 0px;
  }

  .contacts__text {
    margin-bottom: 25px;
  }

  .contacts__label-text {
    max-width: 500px;
  }

  .contacts__label-text::after {
    max-width: 600px;
  }

  .contacts__label-text {
    font-size: 90%;
  }

  .contacts__span {
    right: -5px;
  }

  .contacts__label:hover .contacts__span {
    right: -2px;
  }

  .footer::before {
    width: calc(50vw - 350px);
  }

  .footer__logo {
    right: calc(50vw - 580px);
  }
}

@media (max-width: 1250px) {
  .container {
    max-width: 900px;
  }

  .header::before {
    width: calc(50vw - 250px);
  }

  .header__container {
    display: flex;
    justify-content: space-between;
  }

  .header__logo {
    max-width: 150px;
  }

  .header__link--logo {
    margin-right: 15%;
  }

  .about-us__container {
    flex-direction: column;
  }

  .about-us__wrap:not(:last-child) {
    max-width: 100%;
    margin-right: 0px;
    margin-bottom: 50px;
  }

  .about-us__item {
    align-items: center;
  }

  .production__list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .production__item {
    flex-grow: 1;
  }

  .production__img {
    max-width: 100%;
  }

  .header__text {
    display: none;
  }

  .contacts__form {
    padding-left: 400px;
  }

  .contacts__title {
    margin-bottom: 20px;
    font-size: 50px;
  }

  .contacts__label-text::after {
    max-width: 500px;
  }

  .contacts__text {
    margin-bottom: 5px;
  }

  .contacts__input {
    font-size: 22px;
  }

  .contacts__span {
    display: none;
  }

  .contacts__label-text {
    font-size: 19px;
  }

  .contacts__label:hover .contacts__span {
    right: 0;
  }

  .contacts__label:active .contacts__span {
    right: 0;
  }

  .footer::before {
    width: calc(50vw - 200px);
  }

  .footer__map {
    width: 200px;
    height: 200px;
    margin-right: 5px;
  }

  .footer__logo {
    right: calc(50vw - 400px);
  }

  .footer__list {
    margin: 0;
    padding: 0;
  }

  .footer__link {
    font-size: 20px;
    line-height: 20px;
  }

  .footer__contacts {
    font-size: 15px;
    line-height: 20px;
  }

  .footer__list-social {
    justify-content: center;
  }

  .footer__item:not(:last-child) {
    margin-bottom: 15px;
  }

  .footer__contacts:not(:last-child) {
    margin-bottom: 15px;
  }
}

@media (max-width: 1000px) {
  .container {
    max-width: 750px;
  }

  .header::before {
    width: calc(50vw - 180px);
  }

  .header__link {
    font-size: 13px;
  }

  .header__link-svg {
    width: 35px;
    height: 35px;
  }

  .header__list {
    margin-right: 8%;
  }

  .header__list--social {
    align-self: center;
  }

  .hero__title {
    font-size: 35px;
    line-height: 50px;
    max-width: 370px;
  }

  .hero__link--nav {
    font-size: 16px;
  }

  .about-us__container {
    display: flex;
    flex-direction: column;
  }

  .about-us__item {
    flex-direction: row;
    align-items: center;
  }

  .about-us__text {
    font-size: 14px;
  }

  .about-us__svg {
    width: 60px;
    height: 60px;
  }

  .about-us__highlight {
    font-size: 30px;
  }

  .about-us__wrap {
    margin-bottom: 15px;
  }

  .production__item {
    flex-grow: 0;
  }

  .production__img {
    width: 200px;
    height: 250px;
  }

  .production__title {
    font-size: 14px;
    letter-spacing: 0.01px;
  }

  .production__text {
    font-size: 14px;
    line-height: 24px;
    bottom: -8px;
  }

  .advantages__title {
    font-size: 22px;
    line-height: 20px;
  }

  .advantages__descr {
    font-size: 20px;
    line-height: 20px;
  }

  .contacts__form {
    padding: 50px;
    background-image: none;
  }

  .contacts__form::after {
    left: 0;
    width: 100%;
  }

  .contacts__title {
    font-size: 40px;
    line-height: 50px;
  }

  .contacts__input {
    font-size: 18px;
  }

  .contacts__text {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 30px;
  }

  .contacts__label-text {
    font-size: 15px;
    letter-spacing: 0.01px;
  }

  .contacts__span {
    display: none;
  }

  .footer::before {
    width: calc(50vw - 140px);
    bottom: 30px;
  }

  .footer__container {
    padding: 0 15px;
    padding-top: 40px;
  }

  .footer__logo {
    width: 150px;
    right: calc(50vw - 350px);
    bottom: 30px;
  }

  .footer__map {
    margin-right: 15px;
  }

  .footer__list {
    margin: 0;
    padding: 0;
    margin-right: 10px;
  }

  .footer__item {
    font-size: 15px;
    line-height: 20px;
  }

  .footer__item:not(:last-child) {
    margin-bottom: 15px;
  }

  .footer__link {
    font-size: 15px;
    line-height: 15px;
  }

  .footer__link-svg {
    margin-right: 5px;
  }

  .footer__title {
    font-size: 18px;
    line-height: 20px;
    margin-bottom: 15px;
  }

  .footer__contacts {
    font-size: 15px;
    line-height: 20px;
  }

  .footer__contacts:not(:last-child) {
    margin-bottom: 13px;
  }

  .footer__wrap--contacts {
    margin-right: 15px;
  }

  .footer__img {
    width: 30px;
  }

  .footer__back-svg {
    width: 30px;
  }

  .footer__back-link {
    height: 30px;
  }
}

@media (max-width: 800px) {
  .container {
    max-width: 540px;
  }

  .header__container {
    padding: 10px;
  }

  .header::before {
    width: calc(50vw - 60px);
  }

  .header__link--logo {
    margin-right: 0%;
  }

  .header__wrap {
    margin: 0;
  }

  .header__list--social {
    flex-direction: column;
    align-self: center;
  }

  .about-us__list {
    padding: 0;
  }

  .about-us__item {
    align-items: center;
  }

  .about-us__img {
    width: 70px;
    height: 70px;
  }

  .production__list {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
  }

  .production__img {
    width: 500px;
    height: 300px;
  }

  .production__title {
    font-size: 20px;
  }

  .production__text {
    font-size: 24px;
    line-height: 36px;
    bottom: -18px;
  }

  .advantages {
    margin-bottom: 80px;
  }

  .advantages__list {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .advantages__item {
    flex-direction: row;
    width: 100%;
    max-width: 500px;
  }

  .advantages__item:not(:last-child) {
    margin-bottom: 20px;
  }

  .advantages__item svg {
    margin-right: 50px;
    margin-bottom: 0;
    max-width: 80px;
    height: 80px;
  }

  .advantages__descr {
    margin: 0;
    text-align: left;
  }

  .advantages__title {
    text-align: left;
  }

  .advantages__title--h2 {
    text-align: center;
    margin-bottom: 30px;
  }

  .contacts__form {
    position: relative;
    flex-direction: column;
  }

  .contacts__wrap:not(:last-child) {
    margin: 0;
    margin-bottom: 25px;
  }

  .contacts__input {
    width: 100%;
  }

  .contacts__label:hover .contacts__label-text::after {
    width: 100%;
  }

  .contacts__label:hover .contacts__span {
    right: 55px;
  }

  .footer {
    position: relative;
  }

  .footer::before {
    display: none;
  }

  .footer__map {
    display: none;
  }

  .footer__logo {
    display: none;
  }

  .footer__container {
    display: flex;
    flex-direction: column;
  }

  .footer__link {
    font-size: 22px;
  }

  .footer__list {
    margin: 0;
  }

  .footer__item:last-child {
    margin-bottom: 35px;
  }

  .footer__list::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--color-text-tr);
    top: 150px;
    left: 0;
  }

  .footer__wrap--contacts {
    margin-bottom: 50px;
  }

  .footer__wrap--contacts::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--color-text-tr);
    top: 295px;
    left: 0;
  }

  .footer__wrap--social {
    margin-bottom: 50px;
  }

  .footer__list-social {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .container {
    max-width: 400px;
    padding: 20px 25px;
  }

  .header::before {
    width: calc(50vw - 105px);
  }
  .header__logo {
    max-width: 80px;
  }

  .header__link--logo {
    left: -25px;
    margin-right: 0;
  }

  .header__link--phone {
    margin-bottom: 10px;
  }

  .header__btn--search {
    position: absolute;
    right: 25px;
    top: 45px;
  }

  .hero__title {
    margin: 0;
    margin-top: 15px;
    margin-bottom: 50px;
  }

  .hero__link--nav::after {
    width: 200px;
  }

  .hero__nav {
    padding-bottom: 50px;
  }

  .about-us {
    padding-bottom: 50px;
  }

  .about-us__list {
    margin: 0;
  }

  .about-us__title {
    font-size: 15px;
  }

  .about-us__text {
    font-size: 12px;
    line-height: 20px;
  }

  .about-us__wrap:not(:last-child) {
    margin-bottom: 15px;
  }

  .production {
    padding-top: 0;
    padding-bottom: 0;
  }

  .advantages__svg {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    text-align: center;
    width: 80px;
    height: 80px;
  }

  .contacts__title {
    max-width: 100%;
  }

  .contacts__wrap:not(:last-child) {
    margin: 0;
    margin-bottom: 25px;
  }

  .contacts__input {
    width: 320px;
  }

  .contacts__textarea {
    height: 60px;
    min-width: 320px;
    max-width: 320px;
    max-height: 240px;
    min-height: 65px;
  }

  .contacts__label-text::after {
    width: 320px;
  }

  .contacts__span {
    right: 30px;
  }

  .contacts__label:hover .contacts__span {
    right: 32px;
  }

  .contacts__label:hover .contacts__label-text::after {
    width: 310px;
  }

  .footer__logo {
    display: none;
  }

  .footer__link--logo {
    display: none;
  }

  .footer__list::after {
    top: 135px;
  }

  .footer__wrap--contacts::after {
    top: 270px;
  }
}

@media (max-width: 500px) {
  body {
    overflow-x: hidden;
  }

  .container {
    max-width: 320px;
    padding: 5px 10px;
  }

  .header__container {
    padding: 5px;
  }

  .header__link--logo {
    left: 0;
    margin-right: 15px;
  }

  .header::before {
    width: calc(50vw - 70px);
  }

  .header__link--phone,
  .header__link--mail {
    font-size: 14px;
    line-height: 20px;
  }

  .header__btn--search {
    width: 30px;
    height: 30px;
    top: 30px;
  }

  .header__svg-mail,
  .header__svg-phone {
    display: none;
  }

  .header__svg-search {
    width: 20px;
    height: 20px;
  }

  .header__btn--search:hover {
    width: 35px;
    height: 35px;
  }

  .header__list--social {
    display: none;
  }

  .hero__container::before {
    left: 0;
  }

  .hero__title {
    max-width: 300px;
    font-size: 28px;
    margin-bottom: 30px;
  }

  .about-us__item {
    flex-direction: column;
  }

  .about-us__img {
    margin: 0;
    margin-bottom: 10px;
  }

  .production__img {
    height: 150px;
  }

  .production__title--h3 {
    font-size: 15px;
  }

  .production__text {
    font-size: 14px;
    line-height: 14px;
    bottom: -8px;
  }

  .advantages__title {
    font-size: 24px;
  }

  .advantages__item {
    flex-direction: column;
    text-align: center;
  }

  .advantages__descr {
    text-align: center;
  }

  .advantages__item svg {
    margin: 0;
    margin-bottom: 40px;
  }

  .advantages__title {
    text-align: center;
  }

  .contacts__form {
    padding-top: 20px;
  }

  .contacts__title {
    font-size: 24px;
    margin-bottom: 5px;
  }

  .contacts__wrap {
    gap: 10px;
  }

  .contacts__wrap:not(:last-child) {
    margin: 0 auto;
    margin-bottom: 10px;
  }

  .contacts__text {
    font-size: 15px;
    line-height: 20px;
    left: 15%;
  }

  .contacts__input {
    padding: 0;
    width: 200px;
    font-size: 14px;
  }

  .contacts__textarea {
    height: 50px;
    min-width: 200px;
    max-width: 200px;
    max-height: 100px;
    min-height: 30px;
    font-size: 11px;
    margin: 0 auto;
    margin-bottom: 10px;
  }

  .contacts___text {
    font-size: 14px;
    margin: 0 auto;
  }

  .contacts__label {
    padding: 0;
    margin-bottom: 50px;
    max-width: 200px;
  }

  .contacts__label-text {
    font-size: 10px;
    margin: 0;
  }

  .contacts__label-text::after {
    width: 200px;
  }

  .contacts__label:hover .contacts__label-text::after {
    width: 200px;
  }

  .contacts__span {
    display: none;
  }

  .contacts__btn {
    padding: 10px 20px;
    font-size: 14px;
    bottom: 25px;
    left: 30%;
  }

  .footer::before {
    display: none;
  }

  .footer__container {
    padding-top: 30px;
  }

  .footer__wrap--contacts {
    margin-right: 0;
  }

  .footer__list {
    max-width: 250px;
  }

  .footer__item {
    font-size: 10px;
    max-width: 220px;
  }

  .footer__link {
    font-size: 15px;
  }

  .footer__link-svg {
    margin-right: 0;
  }

  .footer__map {
    width: 220px;
    margin-bottom: 75px;
  }
}
