@media (min-width: 330px) and (max-width: 500px) {
  .homePage {
    h3 {
      color: #ff914d;
      margin: 0;
      margin-bottom: 8px;
    }

    .top-img {
      box-sizing: border-box;
      position: relative; /* Чтобы ::before работал правильно */

      img {
        width: 100%;
        height: auto;
        max-width: 100vw;
        object-fit: cover;
        display: block;
      }

      &::before {
        content: "Не просто фитнес, а образ жизни";
        position: absolute;
        top: 10px;
        left: 5vw;
        width: 90vw;
        font-weight: 800;
        margin: 0;
        font-size: 4.8vw;
        color: #ffffff;
      }
    }

    .about-igor {
      display: flex;
      padding: 5px 15px 15px 15px;
      background-color: #1f1f20;

      .about-igor-img {
        height: 285px;

        img {
          width: 40vw;
          height: 300px;
          object-fit: cover;
          border-radius: 10px;
        }
      }

      .about-igor-text {
        width: 60vw;
        height: 300px;
        box-sizing: border-box;
        padding: 10px;
        background-color: #27272a;
        border-radius: 10px;

        p {
          margin: 0;
          margin-bottom: 8px;

          span {
            color: #ff914d;
            font-weight: normal;
          }

          @media (max-width: 385px) {
            font-size: 14px;
          }
        }

        .about-igor-bigText {
          font-weight: lighter;
          font-size: 12px;

          @media (max-width: 385px) {
            font-size: 10px;
          }
        }
      }
    }

    .reviews {
      padding: 15px;
      background-color: #1f1f20;
      color: #fff;
      overflow: hidden;
      box-sizing: border-box;

      .reviews-header {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .reviewsSub {
          margin: 0;
          border: 1px solid #ff914d;
          border-radius: 5px;
          padding: 5px 10px;
        }
      }

      .review-buttons {
        display: flex;
        gap: 5px;

        button {
          background: transparent;
          border: 1px solid #ff914d;
          color: #fff;
          padding: 5px 10px;
          font-size: 1.17em;
          border-radius: 5px;
          cursor: pointer;
        }
      }

      .reviews-cards-wrapper {
        overflow: hidden;
        margin-top: 15px;
        width: 100%;

        .reviews-cards {
          display: flex;
          gap: 20px;

          .reviews-card {
            flex: 0 0 calc(50% - 10px);
            background-color: #2a2a2b;
            border: 1px solid #ff914d;
            border-radius: 10px;
            padding: 15px;
            font-size: 0.7rem;
            box-sizing: border-box;
            transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;

            p {
              margin: 0;
            }

          / / АНИМАЦИИ & . slide-out-left {
            transform: translateX(-100%);
            opacity: 0;
          }

            &.slide-out-right {
              transform: translateX(100%);
              opacity: 0;
            }

            &.slide-in-right {
              transform: translateX(100%);
              opacity: 0;
              animation: slideInFromRight 0.2s forwards;
            }

            &.slide-in-left {
              transform: translateX(-100%);
              opacity: 0;
              animation: slideInFromLeft 0.2s forwards;
            }
          }
        }
      }
    }

    .achievements {
      background-color: #1f1f20;
      padding: 15px 0;
      color: white;
      text-align: center;
      overflow: hidden;

      h2 {
        color: #ff914d;
        margin: 0px;
        margin-bottom: 20px;
        font-size: 4.5vw;
      }

      .achievements-wrap-slider-main {
        overflow: hidden;
        position: relative;
        max-width: 100%;

        .achievements-wrap-slider {
          display: flex;
          gap: 20px;

          .achievements-slide {
            border: 1px solid #ff914d;
            flex: 0 0 220px;
            background-color: #2a2a2b;
            border-radius: 15px;
            padding: 10px;
            box-sizing: border-box;
            text-align: center;

            .image-box {
              background-color: #ccc;
              height: 200px;
              border-radius: 10px;
              margin-bottom: 10px;

              img {
                object-fit: cover;
                width: 100%;
                height: 100%;
                border-radius: 10px;
              }
            }

            p {
              font-size: 0.9rem;
              color: #fff;
            }
          }
        }
      }
    }

    .homeAdress {
      background-color: #1f1f20;
      padding: 15px;
      color: white;
      text-align: center;

      h2 {
        font-size: 4.7vw;
        margin: 0;
        margin-bottom: 5px;

        span {
          color: #ff914d;
        }
      }

      address {
        font-size: 3vw;

        a {
          color: #ff914d;
          text-decoration: none;

          &:link,
          &:visited,
          &:hover,
          &:active {
            color: #ff914d;
          }
        }
      }
    }

    .map {
      max-height: 200px;
      border-bottom: 2px solid #ff914d;
      border-top: 2px solid #ff914d;
    }

    .homeSlider {
      background-color: #1f1f20;
      padding: 20px;

      .slider {
        position: relative;
        width: 100%;
        height: 250px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;

        .slider-bg {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background-size: cover;
          background-position: center;
          opacity: 0;
          transition: opacity 1s ease-in-out;
          z-index: 0;

          &.visible {
            opacity: 1;
            z-index: 1;
          }
        }

        .slider-arrow {
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          background-color: rgba(0, 0, 0, 0);
          border: none;
          color: white;
          padding: 12px;
          cursor: pointer;
          z-index: 3;

          &.left {
            left: 20px;
          }

          &.right {
            right: 20px;
          }
        }
      }
    }

    .footer {
      background-color: #1f1f20;
      padding: 0 15px 15px;

      a {
        color: #fff;
        text-decoration: none;

        &:link,
        &:visited,
        &:hover,
        &:active {
          color: #fff;
        }
      }

      h2 {
        margin: 0 0 10px 0;
        color: #ff914d;
        font-size: 4.7vw;
      }

      .footer-wrapper {
        padding: 15px;
        display: flex;
        background-color: #242427;
        border: 1px solid #ff914d;
        border-radius: 10px;
        font-size: 3vw;

        img {
          margin-right: 5px;
          height: 20px;
          width: 20px;
        }

        .footer-contact {
          display: flex;
          align-items: center;
        }

        .footer-contacts,
        .footer-otherContacts {
          width: 50%;
          display: flex;
          flex-direction: column;
          gap: 5px;
        }

        .footer-otherContacts .footAdress {
          font-size: 2.8vw;
          align-items: flex-start;
        }
      }
    }
  }
}