/* Подключаем шрифт (Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Fira+Sans+Extra+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Condensed&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap');

:root {
    --secondary-bg: #222;
    --third-bg: #000;
    --font-primary: 'Ubuntu', sans-serif;

    --primary-color: #ff0000;

    --accent-blue: #007bff;
    --accent-green: #28a745;
    --accent-yellow: #ffc107;
    --accent-red: #dc3545;
    --accent-purple: #6f42c1;
    --accent-muted: #666;

    --accent-orange: #ff6600;

    --test-color: #222;

}

/* чтобы курсор всегда был на ссылке, а не на вложенных тегах */
svg, path, polyline, rect {
    pointer-events: none;
}

html, body, h1, h2, h3, h4, h5 ,h6, p, a, li {
    font-family: 'Play', sans-serif;
    font-style: normal;
}
html, body, p, a, li {
    font-size: 16px;
    font-weight: 400;
}
h1, h2, h3, h4, h5 ,h6 {
    font-weight: 500;
}

/*html {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    background: #fff;
    color: #111;
}*/

body {
    background-color: rgba(0,0,0,0.05) !important;
    background-image: url('../img/bg-pattern.png') !important;
    /*background-attachment: fixed;
    background-size: cover;*/
}


.uk-button{
    text-transform: none;
}

/*-- NAVBAR --*/
.uk-navbar-container.uk-navbar-transparent {
    /*background: rgba(0,0,0,0.3);*/
    backdrop-filter: blur(10px);
    background-color: var(--secondary-bg)/*rgba(38, 56, 67, 0.5)*/;
}
.uk-navbar-container.uk-navbar-sticky {
    backdrop-filter: blur(10px);
    background-color: var(--secondary-bg)/*rgba(0,0,0,0.3)*/;
}
.uk-navbar-item, .uk-navbar-nav>li>a, .uk-navbar-toggle {
    font-family: 'Play', sans-serif;
    min-height: 70px;
    /*font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;*/
}
.uk-logo {
    color: #fff;
}

/*
 * Nav items
 */
.uk-sticky-fixed .uk-navbar-sticky .uk-navbar-nav > li > a,
.uk-navbar-nav > li > a {
    /*color: #000;*/
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition-property: color, background-color;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 2px;
    transition: background-size .3s; /* 0.1s ease-in-out; */
}

/*
 * Hover
 * Apply hover style also to focus state and if dropdown is opened
 */
.uk-navbar-container.uk-navbar-transparent .uk-navbar-nav > li:hover > a,
.uk-navbar-container.uk-navbar-transparent .uk-navbar-nav > li > a:focus,
.uk-navbar-container.uk-navbar-transparent .uk-navbar-nav > li > a.uk-open,
.uk-sticky-fixed .uk-navbar-sticky .uk-navbar-nav > li:hover > a,
.uk-sticky-fixed .uk-navbar-sticky .uk-navbar-nav > li > a:focus,
.uk-sticky-fixed .uk-navbar-sticky .uk-navbar-nav > li > a.uk-open,
.uk-navbar-nav > li:hover > a,
.uk-navbar-nav > li > a:focus,
.uk-navbar-nav > li > a.uk-open {
    color: var(--primary-color);
    outline: none;
    background-size: 100% 3px;
}
/* OnClick */
.uk-navbar-nav > li > a:active {
    color: var(--primary-color);
}
/* Active */
.uk-navbar-nav > li.uk-active > a {
    /*color: rgba(224,67,27,1);*/
    color: var(--primary-color);
}

/*-- Center UIkit modal, alert, confirm, prompt globally --*/
.uk-modal-dialog {
    margin-top: auto !important;
    margin-bottom: auto !important;
}
.uk-modal.uk-open {
    display: flex !important;
    align-items: center !important;
}
.uk-modal-header, .uk-modal-body, .uk-modal-footer {
    padding: 20px 20px;
}

/*-- SLIDESHOW TEXT --*/
.uk-slideshow-items h1, .uk-slideshow-items p {
    color: #fff !important;
    text-shadow: 4px 4px 6px #000;
}

/*************/
/*** CARDS ***/
/*************/
/*.tm-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}*/

