:root {
    --tl-primary: #0066ff;
    --tl-primary-light: #66c9f3;
    --tl-primary-dark: #004b69;
    --tl-gradient: linear-gradient(135deg, #004b69 0%, #66c9f3 100%);
    --tl-gradient-steam: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    --tl-gradient-panel: linear-gradient(135deg, #004b69 0%, #0077a3 80%, #00a3cc 100%);
    --tl-text: #1a1a2e;
    --tl-text-muted: #64748b;
    --tl-text-light: #94a3b8;
    --tl-bg: #f8fafc;
    --tl-bg-alt: #e8eef4;
    --tl-card-bg: #ffffff;
    --tl-border: rgba(0, 75, 105, 0.08);
    --tl-shadow: 0 4px 24px rgba(0, 75, 105, 0.08);
    --tl-shadow-hover: 0 12px 40px rgba(0, 75, 105, 0.15);
    --tl-shadow-card: 0 8px 32px rgba(0, 75, 105, 0.1);
    --tl-radius-lg: 24px;
    --tl-radius: 20px;
    --tl-radius-sm: 12px;
    --tl-radius-xs: 8px;
    --tl-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tl-inset: 12px;
    --tl-gap-crumbs: 12px;
    --tl-gap-lead: 10px;
    --tl-gap-tool: 18px;
}

.tl-page {
    background: var(--tl-bg);
    min-height: 100vh;
    font-size: 16px;
    color: var(--tl-text);
    padding: 24px 0 48px;
}

.tl-container {
    max-width: 1440px;
    margin: 0 auto;
}

.tl-breadcrumb {
    background: var(--tl-card-bg);
    padding: 10px calc(var(--tl-inset) - 1px);
    border-radius: 30px;
    display: inline-flex;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--tl-border);
    box-shadow: 0 2px 8px rgba(0, 75, 105, 0.04);
    margin-bottom: 0;
}

.tl-breadcrumb a,
.tl-breadcrumb span {
    color: var(--tl-text-muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--tl-transition);
}

.tl-breadcrumb a:hover,
.tl-breadcrumb a:focus-visible {
    color: var(--tl-primary-dark);
}

.tl-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--tl-text-light);
    content: "›";
    font-size: 16px;
    line-height: 1;
}

.tl-hero {
    position: relative;
    margin-top: 16px;
    padding: 28px var(--tl-inset);
    border-radius: var(--tl-radius-lg);
    overflow: hidden;
    color: #fff;
    background: var(--tl-gradient-steam);
    box-shadow: var(--tl-shadow-card);
}

.tl-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 201, 243, 0.28) 0%, rgba(102, 201, 243, 0) 70%);
    pointer-events: none;
}

.tl-hero h1 {
    position: relative;
    margin: 0;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #fff;
}

.tl-hero p {
    position: relative;
    max-width: 70ch;
    margin: 14px 0 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.tl-hero a {
    color: var(--tl-primary-light);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tl-hero a:hover,
.tl-hero a:focus-visible {
    color: #fff;
}

.tl-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.tl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px calc(var(--tl-inset) - 1px);
    background: var(--tl-card-bg);
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius);
    box-shadow: var(--tl-shadow);
    transition: var(--tl-transition);
}

.tl-card:hover,
.tl-card:focus-within {
    box-shadow: var(--tl-shadow-hover);
    transform: translateY(-2px);
}

.tl-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--tl-radius-sm);
    background: var(--tl-bg-alt);
}

.tl-card-icon img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.tl-card-title {
    margin: 16px 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tl-text);
}

.tl-card-text {
    flex: 1 1 auto;
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--tl-text-muted);
}

.tl-card-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    min-height: 44px;
    margin-top: 18px;
    padding: 0 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--tl-primary-dark);
    text-decoration: none;
    transition: var(--tl-transition);
}

.tl-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--tl-radius);
}

.tl-card-link:hover,
.tl-card-link:focus {
    color: #fff;
    background: #005f85;
    text-decoration: none;
}

.tl-card-link:focus-visible {
    outline: none;
}

.tl-card-link:focus-visible::after {
    outline: 3px solid var(--tl-primary-light);
    outline-offset: 2px;
}

.tl-card-link i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.tl-card:hover .tl-card-link i {
    transform: translateX(3px);
}

.tl-empty {
    position: relative;
    margin-top: 24px;
    padding: 18px;
    background: var(--tl-card-bg);
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius-lg);
    box-shadow: var(--tl-shadow);
    overflow: hidden;
}

.tl-empty-ghosts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.tl-ghost {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    min-height: 168px;
    border: 2px dashed rgba(0, 75, 105, 0.14);
    border-radius: var(--tl-radius);
}

.tl-ghost span {
    display: block;
    height: 10px;
    border-radius: 5px;
    background: var(--tl-bg-alt);
}

.tl-ghost span:first-child {
    width: 48px;
    height: 48px;
    border-radius: var(--tl-radius-sm);
}

.tl-ghost span:nth-child(2) {
    width: 60%;
    margin-top: 6px;
}

.tl-ghost span:nth-child(3) {
    width: 85%;
}

.tl-ghost:nth-child(n+2) {
    display: none;
}

.tl-empty-note {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 35%, rgba(255, 255, 255, 0.35) 80%);
}

.tl-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    background: var(--tl-gradient);
    box-shadow: 0 8px 24px rgba(0, 75, 105, 0.2);
}

.tl-empty-note p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--tl-text);
}

@media (min-width: 768px) {
    :root {
        --tl-inset: 24px;
        --tl-gap-crumbs: 20px;
        --tl-gap-lead: 18px;
        --tl-gap-tool: 36px;
    }

    .tl-hero {
        margin-top: var(--tl-gap-crumbs);
        padding: 38px var(--tl-inset);
    }

    .tl-hero p {
        margin-top: var(--tl-gap-lead);
    }

    .tl-grid,
    .tl-empty {
        margin-top: var(--tl-gap-tool);
    }

    .tl-hero::after {
        width: 380px;
        height: 380px;
        right: -40px;
        bottom: -160px;
    }

    .tl-grid,
    .tl-empty-ghosts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .tl-ghost:nth-child(2) {
        display: flex;
    }

    .tl-empty {
        padding: 24px;
    }

    .tl-empty-note p {
        font-size: 1.2rem;
    }
}

@media (min-width: 1200px) {
    .tl-grid,
    .tl-empty-ghosts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .tl-ghost:nth-child(3) {
        display: flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tl-card,
    .tl-card-link,
    .tl-card-link i,
    .tl-breadcrumb a {
        transition: none;
    }

    .tl-card:hover,
    .tl-card:focus-within,
    .tl-card:hover .tl-card-link i {
        transform: none;
    }
}
