/* ===== CSS RESET ===== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    background: #1F1F1D;
}

body {
    line-height: 1;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    gap: 10px;
    min-height: 100vh;
    background: #1F1F1D;
    padding-bottom: 120px;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

header {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #2E2D2A;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
}

.header-qr {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:16px;
    background: #2E2D2A;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
}

.header-logo {
    width: 128px;
    height: 24px;
    object-fit: contain;
}

.header-back-btn {
    width: 48px;
    height: 48px;
    background-color: #3D3C38;
    color: #99978D;
    border-radius: 20px;
    gap: 12px;
    font-size: 20px;
    border:none;
    transition: transform 0.12s ease, background 0.12s ease;
}

.header-back-btn:active {
    transform: scale(0.93);
}

.header-page-title{
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    font-style: normal;
    line-height: 24px;
    letter-spacing: 0;
    color: #FFFFFF;
}

.header-right-placeholder {
    width: 48px;
    height: 48px;
}

.fastpay-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    height: 244px;
    border-radius: 32px;
    padding: 16px;
    background: #2E2D2A;
}

.fastpay-title {
    width: 100%;
    height: 36px;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 20px;
    letter-spacing: 0;
    color: #FFFFFF;
}

.fastpay-amount-container {
    width: 100%;
    height: 88px;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 8px;
    background: #3D3C38;
    border-radius: 20px;
}

.fastpay-amount-label {
    width: 100%;
    height: 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    line-height: 16px;
    letter-spacing: 0;
    color: #99978D;
}

.fastpay-amount-input {
    width: 100%;
    height: 32px;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    font-style: normal;
    line-height: 32px;
    letter-spacing: 0;
    color:  #FFFFFF;
}

.fastpay-amount-input::placeholder {
    color: #4C4B46;
}

.fastpay-service-container {
    width: 100%;
    height: 56px;
    padding-top: 8px;
    padding-right: 16px;
    padding-bottom: 8px;
    padding-left: 16px;
    border-radius: 20px;
    border: 1px solid #4D4C47;
}

.fastpay-service-label {
    width: 100%;
    height: 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    line-height: 16px;
    letter-spacing: 0;
    color: #99978D;
}

.fastpay-service-input {
    width: 100%;
    height: 20px;
    text-align: left;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 20px;
    letter-spacing: 0;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    color: #FFFFFF;
}

.fastpay-service-input::placeholder {
    color: #FFFFFF;
}

.qr-container {
    display:flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 24px;
    padding-right: 16px;
    padding-bottom: 24px;
    padding-left: 16px;
    border-radius: 32px;
    gap:24px;
    background-color: #2E2D2A
}

.qr-title-container {
    display:flex;
    justify-content: space-between;
    width:100%;
    max-width:480px;
}

.qr-title {
    font-size: 20px;
    font-weight: 500;
    font-style: normal;
    line-height: 24px;
    letter-spacing: 0;
    color: #FFFFFF;
    text-align: left;
}

.qr-amount {
    font-size: 20px;
    font-weight: 500;
    font-style: normal;
    line-height: 24px;
    letter-spacing: 0;
    color: #FFE566;
    text-align: right;
}

.qr-img-container {
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width:100%;
    max-width:480px;
    border-radius:20px;
    border-style:solid;
    border-width: 1px;
    border-color:#3D3C38;
    padding:24px;
    gap:24px;
}

.qr-img {
    width:100%;
    haspect-ratio: 1 / 1;
}

.qr-elqr-img {
    width:100%;
}

.qr-button {
    display:flex;
    flex-direction: row;
    justify-content:space-between;
    max-width:480px;
    gap: 8px;
}

.qr-btn {
    display:flex;
    align-items: center;
    flex-direction: row;
    justify-content:center;
    height:48px;
    width:200px;
    padding-top:8px;
    padding-right:24px;
    padding-bottom:8px;
    padding-left:24px;
    border-radius:20px;
    gap:12px;
    background-color:#3D3C38;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 20px;
    letter-spacing: 0;
    color: #FFFFFF;
    border:none;
    transition: transform 0.12s ease, filter 0.12s ease;
}

.qr-btn:active {
    transform: scale(0.96);
    filter: brightness(0.9);
}



footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 88px;
    background: #2E2D2A;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    padding: 16px;
    gap: 16px;
    position: fixed;
    bottom: 0;
}

.footer-btn {
    width: 100%;
    height: 56px;
    border-radius: 20px;
    padding: 8px;
    gap: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 20px;
    letter-spacing: 0;
    color: #1F1E1C;
    border: none;
    box-shadow: none;
    outline: none;
    background-color: #99978D;
    transition: transform 0.12s ease, background 0.12s ease;
}

.footer-btn.active {
    background: #F3D66B;
}

.footer-btn:active:not(:disabled) {
   transform: scale(0.97);
}

.footer-btn:disabled {
    background:  #99978D;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* ← 50% затемнение */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-error-validation {
    display:flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #2E2D2A;
    border-radius: 32px;
    width: 376px;
    padding: 16px;
    gap:16px;
}

.modal-header {
    width:100%
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 4px;
    font-size: 24px;
    font-weight: 500;
    font-style: normal;
    line-height: 32px;
    letter-spacing: 0;
    color: #FFFFFF;
}

.modal-body {
    width:100%
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 4px;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 20px;
    letter-spacing: 0;
    color: #FFFFFF;
}

.modal-close-btn {
    width:100%
    height:48px;
    background: #FFE566;
    border: none;
    padding: 8px;
    border-radius: 20px;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 20px;
    letter-spacing: 0;
    color: #1F1F1D;
    transition: all 0.15s ease;
}

.modal-close-btn:active {
    transform: scale(0.97);
}



