.top-screen__tag-list.--service {
  .marquiz__container {
    margin-right: 16px;

    .marquiz__button:before {
      content: '\f879';
    }
  }

  .top-screen__tag-item {
    width: 52px;
    height: 52px;
    padding: 0;
    margin-right: 12px;

    img {
      width: 100%;
      height: 100%;
    }
  }
}

.repair-menu {
  display: grid;
  grid-template-columns: 1.07fr repeat(2, 1fr);
  gap: 20px;
  background-color: #fff2ef;
  padding: 36px;
  border-radius: 8px;
  margin-bottom: 90px;

  @media (max-width: 1024px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 24px;
    margin-bottom: 44px;
  }

  @media (max-width: 550px) {
    grid-template-columns: 1fr;
    padding: 16px 16px 24px;
  }
}

.repair-menu__title {
  font-size: 1.5rem;
  list-style: 1.75rem;
  font-weight: 700;
  color: var(--orange);
  text-wrap: balance;

  @media (max-width: 1024px) {
    grid-column: span 2;
  }

  @media (max-width: 550px) {
    grid-column: span 1;
  }
}

.repair-menu__block {
  ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  li {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 1.25rem;
    line-height: 2rem;
    color: var(--orange);

    a {
      color: var(--orange);
      text-underline-offset: 8px;
      text-decoration-color: #ff6a3920;
      text-decoration-thickness: 1px;
      transition: text-decoration-color 0.3s ease;

      &:hover {
        text-decoration: underline;
        text-decoration-color: var(--orange);
        text-decoration-thickness: 1px;
      }
    }
  }
}

.repair-item {
  display: grid;
  grid-template-columns: 349fr 651fr;
  gap: 20px;
  position: relative;
  margin-bottom: 90px;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
  }

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    display: block;
    width: 100%;
    height: 100%;
    width: 4px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.1);
  }

  .repair-item__left {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 0 20px 0 36px;

    @media (max-width: 1024px) {
      padding-left: 24px;
    }

    @media (max-width: 550px) {
      padding-left: 16px;
    }
  }

  .repair-item__title {
    font-size: 1.5rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: #333f48;
    text-wrap: balance;
  }

  .repair-item__gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 80%;

    @media (max-width: 1024px) {
      width: 100%;
    }

    li {
      list-style: none;
      margin: 0;
      padding: 0;

      a {
        display: block;
        width: 64px;
        height: 64px;
        position: relative;
        border-radius: 8px;
        overflow: hidden;

        &::before {
          content: '';
          position: absolute;
          display: block;
          inset: 0;
          width: 100%;
          height: 100%;
          transition:
            opacity 0.3s ease,
            background-color 0.3s ease;
        }

        &:hover {
          &::before {
            opacity: 0.4;
            background: #333f48;
          }
        }

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }

        .ico {
          position: absolute;
          inset: 0;
          display: flex;
          align-items: center;
          justify-content: center;
          z-index: 10;

          img {
            width: 32px;
            height: 32px;
          }
        }

        .more {
          backdrop-filter: blur(8px);
          position: absolute;
          font-size: 1.25rem;
          line-height: 1.5rem;
          font-weight: 700;
          color: #fff;
          inset: 0;
          display: flex;
          align-items: center;
          justify-content: center;
          z-index: 10;
        }
      }
    }
  }

  .repair-item__right {
    font-size: 1.125rem;
    line-height: 1.75rem;

    @media (max-width: 1024px) {
      padding-left: 20px;
    }

    @media (max-width: 550px) {
      padding-left: 16px;
    }

    p:not(:first-child) {
      margin-top: 8px;
    }

    button[data-toggle-trigger] {
      margin-top: 40px;
      font-size: 1.125rem;
      line-height: 1.75rem;
      color: var(--orange);
      background: none;
      border: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;

      svg {
        flex-shrink: 0;
        transition: transform 0.3s ease;
      }
    }

    .repair-item__toggle {
      &[data-expanded='true'] {
        button {
          svg {
            transform: rotate(-180deg);
          }
        }

        .repair-item__toggle-content {
          max-height: 2000px;
          padding-top: 32px;
          opacity: 1;
        }
      }
    }

    .repair-item__toggle-content {
      max-height: 0;
      margin-top: 0;
      opacity: 0;
      overflow: hidden;
      transition:
        max-height 0.3s ease-in-out,
        padding-top 0.3s ease-in-out,
        opacity 0.3s ease-in-out;
    }

    .repair-item__list {
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .list__item {
      color: #333f48;
      display: flex;
      justify-content: space-between;
      color: var(--orange);
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 16px;
      padding-bottom: 20px;
      border-bottom: 1px solid rgba(255, 106, 57, 0.2);
      transition: max-height 0.3s ease-in-out;

      @media (max-width: 1024px) {
        gap: 12px;
      }

      @media (max-width: 550px) {
        grid-template-columns: 1fr;
      }

      .list__item-title {
        font-size: 1.25rem;
        line-height: 1.5rem;
        font-weight: 700;
        padding-right: 20px;

        @media (max-width: 550px) {
          padding-right: 0;
        }
      }

      .list__item-price {
        font-size: 1.25rem;
        line-height: 1.5rem;
        font-weight: 700;
        text-wrap: nowrap;

        i {
          font-family: var(--font-roboto);
          font-style: normal;
        }
      }

      .list__item-description {
        margin: 0;
        padding: 0;
        color: var(--orange);
        font-size: 0.9375rem;
        line-height: 1.25rem;
        grid-column: span 2;

        @media (max-width: 550px) {
          grid-column: span 1;
        }
      }
    }
  }
}

