* {
  box-sizing: border-box;
}

:root {
  --ink: #17211d;
  --muted: #617068;
  --line: #d7ded8;
  --panel: #ffffff;
  --surface: #f4f5f0;
  --surface-strong: #ecefe7;
  --green: #1f5a4b;
  --green-strong: #174638;
  --blue: #234866;
  --danger: #a23c32;
  --danger-bg: #fff3f0;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7f8f3 0%, var(--surface) 360px),
    var(--surface);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px max(18px, calc((100vw - 1180px) / 2 + 18px));
  border-bottom: 1px solid rgba(215, 222, 216, 0.9);
  background: rgba(247, 248, 243, 0.96);
  backdrop-filter: blur(12px);
}

.brand,
.product-nav,
.language-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #b8c5bc;
  border-radius: 8px;
  color: #ffffff;
  background: var(--green);
  line-height: 1;
}

.product-nav {
  justify-content: center;
  gap: 6px;
}

.product-nav a,
.language-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.2;
}

.product-nav a {
  padding: 7px 13px;
}

.language-nav {
  justify-content: flex-end;
  gap: 4px;
}

.language-nav a {
  min-width: 44px;
  padding: 7px 9px;
}

.product-nav a:hover,
.language-nav a:hover {
  color: var(--ink);
  background: var(--surface-strong);
}

.product-nav a.active,
.language-nav a.active {
  border-color: #b8c5bc;
  color: var(--green-strong);
  background: #ffffff;
}

.app-shell {
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(440px, 1fr);
  gap: 20px;
  align-items: start;
  margin: 0 auto;
  padding: 28px 18px 44px;
}

.hero-panel,
.check-panel,
.privacy-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(23, 33, 29, 0.07);
}

.hero-panel {
  position: sticky;
  top: 84px;
  min-height: 560px;
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: 28px;
}

.hero-panel::after {
  content: "";
  display: block;
  min-height: 132px;
  border: 1px solid #cad5cf;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(31, 90, 75, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(35, 72, 102, 0.08) 1px, transparent 1px),
    #f6f8f3;
  background-size: 22px 22px;
}

.check-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.panel-heading {
  display: grid;
  gap: 7px;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 100%;
  font-size: 2.72rem;
  line-height: 1.04;
}

h2 {
  max-width: 36rem;
  font-size: 1.24rem;
  line-height: 1.25;
}

.lead {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.trust-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  position: relative;
  min-height: 40px;
  display: grid;
  align-items: center;
  padding: 9px 12px 9px 38px;
  border: 1px solid #d9e1db;
  border-radius: 8px;
  color: #324139;
  background: #fbfcf8;
  font-size: 0.95rem;
  line-height: 1.35;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(31, 90, 75, 0.12);
}

.check-form {
  display: grid;
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: #4d5d55;
  font-size: 0.86rem;
  font-weight: 780;
}

textarea,
input[type="text"],
input[type="file"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c8d2ca;
  border-radius: 7px;
  color: var(--ink);
  background: #ffffff;
}

textarea,
input[type="text"] {
  padding: 11px 12px;
}

textarea {
  min-height: 240px;
  resize: vertical;
  line-height: 1.5;
}

textarea:focus,
input[type="text"]:focus,
input[type="file"]:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(47, 115, 184, 0.25);
  outline-offset: 2px;
}

input[type="file"] {
  padding: 9px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.72fr);
  gap: 14px;
}

.file-field small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.privacy-details {
  border: 1px solid #d9e1db;
  border-radius: 7px;
  background: #fbfcf8;
}

.privacy-details summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.privacy-details p {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-line;
}

.consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #405149;
  font-size: 0.9rem;
  line-height: 1.45;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  background: var(--green);
  font-weight: 850;
  cursor: pointer;
}

button:hover {
  background: var(--green-strong);
}

button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.result,
.result-block {
  display: grid;
  gap: 12px;
}

.result:empty {
  display: none;
}

.result-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.result-block.error {
  border-color: #e0b1aa;
  background: var(--danger-bg);
}

.result-block.error strong {
  color: var(--danger);
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-meta span {
  padding: 5px 9px;
  border: 1px solid #c8d7cf;
  border-radius: 999px;
  color: var(--green-strong);
  background: #eef5f1;
  font-size: 0.78rem;
  font-weight: 800;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.55;
}

.privacy-shell {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 28px 18px 44px;
}

.privacy-panel {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.privacy-text {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand,
  .product-nav,
  .language-nav {
    justify-content: center;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    position: static;
    min-height: auto;
  }

  h1 {
    max-width: 18ch;
    font-size: 2.18rem;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 12px;
  }

  .product-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-nav a {
    padding-inline: 8px;
    text-align: center;
  }

  .app-shell,
  .privacy-shell {
    padding: 16px 10px 28px;
  }

  .hero-panel,
  .check-panel,
  .privacy-panel {
    padding: 16px;
  }

  h1 {
    font-size: 1.88rem;
  }

  h2 {
    font-size: 1.08rem;
  }

  textarea {
    min-height: 210px;
  }

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