/* ОТМЕНА ФИКСИРОВАННОЙ ШИРИНЫ BODY */
body {
  min-width: auto !important;
}

.container {
  width: 95%;
  max-width: 1140px;
  min-width: auto;
}

/* ===== УМЕНЬШЕНИЕ ШРИФТОВ НА МОБИЛЬНЫХ ===== */

/* -------------------------max-width: 1170px---------------------------*/
@media (max-width: 1170px) {
  .admin-panel {
    height: 35px;
    padding: 10px;
  }

  .admin-panel__block-button {
    font-size: 14px;
  }

  /*------------------------------------------------*/
  .admin-panel__link {
    padding-top: 5px;
    margin-right: 30px;
    font-size: 13px;
  }

  .admin-panel__link img {
    max-width: 100%;
  }
  /*------------------------------------------------*/
  .section-header {
    padding-top: 50px;
    padding-bottom: 20px;
  }

  h1,
  .heading,
  .section-header__content-title {
    padding-top: 10px;
    font-size: 20px !important;
  }

  h2,
  .section-header__content-subtitle {
    font-size: 16px !important;
    margin-bottom: 20px;
  }

  h3,
  .admin-section-title {
    font-size: 20px;
  }

  .nav__list-item:not(:last-child) {
    margin-right: 30px;
  }

  .nav__list-item-link {
    font-size: 13px;
  }

  .main-page__section-about {
    margin-bottom: 30px;
  }

  .section-about-main {
    padding: 20px 0;
  }

  .row-main-about {
    justify-content: space-around;
  }

  .section-about-main__img {
    width: 45%;
  }

  .section-about-main__wrapper {
    width: 45%;
  }

  .section-about-main__img img {
    width: 400px;
    height: 250px;
  }

  .section-about-main__content {
    margin-bottom: 15px;
  }

  .post-about-me p {
    font-size: 14px;
    line-height: 1.2;
  }

  .post-about-skills__title {
    font-size: 12px;
    line-height: 1.1;
  }

  .post-about-skills ul {
    font-size: 15px;
    line-height: 1.2;
  }

  .post-about-skills li::before {
    top: 5px;
    width: 7px;
    height: 7px;
  }

  .main-page__section-status {
    margin-bottom: 15px;
  }

  .section-status {
    padding: 10px;
  }

  .section-status-badge {
    margin-right: 13px;
    padding: 5px 6px;
    font-size: 11px;
    line-height: 1.1;
  }

  .section-status-text {
    font-size: 13px;
    line-height: 1.1;
  }

  .section-status-text::after {
    top: -2px;
    right: -10px;
  }

  .main-page__projects-cards {
    margin-bottom: 10px;
  }

  .main-page__projects-cards-title {
    margin-bottom: 20px;
  }

  .card-post_rotateY1 {
    margin-bottom: 20px !important;
  }

  .card-project__title {
    font-size: 20px;
    line-height: 1.1;
  }

  .main-page__posts-cards {
    padding-bottom: 60px;
  }

  .main-page__posts-cards-title {
    margin-bottom: 20px;
  }

  .card-post_rotateY2 {
    padding: 10px;
    max-width: 350px;
    height: auto;
  }

  .card-post__img {
    margin-bottom: 10px;
  }

  .card-post__title {
    font-size: 17px;
    line-height: 1.1;
    margin-bottom: 5px;
  }

  .section-footer {
    padding: 30px 20px;
  }

  .section-footer__copyright p {
    font-size: 12px;
    line-height: 1.1;
    margin-bottom: 5px;
  }

  .section-social-icons .footer-icons {
    margin-right: 20px;
  }

  .footer-icons img {
    width: 25px;
    height: 15px;
  }
}

/* -------------------------max-width: 850px---------------------------*/
@media (max-width: 850px) {
  .section-status-text::after {
    display: none;
  }
}