.service-form__wrapper {
  margin: 0;
  padding: 0;
  overflow: clip;
  display: grid;
  gap: 20px;
  grid-template-columns: 349fr 651fr;
  box-shadow: 0px 5px 25px rgba(224, 224, 224, 0.5);
  border-radius: 12px;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .service-form__bg {
    background: url(/img/bg-form-service.svg) no-repeat right center;
    width: 100%;
    height: 100%;
  }

  .feedback__form {
    margin: 0;
    padding: 36px 52px 36px 0;

    @media (max-width: 1024px) {
      padding: 20px 20px 44px;
    }

    @media (max-width: 550px) {
      padding: 16px 16px 36px;
    }
  }

  .feedback__text {
    margin-bottom: 36px;

    h2 {
      font-size: 1.5rem;
      line-height: 1.75rem;
      font-weight: 700;
      text-wrap: balance;
      margin-bottom: 24px;

      @media (max-width: 1024px) {
        margin-bottom: 16px;
      }

      @media (max-width: 550px) {
        margin-bottom: 8px;
      }
    }

    p {
      font-size: 1.125rem;
      line-height: 1.75rem;
      text-wrap: balance;
    }
  }

  .form-field {
    margin-bottom: 36px;

    @media (max-width: 640px) {
      .custom-input {
        margin-bottom: 12px;
      }

      .custom-input:last-child {
        margin-bottom: 0;
      }
    }
  }

  .form-field--buttons {
    margin: 28px 0 0;
  }

  .button {
    box-shadow:
      0px 5px 10px rgba(0, 0, 0, 0.07),
      0px 5px 10px rgba(0, 0, 0, 0.07);

    .fas {
      margin-right: 12px;
    }
  }

  .form-agreement {
    label {
      display: flex;
      gap: 12px;
      cursor: pointer;
      font-size: 0.9375rem;
      line-height: 1.25rem;
      color: #333f48;

      span {
        text-wrap: balance;
      }

      a {
        color: var(--orange);
        text-decoration: none;

        &:hover {
          text-decoration: underline;
        }
      }
    }

    input {
      margin-top: -2px;
      width: 24px;
      height: 24px;
      border: 2px solid white;
      border-radius: 8px;
      appearance: none;
      cursor: pointer;
      position: relative;
      background: #eeeeee;
      flex-shrink: 0;

      &:before {
        content: '';
        position: absolute;
        top: 6px;
        left: 5px;
        width: 10px;
        height: 5px;
        border-left: 1.5px solid transparent;
        border-bottom: 1.5px solid transparent;
        transform: rotate(-45deg);
        transition: border-color 0.2s ease-in-out;
      }

      &:checked {
        &:before {
          border-color: var(--orange);
        }
      }

      &:hover:not(:checked) {
        &:before {
          border-color: rgba(255, 106, 57, 0.4);
        }
      }
    }
  }
}
