:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #64748b;
  --soft: #f6f8fb;
  --surface: #ffffff;
  --line: #dbe4ef;
  --indigo: #273a8a;
  --indigo-deep: #151f4f;
  --cyan: #0ea5b7;
  --cyan-soft: #e6f7f9;
  --danger: #a33b3b;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(39, 58, 138, 0.09), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 42%);
  color: var(--ink);
  line-height: 1.6;
}

.hero,
.site-main,
.site-footer {
  width: min(100%, 680px);
  margin: 0 auto;
  padding-inline: 18px;
}

.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none;
  border-bottom: 1px solid rgba(219, 228, 239, 0.76);
  background:
    linear-gradient(90deg, rgba(39, 58, 138, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(14, 165, 183, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 70% 20%, rgba(14, 165, 183, 0.15), transparent 28%),
    linear-gradient(135deg, #fbfdff 0%, #eef6ff 100%);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.hero-inner {
  display: grid;
  width: min(100%, 980px);
  margin: 0 auto;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  padding: 54px 18px 42px;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(14, 165, 183, 0.22);
  border-radius: 999px;
  background: rgba(230, 247, 249, 0.8);
  color: #087785;
  font-size: 0.78rem;
  font-weight: 780;
  padding: 6px 10px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 16px;
  color: var(--indigo-deep);
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  letter-spacing: 0;
  line-height: 0.98;
}

.hero-title {
  margin-top: 12px;
  color: #24304a;
  font-size: clamp(1.18rem, 3vw, 1.62rem);
  font-weight: 760;
  line-height: 1.22;
}

.hero-subtitle {
  max-width: 560px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.survey-time {
  margin-top: 18px;
  color: var(--indigo);
  font-size: 0.9rem;
  font-weight: 760;
}

.product-preview {
  border: 1px solid rgba(219, 228, 239, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  padding: 16px;
  backdrop-filter: blur(18px);
}

.preview-top {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.preview-top span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cad6e5;
}

.preview-search {
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #f8fafc;
  color: #526178;
  font-size: 0.82rem;
  padding: 10px 12px;
}

.preview-row {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
}

.preview-row strong {
  color: #172033;
  font-size: 0.88rem;
}

.preview-row span,
.preview-tags span {
  color: var(--muted);
  font-size: 0.78rem;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.preview-tags span {
  border-radius: 999px;
  background: var(--cyan-soft);
  color: #087785;
  padding: 6px 8px;
}

.site-main {
  padding-top: 24px;
}

.survey-progress {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(219, 228, 239, 0.8);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  padding: 12px 14px;
  backdrop-filter: blur(16px);
}

.survey-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.survey-progress strong {
  color: var(--ink);
}

.progress {
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: #edf2f7;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  transition: width 220ms ease;
}

.survey {
  display: grid;
  gap: 26px;
  padding-block: 24px 72px;
}

.section {
  display: grid;
  gap: 16px;
}

.section-header h2 {
  color: var(--indigo-deep);
  font-size: 1.02rem;
  font-weight: 820;
}

.field {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(219, 228, 239, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.055);
  padding: 20px;
  animation: rise-in 360ms ease both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

label,
legend {
  color: var(--ink);
}

legend,
.field > label {
  font-size: 1.14rem;
  font-weight: 820;
  line-height: 1.3;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  background: #fbfdff;
  color: var(--ink);
  font-size: 1rem;
  padding: 12px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(39, 58, 138, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(39, 58, 138, 0.1);
  outline: 0;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-grid,
.scale {
  display: grid;
  gap: 10px;
}

.choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.scale {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.choice,
.scale-choice {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  background: #f9fbfe;
  color: #22304a;
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 650;
  padding: 11px 12px;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.choice:hover,
.scale-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(39, 58, 138, 0.28);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.choice input,
.scale-choice input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--indigo);
}

.choice:has(input:checked),
.scale-choice:has(input:checked) {
  border-color: rgba(39, 58, 138, 0.5);
  background: #f0f5ff;
  box-shadow: inset 0 0 0 1px rgba(39, 58, 138, 0.13);
}

.scale-choice {
  justify-content: center;
  flex-direction: column;
  min-height: 74px;
  text-align: center;
}

.scale-value {
  color: var(--indigo-deep);
  font-size: 1.1rem;
  font-weight: 850;
}

.scale-label {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.15;
}

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

button,
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--indigo-deep), var(--indigo) 62%, #0f8fa2);
  box-shadow: 0 16px 34px rgba(39, 58, 138, 0.24);
  color: #fff;
  cursor: pointer;
  font-weight: 820;
  padding: 14px 20px;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(39, 58, 138, 0.28);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
  color: var(--indigo);
}

.trust-note,
.status,
.field-note,
.site-footer {
  color: var(--muted);
  font-size: 0.9rem;
}

.field-note {
  margin-top: -8px;
  font-size: 0.86rem;
}

.required {
  color: var(--danger);
}

.error {
  color: var(--danger);
  font-weight: 720;
}

.mobile-survey-note {
  display: none;
}

.message-panel {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  border: 1px solid rgba(219, 228, 239, 0.92);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 28px;
}

.success-mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
}

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 183, 0.12), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

.admin-header {
  display: flex;
  width: min(100%, 1440px);
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 34px 28px 22px;
}

.admin-header h1 {
  margin-top: 10px;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
}

.admin-header p,
.admin-results-header p {
  color: var(--muted);
}

.admin-main {
  display: grid;
  width: min(100%, 1440px);
  gap: 18px;
  margin: 0 auto;
  padding: 0 28px 42px;
}

.admin-card {
  border: 1px solid rgba(219, 228, 239, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  padding: 22px;
}

.admin-login-card {
  max-width: 920px;
}

.admin-login {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
}

.admin-field {
  display: grid;
  gap: 8px;
}

.admin-field label {
  font-size: 0.95rem;
  font-weight: 780;
}

.admin-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-results-header h2 {
  color: var(--indigo-deep);
  font-size: 1.35rem;
}

.admin-actions {
  display: flex;
  gap: 10px;
}

.table-wrap {
  overflow: auto;
  max-height: 62vh;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 1320px;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #617089;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

td {
  color: #253149;
  font-size: 0.9rem;
}

tbody tr:hover {
  background: #fbfdff;
}

@media (max-width: 720px) {
  .hero-inner {
    gap: 22px;
    grid-template-columns: 1fr;
    padding: 30px 16px 24px;
  }

  h1 {
    font-size: 2.05rem;
  }

  .hero-title {
    font-size: 1.15rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .product-preview {
    border-radius: 18px;
    padding: 13px;
  }

  .site-main {
    padding-top: 16px;
  }

  .survey-progress {
    border-radius: 14px;
    padding: 10px 12px;
  }

  .survey {
    gap: 22px;
    padding-bottom: 82px;
  }

  .section {
    gap: 12px;
  }

  .field {
    gap: 13px;
    border-radius: 16px;
    padding: 17px;
  }

  legend,
  .field > label {
    font-size: 1.08rem;
  }

  input,
  select,
  textarea {
    min-height: 46px;
    font-size: 16px;
    padding: 11px 12px;
  }

  textarea {
    min-height: 88px;
  }

  .choice-grid,
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .choice {
    min-height: 46px;
    border-radius: 13px;
    font-size: 0.94rem;
    padding: 10px 11px;
  }

  .scale {
    gap: 7px;
  }

  .scale-choice {
    min-height: 58px;
    border-radius: 13px;
    padding: 7px 3px;
  }

  .scale-label {
    display: none;
  }

  button,
  .button {
    width: 100%;
  }

  .mobile-survey-note {
    position: fixed;
    right: 12px;
    bottom: 10px;
    left: 12px;
    z-index: 20;
    display: block;
    border: 1px solid rgba(219, 228, 239, 0.88);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 12px;
    text-align: center;
    backdrop-filter: blur(16px);
  }

  .admin-header {
    align-items: stretch;
    flex-direction: column;
    padding: 24px 16px 16px;
  }

  .admin-main {
    padding-inline: 16px;
  }

  .admin-card {
    padding: 16px;
  }

  .admin-login,
  .admin-results-header {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}
