.services-page {
    background: #f3f3f3;
    min-height: 100vh;
    padding-top: 56px;
    padding-bottom: 80px;
}

.services-hero {
    padding: 36px 0 24px;
}

.services-title {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 56px;
    line-height: 1;
    color: #16355b;
}

.services-subtitle {
    margin: 0;
    max-width: 820px;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.25;
    color: #6b7380;
}

.services-section {
    padding: 24px 0 8px;
}

.services-section--grey {
    margin-top: 24px;
    padding: 36px 0 28px;
    background: #ffffff;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}

.services-section__title {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.1;
    color: #16355b;
}

.services-section__lead {
    margin: 0 0 24px;
    max-width: 820px;
    font-size: 20px;
    line-height: 1.4;
    color: #6b7380;
}

/* Тарифы подписки */

.services-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.services-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 28px;
    padding: 32px;
    box-sizing: border-box;
}

.services-plan--accent {
    border-color: #bcd9f5;
    box-shadow: 0 12px 32px rgba(64, 157, 235, 0.12);
}

.services-plan__badge {
    position: absolute;
    top: 24px;
    right: 28px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(64, 157, 235, 0.12);
    color: #2f90e2;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.services-plan__name {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: #16355b;
}

.services-plan__price {
    margin: 0 0 20px;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: #16355b;
}

.services-plan__price span {
    font-size: 20px;
    font-weight: 500;
    color: #8a93a3;
}

.services-plan__list {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.services-plan__list li {
    position: relative;
    padding-left: 28px;
    font-size: 18px;
    line-height: 1.35;
    color: #4b5566;
}

.services-plan__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 14px;
    height: 8px;
    border-left: 3px solid #409deb;
    border-bottom: 3px solid #409deb;
    transform: rotate(-45deg);
}

.services-plan__note {
    margin: auto 0 0;
    font-size: 16px;
    line-height: 1.4;
    color: #8a93a3;
}

/* Что входит */

.services-info {
    margin-top: 20px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 28px;
    padding: 32px;
    box-sizing: border-box;
}

.services-info__title {
    margin: 0 0 18px;
    font-size: 26px;
    font-weight: 700;
    color: #16355b;
}

.services-info__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 32px;
}

.services-info__list li {
    font-size: 18px;
    line-height: 1.45;
    color: #4b5566;
}

.services-info__list strong {
    color: #16355b;
}

.services-info__note {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
    font-size: 16px;
    line-height: 1.45;
    color: #8a93a3;
}

/* Таблица услуг */

.services-table-wrap {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 28px;
    overflow: hidden;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
}

.services-table th,
.services-table td {
    padding: 22px 28px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 20px;
    line-height: 1.35;
    color: #16355b;
}

.services-table th {
    background: #f7f9fc;
    font-size: 16px;
    font-weight: 700;
    color: #7d8796;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #ececec;
}

.services-table tr:last-child td {
    border-bottom: none;
}

.services-table td:nth-child(2) {
    color: #8a93a3;
}

.services-table td:last-child {
    font-weight: 700;
    white-space: nowrap;
}

/* Карточки */

.services-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.services-card {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 28px;
    padding: 28px 32px;
    box-sizing: border-box;
}

.services-card__title {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 700;
    color: #16355b;
}

.services-card__text {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: #4b5566;
}

.services-card__text a {
    color: #409deb;
    text-decoration: none;
}

.services-card__text a:hover {
    text-decoration: underline;
}

.services-card__links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.services-card__links a {
    font-size: 18px;
    line-height: 1.4;
    color: #409deb;
    text-decoration: none;
}

.services-card__links a:hover {
    text-decoration: underline;
}

.services-disclaimer {
    margin: 20px 0 0;
    font-size: 16px;
    line-height: 1.45;
    color: #8a93a3;
}

/* TABLET */

@media (max-width: 1200px) {
    .services-title {
        font-size: 46px;
    }

    .services-subtitle {
        font-size: 24px;
    }

    .services-section__title {
        font-size: 34px;
    }

    .services-plan__price {
        font-size: 40px;
    }
}

