/*
 * MBCS Afghanistan Government Entities Directory
 * Responsive, framework-free production styles.
 */

:root {
    --navy-950: #05172d;
    --navy-900: #071f3d;
    --navy-800: #0a2b53;
    --blue-700: #0c4da2;
    --blue-600: #1767c7;
    --blue-100: #eaf3ff;
    --blue-50: #f5f9ff;
    --gold-500: #c99a42;
    --gold-400: #dfb965;
    --gold-100: #f7ecd4;
    --white: #fff;
    --ink: #13233a;
    --muted: #617087;
    --line: #dce5ef;
    --surface: #f7f9fc;
    --success: #1a7f5a;
    --shadow-sm: 0 6px 24px rgba(7, 31, 61, 0.07);
    --shadow-md: 0 18px 50px rgba(7, 31, 61, 0.12);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --container: 1200px;
    --header-height: 78px;
    --transition: 180ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    color: inherit;
    font: inherit;
}

button,
select {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--gold-400);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--white);
    background: var(--blue-700);
    transform: translateY(-180%);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.container--narrow {
    max-width: 860px;
}

.section {
    padding-block: 100px;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    height: var(--header-height);
    border-bottom: 1px solid rgba(220, 229, 239, 0.75);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    transition: box-shadow var(--transition), background var(--transition);
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 30px rgba(7, 31, 61, 0.08);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    min-width: 142px;
}

.brand__logo {
    width: auto;
    height: 48px;
    object-fit: contain;
}

.brand__fallback {
    display: none;
    align-items: center;
    gap: 10px;
    color: var(--navy-900);
    line-height: 1;
}

.brand.is-fallback .brand__logo {
    display: none;
}

.brand.is-fallback .brand__fallback {
    display: flex;
}

.brand__mark {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid rgba(201, 154, 66, 0.5);
    border-radius: 12px 4px 12px 4px;
    color: var(--gold-400);
    background: var(--navy-900);
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 700;
}

.brand__fallback strong,
.brand__fallback small {
    display: block;
}

.brand__fallback strong {
    letter-spacing: 0.09em;
    font-size: 18px;
}

.brand__fallback small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.primary-nav > a:not(.button) {
    position: relative;
    color: #34455c;
    font-size: 14px;
    font-weight: 650;
}

.primary-nav > a:not(.button)::after {
    position: absolute;
    right: 50%;
    bottom: -9px;
    left: 50%;
    height: 2px;
    content: "";
    background: var(--gold-500);
    transition: right var(--transition), left var(--transition);
}

.primary-nav > a:not(.button):hover::after,
.primary-nav > a:not(.button):focus-visible::after {
    right: 0;
    left: 0;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: var(--navy-900);
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 21px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.button:hover {
    transform: translateY(-2px);
}

.button--small {
    min-height: 42px;
    padding: 10px 17px;
    font-size: 13px;
}

.button--large {
    min-height: 56px;
    padding-inline: 25px;
}

.button--primary {
    color: var(--white);
    background: var(--blue-600);
    box-shadow: 0 12px 25px rgba(23, 103, 199, 0.25);
}

.button--primary:hover {
    background: var(--blue-700);
    box-shadow: 0 16px 30px rgba(23, 103, 199, 0.32);
}

.button--gold {
    color: var(--navy-950);
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    box-shadow: 0 10px 24px rgba(201, 154, 66, 0.22);
}

.button--gold:hover {
    background: linear-gradient(135deg, #e8c779, #d0a149);
    box-shadow: 0 14px 28px rgba(201, 154, 66, 0.3);
}

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(5, 23, 45, 0.98), rgba(7, 39, 78, 0.95)),
        radial-gradient(circle at 75% 45%, #0e5bb0, transparent 36%);
}

.hero::before,
.hero::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.hero::before {
    inset: 0;
    opacity: 0.13;
    background-image:
        linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(90deg, transparent, #000 65%, transparent);
}

.hero::after {
    top: -180px;
    right: -130px;
    width: 590px;
    height: 590px;
    border: 1px solid rgba(223, 185, 101, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255,255,255,.015), 0 0 0 150px rgba(255,255,255,.012);
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(15px);
    pointer-events: none;
}

.hero__glow--one {
    top: 10%;
    right: 7%;
    width: 280px;
    height: 280px;
    background: rgba(23, 103, 199, 0.17);
}

.hero__glow--two {
    right: 32%;
    bottom: -70px;
    width: 210px;
    height: 210px;
    background: rgba(201, 154, 66, 0.1);
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-block: 105px 75px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 19px;
    color: var(--gold-400);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 26px;
    height: 1px;
    background: currentColor;
}

.eyebrow--blue {
    color: var(--blue-600);
}

.hero h1 {
    max-width: 870px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 6.3vw, 78px);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.03;
}

.hero h1 span {
    color: var(--gold-400);
}

.hero__lead {
    max-width: 690px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 27px;
    margin-top: 34px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.85);
    font-size: 14px;
    font-weight: 650;
    transition: color var(--transition), border-color var(--transition);
}

