.ut-wrap {
    color: #4e4033;
}

.ut-hero,
.ut-toolbar,
.ut-panel {
    position: relative;
    border-radius: 28px;
    border: 1px solid rgba(196, 152, 87, 0.16);
    background:
        radial-gradient(circle at top right, rgba(244, 205, 116, 0.2), transparent 30%),
        linear-gradient(180deg, rgba(255, 250, 242, 0.98) 0%, rgba(255, 247, 236, 0.96) 100%);
    box-shadow: 0 22px 50px rgba(94, 61, 36, 0.08);
}

.ut-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    gap: 28px;
    align-items: start;
    padding: 30px 32px;
    margin-bottom: 18px;
}

.ut-kicker,
.ut-toolbar-kicker,
.ut-panel-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(190, 145, 66, 0.22);
    background: rgba(255, 251, 244, 0.88);
    color: #9a5b11;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ut-hero h1 {
    margin: 18px 0 12px;
    color: #842713;
    font-size: 35px;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.ut-hero p,
.ut-toolbar-copy p {
    margin: 0;
    color: #6d5b4d;
    font-size: 15px;
    line-height: 1.8;
}

.ut-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ut-stat-card {
    position: relative;
    overflow: hidden;
    min-height: 140px;
    padding: 18px 18px 16px;
    border-radius: 24px;
    border: 1px solid rgba(194, 150, 78, 0.16);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 30px rgba(90, 55, 25, 0.08);
}

.ut-stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(90deg, #8f2410 0%, #cf9b3f 100%);
}

.ut-stat-label {
    display: block;
    margin-bottom: 12px;
    color: #8a663d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ut-stat-card strong {
    display: block;
    color: #5f1f11;
    font-size: 28px;
    line-height: 1;
}

.ut-stat-copy {
    display: block;
    margin-top: 10px;
    color: #7a685a;
    font-size: 13px;
    line-height: 1.6;
}

.ut-toolbar {
    padding: 24px 24px 20px;
    margin-bottom: 18px;
}

.ut-toolbar-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.ut-toolbar-copy h2 {
    margin: 14px 0 8px;
    color: #6b220f;
    font-size: 28px;
    line-height: 1.15;
}

.ut-toolbar-pill,
.ut-panel-summary {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-height: 66px;
    min-width: 132px;
    padding: 10px 16px;
    border-radius: 22px;
    border: 1px solid rgba(194, 150, 78, 0.16);
    background: rgba(255, 255, 255, 0.8);
    color: #7c6655;
    box-shadow: 0 14px 28px rgba(96, 64, 38, 0.06);
}

.ut-toolbar-pill strong,
.ut-panel-summary {
    color: #8a3818;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.ut-toolbar-pill span {
    margin-top: 8px;
    font-size: 12px;
    color: #7c6655;
}

.ut-toolbar-row {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: flex-start;
}

.ut-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ut-tab {
    border: 1px solid rgba(194, 150, 78, 0.16);
    border-radius: 999px;
    min-height: 44px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.72);
    color: #6f6357;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ut-tab:hover,
.ut-tab:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(175, 120, 52, 0.26);
    background: rgba(255, 252, 245, 0.92);
    color: #8a3818;
}

.ut-tab.active {
    border-color: transparent;
    background: linear-gradient(135deg, #8f2410 0%, #c26d21 100%);
    color: #fff8f3;
    box-shadow: 0 14px 26px rgba(143, 36, 16, 0.18);
}

.ut-panel {
    display: none;
    padding: 24px;
    margin-bottom: 18px;
}

.ut-panel.active {
    display: block;
}

.ut-panel-meta {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.ut-panel-heading h3 {
    margin: 12px 0 0;
    color: #6c2410;
    font-size: 24px;
    line-height: 1.15;
}

.ut-panel-summary {
    min-height: auto;
    align-items: center;
    font-size: 13px;
}

.ut-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(194, 150, 78, 0.16);
    border-radius: 24px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(96, 64, 38, 0.07);
}

.ut-card-head {
    width: 100%;
    border: 0;
    background: transparent;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    color: #0f172a;
    cursor: pointer;
    text-align: left;
}

.ut-card-head-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ut-card-kicker {
    color: #8f5b18;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ut-card-title-text {
    color: #5e2213;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.2;
}

.ut-card-chevron {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 247, 236, 0.96);
    color: #9a2109;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ut-card-chevron svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    fill: none;
}

