/* Общие правила */
html, body, div, button, input, header, main, footer, ul, li {
    box-sizing: border-box;
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    margin: 0; 
    background: #f4f4f4; 
    color: #000; 
    line-height: 1.4;
    display: flex;
    justify-content: center;
}

.container { 
    max-width: 420px; 
    width: 100%;
    /* Добавляем отступ сверху, чтобы опустить весь контент */
    padding: 80px 20px 40px 20px; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 22px;
    margin: 0;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

.visual-box { 
    background: #000; 
    color: #fff; 
    height: 120px; 
    margin: 20px 0; 
    overflow: hidden; 
    position: relative; 
    display: flex; 
    align-items: center;
    border-radius: 12px;
}

.tape { 
    display: flex; 
    transition: transform 5s cubic-bezier(0.1, 0, 0, 1); 
}

.card { 
    min-width: 90px; 
    text-align: center; 
    font-size: 35px; 
}

.main-btn { 
    display: block;
    width: 100%; 
    padding: 20px 0;
    background: #000; 
    color: #fff; 
    border: none; 
    font-weight: bold; 
    cursor: pointer; 
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    margin-top: 10px;
}

.main-btn:active {
    transform: scale(0.98);
}

.payment-info { 
    font-size: 12px; 
    margin-top: 30px; 
    color: #666; 
    background: #fff; 
    padding: 20px; 
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.payment-info ul {
    padding-left: 20px;
    margin: 10px 0;
}

footer { 
    margin-top: auto; /* Прижимает футер к низу */
    padding-top: 40px;
    font-size: 11px; 
    text-align: center; 
    color: #999; 
}

footer a { 
    color: #0088cc; 
    text-decoration: none; 
    margin: 0 8px; 
}

/* Модалки */
.hidden { display: none !important; }

.modal { 
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background-color: rgba(0, 0, 0, 0.85); 
    display: flex; align-items: center; justify-content: center; 
    z-index: 1000; 
}

.modal-content { 
    background: #fff; 
    padding: 30px; 
    border-radius: 24px; 
    width: 85%; 
    max-width: 350px;
    text-align: center; 
}