:root {
    --navy:    #0F1B3C;
    --navy-2:  #0b1528;
    --red:     #C8281A;
    --gold:    #C9A84C;
    --gold-lt: #E2C76A;
    --white:   #F5F3EE;
    --off:     #EAE7E0;
    --text:    #2d3748;
    --dim:     #6a7280;
    --border:  #e2dfd8;
    --green:   #22c55e;
    --ease:    cubic-bezier(.16,1,.3,1);
    --fd:      'Cormorant Garamond', serif;
    --fb:      'Barlow', sans-serif;
    --fc:      'Barlow Condensed', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); background: var(--off); color: var(--text); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.trk-topnav {
    position: sticky; top: 0; z-index: 100;
    background: var(--navy);
    border-bottom: 1px solid rgba(201,168,76,.12);
    height: 56px;
    display: flex; align-items: center;
    padding: 0 40px; gap: 20px;
}
.trk-topnav__back {
    display: flex; align-items: center; gap: 7px;
    font-family: var(--fc); font-size: 11.5px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: rgba(245,243,238,.5); flex-shrink: 0;
    transition: color .2s;
}
.trk-topnav__back:hover { color: var(--gold); }

.trk-topnav__logo {
    position: absolute; left: 50%; transform: translateX(-50%);
}
.trk-topnav__logo img {
    height: 30px; width: auto; object-fit: contain; opacity: .92;
}

.trk-topnav__help {
    margin-left: auto; flex-shrink: 0;
    font-family: var(--fc); font-size: 11.5px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: rgba(245,243,238,.5); transition: color .2s;
}
.trk-topnav__help:hover { color: var(--gold); }

.trk-hero {
    background-image: url('images/hero/track-hero.jpg');
    background-color: #0F1B3C;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 64px 0 0;
    position: relative; overflow: hidden;
    text-align: center;
}
.trk-hero__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: rgba(0, 0, 0, 0.65);
    pointer-events: none;
}
.trk-hero__line {
    height: 3px; z-index: 3; position: relative;
    background: linear-gradient(90deg, var(--red), var(--gold) 55%, transparent);
    margin-top: 0;
}
.trk-hero__inner {
    max-width: 760px; margin: 0 auto; padding: 0 40px 40px;
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.trk-hero__label {
    font-family: var(--fc); font-size: 11px; font-weight: 700;
    letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}
.trk-hero__title {
    font-family: var(--fd);
    font-size: clamp(32px, 6vw, 58px);
    font-weight: 600; color: var(--white);
    line-height: 1.07; letter-spacing: -.02em;
}
.trk-hero__sub {
    font-family: var(--fb); font-size: 15px; font-weight: 300;
    color: rgba(245,243,238,.5); line-height: 1.8; max-width: 520px;
}

.trk-toggle {
    display: flex; gap: 3px; margin-top: 8px;
    background: rgba(255,255,255,.06);
    padding: 4px; border: 1px solid rgba(255,255,255,.08);
}
.trk-toggle__btn {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    font-family: var(--fc); font-size: 12.5px; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase;
    color: rgba(245,243,238,.45);
    background: none; border: none; cursor: pointer;
    position: relative; overflow: hidden; isolation: isolate;
    transition: color .3s var(--ease);
    flex: 1; justify-content: center;
}
.trk-toggle__btn::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(255,255,255,.07);
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease); z-index: -1;
}
.trk-toggle__btn:hover { color: rgba(245,243,238,.75); }
.trk-toggle__btn:hover::before { transform: scaleX(1); }

.trk-toggle__btn--active {
    color: var(--white) !important;
    background: var(--red);
}
.trk-toggle__btn--active::before { display: none; }
.trk-toggle__btn--active svg { color: var(--white); }

.trk-toggle__count {
    font-family: var(--fc); font-size: 10px; font-weight: 700;
    background: rgba(255,255,255,.15); padding: 2px 8px;
    border-radius: 10px; min-width: 24px; text-align: center;
    transition: background .3s;
}
.trk-toggle__btn--active .trk-toggle__count {
    background: rgba(255,255,255,.25);
}

.trk-panels { flex: 1; }

.trk-panel { display: none; }
.trk-panel--active { display: block; animation: panelIn .35s var(--ease); }
@keyframes panelIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

.trk-panel__inner {
    max-width: 1200px; margin: 0 auto;
    padding: 40px 40px 60px;
    display: flex; flex-direction: column; gap: 28px;
}

.trk-panel__head {
    display: flex; align-items: center; gap: 16px;
}
.trk-panel__head-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.trk-panel__head-icon--air { background: rgba(200,40,26,.1);  color: var(--red); }
.trk-panel__head-icon--sea { background: rgba(15,27,60,.08);  color: var(--navy); }

