:root {
  --ds-ink: #1a1a1a;
  --ds-muted: #5c5c5c;
  --ds-line: #e5e5e5;
  --ds-bg: #f7f7f5;
  --ds-card: #ffffff;
  --ds-yellow: #ffc820;
  --ds-yellow-hover: #f0b800;
  --ds-blue: #2b2b2b;
  --ds-danger: #c62828;
  --ds-radius: 10px;
  --ds-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ds-ink);
  background: var(--ds-bg);
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: #fff;
  border-bottom: 1px solid var(--ds-line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--ds-yellow);
  display: grid;
  place-items: center;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.logo-mark svg {
  width: 16px;
  height: 16px;
}

.topbar-right {
  font-size: 13px;
  color: var(--ds-muted);
}

.shell {
  max-width: 980px;
  margin: 36px auto 64px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

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

.card {
  background: var(--ds-card);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  box-shadow: var(--ds-shadow);
}

.doc-card {
  overflow: hidden;
}

.doc-preview {
  background: linear-gradient(180deg, #ecece8 0%, #f6f6f3 100%);
  padding: 28px 24px 18px;
  border-bottom: 1px solid var(--ds-line);
}

.paper {
  background: #fff;
  border: 1px solid #ddd;
  min-height: 320px;
  padding: 28px 26px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  position: relative;
}

.paper::before {
  content: "";
  position: absolute;
  inset: 10px 10px auto auto;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, transparent 50%, #f3f3f3 50%);
  border-left: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
}

.paper h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.paper .meta {
  color: var(--ds-muted);
  font-size: 13px;
  margin-bottom: 22px;
}

.lines {
  display: grid;
  gap: 10px;
}

.lines span {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #ececec;
}

.lines span:nth-child(1) {
  width: 92%;
}
.lines span:nth-child(2) {
  width: 86%;
}
.lines span:nth-child(3) {
  width: 78%;
}
.lines span:nth-child(4) {
  width: 88%;
}
.lines span:nth-child(5) {
  width: 64%;
  margin-top: 10px;
}
.lines span:nth-child(6) {
  width: 90%;
}
.lines span:nth-child(7) {
  width: 72%;
}

.doc-foot {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ds-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff7d6;
  color: #7a5b00;
  font-weight: 600;
  font-size: 12px;
}

.access-card {
  padding: 28px 26px 24px;
}

.access-card h1 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.access-card .lead {
  margin: 0 0 22px;
  color: var(--ds-muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.field label {
  font-size: 13px;
  font-weight: 600;
}

.field input {
  width: 100%;
  height: 44px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
  border-color: #222;
  box-shadow: 0 0 0 3px rgba(255, 200, 32, 0.35);
}

.field input.is-invalid {
  border-color: var(--ds-danger);
}

.btn {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--ds-yellow);
  color: #111;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn:hover {
  background: var(--ds-yellow-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.error {
  display: none;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdecea;
  color: var(--ds-danger);
  font-size: 13px;
  line-height: 1.4;
}

.error.show {
  display: block;
}

.providers {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ds-line);
}

.providers h3 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ds-muted);
  font-weight: 700;
}

.provider-list {
  display: grid;
  gap: 8px;
}

.provider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  background: #fafafa;
  font-size: 13px;
}

.provider strong {
  font-weight: 600;
}

.pill {
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 8px;
}

.pill.on {
  background: #e8f7ec;
  color: #1b7a38;
}

.pill.off {
  background: #f1f1f1;
  color: #777;
}

.fine {
  margin-top: 16px;
  font-size: 11px;
  color: #8a8a8a;
  line-height: 1.45;
}

.site-footer {
  text-align: center;
  padding: 18px 16px 36px;
  color: #9a9a9a;
  font-size: 12px;
}
