
:root {
    --bg-glass-dark: linear-gradient(145deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.45));
    --border-glass-dark: rgba(255, 255, 255, 0.06);
    --shadow-glass-dark: 0 8px 24px rgba(0, 0, 0, 0.4);
    --transition-default: 0.4s ease;
    --hover-scale: scale(1.05);
}

/* Общий стиль секций */
.section-payment,
.section-how-to-pay {
    background: var(--bg-glass-dark);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-glass-dark);
    box-shadow: var(--shadow-glass-dark);
    border-radius: 30px;
    padding: 70px 30px;
    max-width: 1200px;
    margin: 80px auto;
    color: #fff;
    animation: fadeInUp 0.8s ease-out both;
}

/* Заголовки */
.header-pay-store h1 {
    font-size: 44px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out;
}

.header-pay-store .text {
    font-size: 18px;
    color: #ddd;
    opacity: 0.85;
    animation: fadeIn 1.3s ease-out;
}

/* Карточки оплаты */
.payment-methods .option-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.payment-methods .item {
    flex: 1 1 240px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    transition: transform var(--transition-default), box-shadow var(--transition-default);
    animation: floatIn 1s ease forwards;
    cursor: pointer;
    color: #fff;
}

.payment-methods .item:hover {
    transform: var(--hover-scale);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.payment-methods .item img {
    width: 70px;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.payment-methods .item:hover img {
    transform: rotate(6deg);
}

.payment-methods .item h2 {
    font-size: 20px;
    font-weight: bold;
    color: #7FE366;
    margin-bottom: 10px;
}

.payment-methods .item .text {
    font-size: 15px;
    color: #ccc;
    opacity: 0.85;
}

/* Заголовки шагов */
.testimonials_heading .text-40 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    animation: fadeIn 1s ease-in;
}

.testimonials_heading .text {
    font-size: 17px;
    color: #ccc;
    opacity: 0.85;
    animation: fadeIn 1.2s ease-in;
}

/* Контейнер шагов */
.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .steps-container {
        grid-template-columns: 1fr 1fr;
        gap: 50px 60px;
    }
}

/* Анимированная вертикальная линия */
.steps-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.3), rgba(255,255,255,0.05));
    transform: translateX(-50%);
    z-index: 0;
    animation: pulseLine 3s ease-in-out infinite;
    border-radius: 5px;
}

/* Стиль элементов шага */
.step-item {
    position: relative;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.4s ease;
    z-index: 1;
}

.step-item:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.1), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.step-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #7FE366;
}

.step-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
}

.content-pay h4 {
    font-size: 18px;
    font-weight: 600;
    color: #eee;
    margin-bottom: 10px;
}

.content-pay .text {
    font-size: 15px;
    color: #ccc;
    opacity: 0.85;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseLine {
    0%, 100% {
        background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    }
    50% {
        background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.4), rgba(255,255,255,0.2));
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-pay-store h1 {
        font-size: 32px;
    }

    .testimonials_heading .text-40 {
        font-size: 26px;
    }

    .section-payment,
    .section-how-to-pay {
        padding: 40px 20px;
    }
}

.section-how-to-pay h1{
    color: #7FE366;
    font-size: 34px;
    display: flex;
    justify-content: center;
}

/*modal*/

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px; right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.chat-box {
    height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    padding: 10px;
}

.chat-open-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4caf50;
    color: white;
    padding: 12px 16px;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}
