:root {
  --bg: #f4f7fb;
  --card: rgba(255, 255, 255, 0.92);
  --primary: #0d6efd;
  --primary-dark: #0a4ec7;
  --accent: #e8f1ff;
  --text: #1d2430;
  --muted: #5d6a7a;
  --border: rgba(18, 42, 75, 0.08);
  --error: #d93025;
  --success: #1d8f5a;
  --shadow: 0 22px 54px rgba(28, 53, 95, 0.14);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(13, 110, 253, 0.18), transparent 30%),
    linear-gradient(180deg, #edf5ff 0%, var(--bg) 100%);
  color: var(--text);
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.container {
  width: min(100%, 820px);
}

.card {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 1.2;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

.input-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(13, 110, 253, 0.18);
  background: #fff;
  font-size: 1.1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

button {
  height: 56px;
  padding: 0 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 12px 24px rgba(13, 110, 253, 0.18);
}

button:hover {
  transform: translateY(-1px);
}

.status {
  min-height: 26px;
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.status.error {
  color: var(--error);
}

.status.success {
  color: var(--success);
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-content {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(19, 25, 36, 0.96);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 18px 42px rgba(7, 12, 18, 0.36);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cookie-content h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.cookie-content p {
  margin: 0;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  font-size: 0.95rem;
}

.cookie-content button {
  white-space: nowrap;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1b8d63, #126b4a);
  box-shadow: none;
}

.notes {
  margin-top: 26px;
  padding: 18px 18px 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(232, 241, 255, 0.7), rgba(255,255,255,0.8));
}

.notes h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.notes ul {
  margin: 0;
  padding-right: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.legal-box {
  margin-top: 26px;
  padding: 18px 18px 10px;
  border: 1px solid rgba(109, 119, 133, 0.18);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
}

.legal-box h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.legal-box p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.8;
}

.result {
  margin-top: 26px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.result.hidden {
  display: none;
}

.result-header h2 {
  margin: 0 0 16px;
  font-size: 1.4rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.info-box {
  background: linear-gradient(180deg, #fff, #f7faff);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  min-height: 92px;
}

.info-box .label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 700;
}

.info-box .value {
  font-size: 1.05rem;
  font-weight: 800;
  word-break: break-word;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .card {
    padding: 22px 18px;
  }

  .input-row {
    flex-direction: column;
    align-items: stretch;
  }

  button {
    width: 100%;
  }
}