/* -------------------------max-width: 660px---------------------------*/
@media (max-width: 660px) {
  .admin-panel {
    height: 25px;
    padding: 5px;
  }

  /*------------------------------------------------*/
  .admin-panel__link {
    padding-top: 0px;
    margin-right: 20px;
    font-size: 11px;
  }

  .admin-panel__link img {
    display: none;
  }
  /*------------------------------------------------*/

  .admin-panel__block-button {
    font-size: 12px;
  }

  .section-header {
    padding-top: 30px;
    padding-bottom: 10px;
  }

  h1,
  .heading,
  .section-header__content-title {
    padding-top: 8px;
    font-size: 16px !important;
  }

  h2,
  .section-header__content-subtitle {
    font-size: 12px !important;
    margin-bottom: 10px;
  }

  h3,
  .admin-section-title {
    font-size: 15px;
  }

  .nav__list-item:not(:last-child) {
    margin-right: 20px;
  }

  .nav__list-item-link {
    font-size: 12px;
  }

  .main-page__section-about {
    margin-bottom: 15px;
  }

  .section-about-main {
    padding: 15px 0;
  }

  .section-about-main__img img {
    width: 380px;
    height: 176px;
  }

  .section-about-main__content {
    margin-bottom: 5px;
  }

  .post-about-me__title {
    margin: 0;
    font-size: 11px;
    line-height: 1;
  }

  .post-about-me p {
    font-size: 12px;
    line-height: 1.1;
  }

  .post-about-skills__title {
    margin-bottom: 5px;
    font-size: 10px;
    line-height: 1;
  }

  .post-about-skills ul {
    font-size: 11px;
    line-height: 1;
  }

  .post-about-skills li::before {
    top: 4px;
    width: 5px;
    height: 5px;
  }

  .main-page__section-status {
    margin-bottom: 5px;
  }

  .section-status {
    padding: 5px;
  }

  .section-status-badge {
    margin-right: 10px;
    font-size: 9px;
    line-height: 1;
  }

  .section-status-text {
    font-size: 10px;
    line-height: 1;
  }

  .main-page__projects-cards-title {
    margin-bottom: 10px;
  }

  .card-project__technology {
    font-size: 7px;
  }

  .card-project__title {
    font-size: 13px;
    line-height: 1;
  }

  .main-page__posts-cards {
    padding-bottom: 40px;
  }

  .main-page__posts-cards-title {
    margin-bottom: 10px;
  }

  .card-post__title {
    font-size: 14px;
    line-height: 1;
  }

  .section-social-icons {
    justify-content: space-around;
    margin: 0;
  }
}

/* -------------------------max-width: 500px---------------------------*/
@media (max-width: 500px) {
  /*------------------------------------------------*/
  .admin-panel__block-button {
    font-size: 10px;
  }

  .admin-panel__link {
    margin-right: 10px;
    font-size: 8px;
  }

  /*------------------------------------------------*/

  .row {
    flex-direction: column;
    align-items: center;
  }

  .section-about-main__img {
    width: 90%;
    margin-bottom: 10px;
  }

  .section-about-main__wrapper {
    width: 90%;
  }

  .post-about-me__title {
    margin-bottom: 10px;
  }

  .section-about-main__content {
    margin-bottom: 10px;
  }

  .post-about-skills__title {
    margin-bottom: 10px;
  }

  .col-6 {
    max-width: 100%;
  }

  .col-4 {
    max-width: 90%;
  }

  .row {
    gap: 10px;
  }

  .section-footer__copyright {
    text-align: center;
  }

  .authorization-form {
    padding: 10px;
    width: 95%;
    height: auto;
  }

  .input {
    width: 95%;
    font-size: 19px;
  }
}

/* -------------------------max-width: 350px---------------------------*/
@media (max-width: 350px) {
  .section-header {
    padding-top: 23px;
    padding-bottom: 5px;
  }

  h1,
  .heading,
  .section-header__content-title {
    padding-top: 5px;
    font-size: 13px !important;
  }

  h2,
  .section-header__content-subtitle {
    font-size: 10px !important;
    margin-bottom: 5px;
  }

  .notifications__title {
    padding: 10px 20px;
    font-size: 14px;
    line-height: 1.1;
  }

  .nav__list-item:not(:last-child) {
    margin-right: 10px;
  }

  .nav__list-item-link {
    font-size: 10px;
  }

  .main-page__section-about {
    margin-bottom: 10px;
  }

  .section-status {
    flex-direction: column;
    gap: 5px;
  }

  .section-footer__copyright p {
    font-size: 10px;
  }

  .section-social-icons .footer-icons {
    margin-right: 5px;
  }
}

@media (max-width: 290px) {
  body {
    font-size: 12px;
  }

  .container {
    width: 98%;
    padding: 0 5px;
  }

  .admin-panel {
    height: auto;
    flex-direction: column;
    gap: 5px;
  }

  .admin-panel__block-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav__list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .nav__list-item:not(:last-child) {
    margin-right: 0;
  }

  .col-6,
  .col-4 {
    max-width: 95%;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    text-align: center;
  }
}
