.pms-page,
.pms-page * {
    box-sizing: border-box;
}

.pms-page {
    background: #f8f7f4;
    color: #17343b;
    font-family: 'sweetFont', sans-serif;
    overflow-x: hidden;
}

.pms-hero {
    background:
        radial-gradient(ellipse 520px 220px at 92% -10%, rgba(255, 154, 0, 0.22), transparent 64%),
        linear-gradient(165deg, #102f36 0%, #1c6470 62%, #2a8494 100%);
    color: #fff;
    padding: 64px 20px 108px;
}

.pms-hero__inner {
    max-width: 1120px;
    margin: 0 auto;
}

.pms-hero__kicker {
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffd27a;
    font-weight: 700;
}

.pms-hero h1 {
    margin: 0 0 14px;
    max-width: 720px;
    font-size: 46px;
    line-height: 1.12;
    font-weight: 700;
    color: #fff;
}

.pms-hero__lead {
    margin: 0;
    max-width: 680px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.pms-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.pms-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    background: #fff;
    color: #1d4c57;
    font-weight: 700;
    text-decoration: none;
}

.pms-hero__cta:hover,
.pms-hero__cta:focus {
    background: #ffd27a;
    color: #1d4c57;
    text-decoration: none;
}

.pms-hero__cta--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.pms-hero__cta--ghost:hover,
.pms-hero__cta--ghost:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.pms-wrap {
    max-width: 1120px;
    margin: -58px auto 0;
    padding: 0 20px 80px;
}

.pms-index {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
}

.pms-index a {
    grid-column: span 3;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    min-height: 92px;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(28, 100, 112, 0.08);
    box-shadow: 0 12px 28px rgba(16, 47, 54, 0.07);
    color: #123f49;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pms-index a:nth-child(n + 5) {
    grid-column: span 4;
}

.pms-index a:hover,
.pms-index a:focus {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(16, 47, 54, 0.12);
    color: #123f49;
    text-decoration: none;
}

.pms-index__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    font-size: 15px;
    color: var(--pms);
    background: color-mix(in srgb, var(--pms) 14%, #fff);
}

.pms-index__label {
    min-width: 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.pms-index__num {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--pms);
}

.pms-steps,
.pms-services {
    margin-top: 36px;
}

.pms-steps h2,
.pms-services h2 {
    margin: 0 0 16px;
    font-size: 28px;
    line-height: 1.2;
    color: #123f49;
}

.pms-steps ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pms-steps li {
    min-width: 0;
    background: #fff;
    border-radius: 18px;
    padding: 22px 20px 20px;
    border: 1px solid rgba(28, 100, 112, 0.08);
    box-shadow: 0 10px 24px rgba(16, 47, 54, 0.05);
    overflow-wrap: anywhere;
}

.pms-steps__num {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #1c6470;
}

.pms-steps h3,
.pms-service h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.3;
    color: #123f49;
    overflow-wrap: anywhere;
}

.pms-steps p,
.pms-service__body > p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #3d555c;
    overflow-wrap: anywhere;
}

.pms-service {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    min-width: 0;
    gap: 8px 22px;
    margin-top: 14px;
    padding: 24px 26px;
    scroll-margin-top: 18px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(28, 100, 112, 0.08);
    border-left: 4px solid var(--pms);
    box-shadow: 0 10px 26px rgba(16, 47, 54, 0.05);
}

.pms-service__body {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pms-service__mark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.pms-service__icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--pms);
    background: color-mix(in srgb, var(--pms) 14%, #fff);
}

.pms-service__num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--pms);
}

.pms-service ul {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.pms-service li {
    margin: 0;
    min-width: 0;
    padding: 12px 12px 12px 14px;
    overflow-wrap: anywhere;
    border-radius: 12px;
    background: #f8f7f4;
    font-size: 14px;
    line-height: 1.45;
    color: #234148;
    box-shadow: inset 3px 0 0 var(--pms);
}

.pms-close {
    margin-top: 28px;
    padding: 34px 32px;
    border-radius: 22px;
    background:
        radial-gradient(ellipse 420px 180px at 100% 0%, rgba(255, 210, 122, 0.18), transparent 60%),
        linear-gradient(165deg, #102f36 0%, #1d4c57 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.pms-close p {
    margin: 0;
    max-width: 720px;
    font-size: 22px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
    overflow-wrap: anywhere;
}

.pms-close a {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    background: #fff;
    color: #1d4c57;
    font-weight: 700;
    text-decoration: none;
}

.pms-close a:hover,
.pms-close a:focus {
    background: #ffd27a;
    color: #1d4c57;
    text-decoration: none;
}

@media (max-width: 980px) {
    .pms-hero h1 {
        font-size: 38px;
    }

    .pms-index a,
    .pms-index a:nth-child(n + 5) {
        grid-column: span 6;
    }

    .pms-index a:last-child {
        grid-column: span 12;
    }

    .pms-steps ol,
    .pms-service ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .pms-hero {
        padding: 42px 18px 88px;
    }

    .pms-hero h1 {
        font-size: 32px;
    }

    .pms-hero__lead {
        font-size: 16px;
    }

    .pms-hero__cta {
        width: 100%;
    }

    .pms-index a,
    .pms-index a:nth-child(n + 5),
    .pms-index a:last-child {
        grid-column: 1 / -1;
    }

    .pms-service {
        grid-template-columns: 1fr;
        padding: 20px 18px;
    }

    .pms-service__mark {
        flex-direction: row;
        align-items: center;
    }

    .pms-close {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px 20px;
    }

    .pms-close a {
        width: 100%;
    }
}
