:root {
    --bg: #07110C;
    --surface: rgba(7, 17, 12, 0.74);
    --surface-strong: rgba(7, 17, 12, 0.9);
    --panel: rgba(39, 59, 48, 0.36);
    --panel-strong: rgba(39, 59, 48, 0.58);
    --border: rgba(209, 250, 229, 0.14);
    --border-strong: rgba(209, 250, 229, 0.24);
    --green-dark: #273B30;
    --green-light: #22733F;
    --green-glow: #7EDC9F;
    --blue: var(--green-light);
    --blue-soft: rgba(34, 115, 63, 0.2);
    --orange: var(--green-glow);
    --orange-soft: rgba(39, 59, 48, 0.28);
    --green: #22C55E;
    --text: #F8FAFC;
    --muted: #94A3B8;
    --muted-strong: #CBD5E1;
    --shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
    --radius: 8px;
    --header-height: 76px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background:
        linear-gradient(135deg, rgba(34, 115, 63, 0.2), transparent 34%),
        linear-gradient(315deg, rgba(39, 59, 48, 0.42), transparent 38%),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 76%);
}

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

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

button {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: rgba(34, 115, 63, 0.42);
    color: var(--text);
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    background:
        radial-gradient(circle at 50% 42%, rgba(34, 115, 63, 0.24), transparent 34%),
        linear-gradient(135deg, rgba(34, 115, 63, 0.2), transparent 36%),
        linear-gradient(315deg, rgba(39, 59, 48, 0.5), transparent 42%),
        var(--bg);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-visual {
    position: relative;
    width: min(58vw, 260px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 54px rgba(34, 115, 63, 0.32), 0 0 34px rgba(126, 220, 159, 0.16);
}

.loader-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loader-progress {
    width: min(68vw, 320px);
    height: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.loader-progress span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--orange));
    box-shadow: 0 0 22px rgba(126, 220, 159, 0.36);
    transition: width 0.12s linear;
}

.loader-percent {
    font-size: 2rem;
    font-weight: 900;
}

.page-loader p {
    margin: 0;
    color: var(--muted);
}

.site-header {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 1000;
    width: calc(100% - 28px);
    max-width: 1100px;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px 12px 16px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(39, 59, 48, 0.42), rgba(7, 17, 12, 0.78)),
        var(--surface);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36), 0 0 38px rgba(34, 115, 63, 0.12);
    backdrop-filter: blur(22px);
    transform: translateX(-50%);
    transition: min-height 0.22s ease, padding 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.site-header.is-scrolled {
    min-height: 62px;
    padding: 8px 12px;
    background:
        linear-gradient(135deg, rgba(39, 59, 48, 0.5), rgba(7, 17, 12, 0.92)),
        var(--surface-strong);
    border-color: var(--border-strong);
}

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

.brand-logo {
    width: clamp(132px, 17vw, 210px);
    height: 48px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.32));
}

.brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-light), var(--green-glow));
    color: white;
    font-weight: 950;
    box-shadow: 0 0 34px rgba(34, 115, 63, 0.42);
}

.primary-nav {
    display: none;
    align-items: center;
    gap: 2px;
}

.primary-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    outline: none;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon-link,
.menu-toggle {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.icon-link {
    font-size: 0.72rem;
    font-weight: 900;
}

.icon-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.icon-link i {
    color: #fff;
    font-size: 22px;
}

.icon-link[aria-label="TruckersMP"] img {
    width: 24px;
    height: 24px;
}

.icon-link[aria-label="TrucksBook"] img {
    border-radius: 4px;
}

.icon-link:not([aria-label="TruckersMP"]) img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.icon-link:hover,
.menu-toggle:hover {
    border-color: rgba(126, 220, 159, 0.5);
    box-shadow: 0 0 22px rgba(34, 115, 63, 0.24);
}

.menu-toggle {
    border: 0;
    padding: 0;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    margin: 2px 0;
    border-radius: 99px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.primary-nav.is-open {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(39, 59, 48, 0.48), rgba(7, 17, 12, 0.96)),
        var(--surface-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.primary-nav.is-open a {
    justify-content: center;
}

.hero {
    position: relative;
    min-height: 88svh;
    display: grid;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    padding: 148px 18px 64px;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: -4;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42% center;
    opacity: 0.82;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(90deg, rgba(7, 17, 12, 0.36) 0%, rgba(7, 17, 12, 0.5) 42%, rgba(7, 17, 12, 0.86) 100%),
        linear-gradient(180deg, rgba(7, 17, 12, 0.18), rgba(7, 17, 12, 0.96));
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    opacity: 0.45;
}

.hero-content {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding-top: 18px;
    display: grid;
    justify-items: center;
    text-align: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--orange);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 100%;
    margin: 0;
    font-size: 3.05rem;
    line-height: 0.96;
    letter-spacing: 0;
    white-space: nowrap;
}

.hero-subtitle {
    max-width: 650px;
    margin: 22px 0 0;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 650;
    white-space: nowrap;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text);
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-light), var(--green-glow));
    box-shadow: 0 16px 38px rgba(34, 115, 63, 0.28), 0 10px 30px rgba(126, 220, 159, 0.14);
}

