/* Vesta 2026-10-01: tajmer poverh slajdera na glavnoj. Skript - js/vesta-countdown.js */
.vesta-cd-host { position: relative; }

.vesta-cd {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: min(880px, calc(100% - 32px));
  box-sizing: border-box;
  padding: 14px 28px 16px;
  background: rgba(255, 255, 255, .86);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  color: #1d6b2c;
  text-align: center;
  line-height: 1.2;
}

.vesta-cd__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 6px;
}
.vesta-cd__icon { width: 44px; height: 44px; flex: 0 0 auto; color: #1d6b2c; }
.vesta-cd__title { font-size: 26px; font-weight: 700; }

.vesta-cd__grid { display: flex; justify-content: space-between; }
.vesta-cd__cell {
  flex: 1 1 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
  border-left: 2px solid #e2a13a;
}
.vesta-cd__cell:first-child { border-left: 0; }
.vesta-cd__num {
  font-size: 52px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #155f24;
}
.vesta-cd__label { font-size: 16px; color: #333; white-space: nowrap; }

@media (max-width: 980px) {
  .vesta-cd { padding: 12px 18px 14px; }
  .vesta-cd__icon { width: 34px; height: 34px; }
  .vesta-cd__title { font-size: 20px; }
  .vesta-cd__num { font-size: 38px; }
  .vesta-cd__label { font-size: 14px; }
  .vesta-cd__cell { gap: 6px; padding: 0 6px; }
}

/* Na telefone slajder nizkij (40% shiriny) - blok stoit pod nim, a ne poverh. */
@media (max-width: 767px) {
  .vesta-cd {
    position: static;
    transform: none;
    width: auto;
    max-width: calc(100vw - 32px);
    margin: 12px 16px 4px;
    background: #fff;
    border: 1px solid #dfe9df;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  }
  .vesta-cd__head { gap: 10px; margin-bottom: 8px; }
  .vesta-cd__icon { width: 28px; height: 28px; }
  .vesta-cd__title { font-size: 17px; text-align: left; min-width: 0; }
  .vesta-cd__cell {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 2px;
    border-left-width: 1px;
  }
  .vesta-cd__num { font-size: 28px; }
  .vesta-cd__label { font-size: 12px; }
}
