﻿:root {
  --bg-top: #e7ebef;
  --bg-bottom: #f7f4ef;
  --card: #ffffff;
  --card-soft: #f6f8fb;
  --line: #d2d8df;
  --line-dark: #b8c2cd;
  --text: #16212c;
  --muted: #4d5d70;
  --brand: #113f63;
  --accent: #1a5b79;
  --shadow: 0 14px 34px rgba(19, 33, 50, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 8%, #d4e0eb 0%, transparent 32%),
    radial-gradient(circle at 9% 93%, #e7eee5 0%, transparent 33%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 28px 46px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 26px;
  padding-top: 34px;
  padding-bottom: 34px;
  min-height: 430px;
  background:
    linear-gradient(120deg, rgba(11, 24, 40, 0.54) 0%, rgba(11, 24, 40, 0.38) 42%, rgba(11, 24, 40, 0.2) 100%),
    url("/static/hero/hero_final.png");
  background-size: cover;
  background-position: center 42%;
  border-color: rgba(173, 189, 208, 0.44);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 16, 28, 0.06) 0%, rgba(8, 16, 28, 0.14) 100%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 10px;
  color: rgba(242, 247, 253, 0.94);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

h1 {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.16;
  max-width: 740px;
  color: #f5f8fc;
  text-shadow: 0 2px 14px rgba(10, 22, 38, 0.26);
}

h2,
h3 {
  margin-top: 0;
}

h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.subtext,
.step-description,
.help,
small,
.privacy-note p,
.tile p,
.flow-list,
.legal p,
.site-footer p {
  color: var(--muted);
}

.hero .subtext {
  color: rgba(236, 243, 250, 0.92);
  max-width: 760px;
  text-shadow: 0 1px 10px rgba(8, 18, 30, 0.2);
}

.hero-note {
  min-width: 290px;
  display: grid;
  gap: 12px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fb 100%);
}

.hero .metric {
  border-color: rgba(204, 220, 235, 0.58);
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.88) 0%, rgba(239, 247, 253, 0.8) 100%);
  box-shadow: 0 6px 20px rgba(8, 22, 36, 0.14);
}

.metric span {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.cta-link,
button {
  border: none;
  border-radius: 13px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(180deg, var(--brand), #0f3250);
  color: #fff;
  text-decoration: none;
  display: inline-block;
}

button:hover,
.cta-link:hover {
  background: linear-gradient(180deg, var(--accent), #11324b);
}

.ghost-link,
.button-link {
  border: 1px solid var(--line-dark);
  border-radius: 13px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  font-weight: 600;
  display: inline-block;
}

.ghost-link:hover,
.button-link:hover {
  background: #f9fbfd;
}

.info-grid .tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.cases-section {
  padding-top: 40px;
  padding-bottom: 42px;
}

.cases-section h2 {
  margin-bottom: 24px;
}

.cases-section .tiles.compact {
  gap: 24px;
}

.cases-section .tile {
  padding: 24px 22px;
}

.cases-section .tile p {
  margin: 0 0 14px;
}

.cases-section .tile p:last-child {
  margin-bottom: 0;
}

.flow-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 9px;
}

.result-preview {
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7fc 100%);
}

.process-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.process-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.step-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.step-nav li {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 11px;
  color: var(--muted);
  font-size: 13px;
  background: #fff;
}

.step-nav li.active {
  background: #eef4fa;
  color: var(--text);
  border-color: #9fb8cd;
  font-weight: 700;
}

.step-nav li.done {
  color: #21425d;
  border-color: #adc2d4;
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #dde5ec;
  overflow: hidden;
  margin-bottom: 20px;
}

#progressFill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), #2d7b98);
}

.hint-note {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px;
  background: #f7fafd;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.trust-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.trust-box {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px;
  background: #f8fbfd;
  font-size: 14px;
  font-weight: 600;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  border: 1px solid #c6cfda;
  border-radius: 11px;
  padding: 12px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
}

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

.option-list {
  display: grid;
  gap: 10px;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  background: #fff;
}

.option input[type="checkbox"],
.option input[type="radio"] {
  margin-top: 2px;
}

.privacy-note {
  margin: 4px 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: #f7fafc;
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-dark);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hidden {
  display: none;
}

.result-card {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}

.result-summary {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fbfdff;
  margin-bottom: 14px;
}

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

.result-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  background: #fff;
}

.mandate-sections {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.mandate-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  background: var(--card-soft);
}

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

.profile-section p {
  max-width: 900px;
}

.direct-contact p {
  font-size: 17px;
  line-height: 1.55;
}

.site-footer {
  margin-top: 34px;
  padding: 22px 0 8px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  border-top: 1px solid var(--line);
}

.site-footer a,
.pdf-link {
  color: #124f87;
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover,
.pdf-link:hover {
  text-decoration: underline;
}

.legal h2 {
  margin-top: 18px;
  font-size: 20px;
}

.narrow {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.actions-cell {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.error {
  color: #8f1f1f;
}

.success {
  color: #145c31;
}

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

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-right: 8px;
}

.badge-active {
  background: #e8f4ee;
  color: #1f5a37;
}

.badge-anon {
  background: #eef1f5;
  color: #3f4f63;
}

@media (max-width: 860px) {
  .hero {
    flex-direction: column;
    background-position: center 36%;
    min-height: 360px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 25px;
  }

  .page {
    padding: 16px;
  }

  .card {
    padding: 22px;
  }

  .cases-section {
    padding-top: 28px;
    padding-bottom: 30px;
  }

  .cases-section .tiles.compact {
    gap: 16px;
  }
}
