:root {
    color-scheme: light;
    --navy: #0a2a5e;
    --blue: #1677e6;
    --red: #e23b3b;
    --hdr: #ffffff;
    --card: #ffffff;
    --ink: #0d1b3a;
    --muted: #51607c;
    --ice: #e5f1ff;
    --st-card: #ffffff;
    --st-ink: #0d1b3a;
    --st-sel: linear-gradient(135deg, #e3f2ff, #b9dcff);
    --bg: #f8f9fa;
    --bg-img: url("../assets/bg.png");
    --bg-overlay: linear-gradient(rgba(7, 27, 63, .6), rgba(7, 27, 63, .6));
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --card: #10203f;
        --ink: #eaf1ff;
        --muted: #a9b9d6;
        --ice: #1a3a6e;
        --st-card: #13264a;
        --st-ink: #eaf1ff;
        --st-sel: linear-gradient(135deg, #1d4584, #27559f);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --card: #10203f;
    --ink: #eaf1ff;
    --muted: #a9b9d6;
    --ice: #1a3a6e;
    --st-card: #13264a;
    --st-ink: #eaf1ff;
    --st-sel: linear-gradient(135deg, #1d4584, #27559f);
}

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

html {
    scroll-padding-top: env(safe-area-inset-top, 0px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Jost', sans-serif;
    color: var(--ink);
    background-color: var(--bg);
    overflow-x: clip;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: var(--bg-overlay), var(--bg-img);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: 0;
    background: none;
}

:focus-visible {
    outline: 3px solid #7cc0ff;
    outline-offset: 2px;
}

svg {
    display: block;
}

.top {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background: var(--hdr);
    min-height: 96px;
    overflow: hidden;
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 100;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: env(safe-area-inset-top, 0px);
    background: var(--hdr);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    min-width: 0;
}

.logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.logo svg {
    flex: none;
    width: clamp(54px, 9vw, 84px);
    height: auto;
}

.logo-name {
    font-weight: 700;
    font-size: clamp(1.15rem, 4.5vw, 1.65rem);
    letter-spacing: .14em;
    color: var(--navy);
    line-height: 1;
}

.logo-tag {
    font-weight: 600;
    font-size: clamp(.62rem, 2.4vw, .72rem);
    letter-spacing: .02em;
    color: var(--navy);
    margin-top: 3px;
}

.logo-tag b {
    color: var(--red);
    font-weight: 600;
}

.nav {
    display: flex;
    align-items: center;
    background: var(--navy);
    padding: 0 36px 0 40px;
    margin-left: 12px;
    flex: none;
}

.nav button {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    padding: 6px 30px;
    transition: transform .25s ease, color .25s ease;
}

.nav button+button {
    border-left: 1px solid rgba(255, 255, 255, .28);
}

.nav button:hover,
.nav button:focus-visible {
    color: #9fd0ff;
    transform: scale(1.1);
}

main {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 16px;
    padding: 28px 0 36px;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
}

.side {
    align-self: start;
    min-width: 0;
}

main > * {
    min-width: 0;
}

.side h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 4px 14px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.stations {
    display: grid;
    gap: 3px;
}

.badge {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #c9d3e6;
    display: grid;
    place-items: center;
    font: 700 .95rem Georgia, serif;
    color: #7b1d1d;
    letter-spacing: .02em;
}

.badge.voc {
    color: #1a4fb5;
    font-style: italic;
    border-color: #b6c8ee;
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 330px;
    padding: clamp(24px, 4vw, 44px);
    color: #fff;
    background: linear-gradient(100deg, #08224f 0%, #0a2b63 55%, #10325f 100%);
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    max-width: 64%;
    aspect-ratio: 386/325;
    background: url("../assets/bg.jpg") right center/cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%);
    mask-image: linear-gradient(90deg, transparent 0, #000 38%);
}

.hero-in {
    position: relative;
    max-width: 560px;
}

.hero-head {
    display: flex;
    gap: clamp(14px, 2.4vw, 22px);
    align-items: center;
}

.hero-head svg {
    flex: none;
    width: clamp(60px, 9vw, 92px);
    height: auto;
}

.hero-title {
    padding-left: clamp(14px, 2.4vw, 22px);
}

.hero h1 {
    overflow-wrap: anywhere;
    margin: 0;
    font-size: clamp(1.6rem, 3.4vw, 2.55rem);
    line-height: 1.12;
    font-weight: 300;
}

.hero .ss {
    margin: 10px 0 0;
    font-style: italic;
    font-size: clamp(.9rem, 1.6vw, 1.02rem);
    color: #e9f0ff;
}

.hero .bar {
    width: 70px;
    height: 4px;
    background: #1e8bff;
    margin: 28px 0 14px;
}

.hero p.d {
    margin: 0 0 22px;
    max-width: 500px;
    line-height: 1.6;
    color: #e1ebff;
}

.lang {
    display: inline-flex;
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.lang button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 26px;
    font-weight: 600;
    color: #12254a;
}

.lang button[aria-pressed="true"] {
    background: #1677e6;
    color: #fff;
}

.steps {
    margin-top: 16px;
    background: var(--card);
    padding: 26px 34px 50px;
    position: relative;
    overflow: hidden;
}

.steps h2 {
    margin: 0 0 40px;
    font-size: clamp(1.2rem, 2.6vw, 1.55rem);
    font-weight: 300;
    border-left: 5px solid var(--blue);
    padding-left: 14px;
    line-height: 1.2;
}

.flow {
    display: flex;
    align-items: center;
    gap: 14px;
}

.step {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.ico {
    position: relative;
    flex: none;
    width: 76px;
    height: 76px;
    border-radius: 20%;
    background: var(--ice);
    display: grid;
    place-items: center;
    color: #1a63c9;
}

:root[data-theme="dark"] .ico {
    color: #8fc4ff;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ico {
        color: #8fc4ff;
    }
}

.num {
    position: absolute;
    top: -20px;
    right: -4px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #071b3f;
    color: #fff;
    font-weight: 300;
    font-size: .85rem;
    display: grid;
    place-items: center;
    border: 2px solid var(--card);
}

.step h3 {
    margin: 0 0 4px;
    font-size: 1.02rem;
    font-weight: 600;
}

.step p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.4;
    color: var(--muted);
}

.arrow {
    flex: none;
    color: var(--blue);
}

@media (max-width: 1180px) {
    .hero::before {
        opacity: .55;
    }

    .flow {
        flex-direction: column;
        align-items: stretch;
    }

    .arrow {
        display: none;
    }
}

@media (max-width: 1000px) {
    .nav {
        padding: 0 20px 0 24px;
    }

    .nav button {
        padding: 6px 18px;
    }
}

@media (max-width: 900px) {
    .top {
        flex-direction: column;
        min-height: 0;
        position: relative;
        top: auto;
    }

    .logo {
        padding: 12px 18px;
    }

    .nav {
        flex: none;
        flex-wrap: wrap;
        margin: 0;
        border-radius: 0;
        padding: 4px 8px;
        justify-content: space-around;
    }

    .nav button {
        flex: 1 1 90px;
        min-width: 0;
        padding: 8px 6px;
        font-size: .88rem;
        overflow-wrap: anywhere;
    }

    main {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px 0 28px;
    }

    .stations {
        grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
    }

    .steps {
        padding: 22px 20px;
    }
}

@media (max-width: 760px) {
    .top {
        flex-direction: column;
        min-height: 0;
    }

    .logo {
        padding: 12px 18px;
    }

    .nav {
        margin: 0;
        border-radius: 0;
        padding: 4px 8px;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .nav button {
        flex: 1 1 90px;
        min-width: 0;
        padding: 8px 6px;
        font-size: .88rem;
        overflow-wrap: anywhere;
    }

    .hero {
        min-height: 0;
        padding-bottom: calc(clamp(170px, 48vw, 240px) + 20px);
    }

    .hero::before {
        top: auto;
        left: 0;
        max-width: none;
        aspect-ratio: auto;
        height: clamp(170px, 48vw, 240px);
        opacity: 1;
        background-position: 72% 35%;
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 45%);
        mask-image: linear-gradient(180deg, transparent 0, #000 45%);
    }

    .hero-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero .bar {
        margin: 22px 0 12px;
    }

    .side {
        order: 2;
    }

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

@media (max-width: 420px) {
    .badge {
        width: 48px;
        height: 48px;
        font-size: .85rem;
    }

    .lang {
        display: flex;
        width: 100%;
    }

    .lang button {
        flex: 1;
        justify-content: center;
        padding: 12px 10px;
    }

    .ico {
        width: 64px;
        height: 64px;
    }

    .steps {
        padding: 20px 16px;
    }
}

.station-card {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    background-color: #fff;
    padding: 10px;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
}

.station-card:hover,
.station-card:focus-visible {
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    z-index: 1;
}

.station-card span {
    min-width: 0;
    color: #000;
    overflow-wrap: anywhere;
}

.station-card img {
    flex: none;
    width: 80px;
    max-width: 40%;
    height: auto;
}

/* --- FOOTER UPDATED FOR 100% WIDTH --- */

.site-footer {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
}

.site-footer p {
    width: calc(100% - 246px); /* 230px left column + 16px gap */
    margin: 0;
    padding: 22px 20px;
    background: var(--navy);
    color: #fff;
    text-align: center;
    font-size: .9rem;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .site-footer {
        display: block;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .site-footer p {
        width: 100%;
        margin: 0;
        display: block;
    }
}

/* ------------------------------------- */

@media (max-height: 560px) {
    .top {
        position: relative;
        top: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav button,
    .station-card {
        transition: none;
    }

    .nav button:hover,
    .nav button:focus-visible,
    .station-card:hover,
    .station-card:focus-visible {
        transform: none;
    }
}