/* =============================================================================
   RESET & BASE
============================================================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: rgba(0, 0, 0, 0);
    color: rgb(51, 51, 51);
    font-family: Ubuntu, sans-serif; 
	/*font-family: Roboto, sans-serif;*/
    font-size: calc(0.8255rem + 0.2vw);
    line-height: calc(1.6 - 0.1vw);
    position: relative;
}

/* =============================================================================
   TYPOGRAPHY
============================================================================= */

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: inherit;
    margin-top: 0;
    margin-bottom: 0.8rem;
}

    .h1, .h2, .h3, .h4, .h5, .h6,
    h1:last-child, h2:last-child, h3:last-child, h4:last-child, h5:last-child, h6:last-child,
    p:last-child {
        margin-bottom: 0;
    }

h1, .h1 {
    font-size: 200%;
}

h2, .h2 {
    font-size: 150%;
}

h3, .h3 {
    font-size: 115%;
}

h4, .h4 {
    font-size: 100%;
}

h5, .h5 {
    font-size: 85%;
}

h6, .h6 {
    font-size: 65%;
}

p {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

    p:last-child {
        margin-bottom: 0;
    }

.truncate {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-muted {
    color: rgb(144, 146, 148) !important;
}

/* =============================================================================
   UTILITIES
============================================================================= */

/* ——— Display ——— */
.d_block {
    display: block;
}

.d_inline {
    display: inline;
}

.d_inline-block {
    display: inline-block;
}

.d_flex {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 100%;
    min-width: 0;
}

.d_inline-flex {
    display: inline-flex;
    flex-wrap: wrap;
}

.d_grid {
    display: grid;
}

.d_inline-grid {
    display: inline-grid;
}

.d_table {
    display: table;
}

.d_table-cell {
    display: table-cell;
}

/* ——— Position ——— */
.p_static {
    position: static;
}

.p_relative {
    position: relative;
}

.p_absolute {
    position: absolute;
}

.p_fixed {
    position: fixed;
}

.p_sticky {
    position: sticky;
}

.p_absolute-full {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-left {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.top-right {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.bottom-left {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
}

.bottom-right {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

/* ——— Visibility & Hide Helpers ——— */
.hide {
    display: none !important;
}

.v_visible {
    visibility: visible;
}

.v_hidden {
    visibility: hidden;
}

.v_collapse {
    visibility: collapse;
}

/* ——— Float ——— */
.f_left {
    float: left;
}

.f_right {
    float: right;
}

.f_none {
    float: none;
}

/* ——— Object Fit ——— */
.o-f_contain {
    object-fit: contain;
}

.o-f_cover {
    object-fit: cover;
}

.o-f_fill {
    object-fit: fill;
}

.o-f_none {
    object-fit: none;
}

.o-f_scale-down {
    object-fit: scale-down;
}

/* =============================================================================
   TYPOGRAPHY UTILITIES
============================================================================= */

/* ——— Font Weight ——— */
.f-w_normal {
    font-weight: normal;
}

.f-w_bold {
    font-weight: bold;
}

.f-w_100 {
    font-weight: 100;
}

.f-w_200 {
    font-weight: 200;
}

.f-w_300 {
    font-weight: 300;
}

.f-w_400 {
    font-weight: 400;
}

.f-w_500 {
    font-weight: 500;
}

.f-w_600 {
    font-weight: 600;
}

.f-w_700 {
    font-weight: 700;
}

.f-w_800 {
    font-weight: 800;
}

.f-w_900 {
    font-weight: 900;
}

/* ——— Font Size ——— */
.f-s_80 {
    font-size: 80%;
}

.f-s_85 {
    font-size: 85%;
}

.f-s_90 {
    font-size: 90%;
}

.f-s_95 {
    font-size: 95%;
}

.f-s_100 {
    font-size: 100%;
}

.f-s_110 {
    font-size: 110%;
}

.f-s_120 {
    font-size: 120%;
}

.f-s_130 {
    font-size: 130%;
}

.f-s_140 {
    font-size: 140%;
}

.f-s_150 {
    font-size: 150%;
}

.f-s_160 {
    font-size: 160%;
}

.f-s_170 {
    font-size: 170%;
}

.f-s_180 {
    font-size: 180%;
}

.f-s_190 {
    font-size: 190%;
}

.f-s_200 {
    font-size: 200%;
}

.f-s_250 {
    font-size: 250%;
}

.f-s_300 {
    font-size: 300%;
}

.f-s_350 {
    font-size: 350%;
}

.f-s_400 {
    font-size: 400%;
}

.f-s_450 {
    font-size: 450%;
}

.f-s_500 {
    font-size: 500%;
}

/* ——— Text Align ——— */
.t-a_left {
    text-align: left;
}

.t-a_center {
    text-align: center;
}

.t-a_right {
    text-align: right;
}

.t-a_justify {
    text-align: justify;
}

/* ——— Text Transform ——— */
.t-t_uppercase {
    text-transform: uppercase;
}

.t-t_lowercase {
    text-transform: lowercase;
}

.t-t_capitalize {
    text-transform: capitalize;
}

.t-t_none {
    text-transform: none;
}

/* ——— Text Decoration ——— */
.t-d_underline {
    text-decoration: underline;
}

.t-d_line-through {
    text-decoration: line-through;
}

.t-d_no-underline {
    text-decoration: none;
}

/* =============================================================================
   SPACING (Padding & Margin)
============================================================================= */

/* ——— Padding ——— */
.p_0 {
    padding: 0;
}

.p_0-25 {
    padding: 0.25rem;
}

.p_0-5 {
    padding: 0.5rem;
}

.p_0-75 {
    padding: 0.75rem;
}

.p_1 {
    padding: 1rem;
}

.p_2 {
    padding: 2rem;
}

.p-l_0-25 {
    padding-left: 0.25rem;
}

.p-t_0-25 {
    padding-top: 0.25rem;
}

.p-r_0-25 {
    padding-right: 0.25rem;
}

.p-b_0-25 {
    padding-bottom: 0.25rem;
}

.p-l_0-5 {
    padding-left: 0.5rem;
}

.p-t_0-5 {
    padding-top: 0.5rem;
}

.p-r_0-5 {
    padding-right: 0.5rem;
}

.p-b_0-5 {
    padding-bottom: 0.5rem;
}

.p-l_0-75 {
    padding-left: 0.75rem;
}

.p-t_0-75 {
    padding-top: 0.75rem;
}

.p-r_0-75 {
    padding-right: 0.75rem;
}

.p-b_0-75 {
    padding-bottom: 0.75rem;
}

.p-l_1 {
    padding-left: 1rem;
}

.p-t_1 {
    padding-top: 1rem;
}

.p-r_1 {
    padding-right: 1rem;
}

.p-b_1 {
    padding-bottom: 1rem;
}

.p-l_2 {
    padding-left: 2rem;
}

.p-t_2 {
    padding-top: 2rem;
}

.p-r_2 {
    padding-right: 2rem;
}

.p-b_2 {
    padding-bottom: 2rem;
}

/* ——— Margin ——— */
.m_0 {
    margin: 0;
}

.m_0-25 {
    margin: 0.25rem;
}

.m_0-5 {
    margin: 0.5rem;
}

.m_0-75 {
    margin: 0.75rem;
}

.m_1 {
    margin: 1rem;
}

.m_2 {
    margin: 2rem;
}

.m-l_0-25 {
    margin-left: 0.25rem;
}

.m-t_0-25 {
    margin-top: 0.25rem;
}

.m-r_0-25 {
    margin-right: 0.25rem;
}

.m-b_0-25 {
    margin-bottom: 0.25rem;
}

.m-l_0-5 {
    margin-left: 0.5rem;
}

.m-t_0-5 {
    margin-top: 0.5rem;
}

.m-r_0-5 {
    margin-right: 0.5rem;
}

.m-b_0-5 {
    margin-bottom: 0.5rem;
}

.m-l_0-75 {
    margin-left: 0.75rem;
}

.m-t_0-75 {
    margin-top: 0.75rem;
}

.m-r_0-75 {
    margin-right: 0.75rem;
}

.m-b_0-75 {
    margin-bottom: 0.75rem;
}

.m-l_1 {
    margin-left: 1rem;
}

.m-t_1 {
    margin-top: 1rem;
}

.m-r_1 {
    margin-right: 1rem;
}

.m-b_1 {
    margin-bottom: 1rem;
}

.m-l_2 {
    margin-left: 2rem;
}

.m-t_2 {
    margin-top: 2rem;
}

.m-r_2 {
    margin-right: 2rem;
}

.m-b_2 {
    margin-bottom: 2rem;
}

.m_auto {
    margin: auto;
}

.m-l_auto {
    margin-left: auto;
}

.m-t_auto {
    margin-top: auto;
}

.m-r_auto {
    margin-right: auto;
}

.m-b_auto {
    margin-bottom: auto;
}

.mx_auto {
    margin-left: auto;
    margin-right: auto;
}

.my_auto {
    margin-top: auto;
    margin-bottom: auto;
}

/* =============================================================================
   BORDERS & RADIUS
============================================================================= */

.b {
    border: 1px solid rgba(124, 126, 128, 0.24);
}

.b-t {
    border-top: 1px solid rgba(124, 126, 128, 0.24);
}

.b-r {
    border-right: 1px solid rgba(124, 126, 128, 0.24);
}

.b-b {
    border-bottom: 1px solid rgba(124, 126, 128, 0.24);
}

.b-l {
    border-left: 1px solid rgba(124, 126, 128, 0.24);
}

/* Border Style */
.b-s_solid {
    border-style: solid;
}

.b-s_dashed {
    border-style: dashed;
}

.b-s_dotted {
    border-style: dotted;
}

.b-s_double {
    border-style: double;
}

.b-s_none {
    border-style: none;
}

/* Border Width */
.b-w_2 {
    border-width: 2px;
}

.b-w_3 {
    border-width: 3px;
}

.b-w_4 {
    border-width: 4px;
}

.b-w_5 {
    border-width: 5px;
}

.b-w_6 {
    border-width: 6px;
}

/* Border Radius */
.b-r_0 {
    border-radius: 0;
}

.b-r_2 {
    border-radius: 2px;
}

.b-r_4 {
    border-radius: 4px;
}

.b-r_6 {
    border-radius: 6px;
}

.b-r_8 {
    border-radius: 8px;
}

.b-r_10 {
    border-radius: 10px;
}

.b-r_50 {
    border-radius: 50%;
}

/* =============================================================================
   FLEXBOX UTILITIES
============================================================================= */

[class*="flex_"], [class*="t_flex_"], [class*="p_flex_"] {
    max-width: 100%;
    min-width: 0;
}

.flex_1-1-0 {
    flex: 1 1 0;
    width: 0%;
}

.flex_1-1-auto {
    flex: 1 1 auto;
    width: auto;
}

.flex_1-1-25 {
    flex: 1 1 25%;
    width: 25%;
}

.flex_1-1-33 {
    flex: 1 1 33%;
    width: 33%;
}

.flex_1-1-50 {
    flex: 1 1 50%;
    width: 50%;
}

.flex_1-1-66 {
    flex: 1 1 66%;
    width: 66%;
}

.flex_1-1-75 {
    flex: 1 1 75%;
    width: 75%;
}

.flex_1-1-100 {
    flex: 1 1 100%;
    width: 100%;
}

/* width */
.w-25 {
    flex: 0 0 25%;
    width: 25%;
}

.w-33 {
    flex: 0 0 33%;
    width: 33%;
}

.w-50 {
    flex: 0 0 50%;
    width: 50%;
}

.w-66 {
    flex: 0 0 66%;
    width: 66%;
}

.w-75 {
    flex: 0 0 75%;
    width: 75%;
}

.w-100 {
    flex: 0 0 100%;
    width: 100%;
}

/* Percentage-based with gap compensation */
.flex_1-1-25-p {
    flex-basis: calc(25% - 0.5rem);
    width: calc(25% - 0.5rem);
}

.flex_1-1-33-p {
    flex-basis: calc(33% - 0.5rem);
    width: calc(33% - 0.5rem);
}

.flex_1-1-50-p {
    flex-basis: calc(50% - 0.5rem);
    width: calc(50% - 0.5rem);
}

.flex_1-1-66-p {
    flex-basis: calc(66% - 0.5rem);
    width: calc(66% - 0.5rem);
}

.flex_1-1-75-p {
    flex-basis: calc(75% - 0.5rem);
    width: calc(75% - 0.5rem);
}

/* Flex Direction */
.f-d_row {
    flex-direction: row;
}

.f-d_row-reverse {
    flex-direction: row-reverse;
}

.f-d_column {
    flex-direction: column;
}

.f-d_column-reverse {
    flex-direction: column-reverse;
}

/* Flex Wrap */
.f-w_wrap {
    flex-wrap: wrap;
}

.f-w_nowrap {
    flex-wrap: nowrap;
}

.f-w_wrap-reverse {
    flex-wrap: wrap-reverse;
}

/* Justify Content */
.j-c_flex-start {
    justify-content: flex-start;
}

.j-c_flex-end {
    justify-content: flex-end;
}

.j-c_center {
    justify-content: center;
}

.j-c_space-between {
    justify-content: space-between;
}

.j-c_space-around {
    justify-content: space-around;
}

.j-c_space-evenly {
    justify-content: space-evenly;
}

/* Align Items */
.a-i_flex-start {
    align-items: flex-start;
}

.a-i_flex-end {
    align-items: flex-end;
}

.a-i_center {
    align-items: center;
}

.a-i_baseline {
    align-items: baseline;
}

.a-i_stretch {
    align-items: stretch;
}

/* Align Content */
.a-c_flex-start {
    align-content: flex-start;
}

.a-c_flex-end {
    align-content: flex-end;
}

.a-c_center {
    align-content: center;
}

.a-c_space-between {
    align-content: space-between;
}

.a-c_space-around {
    align-content: space-around;
}

.a-c_stretch {
    align-content: stretch;
}

/* Align Self */
.a-s_flex-start {
    align-self: flex-start;
}

.a-s_flex-end {
    align-self: flex-end;
}

.a-s_center {
    align-self: center;
}

.a-s_baseline {
    align-content: baseline;
}

.a-s_stretch {
    align-content: stretch;
}

/* Z Index */
.z-i_0 {
    z-index: 0;
}

.z-i_1 {
    z-index: 1;
}

.z-i_2 {
    z-index: 2;
}

/* =============================================================================
   OPACITY
============================================================================= */

.o_10 {
    opacity: 0.1;
}

.o_20 {
    opacity: 0.2;
}

.o_30 {
    opacity: 0.3;
}

.o_40 {
    opacity: 0.4;
}

.o_50 {
    opacity: 0.5;
}

.o_60 {
    opacity: 0.6;
}

.o_70 {
    opacity: 0.7;
}

.o_80 {
    opacity: 0.8;
}

.o_90 {
    opacity: 0.9;
}

/* =============================================================================
   BACKGROUND UTILITIES
============================================================================= */

.b-r_no-repeat {
    background-repeat: no-repeat;
}

.b-r_repeat {
    background-repeat: repeat;
}

.b-r_repeat-x {
    background-repeat: repeat-x;
}

.b-r_repeat-y {
    background-repeat: repeat-y;
}

.b-p_center {
    background-position: center;
}

.b-p_left-top {
    background-position: left top;
}

.b-p_right-bottom {
    background-position: right bottom;
}

.b-s_cover {
    background-repeat: no-repeat;
    background-size: cover;
    object-fit: cover;
}

.b-s_contain {
    background-repeat: no-repeat;
    background-size: contain;
    object-fit: contain;
}

.bg_after_gradient::after,
.bg_before_gradient::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    background: linear-gradient(rgba(255,255,255,0), rgba(0,0,0,0.75)) no-repeat;
}

.bg_after::after,
.bg_before::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    background-color: rgba(0, 0, 0, 0.5);
}


/* =============================================================================
   BOX-SHADOW
============================================================================= */
.b-s_0 {
    box-shadow: none;
}

.b-s_1 {
    box-shadow: 0 0.275rem 1.25rem -0.0625rem rgba(0, 0, 0, 0.05);
}

.b-s_2 {
    box-shadow: 0 0.35rem 1.5rem -0.075rem rgba(0, 0, 0, 0.07);
}

.b-s_3 {
    box-shadow: 0 0.45rem 1.75rem -0.0875rem rgba(0, 0, 0, 0.09);
}

.b-s_4 {
    box-shadow: 0 0.55rem 2rem -0.1rem rgba(0, 0, 0, 0.12);
}

/* =============================================================================
   LISTS
============================================================================= */
ul, ol {
    display: block;
    list-style-type: none;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding-inline-start: 40px;
    padding-left: 0;
}

    ul.horizontal, ol.horizontal {
        display: flex;
        list-style-type: none;
        padding: 0;
    }

/* Общие стили для всех кастомных списков */
.list-decimal li, .list-disc li, .list-circle li, .list-square li {
    margin-bottom: 0.5rem;
    position: relative;
}

    .list-decimal li:last-child, .list-disc li:last-child, .list-circle li:last-child, .list-square li:last-child {
        margin-bottom: 0;
    }

    /* Общие стили для псевдоэлементов */
    .list-decimal li::before, .list-disc li::before, .list-circle li::before, .list-square li::before {
        align-items: center;
        display: inline-flex;
        margin-right: 0.75rem;
    }

/* --- Цифры (decimal) --- */
.list-decimal {
    counter-reset: decimal-counter;
}

    .list-decimal li::before {
        align-items: center;
        background-color: rgba(144, 146, 148, 0.25);
        border-radius: 2px;
        content: counter(decimal-counter, decimal);
        counter-increment: decimal-counter;
        display: inline-flex;
        height: 1rem;
        justify-content: center;
        width: 1rem;
    }

/* --- Кружочки (disc) --- */
.list-disc li::before {
    align-items: center;
    background-color: rgb(144, 146, 148);
    border-radius: 50%;
    color: rgba(0, 0, 0, 0);
    content: counter(decimal-counter, decimal);
    counter-increment: decimal-counter;
    display: inline-flex;
    height: 0.75rem;
    justify-content: center;
    width: 0.75rem;
}

/* --- Пустые кружочки (circle) --- */
.list-circle li::before {
    align-items: center;
    background-color: rgba(0, 0, 0, 0);
    border: 2px solid rgb(144, 146, 148);
    border-radius: 50%;
    color: rgba(0, 0, 0, 0);
    content: counter(decimal-counter, decimal);
    counter-increment: decimal-counter;
    display: inline-flex;
    height: 0.75rem;
    justify-content: center;
    width: 0.75rem;
}

/* --- Квадраты (square) --- */
.list-square li::before {
    align-items: center;
    background-color: rgb(144, 146, 148);
    border: 2px solid rgb(144, 146, 148);
    border-radius: 2px;
    color: rgba(0, 0, 0, 0);
    content: counter(decimal-counter, decimal);
    counter-increment: decimal-counter;
    display: inline-flex;
    height: 0.75rem;
    justify-content: center;
    width: 0.75rem;
}

/* =============================================================================
   FORMS
============================================================================= */

input, textarea, select {
    background-color: rgb(255, 255, 255);
    border: 1px solid rgb(221, 221, 221);
    border-radius: 0.25rem;
    box-sizing: border-box;
    color: rgb(51, 51, 51);
    font-family: inherit;
    font-size: 1rem;
    max-width: 100%;
    outline: none;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
    width: 100%;
}

    input:required, textarea:required {
        border-left: 1px solid red;
    }

    input:focus, textarea:focus, select:focus {
        border-color: rgb(175, 175, 175);
        /*box-shadow: 0 0 0 1px rgb(175, 175, 175);*/
    }

    input:hover, textarea:hover, select:hover {
        border-color: rgb(153, 153, 153);
    }

    input:disabled, textarea:disabled, select:disabled {
        background-color: rgba(108, 117, 125, 0.1);
        color: rgb(153, 153, 153);
        cursor: not-allowed;
    }

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Select */
select:not([multiple]) {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1rem auto;
    padding-right: 2.4rem;
}

select[multiple] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgb(255, 255, 255);
    background-image: none;
    border: 1px solid rgb(209, 213, 219);
    border-radius: 0.25rem;
    height: auto !important;
    min-height: 100px;
    padding: 0.5rem;
    width: 100% !important;
}

    select[multiple] option {
        border-radius: 0.25rem;
        cursor: pointer;
        margin: 0.25rem 0;
        padding: 0.5rem;
    }

        select[multiple] option:checked {
            background-color: rgb(128, 128, 128);
            color: rgb(255, 255, 255);
        }

        select[multiple] option:hover {
            background-color: rgb(229, 231, 235);
        }

/* Checkbox & Radio */
input[type="checkbox"], input[type="radio"] {
    margin-right: 0.5rem;
    padding: 0;
    vertical-align: middle;
    width: auto;
}

/* Buttons (submit, reset) */
input[type="submit"], input[type="button"] {
    background-color: rgba(125, 135, 145, 0.15);
    border: none;
    border-radius: 0.25rem;
    color: rgb(55, 55, 55);
    cursor: pointer;
    display: inline-block;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    text-align: center;
    width: auto;
}

    input[type="submit"]:hover,
    input[type="button"]:hover {
        background-color: rgba(125, 135, 145, 0.25);
    }

    input[type="submit"]:disabled,
    input[type="button"]:disabled {
        background-color: rgba(125, 135, 145, 0.5);
        cursor: not-allowed;
    }

/* File & Range */
input[type="file"] {
    background-color: rgb(248, 249, 250);
    border: 1px dashed rgb(221, 221, 221);
    padding: 0.5rem;
}

input[type="range"] {
    background-color: rgb(221, 221, 221);
    border: none;
    border-radius: 0.25rem;
    height: 0.25rem;
    padding: 0;
}

/* Search */
.search-form {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
}

    .search-form .search-input {
        flex: 1 1 0;
        background-color: rgba(124, 126, 128, 0.25);
        border-color: rgba(124, 126, 128, 0.25);
        color: inherit;
        outline: none;
    }

    .search-form .search-button {
        display: inline-flex;
        align-items: center;
        background-color: transparent;
        color: inherit;
        padding: 0.5rem;
        margin-left: -2.72rem;
    }

    .search-form .search-input:focus {
        background-color: rgba(124, 126, 128, 0.75);
    }

    .search-form .search-button:hover {
        background-color: rgba(124, 126, 128, 0.75);
    }

/* Form Group */
.form-label {
    display: block;
    font-weight: 500;
    color: rgb(51, 51, 51);
    margin-bottom: 0.5rem;
}

.form-hint {
    display: block;
    font-size: 14px;
    color: rgb(108, 117, 125);
    margin-top: 4px;
}

/* Error State */
.input-error {
    border-color: rgb(220, 53, 69);
}

    .input-error:focus {
        border-color: rgb(220, 53, 69);
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    }

.error-message {
    color: rgb(220, 53, 69);
    font-size: 90%;
    margin-top: 0.25rem;
}

/* Custom Check & Radio */
.form-check-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    margin: 0.25rem 0;
    padding: 0 0.5rem 0 0;
    transition: all 0.3s ease;
}

.form-check-input {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .form-check-input:focus {
        outline: none;
    }

    .form-check-input:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.form-check-label span {
    color: rgb(73, 80, 87);
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-check-input:checked ~ span {
    color: rgb(108, 117, 125);
}

/* Checkbox */
.form-check-input[type="checkbox"] {
    appearance: none;
    width: 1.25rem !important;
    height: 1.25rem !important;
    background-color: transparent;
    border: 2px solid rgb(173, 181, 189);
    border-radius: 0.25rem;
    flex: 0 0 auto;
}

    .form-check-input[type="checkbox"]:checked {
        border-color: rgb(108, 117, 125);
    }

        .form-check-input[type="checkbox"]:checked::after {
            content: '';
            position: absolute;
            left: 5px;
            top: 2px;
            width: 5px;
            height: 9px;
            border: solid #6c757d;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

    .form-check-input[type="checkbox"]:hover {
        border-color: #6c757d;
    }

/* Radio */
.form-check-input[type="radio"] {
    appearance: none;
    width: 1.25rem !important;
    height: 1.25rem !important;
    background-color: rgb(255, 255, 255);
    border: 2px solid rgb(173, 181, 189);
    border-radius: 50%;
    flex: 0 0 auto;
}

    .form-check-input[type="radio"]:checked {
        background-color: rgb(255, 255, 255);
        border-color: rgb(108, 117, 125);
    }

        .form-check-input[type="radio"]:checked::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 8px;
            height: 8px;
            background-color: rgb(108, 117, 125);
            border-radius: 50%;
        }

    .form-check-input[type="radio"]:hover {
        border-color: rgb(108, 117, 125);
    }

/* Fieldset & Legend */
fieldset {
    background-color: rgb(248, 250, 252);
    border: 1px solid rgba(124, 126, 128, 0.24);
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 0.35rem 0.625rem 0.75rem;
}

    fieldset.modern {
        padding: 1rem;
    }

    fieldset.minimal {
        background-color: transparent;
        border: 1px solid rgb(224, 224, 224);
        padding: 0.75rem;
    }

    fieldset:disabled {
        background-color: rgb(240, 240, 240);
        border-color: rgba(124, 126, 128, 0.24);
        opacity: 0.7;
    }

        fieldset:disabled legend {
            background-color: rgb(216, 216, 216);
            color: rgb(136, 136, 136);
        }

legend {
    background-color: rgb(233, 233, 233);
    border: 1px solid rgba(124, 126, 128, 0.24);
    border-radius: 0.25rem;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0.125rem 0.75rem;
}

    legend.modern {
        background-color: rgb(232, 232, 232);
        font-weight: 600;
    }

    legend.minimal {
        background-color: transparent;
        border: none;
        padding: 0 0.75rem;
    }

/* Material Design */
.material {
    display: block;
    margin-bottom: 1rem;
    position: relative;
}

    .material label {
        position: absolute;
        top: 0.75rem;
        left: 0.75rem;
        color: rgb(102, 102, 102);
        font-size: 90%;
        pointer-events: none;
        transition: all 0.2s ease;
        display: block !important;
    }

    .material input,
    .material select,
    .material textarea {
        width: 100%;
        padding: 0.75rem;
        font-size: 90%;
        color: rgb(51, 51, 51);
        background-color: rgb(249, 249, 249);
        border: 1px solid rgb(204, 204, 204);
        border-radius: 0.25rem;
        transition: all 0.2s ease;
    }

        .material input:focus,
        .material select:focus,
        .material textarea:focus {
            background-color: rgb(255, 255, 255);
            border-color: rgb(136, 136, 136);
            box-shadow: 0 0 0 2px rgba(136, 136, 136, 0.1);
            outline: none;
        }

    .material.active label {
        top: -0.75rem;
        left: 0.75rem;
        font-size: 80%;
        color: rgb(85, 85, 85);
        background-color: rgb(255, 255, 255);
        padding: 0 0.25rem;
    }

    .material.required label::after {
        content: "*";
        color: rgb(136, 136, 136);
        margin-left: 0.25rem;
    }

    .material textarea {
        min-height: 80px;
        resize: vertical;
    }

    .material select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        padding-right: 2.4rem;
    }

/* =============================================================================
   TABLES
============================================================================= */

table {
    border-collapse: collapse;
    border-color: rgba(128, 128, 128, 0.2);
    width: 100%;
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .responsive-table table {
        min-width: 600px;
    }

table thead td,
table thead th {
    background-color: rgba(128, 128, 128, 0.2);
    font-weight: bold;
    padding: 0.75rem;
    text-align: left;
}

table tbody td {
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    border-color: rgba(128, 128, 128, 0.2);
    color: rgb(108, 117, 125);
    padding: 0.75rem;
}

table tbody tr {
    background-color: rgba(128, 128, 128, 0.1);
}

    table tbody tr:last-child td {
        border-bottom: none;
    }

/* =============================================================================
   BUTTONS
============================================================================= */

button,
.ui-button,
.bbcodes,
.btn-text,
.btn-outlined,
.btn-primary,
.btn-secondary,
.btn-accent,
.btn-sm,
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 0.25em;
    padding: 0.55em 0.75em;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.3s ease;
    width: auto;
    position: relative;
    overflow: hidden;
}

/* Variants */
.btn-sm {
    font-size: 80%;
    padding: 0.35em 0.5em;
}

.btn-block {
    display: block;
    width: 100% !important;
}

/* Квадратные кнопки с иконками */
.btn-icon {
    align-items: center;
    display: flex !important;
    font-size: 18px;
    height: 2em;
    justify-content: center;
    padding: 0;
    width: 2em;
}

/* Types */
.btn-text {
    background-color: transparent;
    border: 1px solid transparent;
    color: rgb(51, 51, 51);
}

    .btn-text:hover {
        background-color: rgba(0,0,0,0.05);
        border-color: rgba(0,0,0,0.05);
        opacity: 0.95;
    }

    .btn-text:active {
        background-color: rgba(0,0,0,0.1);
        border-color: rgba(0,0,0,0.1);
        opacity: 1;
    }

.ui-button, .bbcodes {
    background-color: rgb(245, 245, 245);
    border: 1px solid rgb(224, 224, 224);
    color: rgb(51, 51, 51);
}

    .ui-button:hover, .bbcodes:hover {
        background-color: rgb(213, 213, 213);
        border-color: rgb(213, 213, 213);
        opacity: 0.95;
    }

    .ui-button:active, .bbcodes:active {
        background-color: rgb(203, 203, 203);
        opacity: 1;
    }

.btn-outlined {
    background-color: transparent;
    border: 2px solid rgb(124, 126, 128);
    color: rgb(124, 126, 128);
}

    .btn-outlined:hover {
        background-color: rgb(124, 126, 128);
        color: white;
        opacity: 0.95;
    }

    .btn-outlined:active {
        background-color: rgb(124, 126, 128);
        border-color: rgb(124, 126, 128);
        opacity: 1;
    }

.btn-primary {
    background-color: rgb(44, 59, 77);
    color: white;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

    .btn-primary:hover {
        background-color: rgb(34, 49, 67);
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        opacity: 0.95;
    }

    .btn-primary:active {
        background-color: rgb(24, 39, 57);
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        opacity: 1;
    }

.btn-secondary {
    background-color: rgb(121, 85, 72);
    color: white;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

    .btn-secondary:hover {
        background-color: rgb(111, 75, 62);
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        opacity: 0.95;
    }

    .btn-secondary:active {
        background-color: rgb(101, 65, 52);
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        opacity: 1;
    }

.btn-accent {
    background-color: rgb(9, 118, 180);
    color: white;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

    .btn-accent:hover {
        background-color: rgb(0, 108, 170);
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        opacity: 0.95;
    }

    .btn-accent:active {
        background-color: rgb(0, 98, 160);
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        opacity: 1;
    }

    /* Disabled */
    button:disabled,
    .ui-button:disabled,
    .bbcodes:disabled,
    .btn-text:disabled,
    .btn-outlined:disabled,
    .btn-primary:disabled,
    .btn-secondary:disabled,
    .btn-accent:disabled,
    .btn-sm:disabled,
    .btn-icon:disabled {
        cursor: not-allowed;
        opacity: 0.6;
        transform: none !important;
    }

    button:focus,
    .ui-button:focus,
    .bbcodes:focus,
    .btn-text:focus,
    .btn-outlined:focus,
    .btn-primary:focus,
    .btn-secondary:focus,
    .btn-accent:focus,
    .btn-sm:focus,
    .btn-icon:focus {
        outline: none;
    }

/* Ripple */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: ripple 0.6s linear forwards;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* =============================================================================
   COMPONENTS
============================================================================= */

/* ——— Accordion ——— */
.accordion {
    border: 1px solid rgba(124, 126, 128, 0.24);
    border-radius: 0.25rem;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid rgba(124, 126, 128, 0.24);
}

    .accordion-item:last-child {
        border-bottom: none;
    }

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    font-weight: 500;
    background-color: rgb(248, 249, 250);
    cursor: pointer;
}

    .accordion-header:hover {
        background-color: rgb(233, 236, 239);
    }

    .accordion-header::after {
        content: "▼";
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .accordion-header.active::after {
        transform: rotate(180deg);
    }

.accordion-content {
    max-height: 0;
    padding: 0 0.75rem;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

    .accordion-content.active {
        max-height: 1000px;
        padding: 0.75rem;
    }

/* ——— Badge ——— */
.badge {
    border-radius: 1rem;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    text-align: center;
    vertical-align: baseline;
    white-space: nowrap;
}

/* ——— Dropdown ——— */
.sd__dropdown {
    position: relative;
    display: inherit;
}

.sd__dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 90%;
    min-width: 415px;
    max-width: 600px;
    background-color: white;
    color: rgb(55, 55, 55);
    border-radius: 0.75rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.dropdown-right .sd__dropdown-content {
    right: 0;
    left: auto;
    border-top-right-radius: 0;
}

.dropdown-center .sd__dropdown-content {
    left: 50%;
    transform: translateX(-50%);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.sd__dropdown.show .sd__dropdown-content {
    opacity: 1;
    visibility: visible;
}

.dropdown-center.show .sd__dropdown-content {
    transform: translateX(-50%);
}

.sd__dropdown-header,
.sd__dropdown-footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background-color: rgba(248, 249, 250, 0.99);
    border-bottom: 1px solid rgb(238, 239, 240);
}

.sd__dropdown-footer {
    border-top: 1px solid rgb(238, 239, 240);
    border-bottom: none;
}

.sd__dropdown-body {
    padding: 1rem;
}

/* ——— Modal ——— */
.sd__modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: none;
    opacity: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

    .sd__modal.active {
        opacity: 1;
    }

.sd__modal-content {
    width: 90%;
    max-width: 420px;
    margin: auto;
    background-color: white;
    color: rgb(24, 26, 28);
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.sd__modal.active .sd__modal-content {
    transform: translateY(0);
}

.sd__modal-header,
.sd__modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background-color: rgba(248, 249, 250, 0.99);
    border-bottom: 1px solid rgb(238, 239, 240);
}

.sd__modal-footer {
    border-top: 1px solid rgb(238, 239, 240);
    border-bottom: none;
}

.sd__modal-body {
    padding: 1rem;
}

.close-btn {
    background: none;
    border: none;
    padding: 0 0.35rem;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    float: right;
}

/* ——— Tabs ——— */
.sd__nav {
    border-bottom: 1px solid rgba(124, 126, 128, 0.25);
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    margin-bottom: 0;
    padding-left: 0;
}

.sd__nav-item {
    margin-bottom: -1px;
}

.sd__nav-link {
    border: 1px solid rgba(0, 0, 0, 0);
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    display: block;
    font-weight: 500;
    margin-right: 0.5rem;
    opacity: 0.85;
    padding: 0.75rem 1rem;
    text-decoration: none;
}

    .sd__nav-link:hover {
        border-color: rgba(124, 126, 128, 0.15);
    }

    .sd__nav-link.active {
        border-color: rgba(124, 126, 128, 0.25) rgba(124, 126, 128, 0.25) rgba(124, 126, 128, 0);
        opacity: 1;
    }

.sd__tab-content {
    padding: 1rem;
    border: 1px solid rgba(124, 126, 128, 0.25);
    border-top: none;
    border-radius: 0 0 0.25rem 0.25rem;
}

.tab-pane {
    display: none;
}

    .tab-pane.active {
        display: block;
    }

/* ——— Tooltip ——— */
#tooltip {
    position: absolute;
    background-color: white;
    border: 1px solid rgb(212, 212, 213);
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(34,36,38,0.12), 0 2px 10px rgba(34,36,38,0.15);
    color: rgba(0,0,0,0.87);
    font: 1rem/1.4285em sans-serif;
    padding: 0.5rem 0.8rem;
    text-align: center;
    white-space: normal;
    margin-bottom: 0.75rem;
    transform: scale(0);
    transition: transform 0.25s ease;
    z-index: 7;
}

    #tooltip::after {
        content: "";
        position: absolute;
        width: 0.75rem;
        height: 0.75rem;
        background-color: white;
        box-shadow: 1px 1px 0 0 rgb(186,186,188);
        transform: rotate(45deg);
        bottom: -0.4rem;
        left: 46.5%;
    }

    #tooltip.top::after {
        top: -0.4rem;
        bottom: auto;
        box-shadow: -1px -1px 0 0 rgb(186,186,188);
    }

    #tooltip.left::after {
        left: 0.8rem;
        right: auto;
    }

    #tooltip.right::after {
        right: 0.8rem;
        left: auto;
    }

/* ——— Overlay ——— */
.sd__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 7;
    pointer-events: auto;
}

    .sd__overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* ——— Scroll to Top ——— */
.btn-to-top {
    bottom: 1.25rem;
    opacity: 0;
    position: fixed;
    right: 1.25rem;
    transition: all 0.3s ease 0s;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

    .btn-to-top.visible {
        opacity: 1;
        visibility: visible;
    }

/* ——— Owl Carousel ——— */
.owl-carousel {
    display: none;
    width: 100%;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

    .owl-carousel.owl-loaded {
        display: block;
    }

    .owl-carousel.owl-loading {
        opacity: 0;
        display: block;
    }

    .owl-carousel.owl-hidden {
        opacity: 0;
    }

    .owl-carousel .owl-stage {
        position: relative;
        touch-action: manipulation;
        -moz-backface-visibility: hidden;
    }

        .owl-carousel .owl-stage::after {
            content: ".";
            display: block;
            clear: both;
            visibility: hidden;
            line-height: 0;
            height: 0;
        }

    .owl-carousel .owl-stage-outer {
        position: relative;
        overflow: hidden;
        -webkit-transform: translate3d(0,0,0);
        z-index: 1;
    }

    .owl-carousel .owl-item {
        position: relative;
        min-height: 1px;
        float: left;
        -webkit-backface-visibility: hidden;
        -webkit-tap-highlight-color: transparent;
    }

        .owl-carousel .owl-item img {
            display: block;
            width: 100%;
        }

    .owl-carousel .owl-nav.disabled,
    .owl-carousel .owl-dots.disabled {
        display: none;
    }

    .owl-carousel.owl-drag .owl-item {
        touch-action: pan-y;
        user-select: none;
    }

    .owl-carousel.owl-grab {
        cursor: grab;
    }

.owl-height {
    transition: height 500ms ease-in-out;
}

.masthead_owl-nav {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background-color: rgb(124, 126, 128);
    border-radius: 4px;
    padding: 0.6rem;
}

    .masthead_owl-nav button + button {
        margin-left: 0.6rem;
    }

.owl-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.8rem;
    z-index: 1;
    transition: all 0.33s ease;
}

    .owl-title::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(0,0,0,0.33);
        z-index: -1;
    }

.owl-item a:hover .owl-title {
    background-color: rgba(0,0,0,0.66);
}

    .owl-item a:hover .owl-title.hoverable__truncate .truncate {
        white-space: inherit;
    }

/* =============================================================================
   LAYOUT
============================================================================= */

.sd__container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.sd__main {
    display: flex;
    flex-direction: row;
    max-width: 100%;
    min-width: 0;
}

.sd__content {
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
    min-height: 100vh;
}

.sd__sidebar {
    flex: 0 0 300px;
    width: 300px;
    min-height: 100vh;
    position: relative;
    transition: transform 0.3s ease;
}

.sidebar-toggle,
.sidebar-header {
    display: none;
}

/* Sidenav */
.sd__sidenav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: white;
    overflow-y: auto;
    z-index: 1000;
    transition: all 0.3s ease;
}

    .sd__sidenav.active {
        left: 0;
    }

