*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #031a4a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 70px 80px 80px;
}

/* header */

.page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 906px;
    margin: 0 auto;
    text-align: center;
}

.page-header__title {
    font-size: 35px;
    font-weight: 500;
}

.page-header__subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}

.page-header__includes {
    font-size: 18px;
    font-weight: 500;
}

.page-header__acronis {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.acronis-badge {
    display: flex;
}

.acronis-badge__text {
    font-weight: 400;
}

.acronis-badge__text strong {
    font-weight: 500;
}

.acronis-tooltip {
    position: relative;
    display: inline-flex;
}

.acronis-tooltip__trigger {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #aaa;
    font-size: 11px;
    font-style: italic;
    font-family: Georgia, serif;
    color: #777;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    line-height: 1;
}

.acronis-tooltip__content {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #031a4a;
    border-radius: 5px;
    padding: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    color: #fff;
    width: 274px;
    z-index: 10;
    line-height: 1.5;
    text-align: left;
}

.acronis-tooltip:hover .acronis-tooltip__content {
    display: block;
}

/* content layout */

.content-layout {
    display: flex;
    gap: 60px;
    margin-top: 44px;
}

/* filters sidebar */

.filters {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.filters__title {
    font-size: 18px;
    font-weight: 500;
}

.filters__group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filters__label {
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.filters__divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 0;
}

.filters__clear {
    padding: 12.5px 20px;
    border: 1px solid #031a4a;
    border-radius: 8px;
    background: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: #031a4a;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: background 0.15s, color 0.15s;
}

.filters__clear:hover {
    background: #031a4a;
    border-color: #031a4a;
    color: #fff;
}

/* checkbox */

.checkbox {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.checkbox__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox__box {
    width: 20px;
    height: 20px;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}

.checkbox__input:checked + .checkbox__box {
    background: #1473e6;
    border-color: #1473e6;
}

.checkbox__input:checked + .checkbox__box::after {
    content: '';
    display: block;
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: -2px;
}

.checkbox__text {
    font-weight: 400;
}

/* server list */

.server-list {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.server-list__header {
    display: flex;
    gap: 10px;
    padding: 0 25px;
    font-size: 16px;
    font-weight: 400;
}

.server-list__header span {
    flex: 1;
    min-width: 0;
}

/* server card */

.server-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 30px 23px;
    background: #f6f7f8;
    border: 2px solid transparent;
    border-radius: 20px;
    position: relative;
}

.server-card--featured {
    border-color: #1473e6;
    transition: background 0.2s, border-color 0.2s;
}

.server-card--featured:hover {
    background: #f05556;
    border-color: #f05556;
}

.server-card--featured:hover .btn--primary {
    background: #fff;
    border-color: #fff;
    color: #1473e6;
}

.server-card__badge {
    position: absolute;
    top: -12px;
    left: 21px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    line-height: normal;
}

.server-card__badge--featured {
    background: #f05556;
    color: #fff;
}

.server-card__badge--new {
    background: #f7c758;
    color: #000;
}

.server-card__brand,
.server-card__spec,
.server-card__price,
.server-card__action {
    flex: 1;
    min-width: 0;
}

.server-card__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.server-card__logo {
    height: 19px;
    width: auto;
}

.server-card__name {
    font-size: 18px;
    font-weight: 500;
}

.server-card__spec {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.server-card__spec-title {
    font-size: 16px;
    font-weight: 500;
}

.server-card__spec-detail {
    font-size: 14px;
    font-weight: 400;
}

.server-card__price {
    display: flex;
    flex-direction: column;
}

.server-card__promo-label {
    font-size: 13px;
    font-weight: 400;
}

.server-card__promo-price {
    font-size: 35px;
    font-weight: 500;
    color: #f05556;
    line-height: 1.1;
}

.server-card__price-suffix {
    font-size: 14px;
    font-weight: 500;
    color: #031a4a;
}

.server-card__regular-price {
    font-size: 13px;
    font-weight: 400;
}

.server-card__action {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12.5px 20px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn--primary {
    background: #1473e6;
    border-color: #1473e6;
    color: #fff;
}

.btn--primary:hover {
    background: #1161bc;
    border-color: #1161bc;
}

/* responsive */

@media (max-width: 1024px) {
    .page {
        padding: 50px 40px 60px;
    }

    .content-layout {
        gap: 40px;
    }

    .server-list__header {
        display: none;
    }

    .server-card {
        flex-wrap: wrap;
        gap: 20px;
        padding: 25px 20px;
    }

    .server-card__brand,
    .server-card__spec,
    .server-card__price {
        flex: 0 0 calc(33.333% - 14px);
    }

    .server-card__action {
        flex: 0 0 100%;
    }

    .server-card__promo-price {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .page {
        padding: 30px 20px 40px;
    }

    .page-header__title {
        font-size: 26px;
    }

    .page-header__subtitle {
        font-size: 16px;
    }

    .page-header__acronis {
        flex-wrap: wrap;
        justify-content: center;
    }

    .content-layout {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }

    .filters {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 15px;
    }

    .filters__title {
        width: 100%;
    }

    .filters__group {
        flex-direction: row;
        gap: 15px;
    }

    .filters__label {
        font-size: 14px;
    }

    .filters__divider {
        display: none;
    }

    .filters__clear {
        width: auto;
        padding: 10px 16px;
    }

    .server-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .server-card__logo {
        margin-bottom: 4px;
    }

    .server-card__brand,
    .server-card__spec,
    .server-card__price,
    .server-card__action {
        flex: none;
        width: 100%;
    }

    .server-card__action {
        justify-content: flex-start;
    }

    .btn {
        width: 100%;
    }
}