.btn-secondary {
    border-color: rgba(126, 220, 159, 0.46);
    background: rgba(34, 115, 63, 0.22);
}

.btn-ghost {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.06);
}

.stat-card,
.driver-card,
.job-card,
.event-card,
.member-card,
.partner-card,
.blog-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 48px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.section {
    width: min(100% - 36px, var(--container));
    margin: 0 auto;
    padding: 76px 0;
}

.section-compact {
    padding-top: 20px;
}

.apply-band {
    width: 100%;
    border-top: 1px solid rgba(126, 220, 159, 0.12);
    border-bottom: 1px solid rgba(126, 220, 159, 0.12);
    background:
        linear-gradient(90deg, rgba(34, 115, 63, 0.2), rgba(7, 17, 12, 0.2)),
        rgba(7, 17, 12, 0.56);
}

.apply-inner {
    width: min(100% - 36px, var(--container));
    min-height: 190px;
    margin: 0 auto;
    display: grid;
    gap: 22px;
    align-items: center;
    padding: 42px 0;
}

.apply-content {
    max-width: 100%;
}

.apply-content h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
}

.apply-lead {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--muted-strong);
    font-size: 1.02rem;
}

.apply-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
}

.apply-detail {
    padding-left: 14px;
    border-left: 2px solid rgba(126, 220, 159, 0.48);
}

.apply-detail h3 {
    margin: 0;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.2;
}

.apply-detail p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.apply-list {
    display: grid;
    gap: 7px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.45;
}

.apply-list li {
    position: relative;
    padding-left: 15px;
}

.apply-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green-glow);
    transform: translateY(-50%);
}

.apply-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 4px;
}

.section-head {
    margin-bottom: 24px;
}

.section-head h2 {
    margin: 0;
    font-size: 2.25rem;
    line-height: 1.08;
}

.section-head.split {
    display: grid;
    gap: 16px;
    align-items: end;
}

.section-link,
.refresh-pill {
    justify-self: start;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted-strong);
    font-size: 0.88rem;
    font-weight: 750;
}

.carousel-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.carousel-btn span {
    line-height: 1;
    font-size: 1.7rem;
    font-weight: 800;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(126, 220, 159, 0.5);
    box-shadow: 0 0 22px rgba(34, 115, 63, 0.24);
    outline: none;
}

.carousel-btn:disabled {
    cursor: not-allowed;
    opacity: 0.38;
    transform: none;
    box-shadow: none;
}

.stats-band {
    padding-top: 58px;
}

.stats-grid,
.podium-grid,
.job-grid,
.event-grid,
.event-carousel,
.member-grid,
.partner-grid,
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.event-carousel {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2px 2px 16px;
    scrollbar-color: rgba(126, 220, 159, 0.36) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
}

.event-grid {
    display: flex;
    flex-wrap: wrap;
}

.event-grid .event-card,
.event-grid .skeleton-card {
    flex: 0 1 min(88vw, 420px);
    width: min(88vw, 420px);
}

.event-carousel .event-card,
.event-carousel .skeleton-card {
    flex: 0 0 min(88vw, 420px);
    scroll-snap-align: start;
}

.event-carousel .empty-state,
.event-carousel .error-state {
    flex: 0 0 100%;
}

