.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-color: var(--card-bg);
    color: #f0f0f5;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    transform: translateY(-20px);
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.modal[aria-hidden="false"] .modal-content {
    transform: translateY(0);
}

.modal-content:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.close-button {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-button:hover,
.close-button:focus {
    color: #fff;
    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: #ccc;
}

.modal-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid #444;
    background: #2a2a3d;
    color: #eee;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.modal-input:focus {
    border-color: #5a8dee;
    outline: none;
    box-shadow: 0 0 8px rgba(90, 141, 238, 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-color: var(--card-bg);
    color: #f0f0f5;
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    outline: none;
}

.btn-secondary {
    background-color: #44475a;
    color: #ccc;
    backdrop-filter: blur(25px);
    border: 1px solid #555;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #5a5f7a;
    color: #eee;
    border-color: #666;
    transform: translateY(-2px);
    outline: none;
}

/* Остальные стили вашего сайта */
.product-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 32px;
    transition: all .3s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(25px);
    position: relative;
    text-align: center;
}

.product-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.content-why {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 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;
}

.background {
    background-image: url("/assets/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);
    }
}