:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f2f4f7;
  --text: #172033;
  --muted: #667085;
  --primary: #2457d6;
  --primary-hover: #1d46ad;
  --border: #e4e7ec;
  --border-strong: #cfd5de;
  --error: #c2413b;
  --success: #16856b;
  --warning: #b7791f;
  --focus: rgba(36, 87, 214, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
.beta-banner {
  background: #fff7ed;
  color: #9a3412;
  border-bottom: 1px solid #fed7aa;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
a { color: var(--primary); }
.wrap {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: 24px 0 32px;
}
.hero {
  padding: 12px 0 36px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.hero-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.site-topnav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-topnav-inner {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 6px 0;
  position: relative;
}
.site-topnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
}
.site-topnav-brand img {
  width: 42px;
  height: auto;
  display: block;
}
.site-topnav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.site-topnav-menu-icon {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.site-topnav-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.site-topnav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 18px;
}
.site-topnav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  padding: 10px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(36, 87, 214, 0.12);
}
.site-topnav-links a:hover {
  color: var(--text);
}
.site-topnav-links a.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.site-topnav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(36, 87, 214, 0.12);
}
.site-topnav-contact:hover {
  background: var(--surface-soft);
}
body.site-nav-open {
  overflow: hidden;
}
@media (max-width: 760px) {
  .site-topnav-menu-btn {
    display: inline-flex;
    margin-left: auto;
  }
  .site-topnav-panel {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    width: min(100vw - 24px, 980px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.12);
    z-index: 210;
  }
  .site-topnav-panel.is-open {
    display: flex;
  }
  .site-topnav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .site-topnav-links a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    min-height: 48px;
  }
  .site-topnav-links a.is-active {
    border-bottom-color: var(--border);
    background: var(--surface-soft);
  }
  .site-topnav-contact {
    margin: 10px 12px 0;
    justify-content: center;
  }
}
.logo {
  width: 76px;
  height: auto;
  display: block;
}
.hero-copy { max-width: 720px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}
.lang-switch label { font-weight: 600; }
main { padding-top: 28px; }
.card {
  margin-bottom: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.card h2,
.card h3,
.card h4 { color: var(--text); }
.form-card {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}
.form-card > h2 {
  margin: 0 0 4px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
label { font-weight: 650; }
.req { color: var(--error); }
input[type="text"],
input[type="url"],
input[type="email"],
textarea,
input[type="file"],
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font: inherit;
}
textarea { resize: vertical; }
input::placeholder,
textarea::placeholder { color: #98a2b3; }
input:hover,
textarea:hover,
select:hover { border-color: #aab2bf; }
input:focus,
textarea:focus,
select:focus,
.btn:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--primary);
}
.row.checkbox {
  display: block;
  margin-bottom: 12px;
}
.row.checkbox label {
  font-weight: 500;
  color: var(--muted);
}
.row.checkbox input { margin-right: 7px; }
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-soft);
  border-color: #aab2bf;
}
.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.field-error {
  min-height: 1.2em;
  margin: 0;
  color: var(--error);
  font-size: 0.9rem;
}
.error-summary {
  margin: 14px 0;
  padding: 12px 14px;
  color: #8b1e1a;
  background: #fff5f4;
  border: 1px solid #f0c7c4;
  border-radius: 8px;
}
.error-summary p { margin: 0 0 6px; font-weight: 700; }
.error-summary ul { margin: 0; padding-left: 18px; }
.optional-section {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.optional-section summary {
  cursor: pointer;
  font-weight: 650;
}
.optional-row { margin-top: 12px; }
.breadcrumb {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb span {
  position: relative;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}
.breadcrumb span:not(:last-child)::after {
  content: "→";
  position: absolute;
  left: calc(100% + 7px);
  color: #c0c5ce;
}
.breadcrumb .active { color: var(--primary); }
.loading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 3px;
  border: 2px solid #d9e1f5;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-steps {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.info-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.info-sections .card { margin: 0; }
.info-sections h2 {
  margin-top: 0;
  font-size: 1.08rem;
}
.info-sections ul,
.info-sections ol {
  margin-bottom: 0;
  padding-left: 20px;
}
.results-card {
  margin-top: 28px;
  padding: 28px;
}
.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.results-heading h2 {
  margin: 0;
  font-size: 1.8rem;
}
.report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}
.report-download-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.report-format-select {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.price {
  margin-bottom: 8px;
  font-weight: 750;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding: 24px 0 8px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}
.footer-support {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 4px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.footer-support-text {
  margin: 0;
  max-width: 520px;
  color: var(--text);
  font-size: 0.92rem;
}
.btn-coffee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #ffdd00;
  color: #1a1200;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #e6c200;
}
.btn-coffee:hover {
  background: #ffe566;
  color: #1a1200;
}
.site-footer p { margin: 0; }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: min(360px, calc(100vw - 40px));
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.14);
}
.toast-bar {
  height: 3px;
  background: #e7ecf6;
}
.toast-bar-fill {
  height: 100%;
  background: var(--primary);
  transition: width 220ms ease;
}
.toast-msg { padding: 12px 14px; }
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 24, 40, 0.48);
}
.modal-card {
  width: min(100%, 520px);
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.18);
}
.modal-card h3 { margin-top: 0; }
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
@media (max-width: 700px) {
  .wrap {
    width: min(100% - 24px, 980px);
    padding-top: 14px;
  }
  .hero { padding-bottom: 28px; }
  .hero-nav { margin-bottom: 32px; }
  .hero h1 { font-size: 2.2rem; }
  .lang-switch label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .card { padding: 18px; }
  .info-sections { grid-template-columns: 1fr; }
  .results-heading,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .report-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .report-actions .btn { flex: 1 1 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
