:root {
    --blue: #1478d4;
    --blue-dark: #0b559e;
    --cyan: #42c2e8;
    --ink: #172230;
    --muted: #667387;
    --line: #dce5ef;
    --surface: #ffffff;
    --page: #edf3f8;
    --green: #18a66a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

a {
    color: inherit;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 12px max(20px, calc((100vw - 920px) / 2));
    border-bottom: 1px solid rgba(220, 229, 239, 0.9);
    background: rgba(255, 255, 255, 0.96);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    font-size: 21px;
    font-weight: 800;
}

.brand img {
    border-radius: 50%;
}

.top-action {
    min-height: 42px;
    padding: 11px 18px;
    border: 1px solid var(--blue);
    border-radius: 6px;
    color: var(--blue-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
}

main {
    width: min(100% - 32px, 920px);
    margin: 38px auto 0;
}

.hero {
    padding: 54px 56px 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(28, 65, 98, 0.1);
    text-align: center;
}

.profile {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

.profile-avatar {
    border: 5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--blue), 0 14px 30px rgba(23, 87, 143, 0.18);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--green);
    font-size: 14px;
    font-weight: 750;
}

.status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.eyebrow {
    margin: 30px 0 9px;
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 850;
    text-transform: uppercase;
}

h1 {
    max-width: 680px;
    margin: 0 auto;
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: 0;
}

.lead {
    max-width: 630px;
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.55;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 34px 0;
}

.benefits div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 58px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #334154;
    background: #f8fbfd;
    font-size: 14px;
    font-weight: 700;
}

.benefits span {
    color: var(--green);
    font-size: 18px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(100%, 480px);
    min-height: 62px;
    padding: 16px 26px;
    border-radius: 6px;
    color: #ffffff;
    background: var(--blue);
    box-shadow: 0 14px 30px rgba(20, 120, 212, 0.26);
    text-decoration: none;
    font-size: 18px;
    font-weight: 850;
    transition: background-color 160ms ease, transform 160ms ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    background: var(--blue-dark);
}

.telegram-icon {
    font-size: 24px;
    transform: rotate(-14deg);
}

.privacy-note,
.setup-warning {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.privacy-note a {
    color: var(--blue-dark);
}

.setup-warning {
    color: #aa2e2e;
    font-weight: 750;
}

.next-steps {
    padding: 48px 0 28px;
}

.next-steps h2 {
    margin: 0 0 24px;
    font-size: 28px;
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.steps article {
    display: flex;
    gap: 14px;
    min-height: 146px;
    padding: 24px 20px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
}

.steps article > strong {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--blue-dark);
    font-size: 15px;
}

.steps h3 {
    margin: 3px 0 8px;
    font-size: 17px;
}

.steps p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.footer {
    width: min(100% - 32px, 920px);
    margin: 28px auto 0;
    padding: 30px 0 38px;
    border-top: 1px solid #cfdbe6;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
    line-height: 1.55;
}

.footer nav {
    margin-bottom: 14px;
}

.footer nav a {
    color: var(--blue-dark);
    font-weight: 750;
}

.footer p {
    margin: 9px auto 0;
}

.meta-disclaimer {
    max-width: 760px;
}

.noscript {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 10;
    padding: 14px;
    border-radius: 6px;
    color: #ffffff;
    background: #9c3030;
    text-align: center;
}

.privacy-page main {
    margin-top: 30px;
}

.policy {
    padding: 42px 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 16px 42px rgba(28, 65, 98, 0.08);
}

.policy h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 48px);
}

.policy .updated {
    margin: 12px 0 30px;
    color: var(--muted);
}

.policy h2 {
    margin: 30px 0 10px;
    font-size: 21px;
}

.policy p,
.policy li {
    color: #4c5a6e;
    font-size: 15px;
    line-height: 1.65;
}

.policy ul {
    padding-left: 22px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 24px;
    color: var(--blue-dark);
    font-weight: 750;
    text-decoration: none;
}

@media (max-width: 720px) {
    .topbar {
        min-height: 64px;
        padding: 10px 16px;
    }

    .top-action {
        padding: 9px 12px;
        font-size: 13px;
    }

    main {
        width: min(100% - 24px, 920px);
        margin-top: 18px;
    }

    .hero {
        padding: 38px 18px 34px;
    }

    .profile-avatar {
        width: 108px;
        height: 108px;
    }

    h1 {
        font-size: clamp(34px, 10vw, 46px);
    }

    .lead {
        font-size: 17px;
    }

    .benefits,
    .steps {
        grid-template-columns: 1fr;
    }

    .benefits {
        gap: 8px;
        margin: 28px 0;
    }

    .benefits div {
        min-height: 48px;
    }

    .primary-button {
        min-height: 58px;
        padding: 14px 16px;
        font-size: 16px;
    }

    .next-steps {
        padding-top: 38px;
    }

    .steps article {
        min-height: 0;
    }

    .footer {
        width: min(100% - 24px, 920px);
    }

    .policy {
        padding: 32px 20px;
    }
}
