.completed-projects {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 0 0 100px;
  font-family: "Roboto", "Arial", sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: #111111;
}
.completed-projects__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.completed-projects__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.completed-projects__title {
  max-width: 32ch;
  margin: 0 !important;
  font-family: "Roboto", "Arial", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 28px;
  color: #111111;
  text-wrap: pretty;
}
.completed-projects__description {
  max-width: 75ch;
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  color: #111111;
  text-wrap: pretty;
}
.completed-projects__arrows {
  display: none;
  flex-shrink: 0;
  gap: 5px;
}
.completed-projects__arrow {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin: 0;
  padding: 0;
  border: 1px solid #ffa800;
  border-radius: 8px;
  background-color: #ffa800;
  color: #ffffff;
  cursor: pointer;
  transition: box-shadow 0.2s ease-in-out;
}
.completed-projects__arrow:hover, .completed-projects__arrow:focus-visible {
  box-shadow: 0 0 23px -3px #ffa800;
}
.completed-projects__arrow:disabled {
  background-color: transparent;
  color: #1c1b1f;
  cursor: default;
}
.completed-projects__arrow:disabled:hover {
  box-shadow: none;
}
.completed-projects__arrow-icon {
  width: 24px;
  height: 24px;
}
.completed-projects__slider {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.completed-projects__list {
  --completed-projects-bleed: calc(50vw - 50cqw);
  display: grid;
  grid-template-rows: auto 32px auto 24px auto minmax(32px, 1fr) auto;
  grid-auto-flow: column;
  grid-auto-columns: 100cqw;
  gap: 0 var(--completed-projects-bleed);
  margin-inline: calc(-1 * var(--completed-projects-bleed));
  padding-inline: var(--completed-projects-bleed);
  scroll-padding-inline: var(--completed-projects-bleed);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.completed-projects__list::-webkit-scrollbar {
  display: none;
}
.completed-projects__card {
  display: grid;
  grid-row: span 7;
  grid-template-rows: subgrid;
  gap: 0;
  box-sizing: border-box;
  min-height: 405px;
  padding: 20px 16px;
  border: 2px solid #e0e7f0;
  border-radius: 20px;
  background: radial-gradient(99.6px 91.3px at -48.5px -46.5px, #e0e7f0 99.5%, transparent 100%) no-repeat #ffffff;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.completed-projects__card-main, .completed-projects__about {
  display: contents;
}
.completed-projects__card-head {
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: first baseline;
  justify-content: space-between;
  gap: 10px;
  min-height: 49px;
}
@media (min-width: 360px) {
  .completed-projects__card-head {
    flex-wrap: nowrap;
  }
}
.completed-projects__logo {
  align-self: flex-start;
  display: block;
  flex-shrink: 0;
  width: var(--completed-projects-logo-width, auto);
  max-width: 60%;
  height: auto;
}
.completed-projects__company {
  font-size: 14px;
  line-height: 20px;
  text-transform: uppercase;
  color: #000000;
}
.completed-projects__category {
  flex-shrink: 0;
  width: min-content;
  padding: 6px 12px;
  border-radius: 10px;
  background-color: rgba(50, 74, 158, 0.0784313725);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  color: #324a9e;
}
.completed-projects__name {
  grid-row: 3;
  align-self: end;
  margin: 0 !important;
  font-family: "Roboto", "Arial", sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  color: #111111;
  text-wrap: balance;
}
.completed-projects__text {
  grid-row: 5;
  max-width: 50ch;
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  color: #737373;
  text-wrap: pretty;
}
.completed-projects__link {
  color: #324a9e;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}
.completed-projects__link:hover, .completed-projects__link:focus {
  color: #ffa800;
  text-decoration: none;
}
.completed-projects__result {
  grid-row: 7;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #e0e7f0;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #111111;
  text-wrap: pretty;
}
.completed-projects__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.completed-projects__dot {
  display: block;
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 4px;
  background-color: #eaeae8;
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}
.completed-projects__dot[aria-current=true] {
  width: 24px;
  background-color: #ff5901;
}
@media (prefers-reduced-motion: reduce) {
  .completed-projects__dot {
    transition: none;
  }
}
@media (min-width: 992px) {
  .completed-projects {
    gap: 52px;
  }
  .completed-projects__intro {
    gap: 23px;
  }
  .completed-projects__title {
    font-size: 38px;
    line-height: 50px;
  }
  .completed-projects__description {
    font-size: 18px;
    line-height: 25px;
  }
  .completed-projects__arrows {
    display: flex;
  }
  .completed-projects__list {
    grid-template-rows: auto 50px auto 24px auto minmax(32px, 1fr) auto;
    grid-auto-columns: calc((100cqw - 20px) / 2);
    column-gap: 20px;
  }
  .completed-projects__card {
    min-height: 477px;
    padding: 42px 30px;
    background-image: radial-gradient(117.4px 98.9px at -50.5px -34.5px, #e0e7f0 99.5%, transparent 100%);
  }
  .completed-projects__logo {
    width: var(--completed-projects-logo-width-desktop, auto);
  }
  .completed-projects__company {
    font-size: 18px;
    line-height: 25px;
  }
  .completed-projects__card-head {
    gap: 16px;
  }
  .completed-projects__category {
    padding: 12px 24px;
    font-size: 15px;
  }
  .completed-projects__name {
    font-size: 24px;
  }
  .completed-projects__text {
    line-height: 25px;
  }
  .completed-projects__result {
    padding-top: 24px;
    font-size: 18px;
  }
  .completed-projects__dots {
    display: none;
  }
}
