/* Radar map — full width */
.contacts-hub {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.contacts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .contacts-list { grid-template-columns: repeat(3, 1fr); }
}

.contact-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 28px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Corner accent */
.contact-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 40px solid var(--accent);
    border-left: 40px solid transparent;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-card:hover::after {
    opacity: 0.08;
}

.contact-card:hover {
    border-color: rgba(206, 254, 70, 0.25);
    background: rgba(206, 254, 70, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.contact-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-card:hover::before { opacity: 1; }

.contact-map-link {
    display: inline-block;
    margin-top: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid rgba(206, 254, 70, 0.3);
    padding: 6px 14px;
    transition: all 0.3s ease;
}

.contact-map-link:hover {
    background: var(--accent);
    color: #000;
}

.contact-role {
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
    position: relative;
    padding-left: 12px;
}

.contact-role::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.contact-city {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.contact-card:hover .contact-city {
    color: var(--accent);
}

.contact-address {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    user-select: text;
    -webkit-user-select: text;
    -webkit-user-drag: none;
    line-height: 1.7;
    margin-bottom: 16px;
    font-weight: 300;
    cursor: text;
    position: relative;
    z-index: 2;
}

.contact-phone {
    user-select: text;
    -webkit-user-select: text;
    -webkit-user-drag: none;
    cursor: text;
    position: relative;
    z-index: 2;
}

.contact-phone {
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.contact-phone:hover {
    color: var(--accent);
}

.contact-note {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
    margin-top: 14px;
    line-height: 1.6;
    font-weight: 300;
}

/* RADAR MAP STYLES — Military Premium */
.radar-map-container {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #050505 100%);
    border: 1px solid rgba(206, 254, 70, 0.08);
    min-height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
@media(max-width: 768px) { .radar-map-container { min-height: 320px; } }

/* Animated border glow — military scanner */
.radar-map-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(206, 254, 70, 0.12) 25%, 
        transparent 50%, 
        rgba(206, 254, 70, 0.08) 75%, 
        transparent 100%
    );
    background-size: 400% 400%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: -1;
    animation: borderFlow 8s ease infinite;
}

.radar-map-container:hover::before {
    opacity: 1;
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.radar-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/maps/kartel-explorer-map.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.35;
    filter: grayscale(100%) contrast(1.3) brightness(0.9);
    transition: all 0.6s ease;
}

.radar-map-container:hover .radar-bg {
    opacity: 0.45;
    filter: grayscale(80%) contrast(1.3) brightness(1);
}

.radar-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(206, 254, 70, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(206, 254, 70, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    opacity: 0.5;
}

/* Radar sweep — full coverage, military glow */
.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg, 
        transparent 0deg, 
        rgba(206, 254, 70, 0.06) 20deg,
        rgba(206, 254, 70, 0.14) 50deg, 
        rgba(206, 254, 70, 0.06) 70deg,
        transparent 70deg
    );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radarSpin 5s linear infinite;
    z-index: 2;
    pointer-events: none;
}

/* Secondary sweep — faint echo */
.radar-sweep-echo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 180deg, 
        transparent 0deg, 
        rgba(206, 254, 70, 0.04) 30deg, 
        transparent 30deg
    );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radarSpin 5s linear infinite;
    animation-delay: -2.5s;
    z-index: 2;
    pointer-events: none;
}

@keyframes radarSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Radar crosshair — military reticle */
.radar-crosshair {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.radar-crosshair::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(206,254,70,0.06), transparent);
}

.radar-crosshair::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(206,254,70,0.06), transparent);
}

/* Range circles — military radar rings */
.radar-rings {
    position: absolute;
    top: 50%;
    left: 15%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.radar-rings::before {
    content: '';
    position: absolute;
    inset: 25%;
    border: 1px solid rgba(206, 254, 70, 0.06);
    border-radius: 50%;
}

.radar-rings::after {
    content: '';
    position: absolute;
    inset: 5%;
    border: 1px solid rgba(206, 254, 70, 0.04);
    border-radius: 50%;
}

/* HUD overlay — military data */
.radar-hud {
    position: absolute;
    z-index: 8;
    pointer-events: none;
}

.radar-hud-tl {
    top: 16px;
    left: 16px;
    font-family: 'Courier New', monospace;
    font-size: 9px;
    color: rgba(206, 254, 70, 0.25);
    letter-spacing: 0.1em;
    line-height: 1.8;
}

.radar-hud-tr {
    top: 16px;
    right: 16px;
    text-align: right;
    font-family: 'Courier New', monospace;
    font-size: 9px;
    color: rgba(206, 254, 70, 0.25);
    letter-spacing: 0.1em;
    line-height: 1.8;
}

.radar-hud-br {
    bottom: 16px;
    right: 16px;
    text-align: right;
    font-family: 'Courier New', monospace;
    font-size: 9px;
    color: rgba(206, 254, 70, 0.2);
    letter-spacing: 0.1em;
    line-height: 1.8;
}

.radar-hud-bl {
    bottom: 16px;
    left: 16px;
    font-family: 'Courier New', monospace;
    font-size: 9px;
    color: rgba(206, 254, 70, 0.2);
    letter-spacing: 0.1em;
}

/* Blinking cursor for HUD */
.hud-blink {
    animation: hudBlink 1.2s step-end infinite;
}

@keyframes hudBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Animated connection path between cities */
.radar-connection {
    position: absolute;
    z-index: 6;
    pointer-events: none;
}

.radar-connection-line {
    position: absolute;
    top: 47%;
    left: 11.5%;
    width: 6%;
    height: 1px;
    background: rgba(206, 254, 70, 0.2);
    transform: rotate(70deg);
    transform-origin: left center;
}

/* Dashed overlay for connection */
.radar-connection-line::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        rgba(206, 254, 70, 0.5) 0px,
        rgba(206, 254, 70, 0.5) 4px,
        transparent 4px,
        transparent 10px
    );
    animation: dashMove 2s linear infinite;
}

