:root {
  color-scheme: light;
  --ink: #10294f;
  --ink-strong: #071d3e;
  --muted: #627795;
  --blue: #176de0;
  --blue-bright: #0e7bf6;
  --deep-blue: #123b8f;
  --green: #07913b;
  --gold: #d8a800;
  --surface: #f3f8ff;
  --surface-blue: #eaf3ff;
  --line: #cdddf1;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(18, 59, 143, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(246, 251, 255, 0.93), rgba(246, 251, 255, 0.95)),
    url("/assets/palcont-tech-background.png") center top / cover fixed no-repeat,
    #f6fbff;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.62;
}

body.home::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 5%, rgba(23, 109, 224, 0.12), transparent 30rem),
    radial-gradient(circle at 90% 14%, rgba(7, 145, 59, 0.08), transparent 26rem);
  content: "";
  pointer-events: none;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--deep-blue);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(205, 221, 241, 0.78);
  background: rgba(247, 252, 255, 0.88);
  backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  width: min(100% - 36px, 1180px);
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-strong);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: url("/assets/palcont-icon.png") center / cover no-repeat;
  color: transparent;
  font-size: 0;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(23, 109, 224, 0.16);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--blue);
}

.page {
  width: min(100% - 36px, 1060px);
  margin: 0 auto;
}

.hero {
  display: grid;
  width: min(100% - 36px, 1120px);
  min-height: 700px;
  margin: 0 auto;
  padding: 86px 0 92px;
  align-items: center;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(38px, 7vw, 90px);
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 34px rgba(16, 41, 79, 0.09));
}

.hero-copy {
  position: relative;
}

.hero-copy::after {
  display: block;
  width: 110px;
  height: 4px;
  margin-top: 36px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  content: "";
}

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink-strong);
  line-height: 1.16;
}

h1 {
  margin: 18px 0 20px;
  font-size: clamp(40px, 5.7vw, 70px);
  letter-spacing: -0.052em;
}

.document h1 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 54px);
}

h2 {
  margin: 0 0 13px;
  font-size: clamp(27px, 4vw, 42px);
  letter-spacing: -0.035em;
}

h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

li + li {
  margin-top: 7px;
}

.service-line {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.service-line span {
  margin: 0 5px;
  color: var(--blue);
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.actions {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--deep-blue));
  color: #fff;
  box-shadow: 0 14px 30px rgba(23, 109, 224, 0.23);
}

.button-primary:hover {
  color: #fff;
  box-shadow: 0 18px 35px rgba(23, 109, 224, 0.28);
}

.button-secondary {
  border-color: rgba(23, 109, 224, 0.24);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--blue);
}

.feature-section,
.mission-section,
.documents-section,
.release-note {
  scroll-margin-top: 96px;
}

.feature-section {
  padding: 90px 0 70px;
  border-top: 1px solid rgba(23, 109, 224, 0.18);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  margin-top: 12px;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 54px;
}

.feature-item {
  display: grid;
  min-height: 178px;
  padding: 31px 0;
  border-top: 1px solid var(--line);
  align-content: start;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
}

.feature-item:nth-last-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.feature-number {
  display: inline-grid;
  width: 50px;
  height: 32px;
  border: 1px solid rgba(23, 109, 224, 0.22);
  border-radius: 999px;
  background: rgba(234, 243, 255, 0.72);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  place-items: center;
}

.feature-number-gold {
  border-color: rgba(216, 168, 0, 0.3);
  background: rgba(255, 247, 211, 0.74);
  color: #9b7900;
}

.feature-number-green {
  border-color: rgba(7, 145, 59, 0.25);
  background: rgba(231, 249, 237, 0.74);
  color: var(--green);
}

.feature-item h3 {
  margin: 1px 0 10px;
  font-size: clamp(19px, 2vw, 23px);
  letter-spacing: -0.02em;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.mission-section {
  display: grid;
  margin-top: 60px;
  padding: 70px 0;
  border-top: 1px solid rgba(7, 145, 59, 0.26);
  border-bottom: 1px solid rgba(7, 145, 59, 0.26);
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(42px, 8vw, 90px);
}

.mission-copy h2 {
  margin-top: 12px;
}

.mission-copy p {
  color: var(--muted);
  font-size: 17px;
}

.mission-facts {
  align-self: center;
}

.mission-facts p {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.mission-facts p:first-child {
  border-top: 1px solid var(--line);
}

.mission-facts strong {
  color: var(--green);
}

.documents-section {
  padding: 100px 0 52px;
}

.section-heading-left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.legal-links {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-links a {
  display: flex;
  min-height: 68px;
  padding: 20px 18px 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.legal-links a:nth-child(odd) {
  margin-right: 24px;
}

.legal-links a::after {
  margin-left: auto;
  color: var(--blue);
  content: "→";
  font-size: 20px;
}

.release-note {
  display: grid;
  margin-top: 28px;
  margin-bottom: 96px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: center;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 42px;
}

.release-note h2 {
  margin: 9px 0 0;
  font-size: 28px;
}

.release-note p {
  margin: 0;
  color: var(--muted);
}

.document {
  padding: 64px 0 88px;
}

.document-meta {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.section,
.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.section {
  margin-top: 16px;
  padding: clamp(21px, 4vw, 34px);
}

.card {
  padding: 24px;
}

.section h2,
.card h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.section p:last-child,
.section ul:last-child,
.section ol:last-child {
  margin-bottom: 0;
}

.note {
  border-left: 4px solid var(--blue);
  background: rgba(237, 245, 255, 0.94);
}

.warning {
  border-left: 4px solid #cc7a00;
  background: rgba(255, 248, 232, 0.96);
}

.success {
  border-left: 4px solid var(--green);
  background: rgba(238, 249, 241, 0.96);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(236, 246, 255, 0.8);
}

.footer-inner {
  display: grid;
  width: min(100% - 36px, 1180px);
  margin: 0 auto;
  padding: 40px 0;
  align-items: center;
  grid-template-columns: minmax(260px, 1.1fr) minmax(180px, 0.8fr) minmax(240px, 1fr);
  gap: 30px;
  color: var(--muted);
  font-size: 13px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 18px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.footer-contacts a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.footer-owner {
  text-align: right;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 70px 0 78px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-logo {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .hero-copy {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-copy::after {
    margin-right: auto;
    margin-left: auto;
  }

  .actions {
    justify-content: center;
  }

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

  .feature-item:nth-last-child(2) {
    border-bottom: 0;
  }

  .mission-section {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-owner {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 700px) {
  body {
    background-attachment: scroll;
  }

  .nav {
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    align-items: flex-start;
  }

  .nav-links {
    gap: 8px 14px;
  }

  .hero {
    padding-top: 54px;
  }

  .feature-section,
  .documents-section {
    padding-top: 72px;
  }

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

  .legal-links a:nth-child(odd) {
    margin-right: 0;
  }

  .release-note {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-owner {
    grid-column: auto;
  }
}

@media (max-width: 540px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-logo {
    width: min(100%, 420px);
  }

  h1 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .service-line {
    line-height: 1.9;
  }

  .feature-item {
    min-height: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
  }

  .feature-number {
    width: 42px;
  }

  .mission-section {
    margin-top: 34px;
    padding: 54px 0;
  }
}
