.public-body {
  background: #f4f7fb;
  color: #0b1b33;
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #dfe8f5;
  box-shadow: 0 10px 34px rgba(15, 35, 65, 0.08);
  backdrop-filter: blur(14px);
}

.public-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  padding: 0;
  color: #061a33;
  font-size: 24px;
  font-weight: 900;
  line-height: 0;
  text-decoration: none;
}

.public-nav .brand::after {
  content: "Auftragio";
  line-height: 1;
}

.public-nav .brand img {
  display: block;
  width: 62px;
  max-width: none;
  height: auto;
}

.public-nav nav {
  align-items: center;
  gap: 10px;
}

.public-nav nav a {
  border-radius: 8px;
  color: #153052;
  font-weight: 700;
  padding: 10px 12px;
}

.public-nav nav a:hover {
  background: #edf4ff;
  color: #006ce8;
}

.public-nav nav a.btn {
  background: #0575ff;
  color: #fff;
  box-shadow: 0 10px 24px rgba(5, 117, 255, 0.24);
}

.public-main {
  width: auto;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 54px;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 30px;
  align-items: center;
  min-height: 520px;
  margin: 16px 0 22px;
  padding: 46px;
  color: #0b1b33;
  background:
    radial-gradient(circle at 88% 18%, rgba(5, 117, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 48%, #eaf3ff 100%);
  border: 1px solid #dfe8f5;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(11, 27, 51, 0.12);
  overflow: hidden;
}

.portal-hero-copy {
  max-width: 650px;
}

.portal-hero-logo {
  display: block;
  width: min(360px, 82vw);
  height: auto;
  margin: 0 0 22px;
  filter: drop-shadow(0 12px 22px rgba(12, 47, 91, 0.12));
}

.portal-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #061a33;
  font-size: 72px;
  line-height: 0.95;
  letter-spacing: 0;
}

.portal-hero p {
  max-width: 640px;
  margin: 22px 0 0;
  color: #38516f;
  font-size: 18px;
  line-height: 1.65;
}

.portal-hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.portal-hero .btn {
  border-radius: 8px;
  font-weight: 800;
  min-height: 46px;
  padding: 13px 18px;
}

.portal-hero-panel {
  display: grid;
  gap: 14px;
}

.portal-panel-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 6px 16px;
  align-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #dbe8f8;
  border-radius: 12px;
  box-shadow: 0 16px 35px rgba(20, 60, 105, 0.08);
}

.portal-panel-row span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #0575ff;
  background: #eaf3ff;
  border-radius: 10px;
  font-weight: 900;
}

.portal-panel-row strong {
  color: #0b1b33;
  font-size: 17px;
}

.portal-panel-row small {
  color: #5d718b;
  line-height: 1.45;
}

.portal-stats {
  margin-top: -8px;
}

.portal-stats .stat {
  border: 1px solid #dfe8f5;
  box-shadow: 0 16px 38px rgba(15, 35, 65, 0.08);
}

.portal-stats .stat strong {
  color: #0575ff;
}

.portal-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 30px;
}

.portal-feature {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: #0b1b33;
  background: #fff;
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(15, 35, 65, 0.07);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.portal-feature:hover {
  transform: translateY(-3px);
  border-color: #8fc3ff;
  box-shadow: 0 22px 48px rgba(15, 35, 65, 0.11);
}

.portal-feature span,
.portal-section-title span {
  color: #0575ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-feature strong {
  display: block;
  margin-top: 18px;
  font-size: 23px;
  line-height: 1.14;
}

.portal-feature p {
  margin: 18px 0 0;
  color: #5d718b;
  line-height: 1.55;
}

.portal-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0 14px;
}

.portal-section-title h2 {
  margin: 4px 0 0;
  color: #0b1b33;
  font-size: 30px;
}

.portal-section-title a {
  color: #0575ff;
  font-weight: 800;
  text-decoration: none;
}

.portal-region-band {
  margin: 26px 0 30px;
}

.portal-region-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.portal-region-links a {
  display: block;
  min-height: 112px;
  padding: 20px;
  color: #0b1b33;
  background: #fff;
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(15, 35, 65, 0.07);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.portal-region-links a:hover {
  transform: translateY(-3px);
  border-color: #8fc3ff;
  box-shadow: 0 22px 48px rgba(15, 35, 65, 0.11);
}

.portal-region-links strong,
.portal-region-links span {
  display: block;
}

.portal-region-links strong {
  color: #061a33;
  font-size: 21px;
}

.portal-region-links span {
  margin-top: 10px;
  color: #5d718b;
}

.portal-list-grid .card {
  border: 1px solid #dfe8f5;
  box-shadow: 0 16px 38px rgba(15, 35, 65, 0.08);
}

.portal-list-grid .search-result {
  border-radius: 10px;
  border: 1px solid #e3edf9;
}

.public-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  border-top: 1px solid #dfe8f5;
  background: #ffffff;
  color: #4f6680;
}

