/* ═══════════════════════════════════════════════════
   CITIES BLOCK — CYBERPUNK EDITION
   Homepage: Інтернет в містах Одеської області
   ═══════════════════════════════════════════════════ */

.cp-cities {
    background: #0a0e1a;
    padding: 80px 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* Grid background */
.cp-cities::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 49.7%, rgba(0, 212, 255, 0.04) 50%, transparent 50.3%),
        linear-gradient(0deg, transparent 49.7%, rgba(0, 212, 255, 0.04) 50%, transparent 50.3%);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Ambient glow */
.cp-cities::after {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cp-cities .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Title */
.cp-cities__title {
    font-family: 'Inter', sans-serif;
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.cp-cities__subtitle {
    font-size: 17px;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 50px;
    font-weight: 500;
    letter-spacing: 2px;
}

.cp-cities__subtitle span {
    color: #00d4ff;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* Grid */
.cp-cities__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Card base */
.cp-city-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    color: #e0e6f0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.cp-city-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.cp-city-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15), 0 0 0 1px rgba(0, 212, 255, 0.1);
}

.cp-city-card:hover::before {
    opacity: 1;
}

/* HIT card (Izmail) */
.cp-city-card--hit {
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(0, 212, 255, 0.06);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.cp-city-card--hit:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.25), 0 8px 32px rgba(0, 212, 255, 0.2);
}

.cp-city-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #00d4ff, #0088cc);
    color: #0a0e1a;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    width: fit-content;
}

.cp-city-card__badge svg {
    width: 12px;
    height: 12px;
}

/* City name */
.cp-city-card__name {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.cp-city-card__name svg {
    width: 20px;
    height: 20px;
    color: #00d4ff;
    flex-shrink: 0;
}

/* Price */
.cp-city-card__price {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #00d4ff;
    margin: 0 0 14px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    position: relative;
    z-index: 1;
}

.cp-city-card__price-unit {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
}

/* Features list */
.cp-city-card__features {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    margin: 0 0 18px;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.cp-city-card__features .feat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cp-city-card__features .feat svg {
    width: 14px;
    height: 14px;
    color: #00d4ff;
    flex-shrink: 0;
    opacity: 0.7;
}

.cp-city-card__features .feat--highlight {
    color: rgba(255, 200, 50, 0.8);
}

.cp-city-card__features .feat--highlight svg {
    color: rgba(255, 200, 50, 0.8);
}

/* CTA */
.cp-city-card__cta {
    font-size: 14px;
    font-weight: 700;
    color: #00d4ff;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    transition: gap 0.3s;
}

.cp-city-card:hover .cp-city-card__cta {
    gap: 10px;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.cp-city-card__cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.cp-city-card:hover .cp-city-card__cta svg {
    transform: translateX(3px);
}

/* Odesa special card */
.cp-city-card--odesa {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.06);
}

.cp-city-card--odesa:hover {
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2), 0 8px 32px rgba(139, 92, 246, 0.15);
}

.cp-city-card--odesa .cp-city-card__name svg,
.cp-city-card--odesa .cp-city-card__cta {
    color: #a78bfa;
}

.cp-city-card--odesa .cp-city-card__features .feat svg {
    color: #a78bfa;
}

/* Expand card */
.cp-city-card--expand {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px dashed rgba(0, 212, 255, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 200px;
}

.cp-city-card--expand:hover {
    border-style: solid;
}

.cp-city-card--expand__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    animation: expandPulse 3s ease-in-out infinite;
}

@keyframes expandPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.2); }
    50% { box-shadow: 0 0 0 12px rgba(0, 212, 255, 0); }
}

.cp-city-card--expand__icon svg {
    width: 28px;
    height: 28px;
    color: #00d4ff;
}

.cp-city-card--expand__title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
}

.cp-city-card--expand__sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* Scan line animation */
.cp-cities__scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    animation: scanDown 8s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes scanDown {
    0% { top: 0; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .cp-cities { padding: 50px 0; }
    .cp-cities__title { font-size: 28px; }
    .cp-cities__subtitle { font-size: 14px; margin-bottom: 30px; }
    .cp-cities__grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .cp-city-card { padding: 20px; }
    .cp-city-card__name { font-size: 18px; }
    .cp-city-card__price { font-size: 28px; }
}

@media (max-width: 480px) {
    .cp-cities__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .cp-cities__title { font-size: 24px; }
}
