
:root {
    --burgundy: #c8102e;
    --burgundy-dark: #8e0b22;
    --ink: #171719;
    --muted: #68666a;
    --ivory: #f7f4ee;
    --paper: #ffffff;
    --gold: #c8b58a;
    --line: #e8e3dc;
    --success: #28734d;
    --shadow: 0 20px 60px rgba(28, 20, 20, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.wrap {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

/* HEADER */

.hd {
    position: relative;
    z-index: 20;
    background: var(--ink);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: #fff;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.brand svg {
    width: 40px;
    height: 40px;
    display: block;
}

.brand small {
    display: block;
    max-width: 110px;
    font-size: 0.48rem;
    line-height: 1.25;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: #c9c5c0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vw, 27px);
    margin-left: auto;
}

.nav a {
    position: relative;
    padding: 32px 0;
    color: #d8d5d2;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: #fff;
}

.nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 21px;
    height: 2px;
    background: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang {
    display: flex;
    align-items: center;
    padding: 4px;
    border: 1px solid #484649;
    border-radius: 99px;
    gap: 2px;
}

.lang a {
    padding: 5px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #c8c4c0;
    border-radius: 99px;
}

.lang a.active {
    background: var(--gold);
    color: var(--ink);
}

.login {
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 7px;
    padding: 10px 13px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.login:hover {
    background: #fff;
    color: var(--ink);
}

.burger {
    display: none;
}

/* HERO */

.ph {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
    padding: 74px 0 84px;
}

.ph::before {
    content: "";
    position: absolute;
    width: 530px;
    height: 530px;
    border: 1px solid rgba(200, 181, 138, 0.18);
    border-radius: 50%;
    right: -160px;
    top: -310px;
    box-shadow:
        0 0 0 50px rgba(200, 181, 138, 0.025),
        0 0 0 100px rgba(200, 181, 138, 0.02);
}

.ph::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--burgundy) 0 34%,
        var(--gold) 34% 45%,
        transparent 45%
    );
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 730px;
}

.eyebrow,
.section-kicker {
    display: inline-block;
    color: var(--gold);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.big {
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    letter-spacing: -0.055em;
    line-height: 1.06;
    margin: 17px 0 19px;
    font-weight: 700;
    max-width: 780px;
}

.lead {
    font-size: 1.03rem;
    line-height: 1.8;
    color: #d2ceca;
    max-width: 680px;
    margin: 0;
}

.hero-mark {
    width: 180px;
    height: 180px;
    border: 1px solid rgba(200, 181, 138, 0.36);
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    flex-shrink: 0;
    color: var(--gold);
    font-weight: 800;
    font-size: 2.6rem;
    letter-spacing: 0.08em;
}

.hero-mark::before,
.hero-mark::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(200, 181, 138, 0.23);
    border-radius: 50%;
    inset: 12px;
}

.hero-mark::after {
    inset: -12px;
    border-style: dashed;
    opacity: 0.55;
}

.hero-mark i {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--burgundy);
    border-radius: 50%;
    top: 18px;
    right: 28px;
}

.hero-mark i:nth-of-type(2) {
    top: auto;
    right: auto;
    bottom: 30px;
    left: 10px;
    background: var(--gold);
}

.hero-mark i:nth-of-type(3) {
    top: auto;
    bottom: 10px;
    right: 50px;
}

/* MAIN TRACKER */

.main-content {
    padding-top: 58px;
    padding-bottom: 80px;
}

.tracker-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(35px, 7vw, 95px);
    align-items: center;
}

.tracker-intro h2,
.section-heading h2,
.result-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.14;
    letter-spacing: -0.04em;
    margin: 12px 0;
}

.tracker-intro p {
    color: var(--muted);
    max-width: 430px;
    margin: 0;
}

.tracker-intro .section-kicker,
.section-heading .section-kicker,
.result-heading .section-kicker {
    color: var(--burgundy);
}

.secure-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 27px;
    color: #5d5955;
    font-size: 0.82rem;
    max-width: 390px;
}

.secure-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e7eee8;
    color: var(--success);
    font-weight: 800;
}