.tm-card {
    /*background-color: white;*/
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    /*margin-bottom: 30px;*/
    overflow: hidden;
}
.tm-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
    /*padding: 10px 15px;*/
}
.tm-card-header .uk-button-default {
    background-color: #f4f9fe;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    /*padding: 6px 12px;*/
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    /*gap: 6px;*/
    text-transform: none;
    transition: all 0.2s;
}
.tm-card-header {
    padding: 15px 20px;
}
.tm-card-footer {
    padding: 0.3rem !important;
    border-top: 0 solid transparent !important;
}


.uk-heading-medium {
    color: #efefef;
    /* основной метод (Chrome, Edge, Safari и многие мобильные) */
    -webkit-text-stroke: 1px #ddd;
    /* запасной вариант для браузеров без stroke */
    /*text-shadow:
        2px 2px 0 #000,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000;*/
}

.uk-card-title {
    font-size: 1.2rem;
    line-height: 1.4;
}


/*-- HEADERS --*/
h2.tm-header {
    /*font-size: 32px;*/
    color: #111;
    text-transform: none/*uppercase*/;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}
h2.tm-header::before {
    content: '';
    position: absolute;
    display: block;
    width: 180px;
    height: 1px;
    background: #ddd;
    bottom: 1px;
    left: calc(50% - 90px);
}
h2.tm-header::after {
    content: '';
    position: absolute;
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    bottom: 0;
    left: calc(50% - 40px);
}


h2.tm-header-1 {
    font-size: 32px;
    color: #111;
    text-transform: none; /*uppercase;*/
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}
h2.tm-header-1::before {
    content: '';
    position: absolute;
    display: block;
    width: 120px;
    height: 4px;
    background: var(--primary-color);
    bottom: 1px;
    left: calc(50% - 60px);
}
h3.tm-header-1 {
    font-size: 22px;
    color: #111;
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}
h3.tm-header-1::before {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    bottom: 1px;
    left: calc(50% - 30px);
}

h2.tm-header-2 {
    font-size: 32px;
    /*color: #111;*/
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}
h2.tm-header-2::before {
    content: '';
    position: absolute;
    display: block;
    width: 120px;
    height: 2px;
    background: #ddd;
    bottom: 1px;
    left: calc(50% - 60px);
}
h2.tm-header-2::after {
    content: '';
    position: absolute;
    display: block;
    width: 40px;
    height: 4px;
    background: var(--primary-color);
    bottom: 0;
    left: calc(50% - 20px);
}

.tm-header-3 {
    /*font-family: 'Raleway', sans-serif;
    font-size: 1em;
    font-weight: 400;
    text-transform: uppercase;
    color: #95c11f !important;*/
    position: relative;
}
.tm-header-3::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    border-bottom: 3px solid var(--primary-color);
    width: 70px;
}

.tm-header-5 {
    /*font-family: 'Open Sans', sans-serif;
    font-size: 1.25em;*/
    /*font-weight: 600;
    letter-spacing: 1px;*/
    position: relative;
    z-index: 1;
    margin: 0;
    line-height: 2.5em;
}
.tm-header-5:before{
    content: "";
    position: absolute;
    z-index: -1;
    background-color: #d7ebba;
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
}
.tm-header-5 span{
    padding-left: 15px;
}

.uk-card .uk-card-title {

    transition: all 0.5s ease-in;
    -webkit-transition: all 0.5s ease-in;
    -moz-transition: all 0.5s ease-in;
}
.uk-card:hover .uk-card-title {
    color: var(--primary-color);
}

/*-- CARD TITLE --*/
.my-card > h3 {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 12px;
    transition: all 0.5s ease-in;
    -webkit-transition: all 0.5s ease-in;
    -moz-transition: all 0.5s ease-in;
}
.my-card:hover > h3 {
    color: var(--primary-color) !important;
}
.my-card > h3::before {
    right: 0;
    background: #555;
}
.my-card > h3::before,
.my-card > h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
}
.my-card > h3::after {
    background: var(--primary-color) !important;
    width: 60px;
}
.my-card > h3::before,
.my-card > h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
}

/****************/
/*** SECTIONS ***/
/****************/
.uk-section-secondary {
    background: var(--secondary-bg);
}
.uk-section-third {
    background: var(--third-bg);
}

