:root {
  color: #111111;
  background: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

a[href],
button,
.button {
  cursor: pointer !important;
}

a[href] *,
button *,
.button * {
  cursor: inherit !important;
}

a[href] svg,
a[href] svg *,
button svg,
button svg *,
.button svg,
.button svg * {
  pointer-events: none;
}

.site-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 32px;
}

.profile-card {
  width: min(100%, 780px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
  padding: 56px;
  border-radius: 32px;
  background: #f4f3f1;
}

.profile-content {
  order: 1;
}

.profile-photo {
  order: 2;
  width: 100%;
  max-width: 210px;
  aspect-ratio: 1 / 1.28;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  display: block;
}

.profile-content h1,
.document-card h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.subtitle {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
}

.description {
  max-width: 455px;
  margin: 16px 0 0;
  color: #171717;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 400;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  transition: opacity 160ms ease;
}

.button-primary:hover,
.button-client:hover {
  opacity: 0.9;
}

.button-primary {
  gap: 8px;
  padding: 0 28px;
  color: #ffffff;
  background: #1f63ff;
}

.button-client {
  gap: 8px;
  padding: 0 22px;
  color: #111111;
  background: #dfdfdf;
}

.button-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.footer {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  color: #111111;
  font-size: 14px;
  font-weight: 400;
}

.footer a,
.back-link {
  transition: color 160ms ease;
}

.footer a:hover,
.back-link:hover {
  color: #1f63ff;
}

.document-shell {
  justify-content: flex-start;
  padding-top: clamp(40px, 8vw, 88px);
}

.document-card {
  width: min(100%, 1080px);
  padding: clamp(32px, 6vw, 64px);
  border-radius: 32px;
  background: #f4f3f1;
}

.pricing-shell {
  justify-content: center;
  padding-top: 32px;
  padding-bottom: 32px;
}

.pricing-card {
  width: min(100%, 820px);
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: #5f5f5f;
  font-size: 14px;
  font-weight: 400;
}

.document-lead {
  margin: 20px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

.legal-document-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 32px;
}

.legal-document-nav {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100svh - 48px);
  overflow: auto;
  padding-right: 8px;
  color: #555555;
  font-size: 13px;
  line-height: 1.35;
}

.legal-document-nav p {
  margin: 0 0 6px;
  color: #111111;
  font-weight: 600;
}

.legal-document-nav a:hover {
  color: #1f63ff;
}

.document-text {
  color: #242424;
  font-size: 14px;
  line-height: 1.85;
  font-weight: 400;
}

.legal-document p,
.legal-document ul {
  margin: 0;
}

.legal-document p + p,
.legal-document p + ul,
.legal-document ul + p {
  margin-top: 14px;
}

.legal-document ul {
  padding-left: 20px;
}

.legal-document li + li {
  margin-top: 8px;
}

.legal-document h2 {
  margin: 34px 0 14px;
  color: #111111;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document h3 {
  margin: 24px 0 12px;
  color: #111111;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
}

.legal-document a {
  color: #1f63ff;
}

.legal-document strong {
  font-weight: 600;
}

.pricing-table-wrap {
  margin-top: 32px;
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  color: #111111;
  font-size: 14px;
  line-height: 1.45;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 0;
  border-bottom: 1px solid #dfdfdf;
  text-align: left;
}

.pricing-table th {
  color: #5f5f5f;
  font-weight: 500;
}

.pricing-table td {
  font-weight: 400;
}

.pricing-note {
  max-width: 640px;
  margin: 28px 0 0;
  color: #242424;
  font-size: 14px;
  line-height: 1.75;
}

.pricing-note a {
  color: #1f63ff;
}

html:has(.form-fullpage),
.form-fullpage {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f6f4ef;
}

.form-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

@media (max-width: 720px) {
  .site-shell {
    justify-content: center;
    gap: 22px;
    padding: 16px;
  }

  .profile-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
    border-radius: 28px;
  }

  .profile-content,
  .profile-photo {
    order: unset;
  }

  .profile-photo {
    width: 116px;
    max-width: 46vw;
  }

  .description {
    line-height: 1.72;
  }

  .actions {
    gap: 14px;
    flex-wrap: nowrap;
  }

  .button {
    min-height: 40px;
    font-size: 13px;
  }

  .button-primary {
    padding: 0 20px;
  }

  .button-client {
    gap: 8px;
    padding: 0 20px;
  }

  .button-icon {
    width: 14px;
    height: 14px;
  }

  .footer {
    width: 100%;
    flex-direction: column;
    gap: 14px;
    justify-content: flex-start;
    padding: 0 30px;
  }

  .document-card {
    padding: 30px;
    border-radius: 28px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 14px 16px 14px 0;
    white-space: nowrap;
  }

  .legal-document-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .legal-document-nav {
    display: none;
  }
}
