* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background:
    linear-gradient(rgba(11, 15, 25, 0.6), rgba(11, 15, 25, 0.6)),
    url('backgr.gif') center/cover no-repeat fixed;
    background-color: #0b0f19;
    color: #ffffff;
    text-shadow:
    -5px 0 12px rgba(91, 206, 250, 0.45),   /* Мягкий голубой слева */
    0 0 10px rgba(255, 255, 255, 0.35),   /* Нежный белый в центре */
    5px 0 12px rgba(245, 171, 185, 0.45);  /* Мягкий розовый справа */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.card {
    background: rgba(255), 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px 30px;
    border-radius: 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(91, 206, 250, 0.15);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px; /* Толщина рамки */
    background: linear-gradient(135deg, #5bcefa, #f5abb9, #ffffff, #f5abb9, #5bcefa);

    /* Вырезаем середину, оставляя только 2px контур */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    border: 2px solid #f5abb9;
    box-shadow: 0 0 15px rgba(91, 206, 250, 0.4);

}

.subtitle {
    color: #bfbfbf;
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.bio {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-btn {
    display: block;
    padding: 12px 20px;
    background-color: rgba(200, 200, 200, 0.1);
    color: #f8fafc;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid #334155;
    transition: all 0.25s ease;

}

/* Эффект при наведении: переход в нежно-розовый с неоновым свечением */
.link-btn:hover {
    background-color: #f5abb9;
    color: #0b0f19;
    border-color: #f5abb9;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(245, 171, 185, 0.4);
}

/* Контейнер для ника */
.nickname-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Таблетка Progynova 2mg */
.estrogen-pill.progynova {
    position: fixed;
    right: 35px;
    top: 50%;
    transform: translateY(-50%) rotate(-12deg);
    width: 44px;
    height: 44px;
    border-radius: 50%;

    /* Фирменный голубой градиент Progynova с бликом */
    background: radial-gradient(circle at 35% 30%, #a6edff 0%, #3aaff0 45%, #1871bd 85%, #0f4c82 100%);
    box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.45),
    0 0 15px rgba(58, 175, 240, 0.6);

    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;

    animation: floatPill 3.5s ease-in-out infinite;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Эффект наведения с двойным свечением (голубой + транс-розовый) */
.estrogen-pill.progynova:hover {
    transform: translateY(-50%) scale(1.25) rotate(8deg);
    box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.5),
    0 0 20px #5bcefa,
    0 0 35px #f5abb9;
}

/* Графировка дозировки "2" */
.progynova .pill-label {
    font-size: 1.1rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    text-shadow:
    -1px -1px 1px rgba(0, 0, 0, 0.3),
    1px  1px 1px rgba(255, 255, 255, 0.7);
    user-select: none;
    font-family: system-ui, sans-serif;
}

/* Плавная левитация */
@keyframes floatPill {
    0%, 100% {
        transform: translateY(-50%) rotate(-12deg);
    }
    50% {
        transform: translateY(calc(-50% - 10px)) rotate(-2deg);
    }
}

/* Частицы при клике */
.sparkle-particle {
    position: fixed;
    pointer-events: none;
    font-size: 1.2rem;
    z-index: 1000;
    animation: popOut 0.8s forwards ease-out;
}

@keyframes popOut {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(var(--x), var(--y)) scale(1.3);
    }
}

@media (max-width: 600px) {
    .estrogen-pill {
        display: none;
    }
}

/* Прозрачная чувствительная зона у правого края экрана */
.progynova-trigger {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60px; /* Ширина области активации */
    height: 180px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* 3D Пачка / Блистер Progynova */
.progynova-pack {
    position: absolute;
    right: -90px; /* Спрятана за краем (виден только маленький кончик) */
    width: 105px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-radius: 10px 0 0 10px; /* Скругление только слева */
    padding: 10px 8px 8px 8px;
    box-shadow:
    -5px 5px 20px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(91, 206, 250, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    perspective: 1000px;

    /* Плавный выезд */
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27), transform 0.3s ease, box-shadow 0.3s ease;
}

/* Выезд пачки при наведении мыши на правый край */
.progynova-trigger:hover .progynova-pack {
    right: 15px; /* Полностью выезжает на экран */
    transform: rotateY(-10deg) scale(1.05);
    box-shadow:
    -8px 10px 25px rgba(0, 0, 0, 0.4),
    0 0 25px #5bcefa,
    0 0 35px #f5abb9;
}

/* Название препарата */
.pack-top {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.brand-name {
    font-size: 0.65rem;
    font-weight: 800;
    color: #0f172a;
    font-family: system-ui, sans-serif;
    letter-spacing: -0.2px;
}

.sub-name {
    font-size: 0.45rem;
    color: #64748b;
    font-weight: 600;
}

/* Сетка ячеек блистера */
.blister-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    background: #e2e8f0;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}

/* Ячейка блистера */
.blister-cell {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #cbd5e1 60%, #94a3b8 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Голубая таблетка */
.pill-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #a6edff 0%, #3aaff0 70%, #1871bd 100%);
}

/* Полоса бренда */
.pack-accent-bar {
    height: 3px;
    background: linear-gradient(90deg, #3aaff0, #f5abb9);
    margin-top: 8px;
    border-radius: 2px;
}

@media (max-width: 600px) {
    .progynova-trigger {
        display: none;
    }
}