.trk-panel__title {
    font-family: var(--fd); font-size: clamp(22px,3vw,30px);
    font-weight: 600; color: var(--navy); line-height: 1.15;
    margin-bottom: 4px;
}
.trk-panel__sub {
    font-family: var(--fb); font-size: 13.5px; font-weight: 300; color: var(--dim);
}

.trk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.trk-card {
    background: #fff;
    display: flex; flex-direction: column; align-items: center;
    border: 1px solid var(--border);
    border-bottom: 3px solid transparent;
    text-decoration: none;
    transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
    cursor: pointer; overflow: hidden;
    padding: 0 0 20px;
}
.trk-card:hover {
    border-bottom-color: var(--red);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(15,27,60,.12);
}

.trk-card__logo {
    width: 100%; height: 130px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--off);
    border-bottom: 1px solid var(--border);
    overflow: hidden; padding: 20px;
    margin-bottom: 16px;
}
.trk-card__logo img {
    max-width: 100%; max-height: 72px;
    object-fit: contain; display: block;
    transition: transform .35s var(--ease);
}
.trk-card:hover .trk-card__logo img { transform: scale(1.07); }

.trk-card__logo-fb {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--navy); color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--fc); font-size: 20px; font-weight: 700;
    letter-spacing: .04em;
}

.trk-card__body {
    width: 100%;
    padding: 0 18px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-align: center;
}
.trk-card__name {
    font-family: var(--fb); font-size: 15px; font-weight: 600;
    color: var(--navy); line-height: 1.3;
}
.trk-card__code {
    display: inline-block;
    font-family: var(--fc); font-size: 10.5px; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--dim);
    background: var(--off); border: 1px solid var(--border);
    padding: 3px 10px;
}

.trk-empty {
    background: #fff; padding: 60px 32px;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 14px;
    border-left: 3px solid var(--border);
}
.trk-empty__icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--off); color: var(--dim);
    display: flex; align-items: center; justify-content: center;
}
.trk-empty h3 {
    font-family: var(--fd); font-size: 22px; font-weight: 600; color: var(--navy);
}
.trk-empty p {
    font-family: var(--fb); font-size: 14px; font-weight: 300;
    color: var(--dim); max-width: 360px; line-height: 1.7;
}

.trk-help {
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.06);
    margin-top: auto;
}
.trk-help__inner {
    max-width: 1200px; margin: 0 auto;
    padding: 18px 40px;
    display: flex; align-items: center; gap: 10px;
    font-family: var(--fb); font-size: 13.5px; font-weight: 300;
    color: rgba(245,243,238,.45);
}
.trk-help__inner svg { flex-shrink: 0; color: var(--gold); }
.trk-help__inner a {
    color: var(--gold); border-bottom: 1px solid rgba(201,168,76,.25);
    transition: border-color .2s;
}
.trk-help__inner a:hover { border-color: var(--gold); }

@media (max-width: 900px) {
    .trk-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
}

@media (max-width: 768px) {
    .trk-topnav { padding: 0 20px; }
    .trk-topnav__logo { position: static; transform: none; margin: 0 auto; }
    .trk-hero__inner { padding: 0 20px 32px; }
    .trk-panel__inner { padding: 28px 20px 48px; }
    .trk-help__inner  { padding: 14px 20px; }
    .trk-toggle__btn  { padding: 13px 16px; font-size: 11.5px; gap: 8px; }
    .trk-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

@media (max-width: 520px) {
    .trk-hero { padding-top: 48px; }
    .trk-hero__title { font-size: 30px; }
    .trk-hero__sub   { font-size: 13.5px; }
    .trk-toggle { width: 100%; }
    .trk-toggle__btn  { padding: 12px 10px; font-size: 11px; gap: 6px; }
    .trk-toggle__count { display: none; }
    .trk-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .trk-panel__head  { gap: 12px; }
    .trk-panel__head-icon { width: 42px; height: 42px; }
    .trk-panel__title { font-size: 20px; }
    .trk-card__logo   { height: 110px; }
    .trk-card__name   { font-size: 13.5px; }
}

@media (max-width: 360px) {
    .trk-topnav { padding: 0 14px; }
    .trk-hero__inner, .trk-panel__inner, .trk-help__inner { padding-left: 14px; padding-right: 14px; }
    .trk-toggle__btn  { padding: 11px 8px; font-size: 10.5px; }
    .trk-grid { grid-template-columns: repeat(2, 1fr); }
    .trk-card__logo   { height: 90px; }
}