:root {
  color-scheme: light;
  --page-bg: #f7faf8;
  --band-bg: #eef5f2;
  --panel-bg: #ffffff;
  --text: #1f2a2e;
  --muted: #5f6f73;
  --line: #d8e1df;
  --line-strong: #b7c8c4;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --amber: #c47f20;
  --amber-soft: #f7e5c5;
  --blue: #315f87;
  --blue-soft: #dbeaf5;
  --danger: #9f3a32;
  --focus: #c47f20;
  --shadow: 0 18px 50px rgba(31, 42, 46, 0.08);
  --shadow-soft: 0 8px 28px rgba(31, 42, 46, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(31, 42, 46, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31, 42, 46, 0.035) 1px, transparent 1px),
    var(--page-bg);
  background-size: 56px 56px;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent-strong);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 40;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
  font-weight: 600;
}

h1 {
  max-width: 12ch;
  font-size: 3.35rem;
}

h2 {
  font-size: 1.82rem;
}

h3 {
  font-size: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner,
.section-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-width: 0;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 156px;
  max-width: 42vw;
  height: auto;
}

.primary-nav,
.header-actions,
.button-row,
.footer-inner nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.primary-nav {
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
}

.primary-nav a,
.lang-link,
.footer-inner a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 620;
  text-decoration: none;
}

.primary-nav a:hover,
.footer-inner a:hover {
  color: var(--accent-strong);
}

.primary-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover {
  border-color: var(--accent);
}

.lang-link {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
}

.lang-link.active {
  border-color: var(--line-strong);
  color: var(--text);
  background: #ffffff;
}

.section-band {
  padding: 96px 0;
}

.muted-band {
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.045) 1px, transparent 1px),
    var(--band-bg);
  background-size: 42px 42px;
}

.hero {
  display: grid;
  min-height: 68vh;
  align-items: center;
  padding: 88px 0;
  background:
    linear-gradient(90deg, rgba(49, 95, 135, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(49, 95, 135, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(247, 250, 248, 0.42));
  background-size: 64px 64px, 64px 64px, auto;
}

.privacy-hero {
  min-height: auto;
}

.privacy-hero h1 {
  max-width: 920px;
}

.hero-grid,
.section-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 64px;
  align-items: center;
}

.hero-grid > *,
.section-two-column > * {
  min-width: 0;
}

.hero-copy {
  min-width: 0;
  max-width: 740px;
}

.hero-subtitle {
  margin-top: 16px;
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 620;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-text,
.lead {
  max-width: 760px;
  margin-top: 20px;
  font-size: 1.02rem;
  line-height: 1.72;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 620;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button-row {
  flex-wrap: wrap;
  margin-top: 32px;
}

.button-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 620;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button-link:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.button-link.secondary {
  background: #ffffff;
  color: var(--accent-strong);
}

.button-link.secondary:hover {
  background: #f1f7f5;
}

.button-link.tertiary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.button-link.placeholder-link {
  border-color: var(--line-strong);
  background: var(--blue-soft);
  color: var(--text);
  cursor: default;
}

.button-link.placeholder-link:hover {
  background: var(--blue-soft);
  transform: none;
}

.button-link.compact {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.access-note {
  max-width: 640px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 620;
}

.operation-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 390px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.96)),
    #ffffff;
  box-shadow: var(--shadow);
}

.operation-preview::after {
  position: absolute;
  right: 24px;
  bottom: 62px;
  width: 34%;
  height: 2px;
  background: var(--blue);
  box-shadow:
    -56px -44px 0 var(--blue),
    -112px -70px 0 var(--blue);
  content: "";
  transform: rotate(-23deg);
  transform-origin: right center;
}

.preview-toolbar,
.preview-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 620;
  text-transform: uppercase;
}

.preview-toolbar span,
.preview-legend span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.preview-grid {
  display: grid;
  flex: 1 1 auto;
  min-height: 286px;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  min-width: 0;
}

.preview-grid span {
  border: 1px solid #dbe4e2;
  border-radius: 6px;
  background: #f4f8f6;
}

.preview-grid .warm {
  background: #d9eee7;
}

.preview-grid .hot {
  background: var(--amber-soft);
}

