/* =========================================
   ОБЩИЕ НАСТРОЙКИ
   ========================================= */

* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}


body {
    min-height: 100vh;

    padding: 50px 20px;

    background: #f3f4f6;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #222;
}


/* =========================================
   ОСНОВНАЯ СТРАНИЦА
   ========================================= */

.donate-page {
    width: 100%;

    min-height: calc(100vh - 100px);

    display: flex;

    align-items: center;

    justify-content: center;
}


/* =========================================
   КАРТОЧКА ПОПОЛНЕНИЯ
   ========================================= */

.donate-card {
    width: 100%;

    max-width: 720px;

    padding: 52px 48px;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.08);
}


/* =========================================
   ЗАГОЛОВОК
   ========================================= */

.donate-header {
    max-width: 560px;

    margin: 0 auto 46px;

    text-align: center;
}


.donate-header h1 {
    margin: 0 0 16px;

    font-size: 30px;

    font-weight: 600;

    color: #222;
}


.donate-header p {
    margin: 0;

    font-size: 14px;

    line-height: 1.7;

    color: #666;
}


/* =========================================
   СООБЩЕНИЕ
   ========================================= */

.message {
    margin-bottom: 32px;

    padding: 14px 18px;

    border: 1px solid #e0c2bd;

    border-radius: 8px;

    background: #fff7f5;

    color: #9b3026;

    font-size: 13px;

    line-height: 1.5;

    text-align: center;
}


/* =========================================
   СТРОКА ФОРМЫ
   ========================================= */

.form-item {
    display: grid;

    grid-template-columns:
        190px
        315px
        1fr;

    align-items: center;

    column-gap: 18px;

    width: 100%;

    margin-bottom: 28px;
}


/* =========================================
   НАЗВАНИЯ ПОЛЕЙ
   ========================================= */

.form-item label {
    font-size: 15px;

    font-weight: 600;

    line-height: 1.3;

    text-align: right;

    color: #333;
}


.required {
    margin-right: 4px;

    color: #d10000;
}


/* =========================================
   ПОЛЯ ВВОДА
   ========================================= */

.input {
    width: 315px;

    height: 42px;

    padding: 8px 12px;

    border: 1px solid #cfd4dc;

    border-radius: 8px;

    background: #fafafa;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;

    color: #222;

    outline: none;

    transition:
        border-color 0.2s,
        background 0.2s,
        box-shadow 0.2s;
}


.input:hover {
    border-color: #aeb5bf;
}


.input:focus {
    border-color: #777;

    background: #ffffff;

    box-shadow:
        0 0 0 3px
        rgba(0, 0, 0, 0.05);
}


/* =========================================
   ПОДСКАЗКИ
   ========================================= */

.hint {
    font-size: 11px;

    line-height: 1.35;

    color: #666;

    text-align: left;
}


/* =========================================
   КНОПКА
   ========================================= */

.button-row {
    display: flex;

    justify-content: center;

    margin-top: 40px;
}


.submit-button {
    min-width: 220px;

    height: 46px;

    padding: 0 32px;

    border: 0;

    border-radius: 8px;

    background: #7c2119;

    color: #ffffff;

    font-size: 15px;

    font-weight: 600;

    letter-spacing: 0.5px;

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.2s;
}


.submit-button:hover {
    background: #94291f;
}


.submit-button:active {
    transform: translateY(1px);
}


/* =========================================
   ВОЗВРАТ НА ГЛАВНУЮ
   ========================================= */

.back-row {
    margin-top: 34px;

    text-align: center;
}


.back-row a {
    font-size: 13px;

    color: #777;

    text-decoration: none;
}


.back-row a:hover {
    color: #222;
}


/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================= */

@media (max-width: 720px) {

    body {
        padding: 20px 10px;
    }


    .donate-page {
        min-height: calc(100vh - 40px);
    }


    .donate-card {
        padding: 34px 20px;

        border-radius: 12px;
    }


    .donate-header {
        margin-bottom: 34px;
    }


    .donate-header h1 {
        font-size: 25px;
    }


    .form-item {
        display: block;

        margin-bottom: 24px;
    }


    .form-item label {
        display: block;

        width: 100%;

        margin-bottom: 7px;

        text-align: left;
    }


    .input {
        width: 100%;

        max-width: 100%;
    }


    .hint {
        margin-top: 6px;
    }


    .button-row {
        margin-top: 32px;
    }


    .submit-button {
        width: 100%;
    }

}