/* payment.css - редизайн страницы оплаты */

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

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px;
    background:
        radial-gradient(circle at top left, rgba(147, 51, 234, 0.34), transparent 20%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.32), transparent 25%),
        linear-gradient(135deg, #0f172a 0%, #111827 45%, #1d4ed8 100%);
    color: #e5eefb;
    transition: background 0.25s ease, color 0.25s ease;
}

body[data-theme="light"] {
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.20), transparent 18%),
        radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.16), transparent 20%),
        linear-gradient(135deg, #f8fbff 0%, #eef4ff 46%, #dbeafe 100%);
    color: #0f172a;
}

body[data-theme="light"] nav {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
}

body[data-theme="light"] .main-div > div {
    background: rgba(255, 255, 255, 0.97);
    color: #1f2937;
}

.theme-toggle {
    border: none;
    background: rgba(255,255,255,0.12);
    color: inherit;
    border-radius: 999px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

body[data-theme="light"] .theme-toggle {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

nav {
    width: 100%;
    max-width: 1180px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px;
    margin-bottom: 32px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.24);
    backdrop-filter: blur(18px);
}

nav a {
    color: #dbeafe;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.22s ease;
}

nav a:hover {
    background: rgba(96, 165, 250, 0.18);
}

nav a:first-child {
    background: rgba(96, 165, 250, 0.18);
}

.main-div {
    width: 100%;
    max-width: 1180px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 24px;
}

.main-div > div {
    position: relative;
    overflow: hidden;
    max-width: 360px;
    width: 100%;
    padding: 30px 26px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    color: #1f2937;
    box-shadow: 0 18px 54px rgba(15, 23, 42, 0.32);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.main-div > div:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.38);
}

.main-div > div::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #2563eb, #8b5cf6, #ec4899);
}

.main-div label:first-child {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.main-div p {
    color: #64748b;
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.main-div label:last-of-type {
    display: block;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-div button {
    width: 100%;
    border: none;
    border-radius: 14px;
    font: inherit;
    font-weight: 800;
    padding: 14px 18px;
    color: white;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.main-div button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.main-div button:active {
    transform: translateY(0);
}

@media (max-width: 700px) {
    nav {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .main-div > div {
        padding: 24px 18px;
    }

    .main-div label:first-child {
        font-size: 1.45rem;
    }

    .main-div label:last-of-type {
        font-size: 2.3rem;
    }
}