body, input, textarea, h1, h2, h3, h4, button, figure, section, header, main, div, span, footer, a {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    text-decoration: none;
}

a { 
    color: inherit; 
} 

body, html {
}
.fx {
    display: flex;
}

.fx-dir-col {
    flex-direction: column;
}

.fx-alc {
    align-items: center;
}

.fx-alfs {
    align-items: flex-start;
}

.fx-alfe {
    align-items: flex-end;
}

.fx-jcsb {
    justify-content: space-between;
}

.fx-jcsa {
    justify-content: space-around;
}

.fx-jcc {
    justify-content: center;
}

.fx-jcfe {
    justify-content: flex-end;
}

.fx-jcfs {
    justify-content: flex-start;
}

.fx-wrap {
    flex-wrap: wrap;
}

.fx-asfs {
    align-self: flex-start;
}

.fx-asc {
    align-self: center;
}

.fx-asfe {
    align-self: flex-end;
}

.fx-stretch {
    flex: 1 1 auto;
}

.fx-fixed {
    flex: 0 0 auto;
}
.ml-25 {
    margin-left: 25px;
}

.ml-5 {
    margin-left: 5px;
}

.mr-25 {
    margin-right: 25px;
}

.ml-25 {
    margin-left: 25px;
}

.ml-15 {
    margin-left: 15px;
}

.mt-15 {
    margin-top: 15px;
}

.ml-20 {
    margin-left: 20px;
}

.mr-5 {
    margin-right: 5px;
}

.ml-5 {
    margin-left: 5px;
}

.ml-3 {
    margin-left: 3px;
}

.ml-10 {
    margin-left: 10px;
}

.mr-10 {
    margin-right: 10px;
}

.mr-15 {
    margin-right: 15px;
}

.mr-20 {
    margin-right: 20px;
}