.stat-card {
    min-height: 132px;
    display: grid;
    align-content: end;
    gap: 6px;
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 115, 63, 0.2), rgba(126, 220, 159, 0.08), transparent 65%);
    opacity: 0.7;
}

.stat-value,
.stat-label {
    position: relative;
}

.stat-value {
    font-size: 2.3rem;
    line-height: 1;
    font-weight: 950;
}

.stat-label {
    color: var(--muted);
}

.stats-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}

.driver-card,
.job-card,
.event-card,
.member-card,
.partner-card,
.blog-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 18px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.driver-card:hover,
.job-card:hover,
.event-card:hover,
.member-card:hover,
.partner-card:hover,
.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(126, 220, 159, 0.44);
    box-shadow: 0 18px 58px rgba(34, 115, 63, 0.16), 0 16px 50px rgba(0, 0, 0, 0.32);
}

.driver-card {
    display: grid;
    gap: 14px;
}

.driver-card > *,
.job-card > * {
    position: relative;
    z-index: 1;
}

.driver-card.card-refresh,
.job-card.card-refresh {
    animation: cardRefresh 0.62s ease both;
    animation-delay: var(--refresh-delay, 0ms);
}

.driver-card.card-refresh::after,
.job-card.card-refresh::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 20%, rgba(126, 220, 159, 0.24), transparent 78%);
    transform: translateX(-120%);
    animation: cardRefreshSweep 0.9s ease both;
    animation-delay: var(--refresh-delay, 0ms);
}

.driver-rank {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--blue));
    font-weight: 950;
}

.avatar {
    width: 58px;
    height: 58px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 115, 63, 0.3), rgba(126, 220, 159, 0.16));
    color: var(--text);
    font-weight: 900;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
}

.card-muted {
    color: var(--muted);
}

.meta-list {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.meta-row strong {
    color: var(--text);
    font-weight: 800;
    text-align: right;
}

.event-card {
    min-height: 390px;
    display: grid;
    grid-template-rows: 150px auto;
    padding: 0;
}

.event-media {
    position: relative;
    min-height: 150px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(34, 115, 63, 0.34), rgba(126, 220, 159, 0.16)),
        rgba(255, 255, 255, 0.06);
}

.event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(7, 11, 20, 0.72));
}

.event-body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.event-badges,
.job-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted-strong);
    font-size: 0.78rem;
    font-weight: 750;
}

.badge.hot {
    border-color: rgba(126, 220, 159, 0.46);
    background: rgba(126, 220, 159, 0.12);
    color: #D1FAE5;
}

.badge.blue {
    border-color: rgba(34, 115, 63, 0.5);
    background: rgba(34, 115, 63, 0.2);
    color: #BBF7D0;
}

.job-card {
    min-height: 286px;
    display: grid;
    align-content: start;
    gap: 12px;
    color: inherit;
}

a.job-card {
    cursor: pointer;
}

a.driver-card,
a.driver-card:hover,
a.driver-card:focus-visible {
    color: inherit;
    text-decoration: none;
}

a.driver-card {
    cursor: pointer;
}

a.driver-card:focus-visible,
a.job-card:focus-visible {
    border-color: rgba(126, 220, 159, 0.58);
    box-shadow: 0 18px 58px rgba(34, 115, 63, 0.18), 0 0 0 3px rgba(126, 220, 159, 0.16);
    outline: none;
}

.job-route {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
}

.route-dot {
    width: 100%;
    height: 24px;
    min-height: 24px;
    position: relative;
    display: block;
}

.route-dot::before {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 50%;
    width: 2px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--blue), var(--orange));
    transform: translateX(-50%);
}

.route-dot::after {
    content: "";
    position: absolute;
    bottom: 1px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange);
    transform: translateX(-50%) rotate(45deg);
}

.route-point {
    min-width: 0;
    display: grid;
    gap: 5px;
    align-content: start;
    padding: 12px;
    border: 1px solid rgba(209, 250, 229, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.045);
}

