/* Элемент документации */
.doc-list {
    display: flex; 
    flex-direction: row;
    flex-wrap: wrap;
    grid-template-columns: repeat(4, 1fr);
    min-width: min-content;
    min-height: min-content;   
    justify-content:flex-start;
    gap: 1.8rem 1.25rem; /* row-gap column-gap */
    align-items: stretch;
    vertical-align:top;
    margin-top: 1.8rem;
    margin-bottom: 2.5rem;
    text-decoration: none;
}

.doc-item {
    display: flex;
    flex-direction: column;
    max-width: 14rem;
    align-items: stretch;
    height: 24rem;
    border: 0 solid #ddd;
    padding: 1.25rem;
    justify-content: space-between;
    flex-wrap: nowrap;
    justify-content: flex-start;
    vertical-align:top;
    border-color: var(--border);
    border-radius: 0.75rem;
    border-style: solid;
    border-width: 2px;
    box-shadow: var(--shadow);
}
.doc-item:hover {
    color: var(--hover);
    font-weight: 1.2rem;
    border-color: var(--border-hover);
    border-width: 2px;
    box-shadow: var(--shadow-hover);
}
.doc-item:active {
    border-color: var(--border-active);
    border-width: 2px;
    box-shadow: var(--shadow-active);
}
.doc-item a {
    color: var(--link);
    text-decoration: none;
}

.doc-item-img {
    display: flex;
    max-width: 16rem;
    border: none;
    background: var(--bg);
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}
.doc-item-img a:hover{
    color: var(--hover);
    text-decoration: none;
}
.doc-item-title {
    display: flex; 
    flex-shrink: 3;
    flex-wrap: wrap;
}
.doc-item-title a {
    color: var(--link);
    text-decoration: none;
}
.doc-item-title a:hover {
    color: var(--hover);
    text-decoration: none;
}

.doc-link {
    color: var(--link);
    text-decoration: none;
}
.doc-link:hover {
    color: var(--hover);
    text-decoration: none;
}
.doc-card {
    display: block;
    min-width: min-content;
    min-height: min-content;
    border-color: var(--border);
    border-radius: 0.75rem;
    border-style: solid;
    border-width: 2px;
    box-shadow: var(--shadow);
    margin-top: 1.8rem;
    margin-bottom: 1.8rem;
    content: block;
}
.doc-card:hover {
    border-color: var(--border-hover);
    border-width: 2px;
    box-shadow: var(--shadow-hover);
}
.doc-card:active {
    border-color: var(--border-active);
    border-width: 2px;
    box-shadow: var(--shadow-active);
}
.doc-card-item {
    margin: 1.25rem;
}