/* Sidebar */
@media (max-width: 992px) {
    .sidebar-toggle {
        display: block;
    }

    .sidebar-header {
        display: flex;
    }

    .sd__sidebar {
        background-color: rgb(235, 236, 237);
        height: 100%;
        overflow-y: auto;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        position: fixed;
        top: 0;
        z-index: 800;
    }

        .sd__sidebar.sd__sidebar--left {
            left: 0;
            transform: translateX(-100%);
        }

        .sd__sidebar.sd__sidebar--right {
            right: 0;
            transform: translateX(100%);
        }

            .sd__sidebar.sd__sidebar--left.active, .sd__sidebar.sd__sidebar--right.active {
                transform: translateX(0);
            }
}

/* =============================================================================
   RESPONSIVE UTILITIES
============================================================================= */

/* ——— Breakpoints ——— */
/* Desktop: ≥993px */
@media (max-width: 950px) {
    .hide_900 {
        display: none;
    }
}

/* Tablet: ≤768px */
@media (max-width: 768px) {
    .hide_t {
        display: none;
    }

    /* ——— Text Align ——— */
    .t_t-a_left {
        text-align: left;
    }

    .t_t-a_center {
        text-align: center;
    }

    .t_t-a_right {
        text-align: right;
    }

    .t_t-a_justify {
        text-align: justify;
    }

    /* ——— Flexbox ——— */
    .t_flex_1-1-0 {
        flex: 1 1 0;
        width: 0%;
    }

    .t_flex_1-1-auto {
        flex: 1 1 auto;
        width: auto;
    }

    .t_flex_1-1-10 {
        flex: 1 1 10%;
        width: 10%;
    }

    .t_flex_1-1-20 {
        flex: 1 1 20%;
        width: 20%;
    }

    .t_flex_1-1-30 {
        flex: 1 1 30%;
        width: 30%;
    }

    .t_flex_1-1-40 {
        flex: 1 1 40%;
        width: 40%;
    }

    .t_flex_1-1-50 {
        flex: 1 1 50%;
        width: 50%;
    }

    .t_flex_1-1-60 {
        flex: 1 1 60%;
        width: 60%;
    }

    .t_flex_1-1-70 {
        flex: 1 1 70%;
        width: 70%;
    }

    .t_flex_1-1-80 {
        flex: 1 1 80%;
        width: 80%;
    }

    .t_flex_1-1-90 {
        flex: 1 1 90%;
        width: 90%;
    }

    .t_flex_1-1-100 {
        flex: 1 1 100%;
        width: 100%;
    }

    .t_flex_1-1-25-p {
        flex-basis: calc(25% - 0.5rem);
        width: calc(25% - 0.5rem);
    }

    .t_flex_1-1-33-p {
        flex-basis: calc(33% - 0.5rem);
        width: calc(33% - 0.5rem);
    }

    .t_flex_1-1-50-p {
        flex-basis: calc(50% - 0.5rem);
        width: calc(50% - 0.5rem);
    }

    .t_flex_1-1-66-p {
        flex-basis: calc(66% - 0.5rem);
        width: calc(66% - 0.5rem);
    }

    .t_flex_1-1-75-p {
        flex-basis: calc(75% - 0.5rem);
        width: calc(75% - 0.5rem);
    }
}

