:root {
    --color-bg: #ffffff;
    --color-text: #071d49;
    --color-accent: #1464d2;
    --color-band: #f2f7ff;
    --container-width: 1200px;
    --page-gutter: clamp(20px, 4vw, 48px);
}

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

html {
    scroll-behavior: smooth;
}

body,
h1,
h2,
p,
ol {
    margin: 0;
}

body {
    min-width: 320px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    color: var(--color-text);
    background: var(--color-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.site-header {
    border-bottom: 1px solid var(--color-accent);
}

.site-header p {
    width: min(100%, 1536px);
    min-height: 102px;
    margin-inline: auto;
    padding: 24px var(--page-gutter);
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.site-header p::before {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 4px solid var(--color-accent);
    border-radius: 2px;
    content: "";
    transform: rotate(45deg) scale(0.78);
    box-shadow: inset 8px -8px 0 -5px var(--color-bg),
        inset 11px -11px 0 -5px var(--color-accent);
}

main {
    flex: 1;
}

.hero {
    width: min(100%, var(--container-width));
    margin-inline: auto;
    padding: clamp(64px, 8vw, 92px) var(--page-gutter)
        clamp(42px, 5vw, 58px);
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.75rem, 6vw, 5.25rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0.08em;
}

.hero h1::after {
    width: clamp(112px, 13vw, 180px);
    height: 4px;
    margin: clamp(24px, 3vw, 34px) auto 22px;
    display: block;
    background: var(--color-accent);
    content: "";
}

.hero p {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    line-height: 1.55;
    letter-spacing: 0.06em;
}

.process {
    width: min(100%, var(--container-width));
    margin-inline: auto;
    padding: 0 var(--page-gutter) clamp(50px, 6vw, 68px);
}

.process ol {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
    list-style: none;
    counter-reset: process-step;
}

.process ol::before {
    position: absolute;
    top: 43px;
    right: 16.6667%;
    left: 16.6667%;
    height: 3px;
    background: var(--color-accent);
    content: "";
}

.process li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-inline: 12px;
    text-align: center;
    font-size: clamp(1.2rem, 2.2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    counter-increment: process-step;
}

.process li::before {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    z-index: 1;
    border: 5px solid var(--color-accent);
    border-radius: 50%;
    color: var(--color-accent);
    background: var(--color-bg);
    content: counter(process-step);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
}

.security {
    padding: clamp(48px, 6vw, 68px) var(--page-gutter)
        clamp(44px, 5vw, 58px);
    border-bottom: 1px solid var(--color-accent);
    background: var(--color-band);
    text-align: center;
}

.security h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.08em;
}

.security h2::after {
    width: 100px;
    height: 4px;
    margin: 22px auto 18px;
    display: block;
    background: var(--color-accent);
    content: "";
}

.security p {
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    letter-spacing: 0.05em;
}

.site-footer {
    padding: 26px var(--page-gutter);
    text-align: center;
}

.site-footer p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    letter-spacing: 0.06em;
}

@media (max-width: 720px) {
    .site-header p {
        min-height: 76px;
        gap: 12px;
        padding-block: 16px;
        letter-spacing: 0.02em;
    }

    .site-header p::before {
        width: 30px;
        height: 30px;
        border-width: 3px;
    }

    .hero {
        padding-top: 52px;
        padding-bottom: 38px;
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 2.5rem);
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .hero h1::after {
        height: 3px;
        margin-top: 22px;
        margin-bottom: 18px;
    }

    .hero p {
        font-size: 1.1rem;
        letter-spacing: 0.03em;
    }

    .process {
        max-width: 440px;
        padding-bottom: 46px;
    }

    .process ol {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .process ol::before {
        display: none;
    }

    .process li {
        flex-direction: row;
        justify-content: flex-start;
        gap: 18px;
        padding-inline: 0;
        text-align: left;
        font-size: 1.2rem;
    }

    .process li::before {
        width: 60px;
        height: 60px;
        flex: 0 0 60px;
        border-width: 4px;
        font-size: 1.55rem;
    }

    .security {
        padding-block: 42px;
    }

    .security h2 {
        font-size: 2rem;
    }

    .security p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .site-footer {
        padding-block: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
