/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-dre6g161sr] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    height: 100dvh;
}

main[b-dre6g161sr] {
    flex: 1;
    min-height: 100dvh;
    height: auto;
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.top-row[b-dre6g161sr] {
    background-image: linear-gradient(90deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    border-bottom: 1px solid #d6d5d5;
    justify-content: start;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-dre6g161sr]  a, .top-row[b-dre6g161sr]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-dre6g161sr]  a:hover, .top-row[b-dre6g161sr]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-dre6g161sr]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-dre6g161sr] {
        justify-content: space-between;
    }

    .top-row[b-dre6g161sr]  a, .top-row[b-dre6g161sr]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-dre6g161sr] {
        flex-direction: row;
    }

    .sidebar[b-dre6g161sr] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-dre6g161sr] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-dre6g161sr]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-dre6g161sr], article[b-dre6g161sr] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-dre6g161sr] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-dre6g161sr] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navmenu[b-a20dd4exvq] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100vw;
    height: min-content;
    max-height: 100%;
    position: sticky;
    margin-right: 1rem;
    align-self: stretch;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.navtitle[b-a20dd4exvq] {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    height: 100%;
    max-height: 100%;
    width: 100%;
    font-size: 2em;
    font-weight: 600;

    .navbar {
        align-self: center;
        background-color: rgba(0,0,0,0.4);
        align-content: center;
        justify-content: center;
        width: 100%;
        font-size: inherit;

        .navbar-brand {
            text-anchor: middle;
            text-align: center;
            font-size: inherit;
            text-wrap: pretty;
            text-wrap-mode: wrap;
        }
    }

    .theme-switch-button[b-a20dd4exvq] {
        font-size: inherit;
        margin-right: 1rem;
        margin-left: 1rem;
        justify-self: center;
        align-self: center;
        height: min-content;
        object-fit: contain;
    }
}

.nav-scrollable[b-a20dd4exvq] {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-self: center;
    align-content: center;
    align-items: center;
    justify-self: stretch;
    justify-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-top: 0.5rem;

    .nav-item {
        margin-left: 0rem !important;
        width: min-content;
        height: min-content;

        .nav-link {
            font-size: 2rem;
            margin: 0.1rem 0.4rem 0.1rem 0rem;
            align-self: center;
        }
    }
}

.search[b-a20dd4exvq] {
    display: grid;
    align-self: center;
    align-content: stretch;
    margin-top: 0.5rem;
    font-size: 2rem;

    .search-input {
        height: min-content;
        border-radius: 0.5rem;
        font-size: inherit;
        width: min-content;
    }

    .search-button[b-a20dd4exvq] {
        align-self: center;
        align-content: center;
        height: min-content;
        margin: 0em !important;
        border-radius: 0.5rem;
        font-size: inherit;
    }
}

.navbar-toggler[b-a20dd4exvq] {
    appearance: push-button;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-a20dd4exvq] {
    background-color: rgba(255, 255, 255, 0.5);
}

.bi[b-a20dd4exvq] {
    display: inline-block;
    position: relative;
    aspect-ratio: 1 / 1;
    width: 1.75rem;
    height: auto;
    margin-right: 0.75rem;
    margin-left: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill[b-a20dd4exvq] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill[b-a20dd4exvq] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested[b-a20dd4exvq] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-a20dd4exvq] {
    font-size: 0.9rem;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

    .nav-item[b-a20dd4exvq]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-a20dd4exvq]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-a20dd4exvq]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}
