.course-block .button-block {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto;
    width: max-content;
}

.global-course-block {
    overflow: hidden;
    width: 100%;
}

.global-course-block section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    overflow: hidden;
}

.global-course-block h2 {
    margin: 0;
}

.course-block {
    padding: 25px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.course-label-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-label-block.--mobile {
    display: none;
}

.course-title-block h1 {
    font-weight: 500;
    font-size: 36px;
    color: var(--orange-text-color);
}

.course-block .category {
    display: block;
    color: var(--violet-text-color);
    text-decoration: underline;
    font-weight: 500;
    font-size: 17px;
    margin-top: 10px;
    width: max-content;
}

.course-block .description {
    color: var(--gray4-text-color);
}

.bookmark-button {
    margin-left: auto;
    border: none;
    border-radius: 5px;
    background-image: url("/local/templates/csio-dpo/svg/bookmark.svg");
    background-color: var(--violet-color);
    background-repeat: no-repeat;
    background-position: center;
}

.i-info {
    width: 15px;
    height: 15px;
    display: inline-block;
    background-image: url("/local/templates/csio-dpo/svg/info.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: rotate(180deg);
}

.show-info-hours {
    display: flex;
    justify-content: center;
    gap: 5px;
    align-items: center;
    position: relative;
}

.tooltip {
    display: flex;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: max-content;
    min-width: 240px;
    background-color: white;
    text-align: left;
    padding: 10px;
    position: absolute;
    z-index: 1;
    box-shadow: 0px 0px 4px 0px #00000040;
    font-size: 14px;
    bottom: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
}

.tooltip .tooltiptext.tooltiptext-duration {
    width: 160px;
}

@media (min-width: 781px) {
    .tooltip:hover .tooltiptext {
        visibility: visible;
    }
}

.course-row-menu {
    display: flex;
    justify-content: space-around;
}

.course-row-menu div {
    width: 100%;
    text-wrap: nowrap;
    text-align: center;
    padding: 10px 20px;
    color: var(--gray-text-color);
    border-bottom: 2px solid var(--gray-line-color);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.5s, color 0.5s, border 0.5s;
}

.course-row-menu div.active {
    background: white;
    color: black;
    border-bottom: 2px solid var(--orange-color);
    cursor: default;
}

.course-row-item {
    display: none;
    margin-top: 20px;
    background: white;
    padding: 30px;
    font-size: 16px;
    color: var(--gray4-text-color);
}

.course-row-item.course-row-item-feedback {
    background: unset;
    padding: unset;

}

.course-row-item b,
.course-row-item strong {
    color: black;
}

.course-row-item[data-menu="certificate"] div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.course-row-item[data-menu="certificate"] div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.course-row-item[data-menu="certificate"] img {
    width: 49%;
}

.course-row-item.active {
    display: block;
}

.schedule-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.schedule-block .schedule {
    display: grid;
    grid-template-areas:
            "date form teacher location price button"
            "date form-text teacher location price button";
    padding: 20px;
    background: white;
}

.schedule:not(.active) {
    display: none;
}

.schedule .date {
    grid-area: date;
}

.schedule .form {
    grid-area: form;
}

.schedule .form-text {
    grid-area: form-text;
}

.schedule .teacher {
    grid-area: teacher;
}

.schedule .location {
    grid-area: location;
}

.schedule .price {
    grid-area: price;
}

.schedule .button {
    grid-area: button;
}

.schedule .button button {
    margin-left: auto;
}

.schedule div {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 10px;
}

.schedule div span:first-child {
    color: var(--gray2-text-color);
}

.global-form-group-block {
    padding: 30px 0;
    background: white;
}

.global-form-group-block .header div:not(:first-child),
.global-form-group-block .form-row > div:not(:first-child),
.global-form-group-block .group-row > div:not(:first-child) {
    border-left: 1px solid var(--gray-line-color);
}

.global-form-group-block .form-row > div:first-child,
.global-form-group-block .group-row > div:first-child {
    text-align: left;
    padding-right: 54px;
}

.global-form-group-block .header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0 30px;
}

.global-form-group-block .header div {
    text-align: center;
    font-size: 16px;
    color: var(--gray2-text-color);
    padding: 5px 0;
}

.global-form-group-block .header div:first-child {
    padding-right: 54px;
}

.global-form-group-block .group-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-height: 0;
    padding: 0 30px;
    transition: max-height 0.5s;
    overflow: hidden;
}

.global-form-group-block .form-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0 30px;
}

.global-form-group-block .form-row svg {
    transition: transform 0.5s;
}

.global-form-group-block .form-row svg.active {
    transform: rotate(180deg);
}

.global-form-group-block .group-row.active {
    max-height: 40px;
    background: #F3F3F3;
    overflow: unset;
}

.global-form-group-block .form-row > div .mob-title,
.global-form-group-block .group-row > div .mob-title {
    display: none;
}

.global-form-group-block .form-row > div span {
    font-weight: 500;
}

.global-form-group-block .form-row > div,
.global-form-group-block .group-row > div {
    text-align: center;
    font-size: 16px;
    line-height: 20px;
    padding: 5px 0;
}

.global-form-group-block .form-row > div {
    font-weight: 500;
}

