.portal-page {
  background: linear-gradient(180deg, #fff 0%, var(--promo-bg) 100%);
  min-height: 100vh;
}

.portal-main {
  padding: 40px var(--promo-gutter) 80px;
  display: grid;
  place-items: start center;
}

.portal-card {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 36px);
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--promo-line-strong);
  box-shadow: var(--promo-shadow-soft);
}

.portal-card h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 34px);
  letter-spacing: -.03em;
}

.portal-lead {
  margin: 0 0 24px;
  color: var(--promo-muted);
  line-height: 1.6;
}

.portal-form {
  display: grid;
  gap: 16px;
}

.portal-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--promo-ink);
}

.portal-form input,
.portal-form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--promo-line-strong);
  font: inherit;
  background: #fff;
}

.portal-form input:focus,
.portal-form select:focus {
  outline: 2px solid rgba(20, 108, 99, 0.2);
  border-color: rgba(20, 108, 99, 0.35);
}

.portal-slug-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--promo-line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.portal-slug-wrap input {
  border: none;
  border-radius: 0;
  min-height: 46px;
}

.portal-slug-wrap:focus-within {
  outline: 2px solid rgba(20, 108, 99, 0.2);
  border-color: rgba(20, 108, 99, 0.35);
}

.portal-slug-suffix {
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--promo-muted);
  white-space: nowrap;
  background: var(--promo-bg);
  align-self: stretch;
  display: inline-flex;
  align-items: center;
}

.portal-submit {
  width: 100%;
  margin-top: 4px;
}

.portal-hint {
  margin: -8px 0 0;
  font-size: 13px;
}

.portal-hint.ok { color: var(--promo-brand); font-weight: 700; }
.portal-hint.error { color: #dc2626; font-weight: 700; }

.portal-alt {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--promo-muted);
}

.portal-alt a {
  color: var(--promo-brand);
  font-weight: 800;
  text-decoration: none;
}

.portal-alt a:hover { text-decoration: underline; }

.portal-alt-muted {
  margin-top: 10px;
  font-size: 13px;
}

.portal-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--promo-muted);
}

.portal-note.error { color: #dc2626; }
.portal-note.ok { color: var(--promo-brand); font-weight: 700; }

.portal-success {
  padding: 18px;
  border-radius: 16px;
  background: var(--promo-brand-light);
  border: 1px solid rgba(20, 108, 99, 0.18);
}

.portal-success h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.portal-success p {
  margin: 0 0 8px;
  color: var(--promo-muted);
  font-size: 14px;
}

.portal-success a {
  color: var(--promo-brand-dark);
  font-weight: 800;
}

.portal-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--promo-muted);
}

.portal-consent input {
  margin-top: 4px;
  flex-shrink: 0;
}

.portal-consent a {
  color: var(--brand, #146c63);
  font-weight: 600;
}

.portal-kit-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.portal-kit-fieldset legend {
  font-weight: 700;
  margin-bottom: 8px;
}

.portal-kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.portal-kit-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 2px solid var(--promo-line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--promo-ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: none;
  font-weight: 600;
  min-height: 0;
  justify-content: start;
}

.portal-kit-card:hover {
  filter: none;
  transform: translateY(-1px);
}

.portal-kit-card.is-active {
  border-color: var(--brand, #146c63);
  box-shadow: 0 0 0 3px rgba(20, 108, 99, 0.12);
}

.portal-kit-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  background: var(--promo-bg);
}

.portal-kit-card strong {
  color: var(--promo-ink);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
}

.portal-kit-card small {
  color: var(--promo-muted);
  font-size: 12px;
  line-height: 1.35;
}