.route-label {
    color: var(--green-glow);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.route-value {
    min-width: 0;
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.route-value span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.route-flag {
    width: 22px;
    height: 15px;
    flex: 0 0 auto;
    margin-top: 2px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.job-driver {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.job-driver span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.job-avatar {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(209, 250, 229, 0.18);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 115, 63, 0.3), rgba(126, 220, 159, 0.14));
    color: var(--text);
    font-size: 0.68rem;
    font-weight: 900;
}

.job-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-card {
    min-height: 230px;
    display: grid;
    gap: 14px;
    align-content: start;
}

.member-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--member-role-color, var(--green-light));
    opacity: 0.9;
}

.member-head,
.partner-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-info {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.member-rank {
    margin: 0;
    color: var(--member-role-color, var(--green-glow));
    font-size: 0.86rem;
    font-weight: 850;
    line-height: 1.25;
}

.partner-card {
    min-height: 245px;
    display: grid;
    align-content: start;
    gap: 14px;
    padding-top: 0;
}

.partner-banner {
    min-height: 112px;
    margin: 0 -18px 2px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(34, 115, 63, 0.34), rgba(126, 220, 159, 0.12)),
        rgba(255, 255, 255, 0.05);
}

.partner-banner img {
    width: 100%;
    height: 112px;
    object-fit: cover;
}

.partner-logo {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(34, 115, 63, 0.3), rgba(126, 220, 159, 0.14));
    font-weight: 950;
    overflow: hidden;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-link {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(126, 220, 159, 0.52);
    background: rgba(34, 115, 63, 0.22);
    color: var(--green-glow);
    outline: none;
}

.social-link i {
    font-size: 1rem;
    line-height: 1;
}

.blog-card {
    min-height: 220px;
    display: grid;
    align-content: start;
    gap: 12px;
    padding-top: 0;
}

.blog-banner {
    min-height: 124px;
    margin: 0 -18px 2px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.blog-banner img {
    width: 100%;
    height: 124px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.site-footer {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: rgba(7, 17, 12, 0.9);
    backdrop-filter: blur(18px);
}

.footer-inner {
    width: min(100%, var(--container));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 22px;
    padding: 14px 18px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    order: 1;
}

.footer-logo {
    width: 116px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
}

.footer-links {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    order: 3;
}

.footer-text-link {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-text-link:hover,
.footer-text-link:focus-visible {
    color: var(--text);
    outline: none;
}

.footer-credit {
    flex: 1 1 auto;
    display: grid;
    gap: 4px;
    justify-items: center;
    text-align: center;
    order: 2;
}

.footer-copy {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 750;
    white-space: nowrap;
}

.footer-copy strong {
    color: var(--text);
    font-weight: 900;
}

.footer-heart {
    color: var(--green-glow);
    font-size: 0.82rem;
}

body.legal-modal-open {
    overflow: hidden;
}

.legal-modal[hidden] {
    display: none;
}

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    overflow: auto;
    background:
        linear-gradient(135deg, rgba(34, 115, 63, 0.18), transparent 38%),
        rgba(7, 17, 12, 0.97);
    color: var(--text);
}

.legal-shell {
    width: min(100% - 36px, var(--container));
    min-height: 100svh;
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 18px;
    padding: 28px 0 42px;
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 8px;
}

.legal-header h2 {
    margin: 0;
    font-size: clamp(2.1rem, 6vw, 5rem);
    line-height: 0.98;
}

.legal-close {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
}

.legal-close span {
    font-size: 2rem;
    line-height: 1;
}

.legal-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.legal-tab {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--muted-strong);
    font-weight: 800;
}

.legal-tab.is-active {
    border-color: rgba(126, 220, 159, 0.5);
    background: rgba(34, 115, 63, 0.28);
    color: var(--text);
}

.legal-close:hover,
.legal-close:focus-visible,
.legal-tab:hover,
.legal-tab:focus-visible {
    border-color: rgba(126, 220, 159, 0.54);
    outline: none;
}

.legal-content {
    padding: 26px 0 0;
}

.legal-panel {
    display: none;
    max-width: 880px;
}

.legal-panel.is-active {
    display: grid;
    gap: 18px;
}

.legal-panel h3 {
    margin: 0 0 4px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.06;
}

.legal-block {
    padding-left: 16px;
    border-left: 2px solid rgba(126, 220, 159, 0.42);
}

.legal-block h4 {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.3;
}

.legal-block p,
.legal-list {
    margin: 8px 0 0;
    color: var(--muted-strong);
    font-size: 0.98rem;
    line-height: 1.65;
}

.legal-block a {
    color: var(--green-glow);
}

.legal-list {
    display: grid;
    gap: 4px;
    padding-left: 20px;
}

.skeleton-grid {
    min-height: 220px;
}

.skeleton-card {
    min-height: 220px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
        rgba(255, 255, 255, 0.055);
    background-size: 220% 100%;
    animation: shimmer 1.35s infinite;
}

.skeleton-card.large {
    min-height: 390px;
}

.empty-state,
.error-state {
    min-height: 180px;
    display: grid;
    place-items: center;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--muted);
    text-align: center;
}

