/* МОДАЛКА */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;

    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
}

/* ОКНО */
.modal-content {
    position: relative;
    margin: 10% auto;
    padding: 25px;
    width: 90%;
    max-width: 500px;

    border-radius: 16px;

    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);

    border: 1px solid rgba(255,255,255,0.2);

    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* КРЕСТИК */
.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 26px;
    cursor: pointer;
}

/* ПОЛЯ */
.modal input,
.modal textarea {
    width: 100%;
    margin-top: 15px;
    padding: 12px;

    border-radius: 8px;
    border: none;

    background: rgba(255,255,255,0.1);
    color: white;

    outline: none;
}

/* ТЕКСТАРЕА */
.modal textarea {
    min-height: 120px;
    resize: none;
}

/* КНОПКА */
.modal button {
    width: 100%;
    margin-top: 20px;
    padding: 12px;

    border: none;
    border-radius: 10px;

    background: linear-gradient(135deg, #00d4ff, #4facfe);
    color: white;

    font-weight: bold;
    cursor: pointer;

    transition: 0.3s;
}

.modal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,212,255,0.6);
}






/* Сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основа */
body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1e1e2f, #2c2c54);
    color: #ffffff;
    line-height: 1.6;
}

/* Шапка */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
    font-size: 15px;
}

nav a:hover {
    color: #00d4ff;
}

/* Заголовок */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.hero p {
    color: #cccccc;
}

/* Кнопка */
.random-btn {
    margin-top: 20px;
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    background: #00d4ff;
    color: #000;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.random-btn:hover {
    background: #00aacc;
}

/* Сетка */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 40px;
}

/* Карточки */
.card {
    display: block;
    text-decoration: none;
    color: white;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    transition: 0.3s;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card span {
    display: block;
    padding: 15px;
    font-weight: bold;
    font-size: 16px;
}

/* Hover эффект */
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

/* Адаптив */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 28px;
    }

    header {
        flex-direction: column;
        gap: 10px;
    }

    nav a {
        margin: 0 10px;
    }
}
.battery-icon {
    position: relative;

    width: 100%;
    height: 220px;

    overflow: hidden;
    border-radius: 20px;

    background: linear-gradient(135deg, #0f172a, #1e293b);

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #3b82f6;

    transition: 0.4s;
}

.battery-icon::before {
    content: "";

    position: absolute;
    width: 200%;
    height: 200%;

    background:
        radial-gradient(circle, rgba(59,130,246,0.4) 0%, transparent 60%);

    animation: glowRotate 6s linear infinite;
}

.battery-icon img {
    position: relative;

    width: 140px;
    z-index: 2;

    filter:
        drop-shadow(0 0 20px #60a5fa);

    transition: 0.4s;
}

.battery-icon:hover img {
    transform: scale(1.12) rotate(-4deg);
}

.battery-icon:hover {
    box-shadow:
        0 0 25px rgba(59,130,246,0.6);
}

@keyframes glowRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


.grid {
    display: grid;

    grid-template-columns:
    repeat(auto-fit, minmax(300px, 1fr));

    gap: 30px;

    padding: 40px;
}

.card {
    position: relative;

    background: #111827;

    border-radius: 24px;

    overflow: hidden;

    text-align: center;

    padding: 25px;

    transition: 0.4s;

    color: white;
}

.card img {
    width: 100%;
    height: 220px;

    object-fit: cover;

    border-radius: 18px;
}

.card span {
    display: block;

    margin-top: 20px;

    font-size: 24px;
    font-weight: bold;
}

/* АКТИВНАЯ КАРТОЧКА */

.active-card {
    border: 3px solid #3b82f6;

    background:
    linear-gradient(135deg, #0f172a, #1e293b);

    box-shadow:
    0 0 25px rgba(59,130,246,0.5);

    transform: scale(1.03);

    text-decoration: none;
}

.active-card:hover {
    transform: scale(1.05);

    box-shadow:
    0 0 40px rgba(59,130,246,0.8);
}

.active-card button {
    margin-top: 20px;

    padding: 14px 22px;

    border: none;
    border-radius: 14px;

    background: #2563eb;

    color: white;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}

.active-card button:hover {
    background: #1d4ed8;

    transform: scale(1.05);
}

/* ЗАКРЫТЫЕ КАРТОЧКИ */

.locked-card {
    opacity: 0.45;

    filter: grayscale(100%);

    cursor: not-allowed;
}

.locked-card::after {
    content: "🔒";

    position: absolute;

    top: 15px;
    right: 15px;

    font-size: 34px;
}

/* СТАТУС */

.status {
    position: absolute;

    top: 15px;
    left: 15px;

    padding: 8px 14px;

    border-radius: 999px;

    font-size: 13px;
    font-weight: bold;
}

.open-status {
    background: #22c55e;
    color: white;
}

.locked-status {
    background: #ef4444;
    color: white;
}

.locked-card p {
    margin-top: 12px;

    color: #cbd5e1;
}








.grid {
    display: grid;

    grid-template-columns:
    repeat(auto-fit, minmax(300px, 1fr));

    gap: 30px;

    padding: 40px;
}

.card {
    position: relative;

    background: #111827;

    border-radius: 24px;

    overflow: hidden;

    text-align: center;

    padding: 25px;

    transition: 0.4s;

    color: white;

    text-decoration: none;
}

.card img {
    width: 100%;
    height: 220px;

    object-fit: cover;

    border-radius: 18px;
}

.card span {
    display: block;

    margin-top: 20px;

    font-size: 24px;
    font-weight: bold;
}

/* АКТИВНЫЕ */

.active-card {

    border: 3px solid #3b82f6;

    background:
    linear-gradient(135deg,
    #0f172a,
    #1e293b);

    box-shadow:
    0 0 25px rgba(59,130,246,0.5);
}

.active-card:hover {

    transform:
    translateY(-10px);

    box-shadow:
    0 0 40px rgba(59,130,246,0.8);
}

.active-card button {

    margin-top: 20px;

    padding: 14px 22px;

    border: none;
    border-radius: 14px;

    background: #2563eb;

    color: white;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;
}

/* ЗАКРЫТЫЕ */

.locked-card {

    pointer-events: none;

    opacity: 0.45;

    filter: grayscale(100%);
}

.locked-card::after {

    content: "🔒";

    position: absolute;

    top: 15px;
    right: 15px;

    font-size: 34px;
}

/* СТАТУС */

.status {

    position: absolute;

    top: 15px;
    left: 15px;

    padding: 8px 14px;

    border-radius: 999px;

    font-size: 13px;
    font-weight: bold;
}

.open-status {

    background: #22c55e;

    color: white;
}

.locked-status {

    background: #ef4444;

    color: white;
}

.card p {

    margin-top: 12px;

    color: #cbd5e1;
}