.global-form-group-block .show-group {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.global-form-group-block .show-group svg {
    width: 18px;
    height: 18px;
}

.feedback-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.feedback-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.feedback-item > div:first-child {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
}

.teachers-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.teacher-block {
    padding: 20px;
    gap: 20px;
    background: white;
    display: flex;
    flex-direction: column;
}

.teacher-header {
    display: flex;
    gap: 20px;
}

.teacher-name,
.teacher-title {
    display: flex;
    gap: 20px;
}

.teacher-name {
    width: 400px;
}

.teacher-name img {
    height: 52px;
    border-radius: 50%;
}

.teacher-name h2 {
    font-size: 22px;
    margin: 0;
}

.teacher-title {
    gap: 53px;
}

.teacher-title .teacher-title-head {
    font-weight: 500;
    margin-bottom: 6px;
}

.teacher-title .teacher-title-desc {
    color: var(--gray4-text-color);
}

.teacher-info div {
    color: black;
    font-weight: 500;
    margin-bottom: 8px;
}

.teacher-info {
    color: var(--gray4-text-color);
}

.reco-course-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.reco-course-table .course-label-block {
    position: absolute;
    top: 0;
    left: 15px;
}


.reco-course-table > div {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 40px 32px 19px 15px;
    gap: 10px;
}


.reco-course-table a.course-section {
    font-size: 17px;
    font-weight: 500;
    color: var(--violet-text-color);
    text-decoration: underline;
}

.reco-course-table a.course-name {
    font-weight: 500;
    font-size: 22px;
    color: var(--orange-text-color);
    text-decoration: none;
    min-height: 55px;
}

.reco-course-table .anons {
    color: var(--gray4-text-color);
}

.left-menu-to-page-block {
    display: none;
}

@media (max-width: 680px) {
    .course-block .button-block {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        width: 100%;
    }

    .course-block .button-block .v-button {
        grid-column: 1 / 3;
    }

    .left-menu.course-category-menu,
    .left-menu-block .create-course-block {
        display: none;
    }

    .global-course-block {
        overflow: unset;
    }

    .course-block {
        padding: 10px;
        gap: 20px;
    }

    .global-course-block h2 {
        font-size: 30px;
    }

    .course-title-block h1 {
        font-size: 30px;
    }

    .course-block .category,
    .course-block .description {
        font-size: 14px;
        line-height: 20px;
    }

    .course-label-block.--mobile {
        display: flex;
        margin-top: 20px;
    }

    .course-label-block.--desktop {
        display: none;
    }

    .course-row-item[data-menu="certificate"] img {
        width: 100%;
    }

    .schedule-block .schedule {
        grid-template-areas: "date form"
        "teacher location"
        "price form-text"
        "button button";
        gap: 17px;
        padding: 20px;
    }

    .schedule div {
        text-align: left;
        gap: 5px;
    }

    .schedule .button button {
        margin-left: 0;
    }

    .course-row-item {
        font-size: 14px;
        padding: 20px;
    }

    .course-row-menu {
        width: calc(100% + 20px);
        overflow: auto;
    }

    .global-form-group-block {
        padding: 0 10px;
    }

    .global-form-group-block .header {
        display: none;
    }

    .global-form-group-block .form-row > div,
    .global-form-group-block .group-row > div {
        font-size: 14px;
    }

    .global-form-group-block .form-row > div .mob-title,
    .global-form-group-block .group-row > div .mob-title {
        display: block;
    }

    .global-form-group-block .form-row > div:not(:first-child),
    .global-form-group-block .group-row > div:not(:first-child) {
        border-left: none;
    }

    .global-form-group-block .form-row > div:first-child,
    .global-form-group-block .group-row > div:first-child {
        padding-right: 0;
    }


    .global-form-group-block .form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0 30px;
        padding: 13px 0;
    }

    .global-form-group-block .form-row:not(:nth-last-child(2)),
    .global-form-group-block .group-row.active {
        border-bottom: 1px solid var(--gray-line-color);
    }

    .global-form-group-block .group-row {
        background: #F3F3F3;
        width: calc(100% + 20px);
        left: -10px;
        padding: 0 13px;
        position: relative;
        transition: max-height 0.5s, padding 0.5s;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 30px;
    }

    .global-form-group-block .group-row.active {
        padding-top: 10px;
        padding-bottom: 10px;
        max-height: 200px;
    }

    .show-info-hours {
        position: relative;
        justify-content: unset;
    }

    .tooltip .tooltiptext {
        min-width: 210px;
    }



    .global-form-group-block .tooltip .tooltiptext.active {
        visibility: visible;
        right: 0;
        left: unset;
        transform: unset;
    }

    .global-form-group-block .tooltip .tooltiptext.tooltiptext-duration {
        min-width: 160px;
        left: 0;
    }

    .global-form-group-block .form-row > div span,
    .global-form-group-block .group-row > div > span {
        display: block;
        color: var(--gray2-text-color);
    }

    .global-form-group-block .form-row > div,
    .global-form-group-block .group-row > div {
        text-align: left;
    }

    .teacher-header {
        flex-direction: column;
        gap: 30px;
    }

    .teacher-name {
        gap: 28px;
    }

    .teacher-name h2 {
        width: 50%;
        font-size: 18px;
    }

    .teacher-title {
        flex-direction: column;
        gap: 20px;
    }

    .teacher-title,
    .teacher-info {
        font-size: 14px;
    }

    .reco-course-table {
        grid-template-columns: repeat(1, 1fr);
    }

    .reco-course-table .anons {
        font-size: 14px;
    }

    .reco-course-table .course-label-block .course-label {
        font-size: 14px;
        height: 32px;
    }

    .left-menu-to-page-block {
        display: block;
    }

    .left-menu-to-page-block .for-whom-menu-block,
    .left-menu-to-page-block .social-menu-block {
        background: white;
    }

    .left-menu-to-page-block .create-course-block {
        width: 100%;
    }

    .left-menu-to-page-block h2 {
        font-size: 18px;
        color: var(--violet-text-color);
    }

    .button-rating-block {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}