.mt-5 {
    margin-top: 5px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-25 {
    margin-top: 25px;
}

.mt-35 {
    margin-top: 35px;
}

.mt-50 {
    margin-top: 50px;
}

.mt-75 {
    margin-top: 75px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-5 {
    margin-bottom: 5px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-25 {
    margin-bottom: 25px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-35 {
    margin-bottom: 35px;
}

.mb-45 {
    margin-bottom: 45px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mr-50 {
    margin-right: 50px;
}
.button {
    display: inline-block;
    cursor: pointer;
    padding: 0 18px;
    height: 36px;
    border-radius: 8px;
    font-size: 20px;
    line-height: 36px;
    text-align: center;
    color: #fff;
    background-color: #3653db;
    background-image: none;
    white-space: nowrap;
    position: relative;
    opacity: 1;
    font-weight: 500;
}

.button:empty {
    display: none;
}

.button:hover {
    opacity: 0.5;
}

.button_very-small {
    height: 24px;
    line-height: 24px;
    padding: 0 12px;
    font-size: 13px;
}

.button_small {
    height: 28px;
    line-height: 28px;
    padding: 0 14px;
    font-size: 16px;
}

.button_mid {
    height: 36px;
    line-height: 36px;
    padding: 0 16px;
    font-size: 20px;
}

.button_large {
    height: 44px;
    line-height: 44px;
    padding: 0 21px;
    font-size: 24px;
}

.button_very-large {
    height: 64px;
    line-height: 64px;
    padding: 0 28px;
    font-size: 30px;
}

.button--active {
    color: transparent!important;
}

.button--success-finished {
    color: transparent!important;
    background-color: rgba(76, 175, 80, 0.35)!important;
}

.button--error {
    color: transparent!important;
}

.button_black {
    background-color: #202020;
    color: #fff;
}

.button_original {
    background-color: rgba(51,206,255,0.35);
    color: #000;
}

.button_action {
    background-color: #ffcb2f;
    color: #000;
}

.button_white {
    background-color: #fff;
    color: #000;
}

.button_neutral {
    background-color: #3653db;
    color: #fff;
}

.button_matte {
    background-color: #202020;
    color: #fff;
}

.button_gray {
    background-color: #e4e5e9;
    color: #000;
}

.button--disabled {
    background: #a5a5a5;
    color: #f5f7f8;
    pointer-events: none;
}

.button_bordered {
    border-radius: 99px;
}

.button_bordered:hover:after {
    border-radius: 99px;
}

.attention-button__big-star-icon {
    transform: translate(32%, 40%);
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.attention-button__big-star-icon svg {
    fill: #4b863a;
}

.attention-button {
    height: 630px;
    width: 630px;
    bottom: 0;
    position: absolute;
    right: 0;
    overflow: hidden;
    max-width: 150%;
}

.attention-button_btn {
    position: absolute;
    right: 8px;
    bottom: 31px;
    z-index: 2;
    font-size: 28px;
    height: 112px;
    padding: 0 36px;
    line-height: 64px;
}
.form--disabled {
    opacity: 0.35;
    pointer-events: none;
}

.control-group {
    margin-bottom: 40px;
}

.control__label {
    font-size: 20px;
    width: 240px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    max-width: 100%;
    padding-right: 15px;
}

.control__label label {
    text-align: left;
    color: #73798c;
}

.control-container {
    display: flex;
    padding-bottom: 25px;
    position: relative;
}

.control-container_horizontal {
    width: 30%;
}

.control-container_horizontal .control__label {
    width: 100%;
    margin-bottom: 20px;
}

@media only screen and (max-device-width: 480px) {
    .control-container {
        flex-direction: column;
    }

    .control__label {
        padding-bottom: 15px;
    }
}

.control-container_textarea::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    border-top: 1px solid #fff;
}

.control {
    outline: none;
    font-size: 20px;
    line-height: 27px;
}

.control-description {
    padding-top: 9px;
    font-size: 17px;
    padding-bottom: 20px;
    color: #000;
}

.control-description_notice {
    color: #73798c;
    font-size: 16px;
    width: 100%;
}

.control:focus {
    border-color: rgba(0,0,0,.2);
    outline: none;
}

.control__input {
    border: 1px solid rgba(0, 0, 0, .05);
    border-radius: 8px;
    padding: 6px 12px;
}

input {
    text-overflow: ellipsis;
}

input[disabled] {
    background-color: #fff;
    opacity: 0.3;
}

.input__tooltip {
    color: #73798c;
    font-size: 12px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.06), 0px 2px 4px rgba(0, 7, 123, 0.04);
    text-align: left;
    padding: 12px;
    border-radius: 4px 0px 4px 4px;
    position: fixed;
    background-color: #fff;
    z-index: 1001;
}

.control__input_s {
    width: 187px;
    font-size: 16px;
    line-height: normal;
}

.control__input_m {
    font-size: 22px;
    line-height: normal;
    min-width: 300px;
}

.control__input_4-sym {
    width: 60px;
}

.control__input_high {
    font-size: 38px;
}

.control-container--disabled {
    opacity: 0.25;
    pointer-events: none;
}

.control__data {
    display: flex;
    flex-wrap: wrap;
}

.control-container--saving-disabled .control__data > *:first-child {
    pointer-events: none;
}

.control__textarea {
    display: block;
    overflow: hidden;
    resize: none;
    max-width: 100%;
    border-bottom: 1px solid rgba(0,0,0,.05);
    padding: 10px 5px;
}

.control__textarea {
    height: 27px;
}

.control__textarea_big {
    font-size: 40px;
}

.control__textarea:focus, .control__textarea:focus-visible {
    outline: none;
    border-bottom-color: rgba(0,0,0,.2);
}

.control::-webkit-input-placeholder {
    color: rgba(0,0,0,.15);
}

.control__checkbox-container {
    display: flex;
    padding-bottom: 15px;
}

.control__checkbox {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: 0 0;
    cursor: pointer;
    width: 27px;
    height: 27px;
    opacity: 0;
    z-index: 1;
}

.control__checkbox_s {
    width: 16px;
    height: 16px;
}

.control__checkbox-label {
    display: flex;
    position: relative;
    padding-left: 15px;
}

.control__checkbox-label_s {
    font-size: 13px;
    padding-left: 6px;
    line-height: 16px;
}

.control__checkbox-label__wrapper {
    content: '';
    transition: 0.2s ease-out;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 3px;
    background-color: #fff;
    width: 27px;
    height: 27px;
    display: block;
    position: absolute;
    left: -27px;
}

.control__checkbox-label_s .control__checkbox-label__wrapper {
    width: 16px;
    height: 16px;
    left: -16px;
}

.control__checkbox-label__icon {
    width: 39px;
    height: 27px;
    display: none;
    position: absolute;
    left: -2px;
    top: 0;
}

.control__checkbox-label_s .control__checkbox-label__icon {
    height: 16px;
    width: 24px;
    top: -5px;
}

.control__checkbox:checked + .control__checkbox-label .control__checkbox-label__wrapper {
    background: #d6e1ff;
}

.control__checkbox:checked + .control__checkbox-label .control__checkbox-label__icon {
    display: block;
}

.control__rule-view {
    width: 300px;
}

.control__book-view {
    width: 300px;
    height: 420px;
}

@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px)
{
    .control-container_horizontal {
        width: 75%;
    }
}
.menu {
    z-index: 100;
}

.menu__item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 21px;
    color: #000;
}

.menu__item_section {
    position: relative;
    padding-right: 20px;
}

.menu__item_section__arrow {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.menu__item_lighted {
    background-color: #f5f7f8;
}

.menu__item.menu__item_regular:hover,
.menu__item--active {
    background: #e4e5e9;
    color: #fff;
    border-radius: 8px;
}

.menu__container {
    position: absolute;
    top: 38px;
    display: block;
}

.menu__container_m {
    width: 500px;
    height: 425px;
    padding: 0;
    overflow: hidden;
    bottom: 50px;
    max-width: 90%;
}

.menu__container_right {
    right: 0;
}

.menu__container_left {
    left: 0;
}

.menu__container_fixed {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    margin: auto;
}

.menu__container__body {
    padding: 25px 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu__item_regular {
}

.menu__item_important {
    font-weight: bold;
}

.menu__close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.menu__close polyline {
    fill: #2d4942;
}

.menu__close:hover polyline {
    fill: #33ceff;
}

.menu__item_top-menu {
    font-weight: 500;
    font-size: 13px;
    color: #fff;
    background-color: #202020;
    border-radius: 8px;
}

.menu__item_top-menu_l {
    font-size: 19px;
}

.menu__item_top-menu:hover {
    color: #a5a5a5;
}

.menu__icon {
    text-align: center;
    width: 100px;
    height: 42px;
    color: #202020;
    cursor: pointer;
}

.menu__icon svg {
    fill: #202020;
}

.menu__icon:hover, .menu__icon--active {
    color: #3653db;
}

.menu__icon:hover svg, .menu__icon--active svg {
    fill: #3653db;
}
.select {
    position: relative;
    cursor: pointer;
    padding: 5px 8px 6px .375em;
    white-space: nowrap;
}

.select__placeholder {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.select__chip {
    background: #f5f7f8;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 15px;
    margin-top: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.select__chip__remove {
    padding-top: 2px;
}

.select__chip:hover {
    background: #d6e1ff;
}

.select__chip-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    max-width: 240px;
}

.select__placeholder_can-be-hovered:hover {
    fill: #a5a5a5;
    color: #a5a5a5;
}

.select__placeholder-current {
    flex: 1 1 auto;
    overflow: hidden;
}

.select__placeholder__label {
    white-space: normal;
    text-align: left;
    display: flex;
}

.select__placeholder_active-item {
}

.select__chip .select__placeholder__label {
    font-size: 16px;
}

.select__container {
    position: relative;
}

.select__container__wrapper {
    
}

.select__container-menu {
    position: absolute;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 15px;
    padding-right: 15px;
    z-index: 102;
    width: 300px;
    border-radius: 16px;
}

.select__container-menu--search {
    padding-top: 25px;
    padding-bottom: 12px;
}

.select__container-child {
    overflow-y: auto;
    position: relative;
    margin-top: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.select__container__search {
    width: 233px;
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
}

.select__child {
    border-radius: 8px;
}

.select__child:hover .select__placeholder__label {
    opacity: 0.45;
}

.select__child__label {
    position: relative;
    display: flex;
    align-items: center;
}

.select__child__label_menu {
    padding: 8px 12px;
    cursor: pointer;
}

.select__child__label_menu--active {
    background-color: var(--accent);
    color: #fff;
    border-radius: 8px;
}

.select__child__checkbox {
    margin-right: 10px;
    display: flex;
    width: 16px;
    height: 16px;
    border: 1px solid #000;
    border-radius: 4px;
    flex: 0 0 auto;
}

.select__child__checkbox svg {
    transition: 0.2s ease-out;
    opacity: 0;
}

.select__child__label--active .select__child__checkbox svg {
    opacity: 1;
}

.select__close-icon {
    width: 14px;
    height: 14px;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.select__arrow-icon {
    width: 14px;
    height: 14px;
    display: flex;
    margin-left: 6px;
    flex: 0 0 auto;
}
upload-component {
    display: contents;
}
.table {
    display: flex;
    flex-direction: column;
}

.table-row {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
}

.table-row__cell {
    flex: 0 0 auto;
    display: flex;
    margin-right: 10px;
}

.table-row__input {
    max-width: 100%;
}

@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px)
{
    .table-row {
        flex-wrap: wrap;
    }
}
.special-line {
    position: relative;
}

.special-line__old {
    font-size: 70%;
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(-65%);
}

.special-line::after {
    position: absolute;
    top: 50%;
    right: -2px;
    left: -2px;
    margin-top: -1px;
    border-bottom: 2px solid #bb1422;
    content: "";
}
.skeleton-root .skeleton {
    max-width: 100%;
    z-index: 100;
    overflow: hidden;
    background-color: rgba(230,230,230, 0.1);
    border-radius: 6px!important;
    min-height: 24px;
    position: relative;
    height: 100%;
}

.skeleton-root .skeleton__hidden {
    display: none;
}

.skeleton-root .skeleton_m {
    min-width: 125px;
}

.skeleton-root .skeleton::after {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg, rgba(230,230,230, 0) 0, rgba(230,230,230, 0.2) 20%, rgba(230,230,230, 0.5) 60%, rgba(230,230,230, 0.75) 80%, rgba(230,230,230, 0.85) 85%, rgba(230,230,230, 0));
    animation: skeleton 2s infinite;
    content: '';
}

.skeleton-root .skeleton * {
    visibility: hidden;
    pointer-events: none;
}

@keyframes skeleton {
    100% {
        transform: translateX(100%);
    }
}
button-group input {
    display: none;
}

.button-group__button {
    height: 27px;
    color: #202020;
    position: relative;
}

.button-group__button_margin_plus-input {
    margin-left: 12px;
}

.button-group__button:hover {
    opacity: 0.6;
}

.button-group__text {
    position: relative;
    z-index: 2;
}

.button-group__title {
    cursor: pointer;
    position: relative;
    border-bottom: 1px dashed;
    display: block;
    line-height: 15px;
}

.button-group__title_m {
    font-size: 20px;
}

.button-group__title_s {
    font-size: 15px;
}

.button-group__title-wrapper {
    height: 100%;
    z-index: 2;
    position: relative;
}

.button-group__title-wrapper_m {
    margin-left: 15px;
    margin-right: 15px;
}

.button-group__title-wrapper_s {
    margin-left: 8px;
    margin-right: 8px;
}

.button-group__button:first-child {
    margin-left: -15px;
}

.button-group__button {
}

.button-group__button_s {

}

.button-group__button input:checked+label {
    background-color: rgba(43,202,125,0.65);
    z-index: 1;
}

.button-group__button--disabled input+label {
    pointer-events: none;
}

.button-group__button input+label {
    cursor: pointer;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    left: 0;
    top: 0;
}

.button-group__button_alt {
    border: 1px solid #f5f7f8;
    border-radius: 6px;
    color: #000;
    padding-top: 15px;
    padding-left: 30px;
    padding-right: 15px;
    padding-bottom: 15px;
    margin-left: 0;
    margin-right: 15px;
    height: auto;
    min-height: 85px;
}

.button-group__button_alt .button-group__title {
    border-bottom: transparent;
    line-height: normal;
}

.button-group__button_alt:first-child {
    margin-left: 0;
}

.button-group__container {
    display: flex;
    flex-wrap: wrap;
}

.control-description_button-group {
    font-size: 15px;
    z-index: 2;
    position: relative;
}

.button-group__button_alt__radio {
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 20px;
    height: 20px;
    z-index: 2;
}

.button-group__button_alt__radio radio-icon, .button-group__button_alt__radio radio-checked-icon {
    display: none;
}

.button-group__button_alt radio-icon {
    display: block;
}

.button-group__button_alt input:checked+label+.button-group__button_alt__radio radio-icon {
    display: none;
}

.button-group__button_alt input:checked+label+.button-group__button_alt__radio radio-checked-icon {
    display: block;
}

.button-group__button_alt .control-description_button-group {
    color: #73798c;
    padding-bottom: 0;
}

.button-group__button--disabled {
    color: #a5a5a5;
    border-color: #a5a5a5;
}

.button-group__button input+label {
    background-color: rgba(43,202,125,0.05);
}

@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px)
{
    .button-group__button {
        margin-bottom: 8px;
        padding-bottom: 4px;
        display: flex;
        width: 100%;
    }

    .button-group__button:first-child {
        margin-left: 0;
    }

    .button-group__title {
        margin-right: 0;
    }
}

.button-group_capitalize .button-group__title::first-letter {
    text-transform: uppercase;
}

.button-group__button_plus-input {
    color: #fff;
}

.button-group__button_plus-input.button-group__button:first-child {
    margin-left: 0;
}

.button-group__button_plus-input .button-group__title {
    border-bottom: 1px transparent;
}

.button-group__button_plus-input input:checked+label {
    background-color: #000;
}

.button-group__button_plus-input:not(.button-group__button--checked) {
    color: #000;
}

.button-group__button_plus-input.button-group__button--disabled {
    opacity: 0.2;
}

.button-group__button_plus-input:not(.button-group__button--checked) input+label {
    background-color: rgba(0,0,0,0.12);
}

.button-group__button--checked dynamic-template svg *:not([fill]) {
    fill: #fff;
}
.chat-message-tail {
  width: 50px;
  height: 35px;
  bottom: 0;
  position: absolute;
  display: flex;
  z-index: 0;
}

.chat-message-tail_left {
  left: -7px;
}

.chat-message-tail_right {
  right: -7px;
}
.drag__floating-element {
    opacity: 0;
    transform: translateY(-100%);
}

.drag__floating-element--active {
    transition: transform 250ms linear;
    opacity: 1;
    transform: translateY(0%);
}
.shadow {
    position: fixed;
    z-index: 2;
    background-color: #fff;
    padding: 32px 16px;
    right: 0;
    left: 0;
    margin: auto;
    width: 300px;
    border-radius: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.sort__arrow {
  opacity: 0.5;
}

.sort__arrow--active {
  opacity: 1;
}
.circle__container {
  width: 32px;
  height: 32px;
}

.circle__canvas {
  width: 100%;
  height: 100%;
}

.circle__numbers {
  font-size: 10px;
  height: 12px;
  padding-top: 1px;
  letter-spacing: 1px;
}
:root {
  --bg: #f5f5f5;
  --bg-alt: #ffffff;
  --accent: #e30613;
  --accent-soft: #ffe6e8;
  --text-main: #222222;
  --text-muted: #777777;
  --border: #dedede;
  --radius-xl: 14px;
  --radius-lg: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.4;
}

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

/* LAYOUT (FLEX) */

.layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.sidebar {
  flex: 0 0 260px;
}

/* SIDEBAR */

.sidebar {
  background: #ffffff;
  border-right: 1px solid var(--border);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
}

.logo-mark {
  width: 168px;
  height: 28px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background-image: url("/assets/img/logo.svg");
  background-size: cover;
}

.copyrights {
  width: 24px;
  height: 24px;
  background-image: url("/assets/img/900K.svg");
  background-size: cover;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-button {
  border: none;
  background: transparent;
  text-align: left;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-main);
  transition: background 0.12s ease, color 0.12s ease;
}

.nav-button span:first-child {
  text-transform: none;
}

.nav-button small {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: 10px;
}

.nav-button:hover {
  background: #f0f0f0;
}

.nav-button.active {
  background: var(--accent);
  color: #ffffff;
}

.nav-button.active small {
  color: #ffe6e8;
}

.sidebar-footer {
  margin-top: auto;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 4px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

/* MAIN */

main {
  flex: 1 1 auto;
  min-width: 0; /* критично для адаптива */
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.topbar-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.topbar-title h1 {
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.topbar-title span {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 460px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-size: 13px;
  background: #ffffff;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  opacity: 1;
  transition: background 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
  position: relative;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
}

.btn:hover {
  border-color: #bbbbbb;
  background: #f5f5f5;
}

.btn-primary:hover {
  background: #c90511;
  border-color: #c90511;
}

.btn--disabled {
  opacity: 0.2;
}

.search-input {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 8px 12px;
  font-size: 13px;
  min-width: 220px;
  background: #ffffff;
}

/* SECTIONS COMMON (FLEX) */

.screen {
  display: flex;
  gap: 20px;
  min-width: 0;
}

/* two columns on desktop, stack on mobile */
.screen--2col {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  min-width: 0;
}

/* assuming .screen--2col имеет 2 прямых дочерних блока: left + right */
.screen--2col > :first-child {
  flex: 2.1 1 0;
  min-width: 0;
}

.screen--2col > :last-child {
  flex: 1.2 1 260px;
  min-width: 260px;
}

.screen--full {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.card,
.menu {
  background: var(--bg-alt);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 18px 18px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.card-header h2 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.card-header span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.badge {
  border-radius: 999px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.badge-red {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* metrics row on flex wrap */
.metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.metric {
  flex: 1 1 120px;
  min-width: 120px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.metric-value {
  font-size: 18px;
  font-weight: 600;
}

.metric-hint {
  font-size: 11px;
  color: var(--text-muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 7px 4px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

tr:last-child td {
  border-bottom: none;
}

.tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.price {
  font-size: 15px;
  font-family: monospace;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.item-title {
  font-size: 14px;
  font-weight: 500;
}

.item-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.avatar-stack {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.avatar--accent {
  background: var(--accent);
  color: #ffffff;
}

.nft-link {
  border-radius: 5px;
  color: var(--text-main);
  font-size: 10px;
  height: 22px;
  word-break: break-all;
  display: flex;
  text-align: center;
  padding: 3px;
  overflow: hidden;
  letter-spacing: 1px;
  background-color: var(--bg-alt);
  margin-bottom: 6px;
  display: inline-flex;
}

.pill-small {
  font-size: 10px;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* FORMS (FLEX) */

.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  flex: 1 1 160px;
  min-width: 160px;
}

.field_width-x2 {
  flex: 2 1 320px;
}

.field label {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea,
.field select-component {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 8px 9px;
  font-size: 13px;
  background: #ffffff;
  resize: vertical;
  min-height: 34px;
  min-width: 0;
}

.field input[type="file"] {
  padding: 6px 9px;
}

.field-note {
  font-size: 11px;
  color: var(--text-muted);
}

.form_text {
  padding-top: 8px;
  padding-left: 8px;
}

.checkmark-icon-button {
  width: 47px;
  height: 47px;
  display: flex;
  margin-right: 10px;
  flex: 0 0 auto;
}

.checkmark-icon-button svg *:not([fill]) {
  fill: #2bca7d;
}

/* GRID UTILITIES (FLEX) */

.grid-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.designer-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.designer-card_quarter {
  width: calc(25% - 12px);
}

.designer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.designer-header__preview__img {
  width: 32px;
  height: 32px;
}

.designer-preview {
  display: flex;
  justify-content: center;
}

.designer-preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  max-width: 160px;
}

.rating {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-muted);
}

.rating strong {
  color: var(--accent);
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* MODAL */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal {
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 20px 20px 16px;
  width: min(520px, calc(100vw - 32px));
  max-width: 80vw;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.modal p {
  font-size: 13px;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.d-none {
  display: none;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.no-wrap {
  white-space: nowrap;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex: 0 0 auto;
    flex-direction: row;
    gap: 18px;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 16px 12px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .nav {
    flex-direction: row;
    gap: 6px;
  }

  .sidebar-footer {
    display: none;
  }

  main {
    padding: 16px;
  }

  .topbar-title h1 {
    font-size: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    width: 100%;
  }

  .search-input {
    min-width: 0;
    width: 100%;
  }

  .screen--2col {
    flex-direction: column;
  }

  .screen--2col > :last-child {
    min-width: 0;
    width: 100%;
  }

  .designer-card {
    flex-basis: 100%;
  }
}

/* cyrillic */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/font/roboto/roboto-cyr.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/font/roboto/roboto-lat.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
body, input, textarea, h1, h2, h3, button, figure, section, header, main, div, span, footer {
    font-family: Roboto, sans-serif;
}

.f-13 {
    font-size: 13px;
}
.icon_10 {
    display: flex;
    width: 10px;
    height: 10px;
}

.icon_12 {
    display: flex;
    width: 12px;
    height: 12px;
}

.icon_16 {
    display: flex;
    width: 16px;
    height: 16px;
}

.icon_20 {
    display: flex;
    width: 20px;
    height: 20px;
}

.icon_24 {
    display: flex;
    width: 24px;
    height: 24px;
}

.icon_28 {
    display: flex;
    width: 28px;
    height: 28px;
}

.icon_32 {
    display: flex;
    width: 32px;
    height: 32px;
}

.icon_40 {
    display: flex;
    width: 40px;
    height: 40px;
}

.icon_48 {
    display: flex;
    width: 48px;
    height: 48px;
}

.icon_64 {
    display: flex;
    width: 64px;
    height: 64px;
}

.icon_80 {
    display: flex;
    width: 80px;
    height: 80px;
}

.icon_96 {
    display: flex;
    width: 96px;
    height: 96px;
}

.icon_128 {
    display: flex;
    width: 128px;
    height: 128px;
}

.icon_black svg *:not([fill]) {
    fill: #202020;
}

.icon_white svg *:not([fill]) {
    fill: #fff;
}

.icon_accent svg *:not([fill]) {
    fill: var(--accent)
}
header-component {
    display: contents;
}
sidebar-component {
    display: contents;
}
author-component {
    display: contents;
}
client-component {
    display: contents;
}
challenge-component {
    display: contents;
}
top-component {
    display: contents;
}
hire-component {
    display: contents;
}