:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #5d6475;
  --border: #d9deea;
  --accent: #183b7a;
  --accent-soft: #eef3ff;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.page {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 20px;
}

.shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(20px, 5vw, 40px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8faff;
}

.lang-switch__button {
  min-height: 36px;
  min-width: 48px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0 14px;
}

.lang-switch__button.is-active {
  background: var(--accent);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin: 20px 0 16px;
  font-size: clamp(1.9rem, 3.8vw, 2.25rem);
  line-height: 1.15;
}

p {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.site-nav {
  margin-top: 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--accent-soft);
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  text-decoration: none;
  border-color: #c2cdf3;
  background: #e2ebff;
}

.rule {
  margin: 28px 0 20px;
  border: 0;
  border-top: 1px solid var(--border);
}

.stack {
  margin-top: 20px;
}

.section-title {
  margin: 24px 0 12px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.subsection-title {
  margin: 20px 0 10px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.principles {
  display: grid;
  gap: 12px;
}

.principle {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcff;
}

.principle strong {
  font-size: 1rem;
  color: var(--text);
}

.principle span {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.contact-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcff;
}

.contact-item dt {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-item dd {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  font-weight: 700;
}

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

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

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

.field span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  padding: 12px 14px;
}

.field textarea {
  resize: vertical;
  min-height: 180px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid #9bb4ff;
  outline-offset: 2px;
  border-color: #9bb4ff;
}

.field-full {
  grid-column: 1 / -1;
}

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

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.form-actions button {
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.form-actions button:hover,
.form-actions button:focus-visible {
  background: #102e62;
  border-color: #102e62;
}

.footer {
  padding-top: 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 920px);
  margin: 12px auto 0;
  padding: 0 20px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

.site-nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8faff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-nav-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.site-nav-toggle__icon span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-nav-backdrop {
  display: none;
}

@media (max-width: 640px) {
  .topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
  }

  .topbar {
    position: relative;
    z-index: 50;
  }

  .top-actions {
    justify-content: flex-end;
  }

  .site-nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    width: min(82vw, 280px);
    height: 100vh;
    margin-top: 0;
    padding: 84px 16px 20px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    box-shadow: 12px 0 30px rgba(15, 23, 42, 0.12);
    transform: translateX(-100%);
    transition: transform 180ms ease;
    pointer-events: none;
  }

  .site-nav.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .site-nav a {
    width: 100%;
  }

  .site-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(15, 23, 42, 0.38);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 180ms ease;
  }

  .site-nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  body.nav-open {
    overflow: hidden;
  }

  .page {
    padding: 12px;
  }

  .shell {
    border-radius: 12px;
  }

  .nav a {
    width: 100%;
  }

  .contact-item {
    padding: 12px 14px;
  }

  .principle {
    padding: 12px 14px;
  }

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

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 12px 20px;
  }

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