/* === ОБЩИЙ СТИЛЬ И ФУТЕР === */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
}

/* === ОСНОВНОЙ ФОН КОНТЕНТА === */
.content-wrapper {
    flex: 1 0 auto;
    background-color: #111314;
    width: 100%;
    padding-top: 20px;
    box-sizing: border-box;
}

/* === МОБИЛЬНЫЙ РЕЖИМ: ОТСТУПЫ 15px ПО БОКАМ === */
@media (max-width: 700px) {
    .content-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* === ОБЁРТКА ДЛЯ ЦЕНТРИРОВАНИЯ БЛОКОВ === */
.wrapper {
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* === БЛОК 1: Выбор метода пополнения === */
.main__roblox {
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
}

.main__roblox-content {
    background-color: #161b1f;
    border: 0.5px solid #3a3a3a95;
    border-radius: 15px;
    overflow: hidden;
}

.main__roblox-content-img-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    object-position: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.main__roblox-content-donate {
    padding: 20px;
    text-align: center;
}

.main__roblox-content-donate-name {
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 15px 0;
}

.main__roblox-content-donate-method {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.main__roblox-content-donate-method-gamepass,
.main__roblox-content-donate-method-pack {
    position: relative;
    width: 200px;
    height: 42px;
    background-color: #3f4b55;
    border: 0.5px solid #3a3a3a95;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

.main__roblox-content-donate-method-pack {
    background-color: #29323a;
}

.aa1, .aa2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.main__roblox-content-donate-method-gamepass-name1,
.main__roblox-content-donate-method-pack-name1 {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    margin: 0;
}

.main__roblox-content-donate-method-gamepass-name2,
.main__roblox-content-donate-method-pack-name2 {
    color: #919191;
    font-size: 12px;
    font-weight: 500;
    margin: 3px 0 0 0;
}

/* === БЛОК 2: Калькулятор === */
.main__roblox-content-donate-pay {
    width: 100%;
    max-width: 470px;
    margin: 20px auto;
    background-color: #161b1f;
    border: 0.5px solid #3a3a3a95;
    border-radius: 15px;
    padding: 20px 20px 10px;
    box-sizing: border-box;
}

.main__roblox-content-donate-pay-calc {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto 15px;
    flex-wrap: nowrap;
}

.ss1, .ss2 {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 190px;
    max-width: 100%;
}

.main__roblox-content-donate-pay-calc-name1,
.main__roblox-content-donate-pay-calc-name2 {
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 5px 0;
}

.main__roblox-content-donate-pay-calc-robux,
.main__roblox-content-donate-pay-calc-rub {
    width: 190px;
    max-width: 100%;
    height: 35px;
    padding-left: 30px;
    padding-right: 10px;
    background-color: #121619;
    border: 1px solid #40404095;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
}

.main__roblox-content-donate-pay-calc-robux-img,
.main__roblox-content-donate-pay-calc-rub-img {
    position: absolute;
    top: 35px;
    left: 10px;
    transform: translateY(-20%);
    width: 15px;
    height: 15px;
    pointer-events: none;
    z-index: 2;
}

.main__roblox-content-donate-pay-calc-rub-img {
    width: 17px;
    height: 17px;
}

.main__roblox-content-donate-pay-calc-robux:focus,
.main__roblox-content-donate-pay-calc-rub:focus {
    border-width: 1.5px;
    border-color: #4d4d4d95;
}

.main__roblox-content-donate-pay-pay {
    display: block;
    margin: 15px auto;
    width: 400px;
    max-width: 100%;
    height: 35px;
    background-color: #249c94;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #114c48;
    border-radius: 7px;
    cursor: pointer;
    transition: 0.1s;
}

.main__roblox-content-donate-pay-pay:hover {
    background-color: #1f7f79;
    border-color: #0b312f;
}

/* === Курс обмена === */
.main__roblox-content-donate-pay-rate-wrapper {
    max-width: 400px;
    margin: 10px auto 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.main__roblox-content-donate-pay-rate {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    padding: 5px;
    max-width: 100px;
    background-color: #1f262a;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    width: fit-content;
    padding-right: 8px;
    padding-left: 8px;
}

.main__roblox-content-donate-rate-robux {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.main__roblox-content-donate-rate-robux-img {
    width: 11px;
    height: 12px;
}

.main__roblox-content-donate-rate-rub {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* === БЛОК 3: Инструкция === */
.main__roblox-guide {
    width: 100%;
    max-width: 470px;
    margin: 20px auto;
    background-color: #161b1f;
    border: 0.5px solid #3a3a3a95;
    border-radius: 15px;
    overflow: hidden;
}

.main__roblox-guide-content {
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.gg1 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    gap: 3px;
}

.main__roblox-guide-content-1-name {
    color: #fff;
    font-size: 17px;
    font-weight: 500;
}

.main__roblox-guide-content-1,
.main__roblox-guide-content-2,
.main__roblox-guide-content-3,
.main__roblox-guide-content-4 {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 10px;
}

.main__roblox-guide-content-1-img,
.main__roblox-guide-content-2-img,
.main__roblox-guide-content-3-img,
.main__roblox-guide-content-4-img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.main__roblox-guide-content-1-text,
.main__roblox-guide-content-2-text,
.main__roblox-guide-content-3-text,
.main__roblox-guide-content-4-text {
    color: #919191;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    padding-top: 2px;
    padding-bottom: 2px;
    word-wrap: break-word;
}

/* === ВИДЕОИНСТРУКЦИЯ === */
.main__roblox-guide-video-wrapper {
    width: 100%;
    max-width: 640px;
    margin: 15px auto;
    border-radius: 12px;
    overflow: hidden;
}

.main__roblox-guide-video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
    border-radius: 12px;
}

/* === КНОПКА "КУПИТЬ" === */
#buyButton,
.main__roblox-donate-pay-pay {
    display: block;
    width: 400px;
    max-width: 100%;
    margin: 15px auto;
    height: 40px;
    background-color: #249c94;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #114c48;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

#buyButton:hover:not(:disabled),
.main__roblox-donate-pay-pay:hover:not(:disabled) {
    background-color: #1f7f79;
}

#buyButton:disabled,
.main__roblox-donate-pay-pay:disabled {
    background-color: #3a3a3a;
    color: #777;
    border-color: #323232;
    cursor: not-allowed;
    opacity: 1;
}

/* === ОТЗЫВЫ === */
.main__roblox-reviews {
    width: 100%;
    max-width: 470px;
    margin: 20px auto;
}

.reviews-outer {
    background-color: #161b1f;
    border: 0.5px solid #3a3a3a95;
    border-radius: 15px;
    padding: 20px;
}

/* ============
   МОБИЛЬНЫЙ РЕЖИМ (до 700px)
   ============
   Отступы 15px по бокам уже добавлены выше,
   остальное — адаптивное поведение блоков
   ============ */
@media (max-width: 700px) {
    .main__roblox,
    .main__roblox-content-donate-pay,
    .main__roblox-guide,
    .main__roblox-reviews {
        width: 100%;
        max-width: 470px;
    }

    /* На узких экранах блоки занимают всю доступную ширину (с учётом 15px отступов) */
    @media (max-width: 485px) {
        .main__roblox,
        .main__roblox-content-donate-pay,
        .main__roblox-guide,
        .main__roblox-reviews {
            width: 100%;
        }
    }

    .main__roblox-content-donate-method {
        flex-direction: column;
        gap: 10px;
    }

    .main__roblox-content-donate-method-gamepass,
    .main__roblox-content-donate-method-pack {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .main__roblox-content-donate-pay-calc {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .ss1, .ss2 {
        width: 100%;
        max-width: 400px;
    }

    .main__roblox-content-donate-pay-calc-robux,
    .main__roblox-content-donate-pay-calc-rub {
        width: 100%;
        max-width: 100%;
    }

    .main__roblox-content-donate-pay-pay,
    #buyButton {
        width: 100%;
        max-width: 400px;
        margin: 15px auto;
    }

    .main__roblox-guide-video-wrapper {
        max-width: 640px;
        margin: 15px auto;
    }
}

@media (max-width: 767px) {
    .main__roblox-content,
    .main__roblox-content-donate-pay,
    .main__roblox-guide {
        border: none;
    }
}
