:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #f6f6f6;
  --surface-strong: #ececec;
  --text: #151515;
  --muted: #666666;
  --border: #d7d7d7;
  --focus: #1a5fb4;
  --header-height: 82px;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--background);
  color: var(--text);
}

body {
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.site-shell {
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.site-header {
  position: relative;
  z-index: 10;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
}

.header-inner {
  width: min(1600px, 100%);
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.primary-navigation a {
  position: relative;
  padding: 12px 11px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.primary-navigation a + a::before {
  content: "|";
  position: absolute;
  left: -2px;
  color: #8b8b8b;
}

.primary-navigation a:hover,
.primary-navigation a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 9px 13px;
  background: var(--background);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.frame-container {
  min-height: 0;
  background: #ffffff;
}

.frame-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.site-footer {
  position: relative;
  z-index: 9;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner {
  width: min(1600px, 100%);
  min-height: 40px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-navigation {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-navigation a {
  text-decoration: none;
}

.footer-navigation a:hover,
.footer-navigation a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.noscript-message {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: #fff4ce;
  border: 1px solid #d6b656;
}

.content-page {
  min-height: 100vh;
  padding: clamp(24px, 5vw, 64px) 20px;
}

.profile-card,
.contact-layout {
  width: min(1050px, 100%);
  margin: 0 auto;
}

.profile-card {
  display: grid;
  justify-items: center;
  gap: 32px;
  text-align: center;
}

.start-image,
.contact-image {
  display: block;
  width: min(100%, 900px);
  height: auto;
  object-fit: contain;
}

.contact-summary h1,
.contact-intro h1,
.form-card h2 {
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.contact-summary h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.profession {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.1rem;
}

address {
  font-style: normal;
}

.button-link,
.form-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #222222;
  border-radius: 4px;
  padding: 10px 18px;
  background: #222222;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover,
.form-actions button:hover:not(:disabled) {
  background: #444444;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.contact-intro {
  display: grid;
  gap: 24px;
}

.contact-intro .contact-image {
  width: 100%;
}

.form-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: clamp(22px, 4vw, 36px);
  background: rgba(246, 246, 246, 0.9);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.form-intro {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.form-row {
  margin-bottom: 1.15rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid #a9a9a9;
  border-radius: 4px;
  padding: 11px 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.form-row textarea {
  resize: vertical;
}

.form-row input[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] {
  border-color: #b42318;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.turnstile-container {
  min-height: 65px;
  margin: 1.25rem 0;
}

.status-message {
  margin: 0;
  color: var(--muted);
}

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

.form-actions button {
  cursor: pointer;
}

.form-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-status {
  min-height: 1.5rem;
  margin-top: 1rem;
  font-weight: 700;
}

.form-status.success {
  color: #176b34;
}

.form-status.error {
  color: #b42318;
}

.legal-content {
  width: min(820px, 100%);
  margin: 0 auto;
}

.legal-content h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.15;
}

.legal-content h2 {
  margin: 2rem 0 0.55rem;
  font-size: 1.18rem;
  line-height: 1.3;
}

.legal-content p,
.legal-content ul {
  margin: 0.55rem 0;
}

.legal-content ul {
  padding-left: 1.3rem;
}

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

.legal-actions {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 1100px) {
  :root {
    --header-height: 68px;
  }

  .header-inner {
    min-height: var(--header-height);
    padding: 10px 16px;
  }

  .footer-inner {
    padding: 8px 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 10px 16px 18px;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
  }

  .primary-navigation.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .primary-navigation a {
    padding: 11px 8px;
  }

  .primary-navigation a + a::before {
    content: none;
  }
}

@media (max-width: 760px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-intro {
    text-align: center;
  }

  .primary-navigation.is-open {
    grid-template-columns: 1fr;
  }

  .content-page {
    padding: 24px 14px 40px;
  }

  .footer-inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 14px;
    text-align: center;
  }

  .footer-navigation {
    gap: 14px;
  }
}
