body {
  font-family: Arial,Helvetica,sans-serif;
}
/* Головний контейнер */
.site-container, .footer-container { max-width: 1100px; margin: 0 auto; }

footer {
    text-align: center;
}

/* Хлібні крихти */
.breadcrumbs { margin-bottom: 24px; }
.breadcrumbs ol { display: flex; justify-content: center; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li { margin: 0 8px; color: #666; font-size: 1rem; }
.breadcrumbs li a { color: #1566cc; text-decoration: none; }
.breadcrumbs .active { color: #222; }

/* Головний заголовок */
.page-title { text-align: center; font-size: 2.8rem; font-weight: bold; margin-bottom: 0; }

/* Годинник */
.digital-clock { display: block; width: 100%; text-align: center; font-size: 17vw; font-family: 'Consolas',monospace; font-weight: 700; letter-spacing: 0.07em; margin: 12px 0 8px; line-height: 1.07; }
.date-string { text-align: center; font-size: 1.4rem; margin-bottom: 30px; color: #222; }

/* Блоки списків */
.time-block-title { text-align: center; margin-top: 48px; margin-bottom: 18px; font-size: 2rem; font-weight: 600; }

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    max-width: 980px;
    margin: 0 auto 2.5rem;
}
.time-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    border: 1.2px solid #e3e9f1;
    box-shadow: 0 2px 8px rgba(32,48,98,0.03);
    padding: 11px 16px 11px 17px;
    font-size: 1.13rem;
    min-height: 58px;
    transition: box-shadow .18s, background .18s;
    overflow: hidden;
    position: relative;
    min-width: 0; /* важливо для flex+ellipsis! */
}
.time-card:hover {
    box-shadow: 0 5px 18px rgba(45, 69, 152, 0.09);
    background: #e9f0fa;
}
.time-link {
    color: #1a6eff;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 58%;
    transition: color .18s;
    font-size: 1.04em;
    display: inline-block;
    min-width: 0; /* критично важливо! */
}

.time-value {
    font-family: 'Consolas', monospace;
    font-size: 1.11em;
    color: #262e44;
    min-width: 60px;
    text-align: right;
    letter-spacing: .03em;
    border-radius: 7px;
    padding: 4px 9px 4px 10px;
    margin-left: 12px;
    box-shadow: 0 1px 5px rgba(60,80,130,.03);
    line-height: 1.22;
    white-space: nowrap; /* не переносить цифри */
    overflow: hidden;
}

@media (max-width: 700px) {
    .digital-clock { font-size: 14vw; }
    .page-title { font-size: 2rem; }
    .time-block-title { font-size: 1.25rem; }
    .items-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; max-width: 99vw; }
    .time-card { font-size: .97rem; min-height: 44px; padding: 8px 7px 8px 10px; }
    .time-link { max-width: 40%; font-size: .98em; }
    .time-value { font-size: 1.09em; min-width: 48px; padding: 3px 7px 3px 7px; }
}

/* Регіони — окремо! */
.items-grid-regions {
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    max-width: 1200px;
    gap: 18px;
}
.items-grid-regions .time-link {
    max-width: 72%;
    font-size: 1.07em;
}
@media (max-width: 900px) {
    .items-grid-regions {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    }
    .items-grid-regions .time-link { max-width: 58%; }
}

/* Пошук */
.search-dropdown a:hover { background: #f3f6ff; color: #134aaf; }
.search-dropdown { max-height: 380px; overflow-y: auto; }

.time-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.time-card-link:hover .time-card {
  background: #e9f0fa;
  box-shadow: 0 5px 18px rgba(45, 69, 152, 0.09);
}

.city-info-blurb {
  border: 1.2px solid #c5cae9;
  border-radius: 9px;
  padding: 13px 22px 13px 18px;
  margin-bottom: 18px;
  font-size:1.13rem;
}

.bookmark-btn {
    display: inline-block;
    padding: 9px 19px;
    background: #1b4ad8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.08rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(18,42,89,.09);
    transition: background .17s;
    margin: 20px 0 0 0;
}
.bookmark-btn:hover {
    background: #14338f;
}

