/* ═══════════════════════════════════════════
   CONTACTS — страница контактов
   ═══════════════════════════════════════════ */

.page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    overflow: hidden;
    padding: 3px;
}

/* Дисклеймер про Instagram — только для мобилки, см. медиа ≤ 900px */
.contacts-mob-disclaimer {
    display: none;
}

/* ─── Основной контент ─── */
.contacts-content {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 410px 1fr;
    gap: 24px;
}

/* ─── Левый столбец ─── */
.contacts-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Мобильная бутылка скрыта на десктопе */
.contacts-mob-img {
    display: none;
}

.contacts-desc-wrap {
    position: relative;
}

.contacts-desc {
    padding: 21px;
    font-family: var(--font-kiril);
    font-size: 20px;
    color: var(--text);
    line-height: 150%;
}

/* ─── Контактные ссылки ─── */
.contacts-link-wrap {
    position: relative;
    min-height: 116px;
    flex: 1;
}

.contacts-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s;
}

.contacts-link-label {
    font-family: var(--font-kiril);
    font-size: 20px;
    text-transform: uppercase;
}

.contacts-link-value {
    font-family: var(--font-kiril);
    font-size: 20px;
}

.contacts-link-wrap:hover .glass-glow {
    --color: var(--blue);
}

.contacts-link-wrap:hover .glass {
    box-shadow:
        0px 4px 4px 0px #00000040,
        0px 4px 33.4px 0px #00e3ffcc inset;
}

.contacts-link-wrap:hover .contacts-link {
    color: var(--blue);
}

/* ─── Правый блок ─── */
.contacts-right-wrap {
    position: relative;
}

.contacts-right {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Дефолтное состояние */
.cr-default {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.cr-default.is-hidden {
    display: none;
}

.cr-default-text {
    font-family: var(--font-kiril);
    font-size: 32px;
    font-weight: 600;
    color: var(--core);
    letter-spacing: 0.06em;
    text-align: center;
    line-height: 100%;
    display: inline-block;
    width: fit-content;
    animation: cr-text-pulse 1.6s ease-in-out infinite;
}

@keyframes cr-text-pulse {
    0%, 100% {
        text-shadow:
            0 0 8px  rgba(255, 238, 0, 0.4),
            0 0 20px rgba(255, 238, 0, 0.15),
            0 0 45px rgba(255, 238, 0, 0.06);
    }
    50% {
        text-shadow:
            0 0 10px rgba(255, 238, 0, 1),
            0 0 25px rgba(255, 238, 0, 0.75),
            0 0 50px rgba(255, 238, 0, 0.45),
            0 0 90px rgba(255, 238, 0, 0.22),
            0 0 140px rgba(255, 238, 0, 0.1),
            0 0 220px rgba(255, 238, 0, 0.04);
    }
}

/* Панель при ховере */
.cr-panel {
    flex: 1;
    display: none;
    flex-direction: column;
    padding: 65px 45px 50px 65px;
    gap: 20px;
    min-height: 0;
}

.cr-panel.is-visible {
    display: flex;
    animation: cr-fade-in 0.2s ease forwards;
}

.cr-main {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 58px;
    align-items: center;
}

.cr-qr-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cr-qr img {
    display: block;
    width: 309px;
    height: auto;
}

.cr-desc {
    flex: 1;
    font-family: var(--font-kiril);
    font-size: 20px;
    line-height: 1.4;
    color: var(--text);
    text-align: justify;
    white-space: pre-line;
}

.cr-footer {
    flex-shrink: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cr-status-line,
.cr-status-sub {
    font-family: var(--font-latin);
    font-size: 20px;
    color: var(--text);
    letter-spacing: 0.06em;
}

.cr-status-val {
    color: var(--acid);
}

.cr-cursor {
    position: relative;
    top: -2px;
    left: 1px;
    color: var(--acid);
    animation: cr-cursor-blink 1s step-end infinite;
}

@keyframes cr-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes cr-cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ═══════════════════════════════════════════
   ПЛАНШЕТ — ≤ 1200px
   ═══════════════════════════════════════════ */
@media (max-width: 1200px) {
    .cr-main {
        flex-direction: column;
    }

    .cr-desc {
        font-size: 16px;
    }

    .cr-status-line,
    .cr-status-sub {
        font-size: 16px;
    }
}

/* ═══════════════════════════════════════════
   МОБИЛЬ — ≤ 900px
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .page {
        overflow: visible;
        flex: none;
        gap: 12px;
    }

    .page-back-wrap {
        display: none;
    }

    .contacts-content {
        display: flex;
        flex-direction: column;
        flex: none;
        gap: 0;
        overflow: visible;
        margin-bottom: 50px;
    }

    /* Правый QR-блок скрыт на мобилке */
    .contacts-right-wrap {
        display: none;
    }

    .contacts-desc-wrap {
        margin-bottom: 0;
    }

    .contacts-desc {
        font-size: 16px;
        padding: 30px;
        line-height: 160%;
    }

    /* Мобильная бутылка */
    .contacts-mob-img {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px 0;
    }

    .contacts-mob-bottle {
        width: 132px;
        height: auto;
    }

    .contacts-link-wrap {
        flex: none;
        min-height: 0;
        height: 116px;
    }

    .contacts-link-label,
    .contacts-link-value {
        font-size: 18px;
    }

    .contacts-mob-disclaimer {
        display: block;
        font-family: var(--font-kiril);
        font-size: 14px;
        line-height: 1.4;
        color: var(--text);
        text-align: center;
        padding: 0 20px;
        margin-top: 20px;
    }
}