/* Mobile: ≤576px */
@media (max-width: 576px) {
    .hide_p {
        display: none !important;
    }

    /* --- Tab --- */
    .sd__nav-link {
        padding: 0.25rem 0.5rem;
    }

    .sd__tab-content {
        padding: 0.5rem;
    }

    /* ——— Typography ——— */
    .p_f-s_80 {
        font-size: 80%;
    }

    .p_f-s_85 {
        font-size: 85%;
    }

    .p_f-s_90 {
        font-size: 90%;
    }

    .p_f-s_95 {
        font-size: 95%;
    }

    .p_f-s_100 {
        font-size: 100%;
    }

    .p_f-s_110 {
        font-size: 110%;
    }

    .p_f-s_120 {
        font-size: 120%;
    }

    .p_f-s_130 {
        font-size: 130%;
    }

    .p_f-s_140 {
        font-size: 140%;
    }

    .p_f-s_150 {
        font-size: 150%;
    }

    .p_f-s_160 {
        font-size: 160%;
    }

    .p_f-s_170 {
        font-size: 170%;
    }

    .p_f-s_180 {
        font-size: 180%;
    }

    .p_f-s_190 {
        font-size: 190%;
    }

    .p_f-s_200 {
        font-size: 200%;
    }

    /* =============================================================================
    SPACING (Padding & Margin)
    ============================================================================= */

    /* ——— Padding ——— */
    .p_0-5 {
        padding: 0.375rem;
    }

    .p_0-75 {
        padding: 0.5625rem;
    }

    .p_1 {
        padding: 0.75rem;
    }

    .p_2 {
        padding: 1.5rem;
    }

    .p-l_0-5 {
        padding-left: 0.375rem;
    }

    .p-t_0-5 {
        padding-top: 0.375rem;
    }

    .p-r_0-5 {
        padding-right: 0.375rem;
    }

    .p-b_0-5 {
        padding-bottom: 0.375rem;
    }

    .p-l_0-75 {
        padding-left: 0.5625rem;
    }

    .p-t_0-75 {
        padding-top: 0.5625rem;
    }

    .p-r_0-75 {
        padding-right: 0.5625rem;
    }

    .p-b_0-75 {
        padding-bottom: 0.5625rem;
    }

    .p-l_1 {
        padding-left: 0.75rem;
    }

    .p-t_1 {
        padding-top: 0.75rem;
    }

    .p-r_1 {
        padding-right: 0.75rem;
    }

    .p-b_1 {
        padding-bottom: 0.75rem;
    }

    .p-l_2 {
        padding-left: 1.5rem;
    }

    .p-t_2 {
        padding-top: 1.5rem;
    }

    .p-r_2 {
        padding-right: 1.5rem;
    }

    .p-b_2 {
        padding-bottom: 1.5rem;
    }

    /* ——— Margin ——— */

    .m_0-5 {
        margin: 0.375rem;
    }

    .m_0-75 {
        margin: 0.5625rem;
    }

    .m_1 {
        margin: 0.5rem;
    }

    .m_2 {
        margin: 1rem;
    }

    .m-l_0-5 {
        margin-left: 0.375rem;
    }

    .m-t_0-5 {
        margin-top: 0.375rem;
    }

    .m-r_0-5 {
        margin-right: 0.375rem;
    }

    .m-b_0-5 {
        margin-bottom: 0.375rem;
    }

    .m-l_0-75 {
        margin-left: 0.5625rem;
    }

    .m-t_0-75 {
        margin-top: 0.5625rem;
    }

    .m-r_0-75 {
        margin-right: 0.5625rem;
    }

    .m-b_0-75 {
        margin-bottom: 0.5625rem;
    }

    .m-l_1 {
        margin-left: 0.75rem;
    }

    .m-t_1 {
        margin-top: 0.75rem;
    }

    .m-r_1 {
        margin-right: 0.75rem;
    }

    .m-b_1 {
        margin-bottom: 0.75rem;
    }

    .m-l_2 {
        margin-left: 1.5rem;
    }

    .m-t_2 {
        margin-top: 1.5rem;
    }

    .m-r_2 {
        margin-right: 1.5rem;
    }

    .m-b_2 {
        margin-bottom: 1.5rem;
    }

    /* ——— Text Align ——— */
    .p_t-a_left {
        text-align: left;
    }

    .p_t-a_center {
        text-align: center;
    }

    .p_t-a_right {
        text-align: right;
    }

    .p_t-a_justify {
        text-align: justify;
    }

    /* ——— Flexbox ——— */
    .p_flex_1-1-0 {
        flex: 1 1 0;
        width: 0%;
    }

    .p_flex_1-1-auto {
        flex: 1 1 auto;
        width: auto;
    }

    .p_flex_1-1-10 {
        flex: 1 1 10%;
        width: 10%;
    }

    .p_flex_1-1-20 {
        flex: 1 1 20%;
        width: 20%;
    }

    .p_flex_1-1-30 {
        flex: 1 1 30%;
        width: 30%;
    }

    .p_flex_1-1-40 {
        flex: 1 1 40%;
        width: 40%;
    }

    .p_flex_1-1-50 {
        flex: 1 1 50%;
        width: 50%;
    }

    .p_flex_1-1-60 {
        flex: 1 1 60%;
        width: 60%;
    }

    .p_flex_1-1-70 {
        flex: 1 1 70%;
        width: 70%;
    }

    .p_flex_1-1-80 {
        flex: 1 1 80%;
        width: 80%;
    }

    .p_flex_1-1-90 {
        flex: 1 1 90%;
        width: 90%;
    }

    .p_flex_1-1-100 {
        flex: 1 1 100%;
        width: 100%;
    }

    /* width */
    .p_w-25 {
        flex: 0 0 25%;
        width: 25%;
    }

    .p_w-33 {
        flex: 0 0 33%;
        width: 33%;
    }

    .p_w-50 {
        flex: 0 0 50%;
        width: 50%;
    }

    .p_w-66 {
        flex: 0 0 66%;
        width: 66%;
    }

    .p_w-75 {
        flex: 0 0 75%;
        width: 75%;
    }

    .p_w-100 {
        flex: 0 0 100%;
        width: 100%;
    }

    /* ——— Position ——— */
    .p_top-left {
        top: 0.5rem;
        left: 0.5rem;
    }

    .p_top-right {
        top: 0.5rem;
        right: 0.5rem;
    }

    .p_bottom-left {
        bottom: 0.5rem;
        left: 0.5rem;
    }

    .p_bottom-right {
        bottom: 0.5rem;
        right: 0.5rem;
    }

    /* ——— Flex Justify / Align ——— */
    .p_j-c_flex-start {
        justify-content: flex-start;
    }

    .p_j-c_flex-end {
        justify-content: flex-end;
    }

    .p_j-c_center {
        justify-content: center;
    }

    .p_j-c_space-between {
        justify-content: space-between;
    }

    .p_j-c_space-around {
        justify-content: space-around;
    }

    .p_j-c_space-evenly {
        justify-content: space-evenly;
    }

    .p_a-i_flex-start {
        align-items: flex-start;
    }

    .p_a-i_flex-end {
        align-items: flex-end;
    }

    .p_a-i_center {
        align-items: center;
    }

    .p_a-i_baseline {
        align-items: baseline;
    }

    .p_a-i_stretch {
        align-items: stretch;
    }

    .p_a-c_flex-start {
        align-content: flex-start;
    }

    .p_a-c_flex-end {
        align-content: flex-end;
    }

    .p_a-c_center {
        align-content: center;
    }

    .p_a-c_space-between {
        align-content: space-between;
    }

    .p_a-c_space-around {
        align-content: space-around;
    }

    .p_a-c_stretch {
        align-content: stretch;
    }

    /* ——— Buttons ——— */
    button, .ui-button, .bbcodes, .btn-text, .btn-outlined,
    .btn-primary, .btn-secondary, .btn-accent, .btn-sm {
        padding: 0.45em 0.5em;
    }

    .btn-icon {
        height: 1.85em;
        padding: 0.2em;
        width: 1.85em;
    }

    .p_btn-block {
        display: block;
        width: 100% !important;
    }

        .bbcodes ~ .bbcodes,
        .p_btn-block ~ .p_btn-block {
            margin-top: 0.8em;
        }

    /* ——— Dropdown ——— */
    .sd__dropdown-content {
        min-width: 300px;
    }

    .sd__dropdown-header,
    .sd__dropdown-body,
    .sd__dropdown-footer {
        padding: 0.75rem;
    }

    /* ——— Modal ——— */
    .sd__modal-content {
        width: 95%;
    }
}

