/* Homepage-Roast — klick-web dark/neon, mobile-first */

.hr-body {
  min-height: 100vh;
  overflow-x: hidden;
}

.hr-wrap {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) clamp(0.85rem, 3vw, 1.15rem) 3rem;
  width: 100%;
  box-sizing: border-box;
}

.hr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.hr-brand {
  display: inline-flex;
  text-decoration: none;
}

.hr-brand img {
  height: 36px;
  width: auto;
}

.hr-top__links {
  display: flex;
  gap: 1rem;
}

.hr-top__links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.hr-top__links a:hover {
  color: var(--brand-bright);
}

.hr-badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-bright);
  border: 1px solid rgba(59, 125, 216, 0.45);
  background: rgba(59, 125, 216, 0.12);
  border-radius: 999px;
}

.hr-title {
  margin: 0 0 0.65rem;
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hr-title__brand {
  background: linear-gradient(120deg, #f1f5f9 10%, #3b7dd8 55%, #3dff9a 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hr-lead {
  margin: 0 0 0.85rem;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  line-height: 1.55;
}

.hr-satire {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #f0d9a8;
  background: rgba(180, 110, 20, 0.14);
  border: 1px solid rgba(220, 160, 60, 0.35);
  border-radius: 12px;
}

.hr-satire strong {
  color: #f6e2b8;
  font-weight: 700;
}

.hr-satire a {
  color: var(--brand-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hr-satire a:hover {
  color: #fff;
}

.hr-form {
  margin-bottom: 1.25rem;
}

.hr-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}

.hr-input-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hr-input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 48px;
  padding: 0.95rem 1.1rem;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--text);
  background: rgba(8, 13, 24, 0.9);
  border: 1px solid rgba(59, 125, 216, 0.4);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.hr-input::placeholder {
  color: var(--text-dim);
}

.hr-input:focus {
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 3px rgba(59, 125, 216, 0.25);
}

.hr-cta {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0.95rem 1.35rem;
  font-weight: 700;
  border-radius: 14px;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hr-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.hr-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0.95rem 0 0;
  cursor: pointer;
  user-select: none;
}

.hr-consent input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.hr-consent__box {
  position: relative;
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.12rem;
  border-radius: 5px;
  border: 1.5px solid rgba(61, 255, 154, 0.4);
  background: rgba(8, 13, 24, 0.9);
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

/* Neon-green ✓ when checked (native input stays visually hidden) */
.hr-consent__box::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  color: var(--neon, #3dff9a);
  text-shadow: 0 0 8px var(--neon-glow, rgba(61, 255, 154, 0.42));
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.12s ease, transform 0.12s ease;
  pointer-events: none;
}

.hr-consent input:checked + .hr-consent__box {
  border-color: var(--neon, #3dff9a);
  background: var(--neon-soft, rgba(61, 255, 154, 0.18));
  box-shadow: 0 0 10px var(--neon-glow, rgba(61, 255, 154, 0.35));
}

.hr-consent input:checked + .hr-consent__box::after {
  opacity: 1;
  transform: scale(1);
}

.hr-consent input:focus-visible + .hr-consent__box {
  outline: 2px solid var(--neon, #3dff9a);
  outline-offset: 2px;
}

.hr-consent__text {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.hr-consent__text strong {
  color: var(--text);
  font-weight: 600;
}

.hr-consent__text a {
  color: var(--brand-bright);
}

.hr-consent__text a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .hr-input {
    flex: 1 1 auto;
    min-height: 48px;
    padding: 0.75rem 1rem;
    font-size: 16px; /* avoid iOS zoom */
    line-height: 1.25;
  }

  .hr-cta {
    min-height: 48px;
    padding: 0.75rem 1.15rem;
  }
}

@media (max-width: 520px) {
  .hr-input-row {
    flex-direction: column;
  }

  .hr-input {
    /* flex-basis must not be 220px here — in a column that becomes height */
    flex: 0 0 auto;
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.95rem;
    font-size: 16px; /* avoid iOS zoom */
    line-height: 1.25;
  }

  .hr-cta {
    width: 100%;
    justify-content: center;
    white-space: normal;
    min-height: 48px;
    padding: 0.7rem 1rem;
  }
}

/* Loading */
.hr-status {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(59, 125, 216, 0.35);
  background: linear-gradient(135deg, rgba(26, 68, 148, 0.2), rgba(8, 13, 24, 0.95));
}

.hr-status__spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(59, 125, 216, 0.25);
  border-top-color: var(--brand-bright);
  border-radius: 50%;
  animation: hr-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes hr-spin {
  to { transform: rotate(360deg); }
}

.hr-status__line {
  margin: 0;
  font-size: 0.95rem;
  color: #c7d7f0;
  animation: hr-fade 0.35s ease;
}

@keyframes hr-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Errors / block */
.hr-error {
  margin: 1rem 0;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(127, 29, 29, 0.2);
  color: #fecaca;
  font-size: 0.95rem;
}

.hr-block {
  margin: 1.5rem 0;
  padding: 1.5rem 1.35rem;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(61, 255, 154, 0.35);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(59, 125, 216, 0.22), transparent 55%),
    linear-gradient(165deg, rgba(12, 20, 36, 0.98), rgba(4, 6, 12, 0.98));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: hr-pop 0.45s var(--ease);
}

@keyframes hr-pop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.hr-block__icon {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.hr-block__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: var(--neon);
}

.hr-block__joke {
  margin: 0 auto 0.85rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
}

.hr-block__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Result */
.hr-result {
  margin-top: 1.5rem;
  animation: hr-pop 0.5s var(--ease);
}

.hr-score-panel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(59, 125, 216, 0.35);
  background: rgba(12, 20, 36, 0.85);
  margin-bottom: 1rem;
}

.hr-score-ring {
  --score: 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background:
    radial-gradient(circle at center, rgba(8, 13, 24, 0.95) 58%, transparent 59%),
    conic-gradient(
      var(--brand-bright) calc(var(--score) * 1%),
      rgba(148, 163, 184, 0.15) 0
    );
  flex-shrink: 0;
  box-shadow: 0 0 28px rgba(59, 125, 216, 0.25);
}

.hr-score-num {
  font-size: clamp(1.85rem, 6vw, 2.15rem);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hr-score-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
}

.hr-verdict {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.hr-target {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: var(--brand-bright);
  word-break: break-all;
}

.hr-mode {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.hr-dims {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.hr-dim {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(8, 13, 24, 0.7);
}

.hr-dim__name {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.hr-dim__val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.hr-dim__bar {
  margin-top: 0.4rem;
  height: 4px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
}

.hr-dim__bar > span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand-bright));
  transition: width 0.6s var(--ease);
}

.hr-roast {
  padding: 1.25rem 1.3rem;
  border-radius: 16px;
  border: 1px solid rgba(61, 255, 154, 0.2);
  background: linear-gradient(160deg, rgba(61, 255, 154, 0.06), rgba(12, 20, 36, 0.9));
  margin-bottom: 1.5rem;
}

.hr-roast h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--neon);
}

.hr-roast__body p {
  margin: 0 0 0.85rem;
  color: #dce7f5;
  line-height: 1.6;
  font-size: 1.02rem;
}

.hr-roast__body p:last-child {
  margin-bottom: 0;
}

.hr-soft-cta {
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--border-bright);
  background: rgba(12, 20, 36, 0.75);
}

.hr-soft-cta h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.hr-soft-cta > p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hr-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

@media (max-width: 640px) {
  .hr-packages {
    grid-template-columns: 1fr;
  }
}

.hr-pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 0.95rem;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(8, 13, 24, 0.85);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.hr-pkg:hover {
  border-color: var(--brand-bright);
  transform: translateY(-2px);
}

.hr-pkg--featured {
  border-color: rgba(59, 125, 216, 0.55);
  background: linear-gradient(160deg, rgba(26, 68, 148, 0.28), rgba(8, 13, 24, 0.95));
}

.hr-pkg__badge {
  position: absolute;
  top: -0.45rem;
  right: 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: var(--brand-bright);
  color: #04101f;
}

.hr-pkg__name {
  font-weight: 700;
  color: var(--text);
}

.hr-pkg__price {
  font-size: 0.95rem;
  color: var(--brand-bright);
  font-weight: 600;
}

.hr-pkg__desc {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.hr-kontakt {
  display: inline-flex;
  min-height: 48px;
  border-radius: 12px;
  touch-action: manipulation;
}

@media (max-width: 520px) {
  .hr-kontakt {
    width: 100%;
    justify-content: center;
  }

  .hr-score-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .hr-score-ring {
    width: 120px;
    height: 120px;
  }

  .hr-verdict {
    font-size: 1.08rem;
  }

  .hr-top__links {
    gap: 0.75rem;
    flex-wrap: wrap;
  }
}

.hr-foot {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.hr-foot a {
  color: var(--brand-bright);
  text-decoration: none;
}

.hr-foot a:hover {
  text-decoration: underline;
}

[hidden] {
  display: none !important;
}
