.tr-official-services {
    --tr-os-ink: #172039;
    --tr-os-muted: #5e687e;
    --tr-os-line: #e4e8f1;
    --tr-os-brand: #5538c8;
    --tr-os-brand-dark: #3d279b;
    --tr-os-soft: #f5f3ff;
    --tr-os-green: #157f5b;
    --tr-os-green-soft: #eaf8f2;
    box-sizing: border-box;
    max-width: 1220px;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 42px) 16px 56px;
    color: var(--tr-os-ink);
    font-family: inherit;
}

.tr-official-services *,
.tr-official-services *::before,
.tr-official-services *::after {
    box-sizing: inherit;
}

.tr-os-hero {
    display: grid;
    gap: 22px;
    padding: clamp(24px, 4vw, 48px);
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 255, 255, .32), transparent 28%),
        linear-gradient(135deg, #573bc8 0%, #31227e 100%);
    color: #fff;
    box-shadow: 0 18px 50px rgba(49, 34, 126, .2);
}

.tr-os-hero-copy > span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: 13px;
    font-weight: 800;
}

.tr-os-hero h1 {
    max-width: 760px;
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.2;
    letter-spacing: -.035em;
}

.tr-os-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.85;
}

.tr-os-hero aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 152px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 22px;
    background: rgba(255, 255, 255, .12);
    text-align: center;
    backdrop-filter: blur(8px);
}

.tr-os-hero aside strong {
    color: #fff;
    font-size: 44px;
    line-height: 1;
}

.tr-os-hero aside span {
    margin-top: 8px;
    font-weight: 800;
}

.tr-os-hero aside small {
    margin-top: 6px;
    color: rgba(255, 255, 255, .72);
}

.tr-os-filters {
    display: grid;
    gap: 14px;
    margin: 24px 0;
    padding: 18px;
    border: 1px solid var(--tr-os-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(23, 32, 57, .07);
}

.tr-os-filters label {
    display: grid;
    gap: 7px;
    margin: 0;
}

.tr-os-filters label > span {
    color: var(--tr-os-ink);
    font-size: 13px;
    font-weight: 800;
}

.tr-os-filters input,
.tr-os-filters select {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #d9deea;
    border-radius: 13px;
    background: #fbfcff;
    color: var(--tr-os-ink);
    font: inherit;
}

.tr-os-filters input:focus,
.tr-os-filters select:focus {
    outline: 3px solid rgba(85, 56, 200, .14);
    border-color: var(--tr-os-brand);
}

.tr-os-filters button,
.tr-os-filters > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    align-self: end;
    border-radius: 13px;
    font-weight: 800;
    text-decoration: none;
}

.tr-os-filters button {
    padding: 10px 20px;
    border: 0;
    background: var(--tr-os-brand);
    color: #fff;
    cursor: pointer;
}

.tr-os-filters button:hover,
.tr-os-filters button:focus {
    background: var(--tr-os-brand-dark);
}

.tr-os-filters > a {
    padding: 10px 14px;
    color: var(--tr-os-brand);
}

.tr-os-results-heading {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 26px 2px 14px;
    color: var(--tr-os-muted);
}

.tr-os-results-heading strong {
    color: var(--tr-os-ink);
    font-size: 24px;
}

.tr-os-grid {
    display: grid;
    gap: 16px;
}

.tr-os-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--tr-os-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 32, 57, .055);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tr-os-card:hover {
    transform: translateY(-3px);
    border-color: #cec5fb;
    box-shadow: 0 15px 34px rgba(61, 39, 155, .11);
}

.tr-os-card header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tr-os-official-badge,
.tr-os-region {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.tr-os-official-badge {
    background: var(--tr-os-green-soft);
    color: var(--tr-os-green);
}

.tr-os-region {
    background: var(--tr-os-soft);
    color: var(--tr-os-brand-dark);
}

.tr-os-card h2 {
    margin: 17px 0 9px;
    color: var(--tr-os-ink);
    font-size: 20px;
    line-height: 1.45;
}

.tr-os-card > p {
    flex: 1;
    margin: 0 0 18px;
    color: var(--tr-os-muted);
    font-size: 14px;
    line-height: 1.8;
}

.tr-os-source {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px 12px;
    padding-top: 13px;
    border-top: 1px solid #edf0f6;
    color: var(--tr-os-muted);
    direction: ltr;
    font-size: 11px;
}

.tr-os-source span {
    overflow-wrap: anywhere;
    font-weight: 700;
}

.tr-os-login-note {
    margin-top: 9px;
    color: #8a5a08;
    font-size: 11px;
}

.tr-os-open {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    margin-top: 15px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--tr-os-soft);
    color: var(--tr-os-brand-dark);
    font-weight: 800;
    text-decoration: none;
}

.tr-os-open:hover,
.tr-os-open:focus {
    background: var(--tr-os-brand);
    color: #fff;
}

.tr-os-empty {
    padding: 38px 20px;
    border: 1px dashed #cfd5e2;
    border-radius: 20px;
    background: #fafbfe;
    text-align: center;
}

.tr-os-empty strong {
    display: block;
    font-size: 21px;
}

.tr-os-empty p {
    margin: 8px 0 0;
    color: var(--tr-os-muted);
}

.tr-os-privacy {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    margin-top: 26px;
    padding: 20px;
    border: 1px solid #cfe9df;
    border-radius: 20px;
    background: var(--tr-os-green-soft);
}

.tr-os-privacy > div {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--tr-os-green);
    color: #fff;
    font-weight: 900;
}

.tr-os-privacy strong {
    display: block;
    margin-bottom: 5px;
    color: #0e6547;
    font-size: 17px;
}

.tr-os-privacy p,
.tr-os-notice {
    margin: 0;
    color: var(--tr-os-muted);
    font-size: 13px;
    line-height: 1.8;
}

.tr-os-notice {
    padding: 13px 4px 0;
    text-align: center;
}

@media (min-width: 620px) {
    .tr-os-filters {
        grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(150px, .7fr));
    }

    .tr-os-filters button {
        grid-column: span 2;
    }

    .tr-os-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .tr-os-hero {
        grid-template-columns: minmax(0, 1fr) 230px;
        align-items: center;
    }

    .tr-os-filters {
        grid-template-columns: minmax(230px, 1.5fr) repeat(2, minmax(170px, .8fr)) auto auto;
        align-items: end;
    }

    .tr-os-filters button {
        grid-column: auto;
    }

    .tr-os-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 619px) {
    .tr-official-services {
        padding-inline: 12px;
    }

    .tr-os-hero {
        border-radius: 22px;
    }

    .tr-os-filters button,
    .tr-os-filters > a {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tr-os-card {
        transition: none;
    }
}