/*only phone*/
@media (min-width:576px) {
    .only_p {
        display: none !important
    }
}

/* =============================================================================
   TEMPLATE-SPECIFIC STYLES
============================================================================= */

hr {
    border: 1px solid rgba(124, 126, 128, 0.25);
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.story__content img[style*="float:left"] {
    margin-bottom: 0.75rem;
    margin-right: 0.75rem;
}

.story__content img[style*="float:right"] {
    margin-bottom: 0.75rem;
    margin-left: 0.75rem;
}

.story__content::after {
    content: "";
    display: block;
    clear: both;
}

.story .story__content ul, .story .story__content ol {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
}

    .story .story__content ul li, .story .story__content ol li {
        padding-left: 0.25rem;
    }

.story .story__content ul {
    list-style-type: disc;
}

.story .story__content ol {
    list-style-type: decimal;
}

/* --- AddNews --- */
.findrelated {
    margin-bottom: 1rem;
}

/* ——— Menu ——— */
.categorymenu.menu__ul.list {
}

ul.menu__ul li,
ul.menu__ul li > ul,
ul.menu__ul ul > li {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

    ul.menu__ul li:first-child,
    ul.menu__ul li:first-child > ul,
    ul.menu__ul ul > li:first-child {
        margin-top: 0;
    }

    ul.menu__ul li:last-child,
    ul.menu__ul li:last-child > ul,
    ul.menu__ul ul > li:last-child {
        margin-bottom: 0;
    }

ul.menu__ul ul {
    display: none;
    padding-left: 1.25rem;
}

/* --- Arhiv --- */
/* Стили для ссылок архива */
.archives a.archives {
    display: block;
    text-decoration: none;
    transition: color 0.2s ease 0s;
}

/* Отступы между ссылками */
.archives br {
    display: none;
}

    .archives br + a.archives {
        margin-top: 0.5rem;
    }

/* Ссылка "Показать / скрыть весь архив" */
#dle_news_archive_link a.archives {
    display: inline-block;
    font-size: 90%;
    margin-top: 1rem;
}

    #dle_news_archive_link a.archives:hover {
        text-decoration: underline;
    }