.tracker-card {
    padding: clamp(25px, 4vw, 42px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tkf {
    display: grid;
    gap: 22px;
}

.fld {
    display: grid;
    gap: 9px;
}

.fld label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #333033;
}

.fld input {
    width: 100%;
    height: 54px;
    border: 1px solid #ddd7d0;
    border-radius: 8px;
    background: #fcfbf9;
    padding: 0 15px;
    color: var(--ink);
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.fld input::placeholder {
    color: #a29c96;
}

.fld input:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.btn {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--burgundy);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn:hover {
    background: var(--burgundy-dark);
    transform: translateY(-1px);
}

.btn:focus-visible,
.burger:focus-visible,
a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.err {
    padding: 12px 14px;
    background: #fff0f1;
    border: 1px solid #f0c6cc;
    border-radius: 8px;
    color: #9c142a;
    font-size: 0.83rem;
}

/* RESULT */

.res {
    margin-top: 46px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow);
    scroll-margin-top: 24px;
}

.result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
}

.result-heading h2 {
    margin-bottom: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 99px;
    padding: 8px 13px;
    font-size: 0.74rem;
    font-weight: 800;
    background: #f4ead4;
    color: #765b1e;
    text-transform: capitalize;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.result-item {
    display: grid;
    gap: 6px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.result-item span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 600;
}

.result-item strong {
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.result-description {
    color: var(--muted);
    font-size: 0.88rem;
}

.timeline {
    padding-top: 25px;
}

.timeline h3 {
    font-size: 1.05rem;
    margin: 0 0 22px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.steps::before {
    content: "";
    position: absolute;
    height: 2px;
    background: #e5e0d8;
    left: 7%;
    right: 7%;
    top: 15px;
}

.steps li {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    color: #96908a;
    font-size: 0.72rem;
    font-weight: 600;
}

.step-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid #e0dad2;
    background: #fff;
    font-size: 0.72rem;
}

.steps li.done .step-marker,
.steps li.current .step-marker {
    border-color: var(--burgundy);
    background: var(--burgundy);
    color: #fff;
}

.steps li.current .step-marker {
    box-shadow: 0 0 0 5px rgba(200, 16, 46, 0.11);
}

.steps li.done,
.steps li.current {
    color: var(--ink);
}

/* HOW IT WORKS */

.how-section {
    padding-top: 82px;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.how-card {
    padding: 26px 25px 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.56);
}

.how-number {
    display: block;
    color: var(--burgundy);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.how-card h3 {
    margin: 19px 0 8px;
    font-size: 1.03rem;
}

.how-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.75;
}

/* HELP PANEL */

.help-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 48px;
    padding: 25px 28px;
    background: #eee8df;
    border-radius: 14px;
}

.help-symbol {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid #c9bba4;
    border-radius: 50%;
    color: var(--burgundy);
    font-weight: 800;
    font-size: 1.1rem;
}

.help-box h2 {
    font-size: 1rem;
    margin: 0 0 4px;
}

.help-box p {
    margin: 0;
    color: var(--muted);
    font-size: 0.83rem;
}

.help-box > div {
    flex: 1;
}

.help-box > a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.help-box > a:hover {
    background: var(--burgundy);
}

/* FOOTER */

.ft {
    background: var(--ink);
    color: #fff;
}

.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding-top: 43px;
    padding-bottom: 35px;
}

.footer-brand {
    max-width: 370px;
}

.footer-brand p {
    color: #bcb8b4;
    font-size: 0.82rem;
    max-width: 320px;
    margin: 17px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    padding-top: 12px;
}

