/**
 * Карточки IP в шапке — отдельный модуль.
 * Классы: .ip-card, .ip-card__* — не зависят от общих стилей сайта.
 */

.ip-card-wrap {
    position: relative;
}

/* Сама карточка (кликабельный блок) */
.ip-card {
    position: relative;
    display: block;
    width: 100%;
    min-width: 220px;
    max-width: 280px;
    padding: 20px 24px;
    margin: 0;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    text-align: center;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    text-decoration: none;
    box-sizing: border-box;

    /* Фон — свой, не наследуем от body */
    background: linear-gradient(160deg, #3a4a62 0%, #2d3a4d 100%);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 184, 251, 0.4);

    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 184, 251, 0.6);
}

.ip-card:active {
    transform: translateY(0);
}

/* Уголки декора */
.ip-card__corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(0, 184, 251, 0.5);
    border-radius: 2px;
    pointer-events: none;
}
.ip-card__corner--tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.ip-card__corner--tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.ip-card__corner--bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.ip-card__corner--br { bottom: 6px; right: 6px; border-left: none; border-top: none; }

/* Контент карточки */
.ip-card__inner {
    position: relative;
    z-index: 1;
}

/* Строка с подписью (МОБИЛЬНЫЙ / КОМПЬЮТЕР) */
.ip-card__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ip-card__line {
    flex: 1;
    max-width: 36px;
    height: 1px;
    background: rgba(0, 184, 251, 0.5);
}

.ip-card__title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #00b8fb;
}

/* Адрес IP — основной текст, всегда белый */
.ip-card__address {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Разделитель */
.ip-card__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 12px;
}

/* Подвал с подсказкой */
.ip-card__footer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ip-card__hint {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

/* Выравнивание в шапке: левая карточка — влево, правая — вправо (только позиция блока) */
.header-ip-left .ip-card-wrap {
    margin-right: auto;
}
.header-ip-right .ip-card-wrap {
    margin-left: auto;
}

/* Текст на карточках всегда по центру */
.ip-card__label {
    justify-content: center;
}
.ip-card__footer {
    justify-content: center;
}

/* Мобильная: карточки по центру */
@media (max-width: 768px) {
    .header-ip-left .ip-card-wrap,
    .header-ip-right .ip-card-wrap {
        margin-left: auto;
        margin-right: auto;
    }
    .header-ip-left .ip-card,
    .header-ip-right .ip-card {
        max-width: none;
    }
    .ip-card__address { font-size: 1.05rem; }
}

@media (max-width: 600px) {
    .ip-card {
        min-width: 0;
        padding: 16px 20px;
    }
    .ip-card__address { font-size: 1rem; }
}
