/* Districts Plates - Main Styles */
.districts-container {
    max-width: 100%;
    width: 100%;
    padding: 0 15px;
    margin: 0 auto 30px;
    box-sizing: border-box;
}

.districts-title {
    text-align: center;
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.district-plate {
    background: #ffffff;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
    border: 1px solid #e0e0e0;
    max-width: 100%;
}

.district-plate:last-child {
    margin-bottom: 0;
}

.district-plate::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    transition: all 0.3s ease;
    z-index: 1;
}

.district-plate:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.district-plate:hover::after {
    width: 6px;
    background: #e74c3c;
}

.district-content {
    position: relative;
    padding: 20px;
    z-index: 2;
}

.district-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    padding-left: 26px;
    position: relative;
    line-height: 1.4;
}

.district-name::before {
    content: '📍';
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.district-plate:hover .district-name::before {
    transform: scale(1.1);
}

.district-desc {
    display: block;
    color: #7f8c8d;
    font-size: 14px;
    padding-left: 26px;
    line-height: 1.4;
}

.district-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0;
    overflow: hidden;
    text-indent: -9999px;
}

/* Анимация при клике */
.district-plate:active {
    transform: scale(0.98) translateY(-3px);
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .districts-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .district-content {
        padding: 18px;
    }

    .district-name {
        font-size: 17px;
        padding-left: 24px;
    }

    .district-name::before {
        font-size: 15px;
    }

    .district-desc {
        font-size: 13px;
        padding-left: 24px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .districts-container {
        padding: 0 10px;
    }

    .districts-title {
        font-size: 22px;
    }

    .district-content {
        padding: 15px;
    }

    .district-name {
        font-size: 16px;
        padding-left: 22px;
    }

    .district-name::before {
        font-size: 14px;
    }

    .district-desc {
        font-size: 12px;
        padding-left: 22px;
    }

    .district-plate:hover {
        transform: translateY(-2px);
    }
}

/* Поддержка темной темы (опционально) */
@media (prefers-color-scheme: dark) {
    .district-plate {
        background: #2d3748;
        border-color: #4a5568;
    }

    .districts-title {
        color: #f7fafc;
    }

    .district-name {
        color: #f7fafc;
    }

    .district-desc {
        color: #a0aec0;
    }
}