:root {
  --grey-color: #4B4B4B;
  --grey-light-color: #999;
  --blue-color: #2B4DFF;
  --green-color: #40C700;
  --red-color: #F00;
}

body {
  font-family: 'TT Norms', sans-serif;
  font-size: 12px;

  background: #F8F8F8;
}


.container {
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  &--small{
    max-width: 705px;
  }
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  font-family: 'TT Norms', sans-serif;

  width: max-content;
  &__icon {
    width: 100%;

    &--white {
      fill: #fff;
    }

    &--small {
      height: 10px;
    }

    &--big {
      height: 30px;
    }
  }


  &__text {
    flex-shrink: 0;
  }

  &--small {
    padding: 8px;
    font-size: 13px;
    font-weight: 500;

    border-radius: 10px;
  }

  &--middle{
    padding: 8px 15px;
    font-size: 15px;
    font-weight: 500;

    border-radius: 10px;
  }

  &--big {
    padding: 15px;
    border-radius: 15px;

    font-size: 18px;
    font-weight: 500;

    height: 50px;
    @media screen and (max-width: 600px) {
      font-size: 17px;
    }
  }

  &--grey {
    color: #fff;
    background: var(--grey-color);
  }

  &--blue{
    color:#fff;
    background-color: #2B4DFF;
  }

  &--white{
    color: #2B4DFF;
    background: #fff;
  }

  &--green{
    background: #40C700;
    color:#fff;
  }

  &--mobile{
    &--full{
      @media screen and (max-width: 600px) {
        width: 100%;
      }
    }
  }
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;

  &__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.title {
  font-family: 'TT Norms', sans-serif;

  &--base {
    font-size: 13px;
    font-weight: 500;
  }

  &--small {
    font-size: 15px;
    font-weight: 500;
  }

  &--middle {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
  }

  &--biggest {
    font-size: 55px;
    font-weight: 700;
    line-height: 1;

    @media screen and (max-width: 600px) {
      font-size: 35px;
    }
  }

  &--medium {
    font-weight: 500;
  }

  &--bold{
    font-weight: 700;
  }

  &--black {
    color: #000;
  }

  &--white {
    color: #fff;
  }

  &--grey {
    color: var(--grey-color);

    &--light {
      color: var(--grey-light-color);
    }
  }

  &--green {
    color: var(--green-color);
  }

  &--blue {
    color: var(--blue-color);
  }

  &--uppercase {
    text-transform: uppercase;
  }

  &--center{
    text-align: center;
  }

  &--mobile {
    @media screen and (min-width: 601px) {
      display: none;
    }
  }
}

.text {
  font-family: "TT Norms", sans-serif;

  &--base {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 400;
    @media screen and (max-width: 600px) {
      font-size: 15px;
    }
  }

  &--big {
    font-size: 13px;
    line-height: 1;
    font-weight: 400;
  }

  &--white {
    color: #fff;
  }

  &--grey {
    color: var(--grey-color);

    &--light {
      color: var(--grey-light-color);
    }
  }
}

.burger {
  width: 27px;
  height: 20px;
  flex-shrink: 0;

  position: relative;

  &:hover {
    cursor: pointer;
  }

  &__item {
    width: 100%;
    height: 3px;
    background: #000;
    border-radius: 6px;
    position: absolute;

    &:nth-child(1) {
      top: 0;
      left: 0;

      transition: .3s top, .3s transform;

    }

    &:nth-child(2) {
      top: calc(50% - 1.5px);
      left: 0;

      transition: .3s left, .3s opacity, .5s visibility;
    }

    &:nth-child(3) {
      top: calc(100% - 3px);
      left: 0;

      transition: .3s top, .3s transform;
    }
  }

  &--white &__item {
    background: #fff;
  }

  &--active &__item {
    background: #000;

    &:nth-child(1) {
      top: 8px;
      transform: rotate(45deg);
    }

    &:nth-child(2) {
      left: -10px;
      opacity: 0;
      visibility: hidden;
    }

    &:nth-child(3) {
      top: 8px;
      transform: rotate(-45deg);
    }
  }
}

.header {
  width: 100%;
  z-index: 10;
  position: relative;
  @media screen and (min-width: 1025px) {
    display: none;
  }

  &__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;

    padding: 25px 20px 20px 20px;
  }

  &__burger {
    position: relative;
    z-index: 21;
  }

  &__nav {
    position: fixed;
    width: 100%;
    height: 100%;
    right: 0;
    top: 0;

    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    z-index: 20;
    justify-content: flex-end;
  }

  &-nav {
    display: none;

    &--active {
      display: flex;
    }

    &__wrapper {
      max-width: 265px;
      width: 100%;

      padding: 130px 0 0 0;

      background: #FFF;
      box-shadow: -5px 0px 50px 0px rgba(0, 0, 0, 0.10);
      height: 100%;
    }
  }
}

