@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');
*{
    font-family: 'Lora', serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;


}
html { -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }

:root {
    --main-dark:  #25282e;
    --main-blue: #003366; /* Основной цвет логотипа */
    --content-color: #474646; /* Цвет контента */
    --general-bg: #ffffff; /* Основной фоновый цвет */
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--general-bg);
    color: var(--content-color);
}

.gallery-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.gallery-img:hover {
    transform: scale(1.03);
}

#about-us .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.gallery-img:hover {
    transform: scale(1.05);
}

.modal-content {
    background-color: transparent;
    box-shadow: none;
}

#modalImage {
    max-height: 80vh;
    object-fit: contain;
}
#calendar {
    max-width: 100%;
    font-size: 10px;
    background: rgba(0, 0, 0, 0.075);
    border-radius: 1.5rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    padding: 1rem;
}


.fc .fc-daygrid-day-number {
    text-decoration: none !important;
    color: #6c757d;
}


.fc .fc-daygrid-day:not(.fc-day-has-event) {
    background-color: #f9f9f9;
    color: #b0b0b0;
    cursor: default;
}

.fc-event {
    background-color: #198754 !important;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.8rem;
}


.fc .fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #343a40;
}

.fc .fc-day-today {
    background-color: #e6f7ff !important;
}


.fc .fc-button {
    font-weight: 400;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
}


.fc-event:hover {
    background-color: #157347 !important;
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .fc .fc-toolbar-title {
        font-size: 1rem;
    }

    .fc .fc-daygrid-day-number {
        font-size: 0.75rem;
    }

    .fc-event {
        font-size: 0.6rem;
        padding: 1px 3px;
    }
}

.auction-card {
    height: auto;
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    background-color: white;
}

.auction-card:hover {
    transform: translateY(-5px);
}

.card-img-container {
    position: relative;
    width: 100%;
    height: 250px; /* Фиксированная высота изображения */
}

.auction-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обрезает, если изображение слишком большое */
}

.overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-align: center;
}

.overlay .day {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.overlay .month {
    font-size: 16px;
    text-transform: uppercase;
    display: block;
}

.overlay .time {
    font-size: 14px;
}

.card-body {
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.auction-description {
    flex-grow: 1;
    max-height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--main-blue);
    border-color: var(--main-blue);
    text-align: center;
}

.btn-primary:hover {
    background-color: #0055a5;
    border-color: #0055a5;
}

.text-gold {
    color: #c1b696;
    text-align: center;
}
.jumbotron {
    background-image: url('/static/images/auction_bg.png');
    background-size: cover;
    color: #474646;

}

.lead {
    font-size: 15px;
    font-weight: 300;
}

.logo-img {
    max-height: 100px;
    height: auto;
    width: auto;
}

.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    border: 1px solid var(--main-blue);
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: var(--main-blue);
    font-weight: bold;
}

.btn-primary {
    background-color: var(--main-blue);
    border-color: var(--main-blue);
}

.btn-primary:hover {
    background-color: #0055a5;
    border-color: #0055a5;
}
#about-us {
    background-color: #f4f4f9;
    padding: 3rem 1rem;
}
.image-box img {
    max-width: 60%;
    height: auto;
    border-radius: 8px;
}
.footer {
    background-color: var(--main-dark);
    color: #c1b696;
    padding: 40px 0;
    margin-top: 3rem;
}

.footer h5 {
    font-weight: bold;
}

.footer a {
    color: white;
    text-decoration: none;

}
a:hover{
    color: #c1b696;
}
.footer a:hover {
    color:rgb(253, 204, 57)
}

.footer .social-icons {
    font-size: 1.5rem;
}

.footer .bottom-bar {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.payment-logos img {
    margin: 5px;
    vertical-align: middle;
}
.payment-logos p {
    font-size: 16px;
    font-weight: bold;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem;
        text-align: center;
    }

    .jumbotron img {
        max-width: 150px;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }

    .footer {
        text-align: center;
    }

    .footer .col-md-4 {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .jumbotron p {
        font-size: 1rem;
    }

    .btn-lg {
        font-size: 0.9rem;
        margin:10px
    }
}
.top-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #ffc107; /* желтый цвет */
    color: #000;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    border-bottom-right-radius: 5px;
    z-index: 10;
}
.card {
    position: relative; /* Для позиционирования ярлычка */
}
.top-badge-detail {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #ffc107; /* желтый цвет */
    color: #000;
    padding: 6px 10px;
    font-weight: bold;
    border-radius: 5px;
    z-index: 10;
}
.position-relative {
    position: relative;
}
.top-badge-detail {
  top: 10px;
  left: 10px;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.top-badge-detail .badge {
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25em 0.5em;
}

.badge-top {
  background-color: #ffc107;
  color:black;
}
/* === Большие баннеры статусов до/после аукциона === */
#status.status-banner{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:50vh;
  text-align:center;
  border:2px dashed #dee2e6;
  border-radius:12px;
}

#status.status-pre{
  background:linear-gradient(180deg,#fff,#f8f9fa);
  border-color:#cfe2ff;
}

#status.status-finished{
  background:linear-gradient(180deg,#fff,#f8f9fa);
  border-color:#f8d7da;
}

#status .status-title{
  font-size:2rem;
  font-weight:700;
  margin-bottom:0.75rem;
}

#status .status-sub{
  font-size:1.1rem;
  color:#6c757d;
  margin-bottom:1rem;
}

#status .status-countdown{
  font-size:1.75rem;
  font-weight:700;
  margin:0.5rem 0 1.25rem;
}

#status .status-actions .btn{
  min-width:180px;
}
#timer-bar { transition: width 1s linear, background-color 0.5s ease; }
  .auction-layout { display: flex; gap: 1.5rem; align-items: flex-start; }
  .auction-sidebar { flex: 0 0 280px; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
  .auction-main { flex: 1 1 auto; }
  .auction-sidebar .list-group li:nth-child(n+10) { display: none; }

  .bid-feed-item { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid #e9ecef; font-size: 0.95rem; }
  .bid-feed-item.new { animation: fade-in 0.5s ease-out; }
  @keyframes fade-in { from { background: #fff3cd; } to { background: transparent; } }

  @media (max-width: 991px) {
    .auction-layout { flex-direction: column; }
    .auction-sidebar { position: static; max-height: none; overflow: visible; }
  }

  #bid-feed {
    position: relative;
    padding-left: 30px;
    max-height: 200px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
  }
  #bid-feed::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
  }
  .timeline-item { position: relative; margin-bottom: 12px; }
  .timeline-item:last-child { margin-bottom: 0; }
  .timeline-item .dot {
    position: absolute; left: 6px; top: 4px;
    width: 12px; height: 12px;
    background: #0d6efd; border-radius: 50%;
  }
  .timeline-item .content {
    margin-left: 30px;
    padding: 6px 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
  }
  .timeline-item.new .dot { animation: pulse 1s ease-out; background: #ffc107; }