.footer-links a {
    color: #d2ceca;
    font-size: 0.78rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    border-top: 1px solid #343235;
    padding-top: 17px;
    padding-bottom: 19px;
    color: #aaa5a1;
    font-size: 0.7rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom span {
    white-space: nowrap;
}

/* TABLET */

@media (max-width: 1020px) {
    .header-inner {
        gap: 18px;
    }

    .brand small {
        display: none;
    }

    .nav {
        gap: 15px;
    }

    .nav a {
        font-size: 0.73rem;
    }

    .header-actions {
        gap: 8px;
    }

    .login {
        padding: 9px;
    }

    .hero-mark {
        width: 145px;
        height: 145px;
        font-size: 2.2rem;
    }
}

/* MOBILE NAVIGATION */

@media (max-width: 820px) {
    .wrap {
        width: min(calc(100% - 36px), 680px);
    }

    .header-inner {
        min-height: 76px;
        justify-content: space-between;
    }

    .brand small {
        display: block;
    }

    .burger {
        display: flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
        border: 1px solid #4b484a;
        background: transparent;
        border-radius: 8px;
        margin-left: auto;
        cursor: pointer;
        order: 3;
    }

    .burger i {
        display: block;
        width: 18px;
        height: 2px;
        background: #fff;
        transition: transform 0.2s;
    }

    .burger[aria-expanded="true"] i:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .burger[aria-expanded="true"] i:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    .header-actions {
        order: 2;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1d1c1e;
        border-top: 1px solid #383638;
        padding: 10px 22px 20px;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 18px 28px rgba(0, 0, 0, 0.2);
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 13px 4px;
        font-size: 0.86rem;
        border-bottom: 1px solid #353235;
    }

    .nav a[aria-current="page"]::after {
        display: none;
    }

    .hero-inner {
        gap: 25px;
    }

    .ph {
        padding: 58px 0 66px;
    }

    .big {
        font-size: clamp(2.3rem, 7vw, 3.6rem);
    }

    .hero-mark {
        width: 120px;
        height: 120px;
        font-size: 1.8rem;
    }

    .tracker-layout {
        grid-template-columns: 1fr;
        gap: 27px;
    }

    .tracker-intro {
        max-width: 600px;
    }

    .tracker-intro p {
        max-width: 550px;
    }

    .tracker-card {
        padding: 28px;
    }

    .main-content {
        padding-top: 42px;
    }

    .how-section {
        padding-top: 60px;
    }
}

/* SMALL MOBILE */

@media (max-width: 560px) {
    .wrap {
        width: calc(100% - 30px);
    }

    .header-inner {
        gap: 10px;
    }

    .brand {
        font-size: 1.15rem;
        gap: 7px;
    }

    .brand svg {
        width: 34px;
        height: 34px;
    }

    .brand small {
        font-size: 0.4rem;
        max-width: 90px;
    }

    .header-actions {
        gap: 7px;
    }

    .login {
        display: none;
    }

    .lang a {
        padding: 5px 7px;
    }

    .burger {
        width: 38px;
        height: 38px;
    }

    .ph {
        padding: 49px 0 57px;
    }

    .hero-inner {
        display: block;
    }

    .hero-mark {
        display: none;
    }

    .eyebrow,
    .section-kicker {
        font-size: 0.61rem;
    }

    .big {
        font-size: 2.45rem;
        margin: 14px 0;
    }

    .lead {
        font-size: 0.92rem;
    }

    .main-content {
        padding-top: 32px;
        padding-bottom: 54px;
    }

    .tracker-card {
        padding: 22px 18px;
    }

    .tkf {
        gap: 18px;
    }

    .fld input,
    .btn {
        min-height: 51px;
        height: 51px;
    }

    .res {
        padding: 22px 17px;
        margin-top: 30px;
    }

    .result-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .result-item {
        padding: 13px 0;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .steps::before {
        width: 2px;
        height: auto;
        top: 15px;
        bottom: 15px;
        left: 15px;
        right: auto;
    }

    .steps li {
        flex-direction: row;
        text-align: left;
        gap: 13px;
        min-height: 52px;
        font-size: 0.8rem;
    }

    .step-marker {
        flex-shrink: 0;
    }

    .how-section {
        padding-top: 52px;
    }

    .how-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .how-card {
        padding: 22px;
    }

    .how-card h3 {
        margin-top: 12px;
    }

    .help-box {
        margin-top: 32px;
        padding: 20px 17px;
        gap: 13px;
    }

    .help-symbol {
        width: 36px;
        height: 36px;
    }

    .help-box p {
        font-size: 0.78rem;
    }

    .footer-main {
        padding-top: 32px;
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        padding-top: 0;
        gap: 12px 18px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .footer-bottom p {
        line-height: 1.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* Expanded bid information sections */
.bid-info-section {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e7e0d5;
}

.bid-info-section > h3 {
    margin: 0 0 18px;
    color: #171719;
    font-size: 18px;
    font-weight: 700;
}

.bid-info-section .result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bid-info-section .result-item {
    min-width: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #e7e0d5;
    border-radius: 8px;
}

.bid-info-section .result-item > span {
    display: block;
    margin-bottom: 8px;
    color: #6b6660;
    font-size: 12px;
    line-height: 1.5;
}

.bid-info-section .result-item > strong {
    display: block;
    overflow-wrap: anywhere;
    color: #171719;
    font-size: 14px;
    line-height: 1.6;
}

.bid-message {
    margin-top: 18px;
    padding: 18px;
    background: #f7f4ee;
    border-left: 4px solid #c8102e;
    border-radius: 4px;
}

.bid-message h4 {
    margin: 0 0 8px;
    color: #171719;
    font-size: 15px;
}

.bid-message p {
    margin: 0;
    color: #514c46;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .bid-info-section .result-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bid-info-section {
        margin-top: 22px;
        padding-top: 18px;
    }
}
