@charset "UTF-8";

/* Catalog listing — consistent media stage, equal cards and aligned actions. */
.catalog-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    grid-auto-rows:1fr;
    gap:16px;
    align-items:stretch;
}

.catalog-card{
    display:flex;
    min-width:0;
    height:100%;
    padding:12px;
    flex-direction:column;
    text-align:center;
    overflow:hidden;
    background:#fff;
    border:1px solid #e5eceb;
    border-radius:14px;
    box-shadow:0 5px 16px rgba(15,35,42,.06);
    transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}

.catalog-card:hover{
    transform:translateY(-3px);
    border-color:#c6dfdc;
    box-shadow:0 11px 25px rgba(15,35,42,.10);
}

/* Every catalog gets exactly the same image area regardless of source aspect ratio. */
.catalog-card>a:first-child{
    display:flex;
    width:100%;
    height:250px;
    padding:8px;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background:#fff;
    border-radius:10px;
}

.catalog-img{
    display:block;
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    object-position:center;
}

.catalog-title{
    display:flex;
    min-height:46px;
    margin:9px 4px 7px;
    align-items:center;
    justify-content:center;
    color:#111;
    font-size:13px;
    font-weight:700;
    line-height:1.35;
    text-decoration:none;
    overflow-wrap:anywhere;
}

.catalog-title:hover{color:#0079a8}

.catalog-actions{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    width:100%;
    margin-top:auto;
    padding-top:4px;
}

.catalog-btn{
    display:inline-flex;
    min-width:0;
    min-height:38px;
    padding:6px 7px;
    align-items:center;
    justify-content:center;
    color:#005879;
    background:#f7faf9;
    border:1px solid #d6e0df;
    border-radius:7px;
    font:inherit;
    font-size:11px;
    font-weight:650;
    line-height:1.1;
    text-align:center;
    text-decoration:none;
    cursor:pointer;
}

.catalog-btn:hover,
.catalog-btn:focus{
    color:#fff;
    background:#0091c6;
    border-color:#0091c6;
    text-decoration:none;
}

.download-icon{padding:6px 7px}

@media(max-width:1199px){
    .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .catalog-card>a:first-child{height:230px}
}

@media(max-width:767px){
    .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .catalog-card{padding:9px;border-radius:11px}
    .catalog-card>a:first-child{height:180px;padding:5px}
    .catalog-title{min-height:42px;margin-top:7px;font-size:12px}
    .catalog-actions{gap:4px}
    .catalog-btn{min-height:34px;padding:5px 4px;font-size:10px}
}

@media(max-width:430px){
    .catalog-grid{grid-template-columns:1fr}
    .catalog-card>a:first-child{height:220px}
    .catalog-title{min-height:38px;font-size:12px}
    .catalog-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
    .catalog-btn{min-height:34px;font-size:10px}
}
