.reference-header {
    text-align: center;
    margin-bottom: 30px;
}

.reference-header h1 {
    font-size: 2.8em;
    color: #ffffff;
    margin: 10px 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.reference-header .subtitle {
    font-size: 1.2em;
    color: #bbbbbb;
    margin: 5px 0 15px 0;
}

.blue-divider {
    border: none;
    height: 3px;
    background: #1565c0;
    width: 300px;
    margin: 0 auto;
}

/* поиск */
.reference-search {
    text-align: center;
    margin-bottom: 25px;
}

.reference-search input {
    width: 60%;
    max-width: 500px;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #1565c0;
    background: #0d0d0d;
    color: #ffffff;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
}

.reference-search input:focus {
    border-color: #64b5f6;
    box-shadow: 0 0 10px rgba(100, 181, 246, 0.5);
}

/* сетка */
.reference-grid {
    /*display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 0 10%;*/
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center; /* центрируем последний ряд */
}

/* карточки */
.ref-card {
    background: #1a1a1a;
    border: 1px solid #1565c0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 0 6px rgba(21, 101, 192, 0.3);
    transition: all 0.3s ease;
    width: 320px;
}

.ref-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 15px rgba(100, 181, 246, 0.6);
    border-color: #64b5f6;
}

.ref-card .icon {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.ref-card h3 {
    margin: 5px 0;
    font-size: 1.3em;
    color: #64b5f6;
}

.ref-card p {
    font-size: 0.9em;
    color: #cccccc;
}
