@charset "UTF-8";

body {
        font-size: 100%;
    line-height: 1.5;
    font-family: sans-serif;
    background: #2c2c2f;
    color: #595656;
    margin: 0px;  
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE/Edge */
  user-select: none; /* Стандартный синтаксис */
}

* {
    box-sizing: border-box;
}

.any-specialist {
    display: flex;
    gap: 15px;
    flex-direction: row;
    align-items: center;
   background-color: #44484c;
    padding: 10px;
    border-radius: 15px;    
}

.any-specialist > div {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #dbdddf;
    padding: 10px;
}

.wrap_1 {
    gap: 10px;
    display: flex;
    flex-direction: row;
    /* align-content: center; */
    justify-content: center;
    flex-wrap: nowrap;
}
.wrap_1 + span {
    color: #fffefe;
}
.profile {
    display: flex;
    flex-direction: column;
    width: 65%;
}

span.review:before {
    content: "\f005";
    font-family: "Font Awesome 6 Free";
}

.star-rating span {
  font-size: 1rem;
  /* position: absolute; */
  /* width: 10rem; */
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #ffb400;            /* жёлтые заполненные */
  /* width: calc(var(--rating) * 20%); */   /* 20% = одна звезда */
}

.avatar {
    border-radius: 50%;
    background-size: contain;
    background-position: center;
    width: 60px;
    height: 60px;
    background-repeat:no-repeat;
    /* background-image: url("../res/uly.jpg"); */
}

.comment {
    width: 24px;
    height: 24px;
    color: white;
}

span.range {
    color: #dee0e3;
}

.star-rating span + span {
    color: #8f8a8a;
}

.master-schedule {
    display: flex;
    flex-direction: row;
    gap: 10px;
}
.master-schedule > div {
    color: #141414;
    font-weight: 500;
    padding: 10px;
    background-color: #dbdddf;
    border-radius: 10px
}

div#page-master {
    top: 70px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 5px;
    /* overflow: auto; */
}
div#wrap-specialist {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* 100dvh — учитывает реальную видимую область на мобильных (URL-бар);
       padding-bottom — чтобы последний .master-schedule не уходил под фиксированные вкладки */
    max-height: calc(100dvh - 160px);
    overflow: auto;
    padding-bottom: calc(var(--tabs-h, 60px) + 16px);
    /* flex: 1 1 auto; */
    /* min-height: 0px; */
}
span.name {
    font-size: 1.1em;
    color: white;
}

.specialist {
    background-color: #44484c;
    padding: 10px;
    border-radius: 15px;
}

/* выделенный элемент */
.specialist.selected {
    background-color: #bbcfe1;
    padding: 10px;
    border-radius: 15px;
}

.specialist.selected .wrap_1 + span {
    color: #3a3838;
}

.specialist.selected span.name {
    font-size: 1.1em;
    color: #272520;
}

.specialist.selected span.range {
    color: #2b2b2c;
}

.specialist.selected .star-rating span + span {
    color: #555555;
}

.master-schedule .selected {
    font-weight: 600;
    background-color:#daac29;
}

@media (min-width: 768px) {
    div#wrap-specialist {
        display: grid;
        /* авто-подбор колонок по мин. ширине 345px: при контейнере ≤720px — максимум 2 колонки,
           карточка помещается целиком, горизонтального скролла нет */
        grid-template-columns: repeat(auto-fit, minmax(345px, 1fr));
        gap: 12px;
        /* высокий список прокручивается вертикально, а не выходит за пределы по горизонтали */
        overflow-x: hidden;
        overflow-y: auto;
        max-height: calc(100dvh - 160px);
    }
    div#page-master {
        padding: 16px;
    }
    div.any-specialist.specialist {
        max-height: 50px;
    }
    .specialist {
        height: 100%;
    }
}



