.ttkhr,
.ttkhr * {
  box-sizing: border-box;
}

.ttkhr {
  --ttkhr-bg: #effbff;
  --ttkhr-surface: #ffffff;
  --ttkhr-surface-2: #f7fcff;
  --ttkhr-border: #9ad7eb;
  --ttkhr-border-strong: #3f9fbc;
  --ttkhr-text: #0f2f43;
  --ttkhr-text-soft: #4a6675;
  --ttkhr-heading: #0c6a7b;
  --ttkhr-accent: #0ea5b7;
  --ttkhr-accent-strong: #0a7f90;
  --ttkhr-shadow: 0 14px 40px rgba(15, 47, 67, 0.08);
  width: 100%;
  margin: 0;
  color: var(--ttkhr-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ttkhr__shell {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px);
  background: linear-gradient(180deg, var(--ttkhr-bg) 0%, #e9f7fb 100%);
  border: 1px solid rgba(63, 159, 188, 0.18);
  border-radius: 28px;
  box-shadow: var(--ttkhr-shadow);
}

.ttkhr__header {
  margin-bottom: 24px;
}

.ttkhr__title {
  margin: 0 0 12px;
  color: var(--ttkhr-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.ttkhr__intro,
.ttkhr__hint,
.ttkhr__result-subtitle,
.ttkhr__helper,
.ttkhr__meta-item,
.ttkhr__error {
  margin: 0;
  color: var(--ttkhr-text-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

.ttkhr__form {
  display: grid;
  gap: 18px;
}

.ttkhr__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ttkhr__field {
  min-width: 0;
}

.ttkhr__label {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ttkhr-text);
}

.ttkhr__input,
.ttkhr__select {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1.5px solid var(--ttkhr-border);
  border-radius: 16px;
  background: var(--ttkhr-surface);
  color: var(--ttkhr-text);
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: 0 2px 0 rgba(15, 47, 67, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ttkhr__input::placeholder {
  color: #6f94a7;
  opacity: 1;
}

.ttkhr__input:focus,
.ttkhr__select:focus {
  outline: 0;
  border-color: var(--ttkhr-border-strong);
  box-shadow: 0 0 0 4px rgba(14, 165, 183, 0.16);
  background: #ffffff;
}

.ttkhr__hint {
  margin-top: 8px;
  font-size: 0.9rem;
}

.ttkhr__actions {
  display: flex;
}

.ttkhr__button {
  appearance: none;
  border: 0;
  min-height: 58px;
  padding: 14px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, #b7eef7 0%, #95e0ef 100%);
  color: #083347;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: inset 0 -1px 0 rgba(8, 51, 71, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.ttkhr__button:hover,
.ttkhr__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(8, 51, 71, 0.14);
  filter: saturate(1.02);
}

.ttkhr__button:focus-visible {
  outline: 3px solid rgba(12, 106, 123, 0.24);
  outline-offset: 2px;
}

.ttkhr__error {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff4f4;
  border: 1px solid #efb7b7;
  color: #8a1d1d;
}

.ttkhr__result {
  display: grid;
  gap: 18px;
  margin-top: 10px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, var(--ttkhr-surface-2) 100%);
  border: 1px solid rgba(63, 159, 188, 0.18);
}

.ttkhr__result-title {
  margin: 0 0 6px;
  color: var(--ttkhr-text);
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 800;
}

.ttkhr__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ttkhr__card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  border-radius: 18px;
  background: #f7fcff;
  border: 1px solid rgba(63, 159, 188, 0.18);
}

.ttkhr__card--featured {
  background: linear-gradient(180deg, #daf6fb 0%, #eefcff 100%);
  border-color: rgba(14, 165, 183, 0.38);
}

.ttkhr__card-label {
  color: var(--ttkhr-text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 700;
}

.ttkhr__card-value {
  color: var(--ttkhr-text);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.1;
  font-weight: 800;
  word-break: break-word;
}

.ttkhr__meta {
  padding: 16px 18px;
  border-radius: 16px;
  background: #f4fbfe;
  border: 1px solid rgba(63, 159, 188, 0.18);
}

.ttkhr__meta-item span {
  color: var(--ttkhr-text-soft);
  font-weight: 600;
}

.ttkhr__meta-item strong {
  color: var(--ttkhr-text);
  font-weight: 800;
}

.ttkhr__helper {
  padding-top: 4px;
}

@media (max-width: 860px) {
  .ttkhr__grid,
  .ttkhr__cards {
    grid-template-columns: 1fr;
  }

  .ttkhr__shell {
    border-radius: 24px;
    padding: 18px;
  }

  .ttkhr__result {
    padding: 18px;
  }
}
