.page {
    justify-content: flex-start;
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero {
    margin-bottom: 48px;
}

.stations {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 980px;
}

.stations__panel {
    padding: 28px 32px 32px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.stations__title {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.stations__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.stations__select,
.stations__search {
    flex: 1 1 220px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.stations__select:focus,
.stations__search:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.stations__select option {
    color: #111;
    background: #fff;
}

.stations__search::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.stations__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot--available {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.legend-dot--absent {
    background: #f87171;
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
}

.stations__count {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.mo-group {
    margin-bottom: 28px;
}

.mo-group:last-child {
    margin-bottom: 0;
}

.mo-group__title {
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 16px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid rgba(255, 255, 255, 0.45);
}

.station-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px 24px;
    align-items: center;
    padding: 16px 18px;
    margin-bottom: 10px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s, border-color 0.2s;
}

.station-card:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.18);
}

.station-card__address {
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
}

.station-card__legal {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.65);
}

.station-card__legal:empty {
    display: none;
}

.station-card__mo {
    display: none;
}

.station-card__fuel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.fuel-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.2;
    border: 1px solid transparent;
}

.fuel-badge__type {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 12px;
}

.fuel-badge__status {
    font-weight: 400;
    opacity: 0.9;
}

.fuel-badge--available {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.35);
    color: #bbf7d0;
}

.fuel-badge--absent {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.3);
    color: #fecaca;
}

.stations__empty {
    text-align: center;
    padding: 32px 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.stations__loading {
    text-align: center;
    padding: 40px 16px;
    color: rgba(255, 255, 255, 0.75);
}

.footer {
    position: static;
    margin-top: auto;
    padding-top: 32px;
}

.scroll-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
}

.scroll-top--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.scroll-top:active {
    transform: translateY(0) scale(0.95);
}

@media (max-width: 768px) {
    .page {
        padding-top: 100px;
    }

    .stations__panel {
        padding: 20px 16px 24px;
    }

    .station-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .station-card__fuel {
        justify-content: flex-start;
    }

    .fuel-badge {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
    }

    .scroll-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}
