html {
  box-sizing: border-box;

  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;

  object-fit: cover;
}

body {
  min-width: 320px;
  margin: 0;
  padding: 0;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: black;
  background: linear-gradient(90deg,
  rgba(255, 255, 255, 0) 1.8em),
  linear-gradient(rgba(255, 255, 255, 0) 1.9em, rgba(0, 0, 0, .15) 2em) 0 0;
  background-color: rgba(64, 95, 109, .22);
  background-size: 2em 2em;

  overflow-wrap: anywhere;
}

.container {
  width: 100%;
  max-width: 1330px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 40px 0;
}

.main-title {
  margin: 0;
  font-size: clamp(1.5rem, 1.342rem + .79vw, 2rem);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: clamp(1.125rem, 1.046rem + .4vw, 1.375rem);
  font-weight: 500;
  line-height: 1.2;
  color: white;
  text-align: center;
  background-color: black;
  cursor: pointer;
  transition: background-color .3s ease-out;
}

.btn:focus {
  outline: none;
}

.btn--green {
  background-color: green;
}

.btn--green:focus-visible {
  background-color: rgb(0, 170, 0);
}

.btn--green:hover {
  background-color: rgb(0, 170, 0);
}

.btn--orange {
  background-color: #dc6f2c;
}

.btn--orange:focus-visible {
  background-color: #ff7818;
}

.btn--orange:hover {
  background-color: #ff7818;
}

.btn--blue {
  background-color: rgb(25, 39, 192);
}

.btn--blue:focus-visible {
  background-color: blue;
}

.btn--blue:hover {
  background-color: blue;
}

/* ----------------------------------------------- */
.basket {
  overflow: hidden;
}

.basket__container {
  display: flex;
  flex-direction: column;
  max-width: 1030px;

  row-gap: 15px;
}

.basket__main-title {
  margin: 0 0 00px;
}

.basket__btns-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 20px;

  gap: 20px;
}

.basket__list {
  position: relative;
  display: flex;
  flex-direction: column;
  /* counter-reset: example 0; */

  gap: 10px;
}

.basket__list::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  width: 10px;
  height: 100%;
  border-radius: 0 10px;
  background-color: darkolivegreen;
}

.basket__item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 10px 0;
  border-right: 2px solid darkolivegreen;
  border-bottom: 2px solid darkolivegreen;
  font-size: clamp(1.125rem, .967rem + .79vw, 1.625rem);
  /* counter-increment: example 1; */
  transition: background-color .3s ease-out, transform .3s ease-out;

  column-gap: 5px;
}

.basket__item::before {
  content: var(--count-list) ") ";
  flex-shrink: 0;
  font-size: 16px;
}

.basket__item::after {
  content: "Удалить при клике";
  position: absolute;
  top: 0;
  right: 15px;
  font-size: 14px;
  font-style: italic;
  color: rgba(216, 32, 32);
  opacity: 0;
  transition: opacity .3s ease-in-out;

}
@media (max-width: 767px) {
  .basket__item::after {
    opacity: 1;
  }
}

.basket__item--finded {
  background-color: gold;
  transform: translateX(20px);
}

.basket__item:focus-visible {
  outline: none;
  background-color: limegreen;
  transform: translateX(13px);
}

.basket__item:hover {
  background-color: limegreen;
  transform: translateX(13px);
}

.basket__item:focus-visible::after {
  opacity: 1;
}

@media (any-hover: hover) {
  .basket__item:hover::after {
    opacity: 1;
  }
}
