.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10000;
}

.modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-bg);
    color: var(--c-text);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
    border: 1px solid var(--border-color);
    transform: translateY(-20px);
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(10px);
}

.modal[aria-hidden="false"] .modal-content {
    transform: translateY(0);
}

.modal-content:hover {
    background: var(--card-bg);
    border-color: var(--c-primary);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.4);
}

.close-button {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--c-text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--c-text);
    outline: none;
}

.modal-content h2 {
    margin-top: 0;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.modal-body p {
    font-size: 1rem;
    margin: 12px 0;
}

.modal-label {
    display: block;
    margin-top: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--c-text-secondary);
}

.modal-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    background: var(--card-bg);
    color: var(--c-text);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.modal-input:focus {
    border-color: var(--c-primary);
    outline: none;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

.modal-footer {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn {
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    position: relative;
}

.btn-primary {
    background: var(--card-bg);
    color: var(--c-text);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--card-bg);
    border-color: var(--c-primary);
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.4);
    outline: none;
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--c-text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--card-bg);
    color: var(--c-text);
    border-color: var(--c-primary);
    transform: translateY(-2px);
    outline: none;
}

/* Остальные стили вашего сайта */
.product-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 32px;
    transition: all .3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    text-align: center;
    backdrop-filter: blur(10px);
}

.product-card span {
    color: var(--c-text);
    font-size: 16px;
    font-weight: 500;
    margin: 5px 0;
    display: block;
}

.product-card:hover {
    background: var(--card-bg);
    transform: translateY(-4px);
    border-color: var(--c-primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.product-card button {
    background: var(--card-bg);
    color: var(--c-text);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.product-card button:hover {
    border-color: var(--c-primary);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.content-why {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.content-why h1 {
    color: var(--c-text);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.content-why p {
    color: var(--c-text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
}

.py65 {
    padding-top: 140px;
    padding-bottom: 100px;
}

.py10 {
    margin-top: 40px;
}

.py15 {
    margin-top: 15px;
}

.py25 {
    margin-top: 25px;
}

.px5 {
    margin-left: 20px;
}

.px2 {
    margin-left: 8px;
}

.ro10 {
    border-radius: 10px;
}

.tstrike {
    text-decoration: line-through;
    color: var(--c-text-secondary);
    opacity: 0.7;
}

.background {
    background-image: url("../images/game.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.content-why {
    position: relative;
    z-index: 2;
}

.fixed-position {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Эффект размытия для контента за модальным окном */
body.modal-open {
    overflow: hidden;
}

body.modal-open .background,
body.modal-open #app > *:not(.modal) {
    filter: blur(3px);
    transition: filter 0.3s ease;
}

@media (max-width: 992px) {
    .features {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 500px;
        margin: 40px auto 0;
    }
}

@media (max-width: 768px) {
    .content-why {
        padding: 0 20px;
    }

    .py65 {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
}

.product-card .tg2 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--c-primary) !important;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 16px;
    display: inline-block;
    margin: 10px 0;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
}

@keyframes priceGlow {
    0% {
        text-shadow: 0 0 15px rgba(139, 92, 246, 0.8), 0 0 30px rgba(139, 92, 246, 0.4);
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }
    100% {
        text-shadow: 0 0 25px rgba(139, 92, 246, 1), 0 0 50px rgba(139, 92, 246, 0.6);
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    }
}