.preview-grid .route {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-low {
  background: #f4f8f6;
  border: 1px solid var(--line-strong);
}

.legend-mid {
  background: #d9eee7;
}

.legend-high {
  background: var(--amber-soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.section-two-column h2 {
  margin-bottom: 10px;
}

.card-grid,
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.screenshot-card {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-bg);
  box-shadow: 0 0 0 rgba(31, 42, 46, 0);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.info-card:hover,
.screenshot-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.info-card h3 {
  margin-bottom: 10px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-weight: 620;
  counter-increment: steps;
  box-shadow: inset 4px 0 0 rgba(15, 118, 110, 0.18);
}

.step-list li::before {
  display: block;
  margin-bottom: 16px;
  color: var(--amber);
  font-size: 0.85rem;
  content: counter(steps, decimal-leading-zero);
}

.short-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-list,
.plain-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.metric-list li,
.plain-list li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-weight: 620;
}

.metric-list li {
  position: relative;
  padding-left: 34px;
}

.metric-list li::before {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  transform: translateY(-50%);
}

.screenshot-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.13) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 118, 110, 0.13) 1px, transparent 1px),
    linear-gradient(135deg, rgba(49, 95, 135, 0.18), transparent 46%),
    #f6faf8;
  background-size: 22px 22px;
}

.screenshot-placeholder span {
  max-width: 82%;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 620;
  text-align: center;
}

.screenshot-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #f6faf8;
}

.screenshot-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

figcaption {
  color: var(--text);
  font-weight: 620;
}

.contact-band {
  background:
    linear-gradient(90deg, rgba(196, 127, 32, 0.08) 1px, transparent 1px),
    #f4f0e8;
  background-size: 40px 40px;
}

.contact-forms {
  display: grid;
  gap: 18px;
}

.form-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-tab {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-weight: 620;
  cursor: pointer;
}

.form-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.form-panel.hidden {
  display: none;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.form-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.form-close {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.form-close:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.form-intro {
  max-width: 720px;
}

.form-intro h3 {
  margin-bottom: 8px;
}

.direct-contact {
  margin-top: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 620;
}

.direct-contact a {
  color: var(--accent-strong);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field,
.consent-field {
  display: grid;
  gap: 8px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label,
.consent-field {
  color: var(--text);
  font-weight: 620;
}

.form-field span[aria-hidden="true"] {
  color: var(--danger);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
}

.form-field input {
  min-height: 44px;
  padding: 0 12px;
}

.form-field textarea {
  resize: vertical;
  min-height: 132px;
  padding: 12px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(196, 127, 32, 0.28);
  outline-offset: 2px;
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"],
.consent-field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  min-height: 1.25em;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 620;
}

.consent-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  line-height: 1.4;
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.form-actions .button-link {
  border: 0;
  cursor: pointer;
}

.form-actions .button-link:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.form-status {
  color: var(--accent-strong);
  font-weight: 620;
}

.turnstile-field {
  min-height: 70px;
}

.turnstile-field[hidden] {
  display: none;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  color: var(--text);
  font-weight: 700;
}

.footer-brand span {
  color: var(--muted);
  font-weight: 620;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.scaffold-panel {
  max-width: 720px;
  padding: 28px;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.scaffold-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .primary-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .hero-grid,
  .section-two-column {
    grid-template-columns: 1fr;
  }

  .operation-preview {
    min-height: 300px;
  }

  .card-grid,
  .compact-grid,
  .screenshot-grid,
  .step-list,
  .short-steps,
  .metric-list,
  .plain-list,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .site-shell {
    width: calc(100vw - 32px);
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.52rem;
  }

  .hero-subtitle {
    max-width: 100%;
    font-size: 1.16rem;
    overflow-wrap: anywhere;
  }

  .hero-text,
  .lead {
    max-width: 100%;
  }

  .section-band {
    padding: 68px 0;
  }

  .hero-copy,
  .operation-preview,
  .preview-grid {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy {
    overflow: visible;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .header-actions {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .header-actions .button-link.compact {
    display: none;
  }

  .primary-nav a {
    white-space: nowrap;
  }

  .button-row {
    width: 100%;
  }

  .button-row .button-link {
    width: 100%;
  }

  .operation-preview {
    padding: 14px;
    overflow: hidden;
  }

  .preview-toolbar,
  .preview-legend {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .preview-grid {
    gap: 6px;
    min-height: 250px;
  }

  .operation-preview::after {
    right: 18px;
    bottom: 56px;
    width: 44%;
  }

  .card-grid,
  .compact-grid,
  .screenshot-grid,
  .step-list,
  .short-steps,
  .metric-list,
  .plain-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 18px;
  }

  .form-actions .button-link {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner nav {
    align-items: flex-start;
    flex-direction: column;
  }
}