/* MOBILE */

@media (max-width: 992px) {
    .services-plans,
    .services-cards,
    .services-info__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .services-table-wrap {
        overflow-x: auto;
    }

    .services-table {
        min-width: 640px;
    }
}

@media (max-width: 768px) {
    .services-page {
        padding-top: 36px;
        padding-bottom: 64px;
    }

    .services-hero {
        padding: 26px 0 20px;
    }

    .services-title {
        font-size: 34px;
        line-height: 1.05;
    }

    .services-subtitle {
        font-size: 18px;
        line-height: 1.35;
    }

    .services-section__title {
        font-size: 26px;
    }

    .services-section__lead {
        font-size: 17px;
    }

    .services-plan,
    .services-info,
    .services-card {
        padding: 22px;
        border-radius: 22px;
    }

    .services-plan__price {
        font-size: 34px;
    }

    .services-plan__list li,
    .services-info__list li,
    .services-card__text,
    .services-card__links a {
        font-size: 16px;
    }

    .services-table th,
    .services-table td {
        padding: 16px 18px;
        font-size: 16px;
    }
}

/* Оплата картой */

.services-pay {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 20px;
    align-items: start;
}

.services-pay__main,
.services-pay__side {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 28px;
    padding: 32px;
    box-sizing: border-box;
}

.services-pay__title {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 700;
    color: #16355b;
}

.services-pay__logos {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.services-pay__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 12px;
}

.services-pay__logo img {
    display: block;
    height: 22px;
    width: auto;
}

.services-steps {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    counter-reset: step;
}

.services-steps li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 14px 16px;
    background: #f7f9fc;
    border: 1px solid #eef1f6;
    border-radius: 16px;
}

.services-steps li::before {
    counter-increment: step;
    content: counter(step);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #409deb;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-steps b {
    display: block;
    margin-bottom: 2px;
    font-size: 18px;
    color: #16355b;
}

.services-steps span {
    font-size: 16px;
    line-height: 1.4;
    color: #6b7380;
}

.services-pay__button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    background: #3498db;
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.services-pay__button:hover {
    background: #2387ca;
}

.services-pay__caption {
    margin: 18px 0 0;
    font-size: 15px;
    line-height: 1.45;
    color: #8a93a3;
}

.services-secure {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.services-secure li {
    position: relative;
    padding-left: 30px;
    font-size: 17px;
    line-height: 1.45;
    color: #4b5566;
}

.services-secure li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e8f6ee;
    color: #1f9d55;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-pay__docs {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.services-pay__docs a {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: #eef4fb;
    color: #2b6fb4;
    font-size: 15px;
    text-decoration: none;
}

.services-pay__docs a:hover {
    background: #e2edf9;
}

.services-rules__list {
    margin: 14px 0 0;
    padding-left: 22px;
}

.services-rules__list li {
    font-size: 18px;
    line-height: 1.5;
    color: #4b5566;
}

.payment-req {
    width: 100%;
    border-collapse: collapse;
}

.payment-req th,
.payment-req td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    font-size: 18px;
    line-height: 1.4;
    color: #16355b;
    vertical-align: top;
}

.payment-req th {
    width: 42%;
    font-weight: 400;
    color: #8a93a3;
}

.payment-req tr:last-child th,
.payment-req tr:last-child td {
    border-bottom: none;
}

@media (max-width: 992px) {
    .services-pay {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .services-pay__main,
    .services-pay__side {
        padding: 22px;
        border-radius: 22px;
    }

    .services-pay__title {
        font-size: 22px;
    }

    .services-steps b {
        font-size: 16px;
    }

    .services-steps span,
    .services-secure li,
    .payment-req th,
    .payment-req td {
        font-size: 16px;
    }

    .payment-req th {
        width: 45%;
    }

    .payment-req th,
    .payment-req td {
        padding: 11px 10px;
    }
}
/* Нечётная последняя карточка занимает всю ширину (блок «Возврат и HMS-баллы») */
.services-cards > .services-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}