.public-footer a {
  color: #153052;
  font-weight: 700;
  text-decoration: none;
}

.public-footer a:hover {
  color: #0575ff;
}

.legal-page {
  max-width: 920px;
  margin: 16px auto 0;
}

.legal-page h1 {
  margin: 0 0 18px;
  color: #061a33;
  font-size: 42px;
  line-height: 1.08;
}

.legal-intro {
  max-width: 760px;
  margin: 0 0 22px;
  color: #526984;
  font-size: 17px;
  line-height: 1.6;
}

.legal-section {
  margin: 0 0 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(15, 35, 65, 0.07);
}

.legal-section h2,
.contact-card h2 {
  margin: 0 0 12px;
  color: #0b1b33;
  font-size: 23px;
}

.legal-section p,
.legal-section li {
  color: #526984;
  line-height: 1.62;
}

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

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.contact-card {
  border: 1px solid #dfe8f5;
  box-shadow: 0 16px 38px rgba(15, 35, 65, 0.07);
}

.contact-details {
  margin-bottom: 0;
}

.register-card h2 {
  margin: 18px 0 12px;
  color: #0b1b33;
  font-size: 22px;
}

.register-company-fields {
  margin: 10px 0 16px;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #dfe8f5;
  border-radius: 12px;
}

.checkbox-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0 18px;
  line-height: 1.45;
}

.checkbox-line input {
  width: auto;
  margin-top: 2px;
}

.job-create-card {
  max-width: 780px;
}

.company-profile-hero,
.company-profile-layout {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.company-profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid #dfe8f5;
  box-shadow: 0 18px 44px rgba(15, 35, 65, 0.08);
}

.company-profile-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.company-profile-brand h1 {
  margin: 8px 0;
  color: #061a33;
  font-size: 40px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.company-profile-brand p {
  margin: 0;
  color: #526984;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.company-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.company-profile-main,
.company-profile-side {
  min-width: 0;
  border: 1px solid #dfe8f5;
  box-shadow: 0 16px 38px rgba(15, 35, 65, 0.07);
  overflow-wrap: anywhere;
}

.company-profile-main h2 {
  margin: 22px 0 8px;
  color: #0b1b33;
  font-size: 23px;
}

.company-profile-main p,
.company-profile-side p {
  color: #526984;
  line-height: 1.62;
}

.company-profile-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.company-profile-facts div {
  min-width: 0;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid #dfe8f5;
  border-radius: 10px;
}

.company-profile-facts span,
.company-profile-facts strong,
.company-profile-facts small {
  display: block;
}

.company-profile-facts span {
  color: #0575ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-profile-facts strong {
  margin-top: 6px;
  color: #0b1b33;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.company-profile-facts small {
  margin-top: 4px;
  color: #5d718b;
}

.company-profile-side {
  position: sticky;
  top: 96px;
}

.company-profile-side h2 {
  margin-top: 0;
}

.company-profile-side hr {
  border: 0;
  border-top: 1px solid #dfe8f5;
  margin: 18px 0;
}

.company-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  min-width: 220px;
}

.company-profile-actions .btn {
  text-align: center;
}

.subscription-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.subscription-plan {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  border: 1px solid #dfe8f5;
  box-shadow: 0 16px 38px rgba(15, 35, 65, 0.07);
}

.subscription-plan.featured {
  border-color: #71b7ff;
  box-shadow: 0 22px 54px rgba(5, 117, 255, 0.16);
}

.subscription-plan span {
  color: #0575ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subscription-plan h2 {
  margin: 8px 0 12px;
  color: #061a33;
  font-size: 28px;
}

.subscription-plan strong {
  color: #0b1b33;
  font-size: 24px;
}

.subscription-plan p,
.subscription-plan li {
  color: #526984;
  line-height: 1.55;
}

.subscription-plan ul {
  padding-left: 18px;
}

.subscription-plan form {
  margin-top: auto;
}

.payment-instructions {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #dfe8f5;
  box-shadow: 0 16px 38px rgba(15, 35, 65, 0.07);
}

.payment-instruction-box {
  margin-top: 14px;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #dfe8f5;
  border-radius: 12px;
}

.payment-instruction-box strong {
  display: block;
  color: #061a33;
  font-size: 20px;
  margin-bottom: 12px;
}

.payment-instruction-box dl {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
}

.payment-instruction-box dt {
  color: #5d718b;
  font-weight: 800;
}

.payment-instruction-box dd {
  margin: 0;
  color: #0b1b33;
  overflow-wrap: anywhere;
}

.payment-instruction-box code {
  display: inline-block;
  padding: 3px 7px;
  background: #eef6ff;
  border: 1px solid #cfe4ff;
  border-radius: 6px;
  color: #064f9e;
  font-weight: 800;
}

.payment-proof-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #dfe8f5;
}

.payment-proof-form label {
  display: block;
  margin-bottom: 6px;
  color: #153052;
  font-size: 13px;
  font-weight: 800;
}

