/* gateway/assets/style.css — самостоятельные стили промежуточной страницы.
   Не зависит от styles.css основного сайта. */

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

html, body {
    background: #0e1116;
    color: #c8ccd4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
}

body {
    display: flex;
    justify-content: center;
    padding: 32px 16px;
    min-height: 100vh;
    box-sizing: border-box;
}

.gw-card {
    background: #161a22;
    border: 1px solid #232936;
    border-radius: 10px;
    max-width: 640px;
    width: 100%;
    padding: 36px 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.gw-brand {
    text-align: center;
    margin-bottom: 24px;
}

.gw-brand a {
    display: inline-block;
    text-decoration: none;
}

.gw-brand img {
    display: block;
    height: 40px;
    width: auto;
}

.gw-icon {
    text-align: center;
    margin-bottom: 16px;
}

.gw-icon svg {
    width: 56px;
    height: 56px;
}

.gw-title {
    text-align: center;
    color: #f1f3f7;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: -0.2px;
}

.gw-lead {
    color: #c8ccd4;
    font-size: 15px;
    margin-bottom: 22px;
}

.gw-section-title {
    color: #f1f3f7;
    font-size: 14px;
    font-weight: 600;
    margin: 18px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gw-steps {
    list-style: none;
    counter-reset: gw-step;
    margin-bottom: 22px;
}

.gw-steps li {
    counter-increment: gw-step;
    padding-left: 36px;
    position: relative;
    margin: 10px 0;
    font-size: 14px;
}

.gw-steps li::before {
    content: counter(gw-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: #232936;
    color: #c8ccd4;
    border-radius: 50%;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.gw-steps strong {
    color: #f1f3f7;
    font-weight: 600;
}

.gw-note {
    background: #1a2230;
    border-left: 3px solid #4a8fd6;
    border-radius: 0 4px 4px 0;
    padding: 12px 14px;
    font-size: 13px;
    color: #a8b0c0;
    margin: 18px 0;
}

.gw-actions {
    margin: 24px 0 18px;
    padding: 18px 0;
    border-top: 1px solid #232936;
    border-bottom: 1px solid #232936;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gw-primary {
    display: inline-block;
    background: #4a8fd6;
    color: #ffffff;
    padding: 13px 32px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    text-align: center;
    min-width: 280px;
    transition: background .15s ease;
}

.gw-primary:hover {
    background: #5b9ee0;
}

.gw-secondary {
    color: #6c7689;
    font-size: 13px;
    text-decoration: none;
}

.gw-secondary:hover {
    color: #a8b0c0;
    text-decoration: underline;
}

.gw-detail {
    margin: 10px 0;
    padding: 10px 14px;
    background: #1a1f2a;
    border-radius: 6px;
    font-size: 13px;
}

.gw-detail summary {
    cursor: pointer;
    font-weight: 500;
    color: #c8ccd4;
    list-style: none;
    position: relative;
    padding-right: 24px;
}

.gw-detail summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #6c7689;
    font-size: 18px;
    line-height: 1;
}

.gw-detail[open] summary::after {
    content: "−";
}

.gw-detail summary:hover {
    color: #f1f3f7;
}

.gw-detail p {
    margin-top: 8px;
    color: #a8b0c0;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .gw-card {
        padding: 24px 20px;
    }
    .gw-title {
        font-size: 19px;
    }
    .gw-primary {
        min-width: auto;
        width: 100%;
    }
}
@media (max-width: 600px) {
    body {
        padding: 12px 10px;
    }
    .gw-card {
        padding: 18px 16px;
    }
    .gw-brand {
        margin-bottom: 14px;
    }
    .gw-brand img {
        height: 28px;
    }
    .gw-icon {
        margin-bottom: 8px;
    }
    .gw-icon svg {
        width: 40px;
        height: 40px;
    }
    .gw-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    .gw-lead {
        font-size: 14px;
        margin-bottom: 14px;
    }
    .gw-section-title {
        margin: 12px 0 8px;
    }
    .gw-steps li {
        margin: 6px 0;
        font-size: 13px;
    }
    .gw-note {
        margin: 12px 0;
        padding: 10px 12px;
        font-size: 12px;
    }
    .gw-actions {
        margin: 16px 0 12px;
        padding: 14px 0;
    }
    .gw-primary {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Status block после клика на «Продолжить» */
.gw-status {
    margin: 0;
    padding: 10px 14px;
    background: #1a2230;
    border-radius: 6px;
    font-size: 13px;
    color: #a8b0c0;
    text-align: center;
    line-height: 1.5;
}

.gw-status a {
    color: #4a8fd6;
    text-decoration: underline;
}

#gw-counter {
    font-weight: 600;
    color: #f1f3f7;
}

.gw-primary:disabled {
    cursor: default;
}