@keyframes dashMove {
    from { transform: translateX(-10px); }
    to { transform: translateX(0px); }
}

/* Running dot between cities — corrected to reach Saratov */
.radar-dot-runner {
    position: absolute;
    top: 45%;
    left: 11%;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent), 0 0 16px rgba(206, 254, 70, 0.3);
    z-index: 7;
    animation: dotRunner 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes dotRunner {
    0% { left: 11%; top: 45%; opacity: 0; }
    10% { opacity: 1; }
    50% { left: 14%; top: 56%; opacity: 1; }
    90% { opacity: 1; }
    100% { left: 11%; top: 45%; opacity: 0; }
}

/* Second runner — reverse */
.radar-dot-runner-2 {
    position: absolute;
    top: 56%;
    left: 14%;
    width: 4px;
    height: 4px;
    background: rgba(206, 254, 70, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(206, 254, 70, 0.4);
    z-index: 7;
    animation: dotRunner2 3s ease-in-out infinite;
    animation-delay: 1.5s;
    pointer-events: none;
}

@keyframes dotRunner2 {
    0% { left: 14%; top: 56%; opacity: 0; }
    10% { opacity: 0.7; }
    50% { left: 11%; top: 45%; opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { left: 14%; top: 56%; opacity: 0; }
}

/* Ghost blips — random radar contacts */
.radar-blip {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(206, 254, 70, 0.4);
    border-radius: 50%;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
}

.radar-blip-1 {
    top: 30%;
    left: 40%;
    animation: blipFade 5s ease-in-out infinite;
}

.radar-blip-2 {
    top: 55%;
    left: 65%;
    animation: blipFade 5s ease-in-out infinite;
    animation-delay: 2s;
}

.radar-blip-3 {
    top: 35%;
    left: 80%;
    animation: blipFade 5s ease-in-out infinite;
    animation-delay: 3.5s;
}

@keyframes blipFade {
    0%, 85%, 100% { opacity: 0; transform: scale(0.5); }
    90% { opacity: 0.6; transform: scale(1); }
    95% { opacity: 0.3; transform: scale(1.5); }
}

/* Military ticker strip between map and cards */
.contacts-ticker {
    width: 100%;
    overflow: hidden;
    background: rgba(206, 254, 70, 0.03);
    border-top: 1px solid rgba(206, 254, 70, 0.08);
    border-bottom: 1px solid rgba(206, 254, 70, 0.08);
    padding: 10px 0;
    position: relative;
}

.contacts-ticker::before,
.contacts-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.contacts-ticker::before {
    left: 0;
    background: linear-gradient(90deg, #0a0a0a, transparent);
}

.contacts-ticker::after {
    right: 0;
    background: linear-gradient(90deg, transparent, #0a0a0a);
}

.contacts-ticker-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: tickerScroll 50s linear infinite;
    width: max-content;
}

.contacts-ticker:hover .contacts-ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(206, 254, 70, 0.4);
    padding: 0 16px;
    transition: color 0.3s ease;
}

.contacts-ticker:hover .ticker-item {
    color: rgba(206, 254, 70, 0.6);
}

.ticker-sep {
    font-size: 6px;
    color: rgba(206, 254, 70, 0.2);
    padding: 0 4px;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.map-point {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 0 16px var(--accent), 0 0 4px rgba(206, 254, 70, 0.8);
    transition: all 0.3s ease;
}

.map-point:hover {
    transform: scale(1.3);
    box-shadow: 0 0 24px var(--accent), 0 0 8px rgba(206, 254, 70, 1);
}

.map-point::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0.4;
    animation: pulse 2.5s ease-out infinite;
}

/* Second pulse ring — outer */
.map-point::before {
    content: '';
    position: absolute;
    inset: -14px;
    border: 1px solid rgba(206, 254, 70, 0.2);
    border-radius: 50%;
    animation: pulse 2.5s ease-out infinite;
    animation-delay: 0.8s;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 0.2; }
    100% { transform: scale(2); opacity: 0; }
}

.map-point-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 14px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid rgba(206, 254, 70, 0.25);
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    letter-spacing: 0.08em;
}

.map-point-label::before {
    content: '▸';
    color: var(--accent);
    margin-right: 6px;
}

.map-point:hover .map-point-label {
    opacity: 1;
    left: 24px;
}

/* Moscow & Saratov positions — точные координаты на карте всей РФ */
/* Москва: 55.75°N, 37.62°E — Саратов: 51.54°N, 46.08°E */
/* Саратов чуть левее предыдущего, ближе к реальности */
.point-msk { top: 45%; left: 11%; }
.point-srt { top: 56%; left: 14%; }

.contact-link-btn {
    display: inline-block;
    margin-top: 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(206, 254, 70, 0.3);
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-link-btn:hover {
    background: rgba(206, 254, 70, 0.1);
    border-color: var(--accent);
}

/* GPU Acceleration Helper */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

/* ====== MOBILE PREMIUM OVERHAUL ====== */
