/* =================== ПЛИТКИ METRO =================== */
.tile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 0.8rem;
    width: 100%;
    flex: 1;
    align-content: start;
}

.tile {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: #999;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #242424;
    border: 1px solid #2a2a2a;
    height: 100%;
}

.tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    transition: height 0.3s ease;
}

.tile:hover {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
    color: #cccccc;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.tile:hover::before {
    height: 2px;
}

/* Акцентные полоски */
.half-realestate .tile::before { background-color: #c49a2b; }
.half-it .tile::before { background-color: #b44dff; }

/* Нумерация */
.tile .tile-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.half-realestate .tile .tile-label { color: #6b5c3a; }
.half-realestate .tile:hover .tile-label { color: #a0894a; }

.half-it .tile .tile-label { color: #564a6e; }
.half-it .tile:hover .tile-label { color: #8a6eb0; }

/* Контент */
.tile .tile-content {
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
}

.tile .tile-title {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #d5d5d5;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.6rem;
    line-height: 1.15;
}

.tile .tile-desc {
    font-size: 0.85rem;
    letter-spacing: 0.2px;
    line-height: 1.2;
    display: block;
}

.half-realestate .tile:hover .tile-title { color: #e8d8b0; }
.half-it .tile:hover .tile-title { color: #d8c8f0; }

/* =================== КНОПКИ 2ГИС =================== */
.tile-2gis {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin-top: 1.2rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
    width: 100%;
}

.tile-2gis-realestate {
    background-color: #1e1c18;
    color: #b8a45a;
    border-color: #2a2824;
}

.tile-2gis-realestate:hover {
    background-color: #2a2618;
    border-color: #c49a2b;
    color: #c49a2b;
}

.tile-2gis-it {
    background-color: #1c1a22;
    color: #a080d0;
    border-color: #262430;
}

.tile-2gis-it:hover {
    background-color: #241e2e;
    border-color: #b44dff;
    color: #b44dff;
}

.tile-2gis-icon {
    font-size: 1.2rem;
}

.tile-2gis-realestate .tile-2gis-icon { color: #c49a2b; }
.tile-2gis-it .tile-2gis-icon { color: #b44dff; }

.tile-2gis-arrow {
    font-size: 1rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.tile-2gis:hover .tile-2gis-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Скрытие длинного текста на мобильных */
.tile-2gis-text-short { display: none; }