:root {
  --panel-bg: rgba(210, 210, 210, 0.78);
  --accent: #111;
  --muted: #555;
}

/* ===================== ОСНОВНЫЕ ===================== */
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #cfeff4, #f7dcd1);
  font-family: 'MyFont', Inter, Arial, sans-serif;
  padding: 20px;
  color: var(--accent);
}

.page {
  width: 350px;           /* ← изменил сюда */
  max-width: 94vw;
  margin: 0 auto;
}

/* Адаптив */
@media (max-width: 420px) {
  .page {
    width: 340px;         /* на очень маленьких экранах ещё чуть уже */
  }
}

.panel {
  background: var(--panel-bg);
  border-radius: 46px;
  padding: 28px 22px;
  box-shadow: 0 10px 30px rgba(10, 10, 10, 0.08);
}

/* ===================== ЗАГОЛОВОК ===================== */
.title {
  margin: 0 0 12px 0;
  font-size: 24px;
  font-weight: 350;
  line-height: 1.05;
  white-space: nowrap;
  color: #111;
}

.beta {
  font-size: 14px;
  vertical-align: super;
  color: rgba(0, 0, 0, 0.7);
  margin-left: 5px;
}

/* ===================== СТЕКЛЯННЫЕ БЛОКИ ===================== */
.glass-block {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 16px 15px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ===================== ТЕКСТ ===================== */
.glass-block,
.glass-block * {
  color: #111111;
}

.big, .kpi-title, .hours-title, .kpi-label, .hours-col label {
  color: #111111;
}

/* ===================== ПОЛЯ ВВОДА ===================== */
input[type="number"],
input[type="text"],
select {
  width: 100%;
  background: rgba(255, 255, 255, 0.19) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 14px !important;
  padding: 11px 14px;
  font-size: 17px;
  color: #111111 !important;
  transition: all 0.25s ease;
}

input:focus,
select:focus {
  background: rgba(255, 255, 255, 0.26) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

input::placeholder {
  color: rgba(0, 0, 0, 0.55) !important;
}

/* ===================== ЧАСЫ ===================== */
.hours-title {
  text-align: center;
  font-size: 23px;
  font-weight: 350;
  margin: 0 0 12px 0;
  color: #111;
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.hours-col label {
  display: block;
  font-size: 14.5px;
  margin-bottom: 6px;
  color: #111;
}

.hours-hint {
  text-align: center;
  font-size: 12.5px;
  color: #555;
  margin-top: 10px;
  line-height: 1.3;
}

/* ===================== KPI ===================== */
.kpi-title {
  margin: 10px 0 6px 0;
  font-size: 19px;
  font-weight: 350;
}

.hint {
  font-size: 13px;
  color: #555;
  margin: 0 0 12px 0;
}

.kpi-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

/* ========== ИСПРАВЛЕНИЕ KPI ========== */
.kpi-inputs {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

.kpi-inputs input {
  flex: 1 !important;
  font-size: 13.8px !important;
  padding: 10px 8px !important;
  text-align: center;
  min-width: 0;                    /* важно для сжатия */
}

.kpi-inputs input::placeholder {
  font-size: 13px !important;
}

/* ===================== РЕЗУЛЬТАТЫ ===================== */
.result-block {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 8px 0;
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 18px;
}

.total {
  font-size: 21px;
  font-weight: 500;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 6px;
  padding-top: 12px;
}

/* ===================== ПРОЧЕЕ ===================== */
.small-note { display: none !important; }

.note { margin: 8px 0; font-size: 13px; color: #995500; }

/* ===================== АДАПТИВ ===================== */
@media (max-width: 420px) {
  .page { width: 360px; }
  .title { font-size: 26px; }
  .hours-grid { gap: 9px; }
}

/* ===================== ФОН ===================== */
#bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
  filter: blur(4px) brightness(0.85);
  pointer-events: none;
}

/* ===================== ШРИФТ ===================== */
@font-face {
  font-family: 'MyFont';
  src: url('MyFont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* MAU надпись под ставкой */
.mau-note {
  display: block;
  font-size: 13px;
  color: #555;
  margin-top: 2px;
  font-weight: 400;
  opacity: 0.9;
}

/* prod by tpskdk*/
.footer {
  text-align: center;
  margin: 24px auto 16px;
  width: 100%;
  max-width: 350px;           /* ограничиваем ширину как у калькулятора */
  padding: 0 10px;
}

.prod-by {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
}

.prod-by:hover {
  color: rgba(0, 0, 0, 0.75);
}