body {
    margin: 0;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: #f7f8f9;
    color: #222;
}
.container {
    max-width: 1020px;
    margin: 0 auto;
    padding: 10px 7px;
}

header {
    background: #234889;
    color: #fff;
    padding: 28px 0 12px 0;
    box-shadow: 0 2px 8px #23488922;
}
header h1 {
    margin: 0;
    font-size: 2.3em;
    letter-spacing: 0.03em;
}

.section-title {
    font-size: 1.6em;
    color: #234889;
    margin-bottom: 30px;
    font-weight: bold;
    text-align: center;
}

.lots-section {
    margin-top: 30px;
}

.lots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.lot-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px #23488916;
    width: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1.5px solid #e3e3e3;
}
.lot-card:hover {
    box-shadow: 0 8px 32px #23488929;
    transform: translateY(-2px) scale(1.012);
}

.lot-image {
    width: 100%;
    height: 175px;
    background: #f0f3fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.lot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lot-info {
    padding: 18px 16px 20px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lot-title {
    margin: 0 0 8px 0;
    font-size: 1.15em;
    font-weight: 700;
    color: #12345c;
}

.lot-desc {
    font-size: 0.98em;
    color: #444;
    margin: 0 0 14px 0;
    flex: 1;
}

.lot-details {
    margin-bottom: 14px;
}
.lot-details .lot-row {
    margin-bottom: 6px;
    display: block;
}

.lot-details {
    font-size: 0.98em;
    color: #345;
}
.lot-price b {
    color: #4876c6;
    font-size: 1.08em;
}
.lot-time b {
    color: #eb330a;
    font-size: 1.04em;
}

/* Кнопка скачать архив документов (светло-серая) */
.download-center {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}
.download-btn {
    display: inline-flex; /* меняем на flex для выравнивания */
    align-items: center;  /* по вертикали */
    justify-content: center; /* по горизонтали */
    font-size: 0.94em;
    font-weight: 600;
    color: #0a0909;
    background: linear-gradient(90deg, #7aa59e 60%, #6ea7a7 100%);
    border: none;
    border-radius: 8px;
    padding: 7px 18px;
    text-decoration: none;
    box-shadow: 0 2px 8px #b0b0b022;
    letter-spacing: 0.03em;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
    margin-top: 0;
    text-align: center;
    height: 42px; /* можно задать фиксированную высоту при необходимости */
}

.download-btn:hover,
.download-btn:focus {
    background: linear-gradient(90deg, #c0b0b0 60%, #8e7e7e 100%);
    color: #f20606;
    box-shadow: 0 4px 16px #b0b0b060;
    transform: scale(1.035);
    text-decoration: none;
}
.download-btn:active {
    background: #ececec;
    color: #234889;
    box-shadow: 0 2px 6px #b0b0b055;
}

.lot-bid-btn {
    display: inline-block;
    text-align: center;
    background: linear-gradient(90deg, #234889 60%, #4876c6 100%);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 12px 0;
    font-size: 1.12em;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    margin-top: 8px;
    box-shadow: 0 4px 18px #23488926, 0 1.5px 0 #e9b500 inset;
    letter-spacing: 0.03em;
    transition: background 0.22s, box-shadow 0.18s, transform 0.12s, color 0.18s;
    outline: none;
    position: relative;
    overflow: hidden;
    min-width: 160px;
}
.lot-bid-btn:before {
    content: '';
    position: absolute;
    left: -70px;
    top: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 80%);
    transform: skewX(-24deg);
    transition: left 0.3s;
    pointer-events: none;
}
.lot-bid-btn:hover:before {
    left: 110%;
}
.lot-bid-btn:hover,
.lot-bid-btn:focus {
    background: linear-gradient(90deg, #ffc66e 60%, #ffe4b3 100%);
    color: #234889 !important;
    box-shadow: 0 6px 28px #ffd58070, 0 0.5px 0 #e9b500 inset;
    transform: translateY(-2px) scale(1.025);
    text-decoration: none;
}
.lot-bid-btn:active {
    background: linear-gradient(90deg, #ffb347 80%, #ffc66e 100%);
    color: #fff !important;
    box-shadow: 0 2px 6px #ffc66e55;
    transform: scale(0.98);
}

/* Пагинация в квадрате */
.pagination-box {
    border: 2px solid #e3e3e3;
    border-radius: 16px;
    background: #f8fafc;
    box-shadow: 0 2px 20px #23488909;
    padding: 24px 10px 18px 10px;
    margin: 36px auto 10px auto;
    max-width: 440px;
    display: flex;
    justify-content: center;
}
@media (max-width: 240px) {
    .pagination-box {
        padding: 14px 2vw 10px 2vw;
        max-width: 98vw;
    }
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.pagination-btn {
    padding: 7px 18px;
    min-width: 10px;
    font-size: 1.04em;
    background: #f1f4f8;
    color: #234889;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.16s, box-shadow 0.16s, transform 0.11s;
    box-shadow: 0 1px 4px #2348890a;
    outline: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.pagination-btn:hover,
.pagination-btn:focus {
    background: #ffc66e;
    color: #234889;
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 3px 16px #ffc66e44;
    z-index: 1;
    text-decoration: none;
}
.pagination-btn.active {
    background: #234889;
    color: #fff;
    box-shadow: 0 2px 10px #23488933;
    cursor: default;
    transform: scale(1.11);
    z-index: 2;
    pointer-events: none;
}

/* Адаптивность */
@media (max-width: 300px) {
    .lots-grid {
        gap: 18px;
    }
    .lot-card {
        width: 94vw;
        max-width: 370px;
    }
}
@media (max-width:300px) {
    .container {
        padding: 8px 2vw;
    }
    .lots-grid {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    .lot-card {
        width: 99vw;
        max-width: 420px;
    }
    .lot-image {
        height: 140px;
    }
    .pagination {
        gap: 4px;
    }
    .pagination-btn {
        padding: 5px 10px;
        font-size: 0.97em;
        min-width: 8px;
    }
}