:root {
  --bg: 55, 40, 40;
  --prime: 222, 63, 58;
  --trans: 0.3s ease-out 0s;
  --transslow: 0.5s ease-out 0s;
}

.sections__sidebar {
  background: rgba(var(--bg));
  position: sticky;
  top: 83px;
  left: 0;
  z-index: 1;
  transition: top var(--trans);
}

.sections__sw {
  padding: 40px 0 10px;
}

.sections__swname {
  display: none;
}

.sections__swlist {
  position: relative;
  padding: 0;
  display: flex;
  flex-flow: row nowrap;
  overflow-x: auto;
  margin: 0 -12px;
  padding: 0 12px 10px;
  list-style: none;
  --size: 16px;
  --box: 24px;
}

.sections__swlist:before {
  position: absolute;
  right: 24px;
  top: 14px;
}

.sections__switem {
  list-style: none;
}

.sections__switemtext {
  display: inline-block;
  white-space: nowrap;
  font-size: 16px;
  line-height: 22px;
  padding: 4px 12px;
  transition: background-color var(--trans);
  border-radius: 15px;
}

.active > .sections__switemtext {
  background-color: rgba(255, 255, 255, 0.1215686275);
}

.sections__swlist.active .sections__switem {
  display: block;
}

.sections__mo {
  background-color: rgba(var(--bg));
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  padding: 10px 0;
  text-align: center;
}

.sections__mobox {
  background-color: rgba(222, 63, 58, 0.2);
  border-radius: 27px;
  width: calc(100% - 24px);
  max-width: 400px;
  padding: 10px 15px;
  display: inline-flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  --box: 34px;
  --size: 29px;
}

.sections__list {
  position: relative;
  display: flex;
  flex-flow: column nowrap;
  gap: 50px;
}

.sections__section {
  position: relative;
}

.sections__sectionname {
  text-transform: uppercase;
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 29px;
  text-align: center;
}

.sections__grid {
  display: flex;
  flex-flow: row wrap;
  gap: 20px;
  max-width: 295px;
  margin: 0 auto;
}

.sections__grid .card {
  width: 295px;
}

body:has(.sections__mo) {
  padding: 0 0 74px;
}

@media (min-width: 768px) {
  .sections__sidebar {
    top: 182px;
  }

  .sections__sw {
    padding: 20px 0 10px;
  }

  .sections__swlist {
    flex-flow: row wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
  }

  .sections__swlist:before {
    display: none !important;
  }

  .sections__grid {
    max-width: 610px;
  }
}

@media (min-width: 1024px) {
  .sections__inner {
    display: flex;
    flex-flow: row nowrap;
    gap: 20px;
  }

  .sections__sidebar {
    position: static;
    flex: 0 0 266px;
    padding: 0;
  }

  .sections__sw {
    position: sticky;
    top: 170px;
    border: 1px solid white;
    border-radius: 44px;
    padding: 20px;
  }

  .sections__swname {
    display: block;
    width: 172px;
    text-align: center;
    font-size: 40px;
    line-height: 47px;
    margin: 0 0 40px;
  }

  .sections__swlist {
    flex-flow: column nowrap;
    justify-content: start;
  }

  .sections__switemtext {
    padding: 12px 24px;
    border-radius: 30px;
    width: 100%;
  }

  .sections__mo {
    text-align: left;
    position: sticky;
    left: 0;
    top: 170px;
    padding: 0 0 20px;
  }

  .sections__list {
    gap: 20px;
  }

  .sections__section {
    padding: 20px 0 0;
  }

  .sections__sectionname {
    text-align: left;
  }

  .sections__grid {
    max-width: unset;
  }

  body:has(.sections__mo) {
    padding: 0;
  }
}

@media (min-width: 1280px) {
  .sections__grid .card {
    width: calc((100% - 40px) / 3);
  }
}

@media (min-width: 1660px) {
  .sections__sidebar {
    flex: 0 0 400px;
  }

  .sections__grid .card {
    width: calc((100% - 60px) / 4);
  }
}