/* Скрытие по умолчанию дополнительного архива */
#dle_news_archive {
    margin-top: 0.5rem;
}

/* ——— Footer ——— */
footer a {
    font-weight: 700;
}

.counters .count {
    display: inline-block;
    width: 88px;
    height: 31px;
    background-color: rgb(128, 128, 128);
    vertical-align: middle;
}

    .counters .count:hover {
        background-color: rgb(168, 168, 168);
    }

/* ——— Fullstory ——— */
.fullstory .story__title {
    font-size: 150%;
}

/* ——— Comments ——— */
.sd__avatar {
    position: relative;
}

    .sd__avatar img {
        width: 3.5rem;
        height: 3.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid white;
        border-radius: 0.25rem;
        box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
        object-fit: cover;
    }

    .sd__avatar.sm img {
        width: 2.5rem;
        height: 2.5rem;
    }

.avatar-status-online,
.avatar-status-offline {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-radius: 50%;
}

.avatar-status-online {
    background-color: rgb(0, 128, 0);
}

.avatar-status-offline {
    background-color: rgb(148, 163, 184);
}

.sd__avatar .avatar-fallback {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.25rem;
    font-size: 14px;
}

.comments-tree-item .comments-tree-item {
    padding-left: 1.5rem;
}

.mass_comments_action {
    display: none;
}