.ut-card.open .ut-card-chevron {
    transform: rotate(180deg);
    background: rgba(154, 33, 9, 0.1);
}

.ut-card-head:hover {
    background: rgba(255, 250, 242, 0.8);
}

.ut-card-body {
    display: none;
    padding: 0 22px 22px;
    border-top: 1px solid rgba(206, 173, 121, 0.18);
}

.ut-card.open .ut-card-body {
    display: block;
}

.ut-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 247, 236, 0.96);
    border: 1px solid rgba(194, 150, 78, 0.18);
    color: #8b3817;
    font-size: 12px;
    font-weight: 800;
}

.ut-empty {
    background: rgba(255, 255, 255, 0.82);
    border: 1px dashed rgba(194, 150, 78, 0.22);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    color: #64748b;
}

.ut-empty.small {
    padding: 14px 16px;
    text-align: left;
}

.ut-detail-block {
    margin-top: 18px;
}

.ut-detail-block:first-child {
    margin-top: 16px;
}

.ut-detail-count {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(143, 36, 16, 0.08);
    color: #8b3817;
    font-size: 12px;
    font-weight: 800;
    padding: 0 12px;
}

.ut-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: 14px;
    margin-bottom: 14px;
}

.ut-info-box {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(194, 150, 78, 0.16);
    border-radius: 20px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.82);
    box-sizing: border-box;
}

.ut-info-box::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
}

.ut-task-box::before {
    background: #8f2410;
}

.ut-law-box::before {
    background: #395468;
    background: rgba(250, 251, 252, 0.95);
}

.ut-function-box::before {
    background: #c98d2f;
}

.ut-law-box {
    background: rgba(250, 251, 252, 0.95);
}

.ut-function-box {
    background: rgba(255, 252, 245, 0.94);
}

.ut-section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: #7a3119;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ut-section-title > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #8f2410;
    color: #fff;
    font-size: 11px;
    line-height: 1;
}

.ut-law-box .ut-section-title {
    color: #395468;
}

.ut-law-box .ut-section-title > span {
    background: #395468;
}

.ut-section-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    fill: none;
}

.ut-function-box .ut-section-title {
    color: #8a4e16;
}

.ut-function-box .ut-section-title > span {
    background: #c98d2f;
    color: #fffaf3;
}

.ut-text {
    color: #324c69;
    line-height: 1.72;
    font-size: 15px;
}

.ut-text p {
    margin: 0 0 8px;
}

.ut-text p:last-child {
    margin-bottom: 0;
}

.ut-number-list,
.ut-bullet-list {
    margin: 0;
    padding-left: 22px;
}

.ut-number-list li,
.ut-bullet-list li {
    margin: 0 0 8px;
    padding-left: 5px;
    line-height: 1.66;
    color: #324c69;
}

.ut-number-list li:last-child,
.ut-bullet-list li:last-child {
    margin-bottom: 0;
}

.ut-richtext ul,
.ut-richtext ol {
    margin: 0;
    padding-left: 22px;
}

.ut-richtext li {
    margin-bottom: 8px;
    line-height: 1.66;
}

.ut-richtext p {
    margin: 0 0 8px;
}

.ut-richtext p:last-child {
    margin-bottom: 0;
}

.ut-no-results {
    margin-top: 4px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px dashed rgba(194, 150, 78, 0.24);
    background: rgba(255, 251, 244, 0.84);
    color: #7a685a;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .ut-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .ut-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ut-toolbar-row {
        display: block;
    }
}

@media (max-width: 768px) {
    .ut-hero,
    .ut-toolbar,
    .ut-panel {
        border-radius: 22px;
    }

    .ut-hero {
        padding: 24px 20px;
    }

    .ut-hero h1 {
        font-size: 28px;
    }

    .ut-hero-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .ut-toolbar {
        padding: 20px 18px 18px;
    }

    .ut-toolbar-head,
    .ut-panel-meta {
        display: block;
    }

    .ut-toolbar-pill,
    .ut-panel-summary {
        margin-top: 14px;
        align-items: flex-start;
    }

    .ut-card-head {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 16px 16px;
    }

    .ut-badge {
        grid-column: 1 / -1;
        justify-self: flex-start;
    }

    .ut-card-body {
        padding: 0 16px 18px;
    }

    .ut-top-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