.page-wrapper {
  display: flex;
  align-items: flex-start;
  @media screen and (max-width: 1024px) {
    flex-direction: column;
  }

  &__aside {
    max-width: 180px;
    width: 100%;
    flex-shrink: 0;

    position: sticky;
    top: 0;

    @media screen and (max-width: 1024px) {
      display: none;
    }
  }

  &__back {
    position: relative;
    z-index: 4;

    &--mobile {
      @media screen and (max-width: 600px) {
        &--white {
          color: #fff;
        }
      }
    }
  }

  &__content {
    padding: 20px;
    flex-grow: 1;

    display: flex;
    flex-direction: column;

    max-width: 100%;
    width: 100%;

    @media screen and (max-width: 600px) {
      padding: 20px 15px;
    }
  }
}

.aside {
  overflow: hidden;
  background: #Fff;

  &__header {
    display: flex;
    flex-direction: column;
    gap: 20px;

    padding: 0 20px;
  }

  &__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  &__close {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    display: block;

    background: url("../images/icons/aside-close.svg") center center/contain no-repeat;
  }

  &__logo {
    width: 60px;
    height: 20px;

  }

  &__wrapper {
    display: flex;
    flex-direction: column;

    height: 100vh;

    padding: 0 0 20px 0;
  }

  &__footer, &__header {
    flex-shrink: 0;
  }

  &__content {
    padding: 20px 0;
    flex-grow: 1;

    display: flex;
    flex-direction: column;
    gap: 35px;

    overflow: hidden;
  }

  &__grid {
    overflow-x: hidden;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    gap: 35px;
  }

  &__header, &__content, &__footer {
    background: #fff;
  }

  &-block {
    &__title {
      color: #999;
      font-size: 12px;
      font-weight: 500;
    }

    &__header {
      padding: 0 20px;

      &:not(:last-child) {
        margin: 0 0 14px 0;
      }
    }
  }

  &-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    @media screen and (max-width: 1024px) {
      gap: 0;
    }

    &__link {
      display: flex;
      align-items: center;
      gap: 10px;

      font-size: 13px;
      font-weight: 500;

      padding: 6px 20px;

      transition: .3s border-radius, .3s background-color, .3s color;

      &::before {
        content: '';
        width: 15px;
        height: 15px;
        display: block;

        flex-shrink: 0;
        border-radius: 50%;
        border: 1px solid #000;

        transition: .3s border-color;
      }

      &:hover {
        color: #2B4DFF;
        &::before{
          border-color: #2B4DFF;
        }
      }

      @media screen and (max-width: 1024px) {
        background: transparent;
        padding: 17px 25px;
        border-bottom: 1px solid rgba(108, 108, 108, 0.05);
        gap: 20px;

        border-radius: 0;

        font-size: 18px;
      }
    }

    &__icon {
      width: 10px;
      height: 10px;

      fill: #000;
    }
  }
}

.file-label{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  &:hover{
    cursor: pointer;
  }
  &__input{
    display: none;
  }
  &__checkmark{
    width: 100%;
    height: 100%;

    border: 1px solid #4B4B4B;
    position: relative;
    display: block;
    border-radius: 8px;

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    &::before,&::after{
      content: '';
      position: absolute;
      width: 2px;
      height: 8px;
      display: block;

      top: calc(50% - 4px);
      left: calc(50% - 1px);

      background-color: #2B4DFF;
    }
    &::after{
      transform: rotate(90deg);
    }
    &--round{
      border-radius: 50%;
    }
    &--loaded{
      &::before,&::after{
        display: none;
      }
    }
  }
}