@media (max-width:576px) {
    .sd__avatar img, .sd__avatar .avatar-fallback {
        width: 2.5rem;
        height: 2.5rem;
    }

    .avatar-status-online,
    .avatar-status-offline {
        bottom: 0;
        right: 0;
    }
}

/* comments-image-gallery */
.story .story__content .comments-image-gallery {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* ——— Navigation ——— */
.navigation {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
}

    .navigation .link {
        align-items: center;
        display: flex;
    }

        .navigation .link a, .navigation .link span {
            align-items: center;
            background-color: rgba(124, 126, 128, 0.15);
            border-radius: 0.25rem;
            display: flex;
            height: 2.25rem;
            justify-content: center;
            transition: all 0.25s ease 0s;
            width: 2.25em;
        }

        .navigation .link.pages a, .navigation .link.pages span {
            margin-right: 1rem;
        }

            .navigation .link.pages a:last-child, .navigation .link.pages span:last-child {
                margin-right: 0;
            }

        .navigation .link a:hover,
        .navigation .link.pages span {
            background-color: rgba(128, 126, 124, 0.5);
            color: rgba(224, 226, 228, 0.75);
        }

/* ——— Tags ——— */
.tags a {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    margin: 0 0.5em 0.25em 0;
    padding: 0.35rem 0.5rem;
    text-align: center;
    vertical-align: baseline;
    white-space: nowrap;
}

/* ——— Vote ——— */