/* /Components/Pages/CategoryView.razor.rz.scp.css */
/* CSS for CategoryView component */
.title[b-8u8ifgz1n0] {
    display: flex;

    h2 {
        font-size: 2em;
    }

    img[b-8u8ifgz1n0] {
        aspect-ratio: 1 / 1;
        height: 2em;
        width: auto;
        text-wrap: pretty;
        border-radius: 50%;
        margin-right: 1em;
        text-overflow: ellipsis;
    }
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* CSS for Home component */
.category-view[b-u7dzwnl3sv] {
    min-width: 100dvw;
    width: 100dvw;
    max-width: 100dvw;
    height: min-content;
}
/* /Components/Pages/ServiceView.razor.rz.scp.css */
/* CSS for ServiceView component */
.service-title[b-4im3wg7c9d]
{
    text-align: center;
    font-size: 2em;
}
.service-image[b-4im3wg7c9d] {
    display: flex;
    align-content: center;
    justify-content: center;
    align-self: center;
    justify-self: center;
    text-align: center;
    font-size: 1em;
    aspect-ratio: 1 / 1;
    width: fit-content;
    height: auto;
    border-radius: 50%;
}
.service-tags[b-4im3wg7c9d] {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.5rem;
    border-radius: 0.5rem;
    align-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 0.5lh 0.1rem 0.2lh 0.1rem;
    padding: 0 0.5rem 0 0.5rem;
}
.service-tag[b-4im3wg7c9d] {
    width: fit-content;
    height: fit-content;
    background-color: rgba(96, 0, 96, 0.9);
    color: rgb(255, 106, 0);
    outline-color: rgba(0, 0, 192, 1);
    outline-width: 0.1rem;
    padding: 0.1lh 0.5rem 0.1lh 0.5rem;
    margin: 0.2lh 0.1rem 0.2lh 0.1rem;
    border-radius: 0.5rem;
}
.service-description[b-4im3wg7c9d] {
    font-size: 1.5rem;
    background-color: rgba(0, 0, 0, 0.4);
    margin: 1lh 0.1rem 0.5lh 0.1rem;
    padding: 0 0.5rem 0 0.5rem;
    border-radius: 0.5rem;
}
/* /Components/Templates/HorizontalElement.razor.rz.scp.css */
.horizontal-element[b-u00wn2qgy4] {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 30% 70%;
    grid-template-rows: auto;
    width: calc(90dvw - 48px);
    margin: 0 24px;
    gap: 0;
    background-color: var(--button-background-color);
    border-radius: 2rem;
    min-height: 0;
    font-size: 2em;

    .horizontal-element-img-wrap {
        grid-column: 1;
        grid-row: 1 / -1;
        min-height: 0;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        overflow: hidden;
        font-size: inherit;

        .horizontal-element-img {
            max-width: 80%;
            max-height: 80%;
            aspect-ratio: 1 / 1;
            object-fit: contain;
            object-position: center;
            color: var(--text-color);
            border-radius: 50%;
            display: block;
            font-size: inherit;
        }
    }

    .horizontal-element-text-wrap[b-u00wn2qgy4] {
        grid-column: 2;
        grid-row: 1 / -1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        justify-self: stretch;
        padding: clamp(8px, 2vw, 16px);
        min-height: 0;
        min-width: 0;
        overflow-wrap: anywhere;
        word-wrap: break-word;
        font-size: inherit;

        .horizontal-element-header {
            margin: 0 0 1rem 1rem;
            color: var(--text-color);
            font-size: clamp(1rem, 2.5vw, 1.5rem);
            line-height: 1.3;
            overflow-wrap: anywhere;
            min-height: 0;
            font-size: 2rem;
            text-align: start;
        }

        .horizontal-element-text[b-u00wn2qgy4] {
            margin: 0;
            padding: 0.75rem;
            border-radius: 1rem;
            color: var(--text-color);
            background-color: var(--button-accent-color);
            line-height: 1.5;
            overflow-wrap: anywhere;
            min-height: 0;
            font-size: 1.5rem;
            text-align: start;
        }
    }
}
/* /Components/Templates/Slider.razor.rz.scp.css */
/* Контейнер слайдера */
.slides[b-wz7ligsix6] {
    display: flex;
    gap: 2vw; /* Расстояние между кнопками (вместо margin у каждой) */
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100vw;
    max-height: 50vh;
    padding: 1vh 1vw;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.slide-btn[b-wz7ligsix6] {
    width: 25vw;
    aspect-ratio: 1 / 1;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 1.5vw;
    box-sizing: border-box;
    /* Сброс стилей ссылки */
    text-decoration: none;
    color: var(--text-color);
}

/* Картинка: максимальный размер, но не шире текста */
.slide-img[b-wz7ligsix6] {
    width: 100%;
    max-width: 22vw; /* Не более четверти ширины экрана */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%; /* Круглая картинка */
    flex-grow: 1; /* Занимает всё доступное пространство по высоте */
}

/* Текст: ровно 2 строки, макс. ширина 25vw, обрезка с троеточием */
.slide-text[b-wz7ligsix6] {
    max-width: 22vw; /* Строгое ограничение ширины текста */
    width: 100%;
    margin: 0;
    text-align: center;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text-color);
    /* Магия многострочного обрезания с троеточием */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ровно две строки */
    -webkit-box-orient: vertical;
    overflow: hidden; /* Обязательно hidden для работы text-overflow */
    text-overflow: ellipsis; /* Троеточие в конце */
}