.page{
  &__block{
    &:not(:first-child){
      margin: 25px 0 0 0;
    }
  }
  &__header{
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
    &:not(:last-child){
      margin: 0 0 25px 0;
    }
    
    @media screen and (max-width: 600px) {
      flex-direction: column;
    }
  }
  &-form{
    &__wrapper{
      padding: 15px;
      background-color: #Fff;
      border-radius: 20px;

      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    &__footer{
      display: flex;
      align-items: center;
      justify-content: flex-end;

      margin: 55px 0 0 0;
    }
  }
  &-input{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    &--between{
      flex-direction: row;
      justify-content: space-between;
      gap: 10px;
    }
    &--end{
      justify-content: flex-end;
      align-items: flex-end;
    }
    &--link{
      position: relative;
      &::before{
        content: '/';
        position: absolute;
        color: #2B4DFF;

        font-family: 'TT Norms', sans-serif;
        font-size: 18px;
        font-weight: 500;

        left: 10px;
        bottom: 8px;
      }
    }
    &__file{
      max-width: 240px;
      width: 100%;
      height: 72px;
    }
    &__images{
      width: 100%;
      display: grid;
      grid-template-columns: repeat(auto-fit,minmax(100px,1fr));
      gap: 15px;
    }
    &__content{
      &:not(:last-child){
        margin: 0 0 15px 0;
      }

      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    &__label{
      display: block;
      &:not(:last-child){
        margin: 0 0 10px 0;
      }
      &--big{
        &:not(:last-child){
          margin: 0 0 15px 0;
        }
      }
    }
    &__item{
      height: 34px;
      width: 100%;
      border-radius: 10px;
      border: 1px solid #4B4B4B;

      padding: 15px;

      font-size: 15px;
      font-weight: 500;
      color:var(--grey-color);

      display: flex;
      justify-content: center;

      transition: .3s border-color;
      &:hover,&:focus{
        border-color: #000;
      }
      &::placeholder{
        color: #D9D9D9;
        opacity: 1;
      }

      &--textarea{
        height: 170px;
      }

      &--success{
        border-color: #40C700;
      }
      &--error{
        border-color: #F00;
      }

      &--file{
        display: none;
      }
    }
  }
  &-list{
    padding:0 15px;
    border-radius: 10px;
    border: 1px solid #4B4B4B;


    width: 100%;
    scrollbar-width: auto;
    scrollbar-color: #4B4B4B #ffffff;

    @media screen and (max-width: 600px) {
      padding: 0 10px;
    }
    &__wrapper{
      max-height: 180px;
      overflow: auto;
      /* Chrome, Edge, and Safari */
      &::-webkit-scrollbar {
        width: 2px;
        border-radius: 10px;
      }

      &::-webkit-scrollbar-track {
        background: transparent;
      }

      &::-webkit-scrollbar-thumb {
        background-color: #4B4B4B;
        border-radius: 10px;
      }
    }


    &__item{
      padding: 15px 0;
      @media screen and (max-width: 600px) {
        padding: 10px 0;
      }
      &:not(:last-child){
        border-bottom: 1px solid #D9D9D9;
      }
    }
  }
}

.radio{
  display: flex;
  align-items: center;
  gap: 15px;
  &:hover{
    cursor: pointer;
  }
  &__img{
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
  }
  &__item{
    display: none;
  }
  &__item:checked ~ &__label &__text{
    color:#4B4B4B;
  }
  &__item:checked ~ &__checkmark{
    &::before{
      background-color: #2B4DFF;
    }
  }
  &__checkmark{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid #999;

    display: flex;
    align-items: center;
    justify-content: center;
    &::before{
      content: '';
      width: 7px;
      height: 7px;
      display: block;

      border-radius: 50%;

      flex-shrink: 0;
      background-color: transparent;
      transition: .3s background-color;
    }
  }
  &__color{
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    display: block;

    border-radius: 50%;
  }
  &__label{
    display: flex;
    align-items: center;
    gap: 5px;
  }
  &__text{
    color: #999;

    font-family: 'TT Norms', sans-serif;
    font-size: 13px;
    font-weight: 500;

    transition: .3s color;
  }
}

.search-form{
  max-width: 290px;
  width: 100%;
  @media screen and (max-width: 600px) {
    max-width: 100%;
  }
  &__label{
    width: 100%;
  }
  &__input{
    width: 100%;
    height: 34px;

    border-radius: 10px;
    border: 2px solid #999;

    padding: 15px;

    font-size: 15px;
    font-weight: 500;
    color:var(--grey-color);

    transition: .3s border-color;
    &:hover,&:focus{
      border-color: var(--grey-color);
    }
    &::placeholder{
      color: #D3D3D3;
      opacity: 1;
    }
  }
}

.table{
  border-radius: 20px;
  background: #FFF;
  padding:0 15px;
  overflow: auto;

  &__wrapper{
  }
  &__img{
    width: 100%;
    height: 36px;
    object-fit: cover;
    border-radius: 5px;

    margin: 0 auto;
    &--small{
      width: 36px;
      border-radius: 50%;
    }
  }
  &__row{
    display: flex;
    align-items: stretch;
    justify-content: space-between;

    &:not(:last-child){
      .table__column{
        border-bottom: 1px solid #D9D9D9;
      }
    }
    .table__column{
      &:first-child{
        padding-left: 0;
      }
      &:last-child{
        padding-right: 0;
      }
    }

    &--title{
      position: relative;
      &:not(:last-child){
        .table__column{
          border-color: #4B4B4B;
        }
      }
    }
  }
  &__column{
    padding: 15px;
    flex-shrink: 0;

    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    &--center{
      align-items: center;
    }
    &--tiny{
      width: 35px;
    }
    &--base{
      width: 170px;
    }
    &--small{
      width: 100px;
    }
    &--full{
      flex-grow: 1;
      flex-shrink: 1;

      min-width: 250px;
    }
  }
  &__action{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    width: 100%;
  }
  &__status{
    width: 14px;
    height: 14px;
    display: block;
    flex-shrink: 0;

    border-radius: 50%;

    margin: 0 auto;
    &--active{
      background-color: #40C700;
    }
    &--disabled{
      background-color:#FF7A00;
    }
  }
  &__edit,&__remove{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;

    flex-shrink: 0;
  }
  &__edit{
    fill: #2B4DFF;
  }
  &__remove{
    fill: transparent;
    stroke: #FF0000;
  }
  &__input{
    width: 35px;
    height: 20px;
    border:1px solid transparent;

    transition: .3s border-color;
    border-radius: 5px;

    padding: 0 6px;
    &::placeholder{
      color:#D9D9D9;
    }
    &:focus,&:active{
      border-color: #2B4DFF;

    }
  }
}

.add-block{
  display: flex;
  align-items: center;
  gap: 7px;
  @media screen and (max-width: 600px) {
    flex-direction: column;
  }
  &__input{
    &--full{
      flex-grow: 1;
    }
  }
  &__color,&__button{
    @media screen and (max-width: 600px) {
      width: 100%;
    }
  }
  &__file{
    width: 34px;
    height: 34px;

    flex-shrink: 0;
    &--full{
      width: 100%;
    }
  }
}

.add-color{
  display: flex;
  align-items: center;
  gap: 7px;
  &__checkmark{
    flex-shrink: 0;
    width: 34px;
    height: 34px;

    border-radius: 50%;
    border: 1px solid #4B4B4B;
  }
}

.js-toggle-block{
  display: none;
  &.active{
    display: flex;
  }
}



.social{
  display: none;
  &--active{
    display: block;
  }
  &__img{
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
  }
  &__wrapper{
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: space-between;

    padding: 15px 0 ;

    border-top: 1px solid #D9D9D9;
    border-bottom: 1px solid #D9D9D9;
    
    @media screen and (max-width: 600px) {
      gap: 15px;
      flex-wrap: wrap;
    }
  }
  &__item{
    @media screen and (max-width: 600px) {
      width: 100%;
    }
    &--channel{
      flex-shrink: 0;
      @media screen and (max-width: 600px) {
        width: max-content;
      }
    }
  }
}