html { scroll-padding-top: 32px; }
.page-shell { width: calc(100% - 112px); max-width: 1168px; margin: 0 auto; }
.site-header { max-width: 1400px; height: 110px; padding: 0 60px; gap: 38px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 650; letter-spacing: -1.1px; padding: 0; }
.wordmark img { width: 27px; height: 27px; border-radius: 7px; }
.wordmark .brand-name { color: var(--ink); }
.wordmark .brand-name > span { color: var(--ink); font-weight: 450; }
.main-nav { display: flex; align-items: center; gap: 29px; margin-left: auto; }
.main-nav a { font-size: 12px; font-weight: 450; color: var(--muted); transition: color .2s; }
.main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; padding: 14px 23px; border: 1px solid transparent; border-radius: 99px; font-size: 12px; line-height: 1.4; font-weight: 500; letter-spacing: .01em; transition: background .2s, border-color .2s, transform .2s; }
.button-primary { background: var(--accent); color: var(--surface-raised); border-color: var(--accent); }
.button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.button-secondary { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.button-secondary:hover { background: var(--soft); border-color: var(--accent); }
.header-cta { min-height: 40px; padding: 10px 19px; font-size: 11px; }
.language-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 35px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--label); font-size: 11px; }
.menu-toggle { display: none; border: 0; width: 40px; height: 44px; padding: 12px 9px; background: none; }
.menu-toggle span { display: block; height: 1px; background: var(--ink); width: 20px; margin: 5px 0; }
.hero { margin-top: 18px; }
.hero-copy h1 .title-line { font-family: Inter, sans-serif; font-style: normal; font-size: 1em; font-weight: 480; color: var(--ink); letter-spacing: -.055em; margin: 0; }
.hero-copy h1 { font-size: clamp(44px, 5.15vw, 72px); }
html[lang="en"] .hero-copy h1 { font-size: clamp(32px, 3.4vw, 48px); }
.hero-copy > p { max-width: 452px; font-size: 15px; color: var(--muted); }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-controls { display: flex; align-items: center; justify-content: flex-end; gap: 22px; padding: 0 38px; margin-top: 4px; }
.hero-controls button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; border: 0; background: none; color: var(--label); padding: 0; font-size: 10px; }
.hero-controls button:hover { color: var(--ink); }
.hero-controls button:disabled { cursor: default; color: var(--muted); }
.flow-node { background: var(--page); }
.site-footer { padding: 60px 0 28px; }
.footer-main { display: flex; align-items: center; gap: 35px; }
.footer-main > p { color: var(--muted); font-size: 12px; }
.footer-email { margin-left: auto; color: var(--accent); font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 40px; font-size: 10px; color: var(--label); }
.footer-bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--ink); }
@media (min-width: 1550px) { .hero { margin-top: 28px; } }
@media (max-width: 1100px) {
  .site-header { height: 96px; padding: 0 34px; gap: 24px; }
  .main-nav { gap: 18px; }
  .header-actions { gap: 15px; }
  .hero-copy > p { font-size: 14px; }
  .hero-copy h1 { font-size: 56px; }
  html[lang="en"] .hero-copy h1 { font-size: 40px; }
  .hero-actions { gap: 9px; }
  .hero-actions .button { padding: 13px 17px; min-height: 44px; font-size: 11px; }
}
@media (max-width: 850px) {
  .page-shell { width: calc(100% - 56px); }
  .site-header { padding: 0 26px; }
  .main-nav { gap: 15px; }
  .main-nav a { font-size: 10px; }
  .header-actions { gap: 7px; }
  .header-cta { padding: 10px 14px; font-size: 10px; }
  .wordmark { font-size: 21px; gap: 7px; }
  .wordmark img { width: 23px; height: 23px; }
  .hero-copy h1 { font-size: 43px; }
  html[lang="en"] .hero-copy h1 { font-size: 32px; }
  .hero-copy > p { font-size: 13px; }
  .hero-controls { padding: 0 20px; }
}
@media (max-width: 700px) {
  .site-header { height: 84px; position: relative; }
  .header-actions { margin-left: auto; gap: 7px; }
  .header-cta { display: none; }
  .language-toggle { min-width: 42px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; z-index: 10; left: 18px; right: 18px; top: 74px; padding: 18px 22px; flex-direction: column; align-items: flex-start; gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--page); box-shadow: 0 14px 24px var(--shadow); }
  .main-nav[data-open="true"] { display: flex; }
  .main-nav a { width: 100%; padding: 13px 0; font-size: 13px; }
  .hero { margin-top: 0; }
  .hero-copy { top: 28px; }
  .hero-copy h1 { font-size: clamp(35px, 9.7vw, 52px); }
  html[lang="en"] .hero-copy h1 { font-size: clamp(32px, 8.2vw, 47px); }
  .hero-copy > p { font-size: 13px; max-width: 338px; line-height: 1.85; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .button { min-height: 44px; }
  .hero-controls { margin-top: 0; padding: 0; justify-content: center; }
  .hero-controls button { min-height: 44px; }
  .footer-main { flex-wrap: wrap; gap: 12px; }
  .footer-main > p { width: 100%; order: 3; margin: 0; }
  .footer-email { font-size: 12px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; padding-top: 30px; }
  .footer-bottom nav { gap: 18px; line-height: 1.7; }
}
@media (min-width: 701px) and (max-height: 800px) {
  .site-header { height: 76px; }
  .hero { margin-top: 2px; }
  .hero-copy h1 { font-size: clamp(40px, 4.4vw, 62px); }
  html[lang="en"] .hero-copy h1 { font-size: clamp(30px, 3.4vw, 48px); }
  .hero-copy > p { margin-top: 20px; }
  .hero-actions { margin-top: 22px; }
}
@media (max-width: 360px) {
  .diagram-stage { height: 1070px; }
  .flow-node { margin-top: 40px; }
}
