html { font-size: 13.6px; }
body {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > nav,
body > footer {
    flex-shrink: 0;
}

.hero-section {
    position: relative;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1190px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    margin-bottom: 22px;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95em;
}

.hero-feature:before {
    content: "✓";
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2em;
}

.section {
    padding: 75px 60px;
    max-width: 1190px;
    width: 100%;
    margin: 0 auto;
    scroll-margin-top: 79px;
}

#server-section {
    flex: 1 0 auto;
}

.section-label {
    margin-bottom: 11px;
}

.section-title {
    margin-bottom: 15px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 37px;
}

.pricing-card {
    display: flex;
    flex-direction: column;
}

.pricing-badge {
    align-self: flex-start;
}

.pricing-location {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1em;
    margin-bottom: 11px;
}

.pricing-location .flag {
    width: 23px;
    height: 15px;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.pricing-location .location-label {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 2px;
}

.pricing-features {
    list-style: none;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pricing-features li strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.pricing-cta {
    display: block;
    text-decoration: none;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.pagination button {
    min-width: 37px;
    height: 37px;
    padding: 0 11px;
    background: var(--card);
    border: 1px solid var(--line);
    color: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.pagination button:hover:not(:disabled) {
    border-color: #ffffff;
    color: #ffffff;
}

.pagination button.active {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
    border-radius: 4px;
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: default;
}

.pagination-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9em;
    margin-top: 15px;
}

@media (max-width: 1225px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1050px) {
    .section {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 768px) {
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 11px;
        margin-top: 22px;
    }

    .section {
        padding: 37px 15px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 7px;
    }

    .pagination button {
        min-width: 38px;
        height: 38px;
        padding: 0 9px;
        font-size: 0.95em;
    }
}

@media (max-width: 400px) {
    .pagination button {
        min-width: 30px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    #server-section {
        margin-top: 37px;
    }

    .section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.pricing-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--card-hi) 0%, var(--card) 45%);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text), transparent);
    opacity: 0;
    transition: opacity .2s;
}

.pricing-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-hi);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}

.pricing-card:hover::before {
    opacity: .6;
}

.pricing-location .flag {
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 2px 6px rgba(0, 0, 0, .4);
}

.pricing-price {
    letter-spacing: -0.5px;
}

.pricing-features li strong {
    min-width: 72px;
    color: var(--muted);
    font-weight: 500;
}

.pricing-features li:last-child {
    color: var(--muted);
}

.pricing-cta {
    transition: background .15s, color .15s, border-color .15s;
}

.pagination button.active {
    box-shadow: 0 4px 14px rgba(255, 255, 255, .12);
}

.ded-filter {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) auto auto auto;
    gap: 22px 28px;
    margin-bottom: 37px;
    padding: 24px 26px;
    background:
        radial-gradient(ellipse 50% 140% at 0% 0%, rgba(255, 255, 255, .045), transparent 70%),
        var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.filter-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.filter-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
}

.filter-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85em;
    color: var(--text);
    white-space: nowrap;
}

.range {
    position: relative;
    height: 30px;
}

.range-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    margin-top: -2px;
    background: var(--line);
    border-radius: 2px;
}

.range-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--text);
    border-radius: 2px;
}

.range input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

.range input[type="range"]:focus {
    outline: none;
}

.range input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
    border: 0;
}

.range input[type="range"]::-moz-range-track {
    background: transparent;
    border: 0;
}

.range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 1px var(--text);
    cursor: grab;
    pointer-events: auto;
}

.range input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 1px var(--text);
    cursor: grab;
    pointer-events: auto;
}

.range input[type="range"]:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 1px var(--text), 0 0 0 6px rgba(255, 255, 255, .15);
}

.range input[type="range"]:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 1px var(--text), 0 0 0 6px rgba(255, 255, 255, .15);
}

.seg {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.seg button {
    padding: 7px 12px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted);
    font: inherit;
    font-size: 0.9em;
    white-space: nowrap;
    cursor: pointer;
    transition: color .15s, border-color .15s, background .15s;
}

.seg button:hover {
    color: var(--text);
    border-color: var(--line-hi);
}

.seg button.active {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
    font-weight: 500;
}

.filter-foot {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-sort select {
    padding: 7px 34px 7px 12px;
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239a9fa6' stroke-width='1.4' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    font: inherit;
    font-size: 0.9em;
    cursor: pointer;
    appearance: none;
}

.filter-sort select:focus {
    outline: none;
    border-color: var(--line-hi);
}

.filter-count {
    margin-left: auto;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85em;
    color: var(--muted);
}

.filter-count b {
    color: var(--text);
    font-weight: 500;
}

.filter-reset {
    padding: 7px 14px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted);
    font: inherit;
    font-size: 0.9em;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}

.filter-reset:hover {
    color: var(--text);
    border-color: var(--line-hi);
}

.ded-empty {
    margin-bottom: 37px;
    padding: 45px 20px;
    border: 1px dashed var(--line-hi);
    border-radius: 6px;
    text-align: center;
    color: var(--muted);
}

.ded-empty button {
    padding: 0;
    background: none;
    border: 0;
    color: var(--text);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

@media (min-width: 1226px) {
    .ded-filter .seg {
        flex-wrap: nowrap;
    }
}

@media (max-width: 1225px) {
    .ded-filter {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .ded-filter {
        grid-template-columns: 1fr;
        padding: 20px 18px;
        margin-bottom: 30px;
    }

    .filter-foot {
        flex-wrap: wrap;
        gap: 14px;
    }

    .filter-count {
        margin-left: 0;
        order: -1;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pricing-card,
    .pricing-card:hover {
        transform: none;
        transition: none;
    }
}