.text-link:hover {
    color: var(--gold-400);
    border-color: var(--gold-400);
}

.hero__stats {
    display: grid;
    max-width: 910px;
    grid-template-columns: repeat(4, 1fr);
    margin: 70px 0 0;
    padding: 25px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__stats div {
    padding-inline: 25px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__stats div:first-child {
    padding-left: 0;
}

.hero__stats div:last-child {
    border: 0;
}

.hero__stats dt {
    color: var(--white);
    font-family: Georgia, serif;
    font-size: 33px;
    line-height: 1;
}

.hero__stats dd {
    margin: 8px 0 0;
    color: rgba(255,255,255,.6);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.directory {
    background: var(--surface);
}

.section-heading h2 {
    margin: 0;
    color: var(--navy-900);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4.4vw, 52px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.section-heading p {
    max-width: 670px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.section-heading--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.section-heading--center {
    max-width: 710px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-heading--center .eyebrow {
    justify-content: center;
}

.section-heading--center p {
    margin-inline: auto;
}

.result-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
    padding: 13px 17px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.result-badge strong {
    color: var(--blue-600);
    font-family: Georgia, serif;
    font-size: 27px;
    line-height: 1;
}

.result-badge span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.directory-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
    margin-top: 42px;
}

.search-field label,
.sort-field label {
    display: block;
    margin-bottom: 7px;
    color: #3d4f67;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.search-field__input {
    position: relative;
}

.search-field__input svg {
    position: absolute;
    top: 50%;
    left: 18px;
    color: var(--blue-600);
    transform: translateY(-50%);
    pointer-events: none;
}

.search-field input,
.sort-field select {
    width: 100%;
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 3px 12px rgba(7,31,61,.035);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-field input {
    padding: 0 48px 0 52px;
}

.search-field input::placeholder {
    color: #98a4b3;
}

.sort-field select {
    padding: 0 42px 0 15px;
}

.search-field input:focus,
.sort-field select:focus {
    border-color: var(--blue-600);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(23, 103, 199, 0.11);
}

.search-clear {
    position: absolute;
    top: 50%;
    right: 12px;
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    background: var(--surface);
    font-size: 21px;
    line-height: 1;
    transform: translateY(-50%);
}

.search-clear:hover {
    color: var(--navy-900);
    background: var(--blue-100);
}

.filter-scroll {
    margin-top: 20px;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.filter-button {
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #4d5e74;
    background: var(--white);
    font-size: 13px;
    font-weight: 700;
    transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

.filter-button span {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    margin-left: 5px;
    padding-inline: 5px;
    place-items: center;
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface);
    font-size: 11px;
}

.filter-button:hover {
    border-color: #aec7e7;
    color: var(--blue-700);
    transform: translateY(-1px);
}

.filter-button.is-active {
    border-color: var(--blue-700);
    color: var(--white);
    background: var(--blue-700);
    box-shadow: 0 8px 20px rgba(12, 77, 162, 0.17);
}

.filter-button.is-active span {
    color: var(--blue-700);
    background: var(--white);
}

.directory-notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 23px 0 0;
    padding: 12px 15px;
    border: 1px solid #d7e5f5;
    border-radius: 10px;
    color: #526983;
    background: #f1f7ff;
    font-size: 13px;
}

.directory-notice svg {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--blue-600);
}

.entity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.entity-card {
    position: relative;
    display: flex;
    overflow: hidden;
    min-width: 0;
    min-height: 386px;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 5px 20px rgba(7, 31, 61, 0.045);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.entity-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, var(--blue-600), var(--gold-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 240ms ease;
}

.entity-card:hover,
.entity-card:focus-within {
    border-color: #c5d9ee;
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.entity-card:hover::before,
.entity-card:focus-within::before {
    transform: scaleX(1);
}

.entity-card[hidden] {
    display: none;
}

.entity-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.entity-card__logo {
    display: grid;
    overflow: hidden;
    width: 70px;
    height: 70px;
    flex: 0 0 auto;
    place-items: center;
    padding: 7px;
    border: 1px solid #e0e8f2;
    border-radius: 16px;
    background: var(--blue-50);
}

.entity-card__logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.entity-card__category {
    max-width: 190px;
    padding: 6px 9px;
    border: 1px solid #d9e7f6;
    border-radius: 999px;
    color: var(--blue-700);
    background: var(--blue-50);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
}

.entity-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.entity-card h3 {
    margin: 21px 0 0;
    color: var(--navy-900);
    font-size: 18px;
    font-weight: 760;
    letter-spacing: -0.015em;
    line-height: 1.35;
}

.entity-card__body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 11px 0 20px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.entity-card__footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e8edf3;
}

.entity-card__url {
    display: flex;
    overflow: hidden;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entity-card__url svg {
    flex: 0 0 auto;
    color: var(--gold-500);
}

.entity-card__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #cbdcf0;
    border-radius: 9px;
    color: var(--blue-700);
    background: var(--blue-50);
    font-size: 12.5px;
    font-weight: 800;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.entity-card__button:hover {
    border-color: var(--blue-700);
    color: var(--white);
    background: var(--blue-700);
}

.no-results {
    max-width: 540px;
    margin: 45px auto 0;
    padding: 45px 25px;
    border: 1px dashed #bfcddd;
    border-radius: var(--radius-md);
    background: var(--white);
    text-align: center;
}

.no-results[hidden] {
    display: none;
}

.no-results__icon {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto 15px;
    place-items: center;
    border-radius: 50%;
    color: var(--blue-600);
    background: var(--blue-100);
    font-size: 36px;
}

.no-results h3 {
    margin: 0;
    color: var(--navy-900);
    font-size: 23px;
}

.no-results p {
    margin: 7px 0 20px;
    color: var(--muted);
}

.noscript-notice {
    margin: 22px 0 0;
    padding: 14px;
    border: 1px solid #f0d89c;
    border-radius: 10px;
    color: #654b13;
    background: #fff8e6;
}

.why {
    background: var(--white);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.benefit-card {
    position: relative;
    overflow: hidden;
    min-height: 288px;
    padding: 29px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.benefit-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.benefit-card__number {
    position: absolute;
    top: 18px;
    right: 24px;
    color: #edf2f8;
    font-family: Georgia, serif;
    font-size: 58px;
    line-height: 1;
}

.benefit-card__icon {
    position: relative;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 14px 5px 14px 5px;
    color: var(--gold-400);
    background: var(--navy-900);
    font-size: 22px;
}

.benefit-card h3 {
    position: relative;
    margin: 25px 0 8px;
    color: var(--navy-900);
    font-size: 21px;
}

.benefit-card p {
    position: relative;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.consulting {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
}

.consulting::after {
    position: absolute;
    top: -150px;
    right: -100px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(223,185,101,.16);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 55px rgba(255,255,255,.015), 0 0 0 110px rgba(255,255,255,.012);
}

.consulting__inner {
    position: relative;
    z-index: 2;
    display: grid;
    align-items: center;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    gap: 34px;
    padding-block: 66px;
}

.consulting__mark {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border: 1px solid rgba(223,185,101,.48);
    border-radius: 26px 8px 26px 8px;
    color: var(--gold-400);
    background: rgba(255,255,255,.035);
    font-family: Georgia, serif;
    font-size: 47px;
}

.consulting .eyebrow {
    margin-bottom: 12px;
}

.consulting h2 {
    max-width: 760px;
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(29px, 3.4vw, 43px);
    font-weight: 500;
    line-height: 1.15;
}

.consulting p {
    max-width: 740px;
    margin: 15px 0 0;
    color: rgba(255,255,255,.68);
    font-size: 15px;
}

.faq {
    background: var(--blue-50);
}

.faq details {
    margin-bottom: 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--white);
    box-shadow: 0 3px 15px rgba(7,31,61,.035);
}

.faq summary {
    position: relative;
    padding: 19px 52px 19px 21px;
    color: var(--navy-900);
    font-weight: 750;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    position: absolute;
    top: 50%;
    right: 21px;
    color: var(--blue-600);
    content: "+";
    font-size: 25px;
    font-weight: 400;
    transform: translateY(-50%);
}

.faq details[open] summary::after {
    content: "−";
}

.faq details p {
    margin: -3px 21px 20px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer {
    padding-top: 68px;
    color: rgba(255,255,255,.68);
    background: #041326;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 55px;
}

.brand--footer .brand__fallback {
    color: var(--white);
}

.brand--footer .brand__fallback small {
    color: rgba(255,255,255,.5);
}

.footer__about p {
    max-width: 390px;
    margin: 19px 0 0;
    font-size: 13.5px;
}

.footer__heading {
    margin: 5px 0 17px;
    color: var(--white);
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a,
.site-footer address a {
    font-size: 13.5px;
    transition: color var(--transition);
}

.footer__links a:hover,
.site-footer address a:hover {
    color: var(--gold-400);
}

.site-footer address {
    font-style: normal;
}

.site-footer address p {
    margin: 0 0 7px;
    font-size: 13.5px;
}

.footer__bottom {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 50px;
    padding-block: 23px;
    border-top: 1px solid rgba(255,255,255,.09);
    color: rgba(255,255,255,.45);
    font-size: 11.5px;
}

.footer__bottom p {
    margin: 0;
}

.footer__disclaimer {
    max-width: 750px;
    justify-self: end;
    text-align: right;
}

.back-to-top {
    position: fixed;
    z-index: 90;
    right: 22px;
    bottom: 22px;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    color: var(--white);
    background: var(--navy-900);
    box-shadow: 0 10px 25px rgba(5,23,45,.25);
    opacity: 0;
    transform: translateY(15px);
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.back-to-top:hover {
    color: var(--navy-950);
    background: var(--gold-400);
}

@media (max-width: 1020px) {
    .primary-nav {
        gap: 20px;
    }

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

    .consulting__inner {
        grid-template-columns: 76px 1fr;
    }

    .consulting__mark {
        width: 72px;
        height: 72px;
    }

    .consulting .button {
        grid-column: 2;
        justify-self: start;
    }

    .footer__grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding-block: 78px;
    }

    .nav-toggle {
        display: block;
    }

    .primary-nav {
        position: fixed;
        z-index: 110;
        top: var(--header-height);
        right: 0;
        left: 0;
        display: flex;
        align-items: stretch;
        max-height: calc(100vh - var(--header-height));
        flex-direction: column;
        gap: 0;
        padding: 14px 20px 22px;
        border-top: 1px solid var(--line);
        background: var(--white);
        box-shadow: 0 20px 35px rgba(7,31,61,.15);
        opacity: 0;
        transform: translateY(-12px);
        visibility: hidden;
        transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    }

    .primary-nav.is-open {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

    .primary-nav > a:not(.button) {
        padding: 14px 8px;
        border-bottom: 1px solid var(--line);
        font-size: 15px;
    }

    .primary-nav > a:not(.button)::after {
        display: none;
    }

    .primary-nav .button {
        margin-top: 14px;
    }

    .hero__content {
        padding-block: 80px 60px;
    }

    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .hero__stats div {
        padding: 18px;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }

    .hero__stats div:nth-child(2) {
        border-right: 0;
    }

    .hero__stats div:nth-child(3) {
        padding-left: 0;
        border-bottom: 0;
    }

    .hero__stats div:nth-child(4) {
        border-bottom: 0;
    }

    .section-heading--split {
        align-items: flex-start;
        flex-direction: column;
    }

    .result-badge {
        min-width: 0;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        min-height: 0;
    }

    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer__grid > div:last-child {
        grid-column: 2;
    }

    .footer__bottom {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .footer__disclaimer {
        justify-self: start;
        text-align: left;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(calc(100% - 30px), var(--container));
    }

    .section {
        padding-block: 64px;
    }

    .brand__logo {
        height: 41px;
    }

    .hero__content {
        padding-block: 68px 50px;
    }

    .hero h1 {
        font-size: clamp(39px, 12.5vw, 56px);
    }

    .hero__lead {
        font-size: 16px;
    }

    .hero__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .hero__actions .text-link {
        align-self: flex-start;
    }

    .hero__stats {
        margin-top: 50px;
    }

    .hero__stats div {
        padding-inline: 12px;
    }

    .hero__stats dt {
        font-size: 28px;
    }

    .hero__stats dd {
        font-size: 10px;
    }

    .directory-controls {
        grid-template-columns: 1fr;
    }

    .filter-scroll {
        overflow-x: auto;
        width: calc(100% + 15px);
        padding-bottom: 8px;
        scrollbar-width: thin;
    }

    .filter-list {
        width: max-content;
        max-width: none;
        flex-wrap: nowrap;
        padding-right: 15px;
    }

    .entity-grid {
        grid-template-columns: 1fr;
    }

    .entity-card {
        min-height: 365px;
        padding: 21px;
    }

    .consulting__inner {
        grid-template-columns: 1fr;
        gap: 23px;
        padding-block: 55px;
    }

    .consulting__mark {
        width: 68px;
        height: 68px;
    }

    .consulting .button {
        grid-column: auto;
        justify-self: stretch;
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 22px;
    }

    .footer__about {
        grid-column: 1 / -1;
    }

    .footer__grid > div:last-child {
        grid-column: auto;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
}

@media (max-width: 390px) {
    .hero__stats {
        grid-template-columns: 1fr;
    }

    .hero__stats div,
    .hero__stats div:first-child,
    .hero__stats div:nth-child(3) {
        padding: 14px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }

    .hero__stats div:last-child {
        border: 0;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .site-header,
    .hero__actions,
    .directory-controls,
    .filter-scroll,
    .entity-card__button,
    .consulting,
    .back-to-top {
        display: none !important;
    }

    .hero {
        color: #000;
        background: #fff;
    }

    .hero h1,
    .hero h1 span,
    .hero__lead,
    .hero__stats dt,
    .hero__stats dd {
        color: #000;
    }

    .entity-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .entity-card {
        break-inside: avoid;
        box-shadow: none;
    }
}
