:root {
  color-scheme: light;
  --bg: #f2f6fb;
  --bg-2: #e9f0f7;
  --ink: #10233b;
  --muted: #6c7f94;
  --card: rgba(255, 255, 255, 0.88);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.7);
  --line: rgba(16, 35, 59, 0.08);
  --accent: #003bdf;
  --accent-2: #02ffff;
  --accent-3: #b7c5cb;
  --shadow: 0 20px 50px rgba(30, 58, 92, 0.12);
  --radius: 18px;
  --ring: rgba(0, 59, 223, 0.2);
  --font-sans: "Avenir Next", "Trebuchet MS", "Verdana", sans-serif;
  --motion-fast: 160ms;
  --motion-base: 240ms;
  --motion-slow: 360ms;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: radial-gradient(
      circle at top left,
      rgba(0, 59, 223, 0.12) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 20% 24%,
      rgba(2, 255, 255, 0.14) 0%,
      transparent 42%
    ),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
}

body::before,
.page::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(0);
  pointer-events: none;
}

body::before {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(0, 59, 223, 0.12), transparent 70%);
  top: -80px;
  right: -100px;
}

.page::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(2, 255, 255, 0.12), transparent 70%);
  bottom: -120px;
  left: -120px;
}

.page {
  position: relative;
  padding: 32px clamp(20px, 4vw, 64px) 60px;
  max-width: 1440px;
  margin: 0 auto;
  animation: fadeUp var(--motion-slow) cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.hero__panel {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: 0 18px 40px rgba(30, 58, 92, 0.12);
}

.lang-toggle {
  position: absolute;
  top: 24px;
  right: clamp(20px, 4vw, 64px);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.lang-toggle button {
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(30, 58, 92, 0.08);
}

.lang-toggle button.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.hero__title h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin: 8px 0 8px;
  letter-spacing: 0.02em;
}

.hero__title p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.hero__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__presets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 260px;
}

.hero__presets-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 59, 223, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 59, 223, 0.18);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: #1a2634;
  cursor: pointer;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
  outline: none;
}

.layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.footer {
  margin-top: 36px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.footer__brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer__meta {
  color: var(--muted);
}

.login {
  min-height: 100vh;
}

.login__panel {
  max-width: 540px;
  margin: 0 auto;
  padding: 40px;
}

.login__card {
  display: grid;
  gap: 14px;
}

.login__card h2 {
  margin: 0;
}

.login__form {
  display: grid;
  gap: 12px;
}

.login__submit {
  margin-top: 8px;
}

.login__error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(214, 64, 64, 0.08);
  color: #9d1e1e;
  font-weight: 600;
}

.panel {
  background: var(--glass);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 22px 55px rgba(30, 58, 92, 0.14);
}

.panel--side {
  padding: 22px;
  position: sticky;
  top: 24px;
}

.panel--main {
  padding: 28px;
  background: var(--glass-strong);
  animation: fadeUp var(--motion-slow) cubic-bezier(0.2, 0.8, 0.2, 1);
}

.panel__block + .panel__block {
  margin-top: 24px;
}

.panel__block h2,
.panel__block h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-family: var(--font-sans);
}

.panel__note {
  background: rgba(0, 59, 223, 0.08);
  border: 1px solid rgba(0, 59, 223, 0.16);
  padding: 16px;
  border-radius: 14px;
}

.panel__note p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.toggle {
  display: flex;
  gap: 10px;
}

.toggle button {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(30, 58, 92, 0.08);
}

.toggle button.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.progress {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress li {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all var(--motion-fast) ease;
  box-shadow: 0 6px 14px rgba(30, 58, 92, 0.06);
}

.progress li.active {
  background: rgba(0, 59, 223, 0.12);
  border-color: rgba(0, 59, 223, 0.28);
  font-weight: 600;
}

.progress li.done {
  opacity: 0.7;
}

.screen__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.screen__header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-family: var(--font-sans);
}

.banner {
  background: rgba(0, 59, 223, 0.08);
  border: 1px solid rgba(0, 59, 223, 0.2);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--ink);
}

.section {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(16, 35, 59, 0.08);
  background: rgba(255, 255, 255, 0.96);
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(30, 58, 92, 0.08);
}

.section h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-family: var(--font-sans);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field__label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 59, 223, 0.1);
  color: var(--accent);
}

.input,
.field input[type="number"],
.field input[type="text"],
.field input[type="datetime-local"] {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 0.98rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input--readonly {
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

.input:focus,
.field input[type="number"]:focus,
.field input[type="text"]:focus,
.field input[type="datetime-local"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
  outline: none;
}

.option-group {
  display: grid;
  gap: 8px;
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16, 35, 59, 0.08);
  background: #fff;
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7),
    0 6px 14px rgba(30, 58, 92, 0.06);
}

.option input {
  accent-color: var(--accent);
}

.option input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.button {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(16, 35, 59, 0.12);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
  box-shadow: 0 6px 14px rgba(30, 58, 92, 0.08);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(16, 30, 44, 0.12);
}

.button--accent {
  background: linear-gradient(135deg, var(--accent), #235bff);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 20px rgba(0, 59, 223, 0.25);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.85);
}

.results {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.results.hidden {
  display: none;
}

.result-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(16, 35, 59, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.result-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-family: var(--font-sans);
}

.result-grid {
  display: grid;
  gap: 12px;
}

.result-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

.reveal {
  animation: fadeUp var(--motion-base) cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--delay, 0ms);
  will-change: transform, opacity;
}

.loading {
  opacity: 0.7;
  pointer-events: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .panel--side {
    position: static;
  }

  .footer {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page,
  .reveal {
    animation: none;
  }
  * {
    transition-duration: 0s !important;
  }
}

@supports not (backdrop-filter: blur(10px)) {
  .panel,
  .panel--side,
  .hero__panel,
  .footer,
  .button,
  .toggle button,
  .lang-toggle button {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }
}