/*******************************/
/*** STARS FOR REVIEW STYLES ***/
/*******************************/
/* Блок со звёздами */
.star-rating .stars {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    user-select: none;
    outline: none;
}
/* Отдельная звезда */
.star-rating .star {
    font-size: 26px;
    line-height: 1;
    padding: 4px;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: transform .12s ease, color .12s ease;
    color: #cfcfcf; /* неактивная звезда */
    text-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
/* При наведении */
.star-rating .star:hover,
.star-rating .star:focus {
    transform: scale(1.12);
}
/* Закрашенные звёзды */
.star-rating .star.filled {
    color: #f5b301; /* золотой */
}
/* Большая зона клика для сенсорных устройств */
.star-rating .star {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
/* Фокус клавишей Tab */
.star-rating .star:focus-visible {
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

/******************************/
/*** ALERTS & NOTIFICATIONS ***/
/******************************/
.uk-alert {
    border-radius: 7px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
    padding: 15px 40px 15px 15px;
}
.uk-alert-close {
    opacity: 1;
}
.uk-alert a {
    color: #fff;
}

.uk-notification-close {
    color: #fff;
    display: block !important;
    position: absolute;
    top: 13px;
    right: 12px;
}
.uk-notification-message {
    border-radius: 7px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
    padding: 15px 30px 15px 15px !important;
    font-size: 1rem;
    line-height: 1.25;
}
.uk-notification a {
    color: #fff;
    text-decoration: underline;
}

.uk-alert-success,
.uk-notification-message-success {
    background: rgba(0, 160, 70, 0.85);
    backdrop-filter: blur(5px);
    color: #ffffff;
}
.uk-alert-danger,
.uk-notification-message-danger {
    background: rgba(255, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    color: #ffffff;
}
.uk-alert-warning,
.uk-notification-message-warning {
    background: #ff9400;
    backdrop-filter: blur(5px);
    color: #ffffff;
}

@media only screen and (max-width: 640px) {
    html, body, p, a, li {
        font-size: 14px;
        font-weight: 400;
    }
    h1, h2, h3, h4, h5 ,h6 {
        font-weight: 500;
    }
    .uk-slideshow-items h1 {
        font-size: 1.4rem;
    }
    .uk-slideshow-items .uk-text-lead {
        font-size: 1.2rem;
    }
    .uk-card-title {
        font-size: 1.3rem;
        line-height: 1.4;
    }

    /*** LOGO FOR MOBILE ***/
    .uk-logo {
        max-width: 250px;
    }
    .uk-navbar-toggle-icon {
        color: #fff;
    }

    /*** FULLSCREEN MODAL & NAV FOR MOBILE ***/
    .uk-nav-primary > li > a {
        font-size: 22px;
        color: #fff !important;
    }
    .uk-modal-dialog {
        /*opacity: 0.9; !* немного прозрачности *!
        !*background: rgba(0, 0, 0, 0.4);*! !* затемнение *!
        backdrop-filter: blur(10px); !* эффект матового стекла *!
        -webkit-backdrop-filter: blur(10px); !* поддержка Safari *!
        transition: all 0.3s ease-in-out; !* плавный эффект *!*/
        backdrop-filter: blur(10px);
        background-color: rgba(34, 34, 34, 0.85);
    }
    .uk-modal-close-full {
        top: 0;
        right: 0;
        padding: 10px;
        background: transparent;
        color: #fff;
    }

    /*.tm-card .uk-card-title {
        font-size: 1.2rem !important;
    }*/
}


/***********************/
/*** BACKEND SIDEBAR ***/
/***********************/
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Растягиваем контейнер на всю высоту окна */
    overflow-y: auto; /* Добавляем прокрутку при необходимости */
}
.sidebar-top, .sidebar-bottom {
    height: auto;
}
.sidebar-middle {
    flex-grow: 1; /* Занимает всю оставшуюся высоту */
    /* overflow-y: auto; Добавляем прокрутку при необходимости */
}
.sidebar-top {
    align-self: center; /* Центрируем по горизонтали внутри flex-контейнера */
}
.sidebar .uk-nav-header {
    font-size: .875rem;
    padding: 0 15px 15px 25px;
    text-transform: none;
}
.sidebar .uk-nav a {
    font-size: 1.1rem;
    padding: 15px 25px;
}
/*.sidebar .uk-nav .uk-active a {
    background-color: var(--blue);
}*/
.sidebar .uk-nav .uk-active a svg path {
    fill: white; /* Замените на нужный цвет */
}
.sidebar .uk-nav .uk-active a img {
    /*filter: brightness(0) saturate(100%) invert(22%) sepia(89%) saturate(746%) hue-rotate(360deg) brightness(90%) contrast(91%);*/
    filter: brightness(100%) invert(100%);
}
.uk-nav .uk-nav-divider {
    margin: 0;
}

/**********************/
/*** BACKEND NAVBAR ***/
/**********************/
.uk-tile.navbar {
    border-bottom: 2px solid rgba(0,0,0,0.1);
    padding: 10px 40px;
}
/*.uk-navbar-item, .uk-navbar-nav >li > a , .uk-navbar-toggle {
    min-height: auto;
}*/
.uk-navbar-item, .uk-navbar-nav > li > a > div {
    color: #000;
    font-size: 16px;
    font-weight: 500;
    text-transform: none;
}
.uk-navbar-item, .uk-navbar-nav > li > a > div > div.uk-navbar-subtitle {
    color: rgba(0,0,0,0.5);
}
.uk-icon-button {
    width: 35px;
    height: 35px;
    background-color: #eaeaea;
    border: 1px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.uk-navbar-dropdown {
    /*width: 200px;*/
    padding: 0;
}
.uk-navbar-dropdown-nav>li>a {
    color: white;/*#333;*/
}
.uk-navbar-dropdown-nav>li>a,
.uk-dropdown-nav>li>a {
    color: rgba(0,0,0,0.5);
    /*display: flex;*/
    font-size: 1rem;
    /*justify-content: space-between;*/
    padding: 10px 15px;
}
.uk-navbar-dropdown-nav>li>a:hover /*,
.uk-dropdown-nav>li>a*/ {
    background-color: #ffffff;
}

/*****************************/
/*** BACKEND TABLE IN CARD ***/
/*****************************/
thead tr,
.tm-card thead tr {
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}
.tm-card tbody tr {
    border-bottom: 1px solid #dee2e6;
}
.tm-table th,
.tm-card th {
    background-color: #f9fafb;
    color: #000;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 15px;
}
.tm-card td {
    padding: 10px 15px;
    vertical-align: middle;
    line-height: 1rem;
}
.tm-card table {
    margin-bottom: 10px !important;
}

.uk-table-divider tbody tr:nth-of-type(odd), .uk-table-uk-table-divider>tr:nth-of-type(odd) {
    /*background: #ffffff;*/
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5
}
.uk-table-divider tbody tr:nth-of-type(even), .uk-table-divider>tr:nth-of-type(even) {
    /*background: #f8f8f8;*/
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5
}
.uk-table-striped tbody tr:nth-of-type(odd), .uk-table-striped>tr:nth-of-type(odd) {
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5
}
.uk-table-striped tbody tr:nth-of-type(even), .uk-table-striped>tr:nth-of-type(even) {
    background: #f8f8f8;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5
}

/*.uk-card-third {
    background-color: #f9f9f9;
    color: #101010;
    border-left: 4px solid var(--accent-blue);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.uk-card-third:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.uk-card-info {
    background-color: #f1f1f1;
    border-left: 4px solid var(--accent-red);
    border-radius: 0;
}*/

/*********************************/
/*** BACKEND BUTTONS IN TABLES ***/
/*********************************/
.tm-button {
    display: inline-block; /* Делаем как у кнопки */
    border: 0 solid transparent;
    border-radius: 4px;
    text-transform: none;
    padding: 0.15rem 0.8rem;
    text-decoration: none; /* Убираем подчёркивание у ссылки */
    cursor: pointer; /* Чтобы выглядело как кнопка */
    /*line-height: 1.2;*/ /* Сбалансировать высоту */
}
.tm-button-show {
    background-color: rgba(0,160,70,0.1);
    color: var(--accent-green);
}
.tm-button-show:hover {
    background-color: var(--accent-green);
    border-radius: 4px;
    color: #fff;
}
.tm-button-edit {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--accent-blue);
}
.tm-button-edit:hover {
    background-color: var(--accent-blue);
    border-radius: 4px;
    color: #fff;
}
.tm-button-delete {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--accent-red);
}
.tm-button-delete:hover {
    background-color: var(--accent-red);
    color: #fff;
}

.tm-button-show:disabled,
.tm-button-edit:disabled,
.tm-button-delete:disabled {
    background-color: #eeeeee;
    color: var(--sidebar-text);
}

/**************/
/*** BADGES ***/
/**************/
.uk-badge {
    border-radius: 6px;
    box-sizing: border-box;
    min-width: 30px;
    height: 30px;
    margin-top: -3px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: normal;
    /*text-shadow: 1px 1px 1px rgba(255,255,255,1);*/
}
.uk-badge-new {
    background: var(--accent-orange);
    color: #FFF !important;
}
.uk-badge-processing {
    background-color: var(--accent-blue);
    color: #FFF;
}
.uk-badge-confirmed {
    background: var(--accent-green);
    color: #FFF !important;
}
.uk-badge-canceled {
    background: var(--accent-red);
    color: #FFF !important;
}
.uk-badge-not-responding {
    background-color: var(--accent-muted);
    color: #FFF;
}

/**************************************/
/*** input checkbox - iPhone button ***/
/**************************************/
.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}
.slider.round {
    border-radius: 44px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    border-radius: 44px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}
input:checked + .slider {
    background-color: #1E91CF;
}
input:focus + .slider {
    box-shadow: 0 0 1px #1E91CF;
}
input:checked + .slider:before {
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    transform: translateX(18px);
}

/*************/
/*** FORMS ***/
/*************/
.uk-form-icon:not(.uk-form-icon-flip)~.uk-input,
.uk-form-icon:not(.uk-form-icon-flip)~.uk-select,
.uk-form-icon:not(.uk-form-icon-flip)~.uk-textarea {
    padding-left: 40px !important;
}









/*-- ACCORDION --*/
.uk-accordion li {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 15px 15px;
}

/*------------------------*/
/*-- CUSTOM GRADIENT HR --*/
/*------------------------*/
/* https://forum.obsidian.md/t/creating-fancy-horizontal-rule-lines/63700 */
hr.tm-gradient-1 {
    border-image-slice: 1;
    border-image-source: linear-gradient(
            to right,
            transparent 25%,
            var(--hr-color) calc(50% - var(--hr-line-offset)),
            var(--hr-color) calc(50% + var(--hr-line-offset)),
            transparent 75%
    )
}
hr.tm-gradient-2 {
    border-image-slice: 1;
    border-image-source: linear-gradient(
            to right,
            transparent,
            var(--hr-color) calc(50% - var(--hr-line-offset)),
            var(--hr-color) calc(50% + var(--hr-line-offset)),
            transparent
    )
}
hr.tm-gradient-3 {
    --hr-line-color: var(--hr-color);
    display: grid;
    place-items: center;
    border-image-slice: 1;
    border-image-source: linear-gradient(
            to right,
            transparent,
            var(--hr-line-color) calc(50% - var(--hr-line-offset)),
            var(--hr-line-color) calc(50% - var(--hr-text-offset)),
            transparent calc(50% - var(--hr-text-offset)),
            transparent calc(50% + var(--hr-text-offset)),
            var(--hr-line-color) calc(50% + var(--hr-text-offset)),
            var(--hr-line-color) calc(50% + var(--hr-line-offset)),
            transparent
    );
}
hr.tm-gradient-3::after {
    content: "★";
    font-weight: bold;
    color: var(--hr-text-color);
    position: absolute;
    translate: 0 calc(var(--hr-thickness) / -2);
}
hr.tm-gradient-4 {
    --hr-line-color: var(--hr-color);
    display: grid;
    place-items: center;
    border-image-slice: 1;
    border-image-source: linear-gradient(
            to right,
            var(--hr-line-color),
            var(--hr-line-color) calc(50% - var(--hr-text-offset)),
            transparent calc(50% - var(--hr-text-offset)),
            transparent calc(50% + var(--hr-text-offset)),
            var(--hr-line-color) calc(50% + var(--hr-text-offset)),
            var(--hr-line-color)
    );
}
hr.tm-gradient-4::after {
    content: "★";
    font-weight: bold;
    color: var(--hr-text-color);
    position: absolute;
    translate: 0 calc(var(--hr-thickness) / -2);
}
/* Базовая «заготовка» для всех градиентных горизонтальных линий */
/*hr[class^="tm-gradient-"] {
    !*border: 0;*!                        !* убираем стандартную hr‑границу *!
    border-style: solid;              !* border‑image требует border-style *!
    border-width: var(--hr-hardness);!* ← толщина берётся из переменной *!
}*/