@keyframes shimmer {
    from {
        background-position: 160% 0;
    }
    to {
        background-position: -60% 0;
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardRefresh {
    0% {
        opacity: 0.86;
        transform: translateY(10px) scale(0.985);
        border-color: rgba(126, 220, 159, 0.24);
    }
    55% {
        opacity: 1;
        transform: translateY(-2px) scale(1.006);
        border-color: rgba(126, 220, 159, 0.5);
        box-shadow: 0 20px 62px rgba(34, 115, 63, 0.18), 0 12px 42px rgba(0, 0, 0, 0.28);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardRefreshSweep {
    from {
        transform: translateX(-120%);
    }
    to {
        transform: translateX(120%);
    }
}

.driver-card,
.job-card,
.event-card,
.member-card,
.partner-card,
.blog-card,
.stat-card {
    animation: floatIn 0.55s ease both;
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: 4rem;
    }

    .carousel-head {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .stats-grid,
    .podium-grid,
    .job-grid,
    .member-grid,
    .partner-grid,
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-grid {
        grid-template-columns: none;
    }

    .apply-details {
        grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    }

    .apply-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
    }

}

@media (min-width: 900px) {
    .primary-nav {
        display: inline-flex;
    }

    .primary-nav.is-open {
        position: static;
        inset: auto;
        display: inline-flex;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .menu-toggle {
        display: none;
    }

    .hero {
        padding-top: 126px;
    }

    .hero-content > * {
        width: min(100%, 570px);
    }

    .hero h1 {
        font-size: 5.2rem;
    }

    .section-head.split {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    }

    .section-head.split.carousel-head {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .apply-actions {
        justify-content: flex-start;
    }

    .section-link,
    .refresh-pill,
    .carousel-controls {
        justify-self: end;
    }

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

    .podium-grid,
    .job-grid,
    .member-grid,
    .partner-grid,
    .blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .event-grid .event-card,
    .event-grid .skeleton-card,
    .event-carousel .event-card,
    .event-carousel .skeleton-card {
        flex-basis: calc((100% - 28px) / 3);
        min-width: 340px;
        width: auto;
    }
}

@media (min-width: 1200px) {
    .hero h1 {
        font-size: 5.8rem;
    }
}

@media (max-width: 520px) {
    .brand-logo {
        width: 118px;
        height: 42px;
    }

    .icon-link {
        width: 38px;
        height: 38px;
    }

    .hero {
        min-height: 86svh;
        padding-top: 128px;
    }

    .hero h1 {
        font-size: 2.45rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        width: min(100% - 28px, var(--container));
        padding: 58px 0;
    }

    .section-head h2,
    .apply-content h2 {
        font-size: 1.8rem;
    }

    .apply-inner {
        width: min(100% - 28px, var(--container));
        padding: 34px 0;
    }

    .apply-actions .btn {
        width: 100%;
    }

    .footer-inner {
        justify-content: center;
        padding: 16px 14px;
        text-align: center;
    }

    .footer-logo {
        object-position: center;
    }

    .footer-links {
        flex-basis: 100%;
        gap: 6px 12px;
    }

    .footer-credit {
        width: 100%;
        justify-items: center;
        text-align: center;
    }

    .footer-copy {
        width: 100%;
        white-space: normal;
    }

    .legal-shell {
        width: min(100% - 28px, var(--container));
        padding: 20px 0 32px;
    }

    .legal-header {
        align-items: flex-start;
    }

    .legal-close {
        width: 42px;
        height: 42px;
    }

    .legal-content {
        padding-top: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