.payment-proof-form input {
  width: 100%;
  margin: 0;
}

.payment-proof-form button {
  min-height: 42px;
  white-space: nowrap;
}

.region-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin: 16px 0 22px;
  padding: 34px;
  background:
    radial-gradient(circle at 90% 15%, rgba(5, 117, 255, 0.14), transparent 31%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 52%, #eaf3ff 100%);
  border: 1px solid #dfe8f5;
  border-radius: 16px;
  box-shadow: 0 22px 58px rgba(11, 27, 51, 0.11);
}

.region-hero span {
  color: #0575ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.region-hero h1 {
  max-width: 720px;
  margin: 6px 0 10px;
  color: #061a33;
  font-size: 46px;
  line-height: 1.05;
}

.region-hero p {
  max-width: 720px;
  margin: 0;
  color: #526984;
  line-height: 1.62;
}

.region-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

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

.region-copy {
  max-width: none;
}

.portal-dashboard-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 16px 0 22px;
  padding: 30px;
  background: #fff;
  border: 1px solid #dfe8f5;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(15, 35, 65, 0.08);
}

.portal-dashboard-hero span {
  color: #0575ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-dashboard-hero h1 {
  margin: 4px 0 8px;
  color: #061a33;
  font-size: 42px;
  line-height: 1.05;
}

.portal-dashboard-hero p {
  max-width: 680px;
  margin: 0;
  color: #526984;
  line-height: 1.55;
}

.portal-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.portal-dashboard-stats {
  margin-bottom: 18px;
}

.portal-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.portal-card-heading h2 {
  margin: 0;
}

.portal-next-steps,
.portal-notifications {
  display: grid;
  gap: 10px;
}

.portal-next-steps a,
.portal-notifications a {
  display: block;
  padding: 14px;
  color: #0b1b33;
  background: #f8fbff;
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  text-decoration: none;
}

.portal-next-steps a:hover,
.portal-notifications a:hover {
  border-color: #8fc3ff;
}

.portal-next-steps strong,
.portal-notifications strong,
.portal-next-steps span,
.portal-notifications span,
.portal-notifications small {
  display: block;
}

.portal-next-steps span,
.portal-notifications span,
.portal-notifications small {
  margin-top: 4px;
  color: #5d718b;
  line-height: 1.45;
}

.portal-notifications a:not(.read) {
  background: #eef6ff;
  border-color: #b9d9ff;
}

.portal-notifications small {
  font-size: 12px;
}

@media (max-width: 980px) {
  .portal-hero {
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .portal-hero h1 {
    font-size: 58px;
  }

  .portal-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-region-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subscription-plan-grid {
    grid-template-columns: 1fr;
  }

  .portal-dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-dashboard-actions {
    justify-content: flex-start;
  }

  .company-profile-layout {
    grid-template-columns: 1fr;
  }

  .company-profile-side {
    position: static;
  }

  .company-profile-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .public-nav {
    align-items: flex-start;
    gap: 14px;
  }

  .public-nav nav {
    width: 100%;
    justify-content: flex-start;
  }

  .public-nav nav a {
    padding: 9px 10px;
  }

  .public-main {
    padding: 16px 12px 42px;
  }

  .portal-hero {
    min-height: auto;
    margin-top: 10px;
    padding: 24px;
    border-radius: 14px;
  }

  .portal-hero h1 {
    font-size: 42px;
  }

  .portal-hero p {
    font-size: 16px;
  }

  .portal-panel-row {
    grid-template-columns: 48px 1fr;
    padding: 14px;
  }

  .portal-feature-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout,
  .region-grid {
    grid-template-columns: 1fr;
  }

  .company-profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .company-profile-brand {
    grid-template-columns: 1fr;
  }

  .company-profile-brand h1 {
    font-size: 32px;
  }

  .company-profile-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .company-profile-actions .btn {
    flex: 1 1 180px;
  }

  .region-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .region-hero h1,
  .legal-page h1 {
    font-size: 34px;
  }

  .portal-feature {
    min-height: 170px;
  }

  .portal-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-dashboard-hero {
    padding: 22px;
  }

  .portal-dashboard-hero h1 {
    font-size: 34px;
  }
}

@media (max-width: 480px) {
  .public-nav .brand img {
    width: 54px;
  }

  .portal-hero {
    padding: 20px;
  }

  .portal-hero h1 {
    font-size: 36px;
  }

  .portal-hero .btn {
    width: 100%;
    justify-content: center;
  }

  .portal-region-links {
    grid-template-columns: 1fr;
  }

  .region-actions,
  .region-actions .btn {
    width: 100%;
  }

  .region-actions .btn {
    justify-content: center;
  }

  .company-profile-facts {
    grid-template-columns: 1fr;
  }

  .payment-instruction-box dl {
    grid-template-columns: 1fr;
  }

  .payment-proof-form {
    grid-template-columns: 1fr;
  }
}
