
:root {
  --bg: #080808;
  --bg-soft: rgba(209, 176, 97, 0.075);
  --panel: rgba(255, 255, 255, 0.045);
  --panel-border: rgba(255, 255, 255, 0.082);
  --field: rgba(255, 255, 255, 0.022);
  --field-border: rgba(255, 255, 255, 0.09);
  --text: #ede6dc;
  --text-soft: #b9afa3;
  --text-soft-2: rgba(185, 175, 163, 0.92);
  --accent: #d1b061;
  --accent-soft: rgba(209, 176, 97, 0.24);
  --accent-line: rgba(209, 176, 97, 0.86);
  --danger: #b66e68;
  --danger-flash: #b84a4f;
  --shell: 1100px;
  --panel-width: 438px;
  --header-h: 86px;
  --footer-h: 88px;
  --brand-width: 152px;
  --brand-underline-width: 78px;
  --hero-font: ui-serif, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 30px 84px rgba(0, 0, 0, 0.46);
  --app-height: 100svh;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; background: var(--bg); }
[hidden] { display: none !important; }
body {
  min-height: var(--app-height);
  height: var(--app-height);
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--text);
  font-family: var(--body-font);
  background: radial-gradient(circle at top center, var(--bg-soft), transparent 36%), linear-gradient(180deg, #0a0a0a 0%, var(--bg) 100%);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.022;
  background-image: linear-gradient(to right, rgba(255,255,255,0.4) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 3px 3px;
}
body > *:not(.noise):not(.loading-overlay):not(.menu-overlay) { position: relative; z-index: 1; }
.shell { width: min(var(--shell), calc(100% - 56px)); margin: 0 auto; }
.site-header {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 6px;
}
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--brand-width);
  min-width: var(--brand-width);
  height: 28px;
  padding-bottom: 11px;
}
.brand::after {
  content: "";
  position: absolute;
  left: 50%;
  width: var(--brand-underline-width);
  transform: translateX(-50%);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(209,176,97,0.08) 0%, rgba(209,176,97,0.78) 18%, rgba(209,176,97,0.92) 50%, rgba(209,176,97,0.78) 82%, rgba(209,176,97,0.08) 100%);
}
.brand img, .brand svg { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
.header-slot {
  min-width: 152px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.header-desktop-spacer { display: block; width: 136px; min-height: 1px; }
.menu-toggle {
  display: none !important;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  color: var(--text);
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
  opacity: 0.88;
}
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.menu-overlay.active { display: block; opacity: 1; visibility: visible; pointer-events: auto; }
.menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.78);
  backdrop-filter: blur(6px);
}
.menu-panel {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 118px 0 34px;
}
.menu-list {
  display: grid;
  gap: 18px;
  justify-items: center;
  align-content: center;
}
.menu-link {
  font-family: var(--hero-font);
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--text);
}
.menu-close {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(209,176,97,0.34);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
}
.main-scene {
  min-height: calc(var(--app-height) - var(--header-h) - var(--footer-h));
  display: grid;
  align-items: center;
  padding: 8px 0 12px;
}
.scene-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--panel-width);
  gap: clamp(44px, 5.6vw, 78px);
  align-items: center;
}
.scene-grid--single {
  grid-template-columns: 1fr;
  justify-items: center;
}
.scene-copy { max-width: 560px; min-width: 0; }
.scene-copy--center { text-align: center; max-width: 760px; justify-self: center; }
.scene-panel { width: var(--panel-width); max-width: 100%; justify-self: end; }
.hero {
  --hero-line-height: 0.96;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.012em;
  font-family: var(--hero-font);
  font-weight: 600;
  font-size: clamp(4.8rem, 8.2vw, 6.8rem);
  line-height: var(--hero-line-height);
  letter-spacing: -0.032em;
}
.hero-line {
  display: block;
  min-height: calc(var(--hero-line-height) * 1em);
  line-height: var(--hero-line-height);
}
.hero-line + .hero-line { margin-top: 0; }
.hero.animated { visibility: hidden; }
.hero.animated.is-ready, .hero.animated.is-seen, .hero.hero--stamp { visibility: visible; }
.hero-type {
  display: block;
  min-height: calc(var(--hero-line-height) * 1em);
  line-height: var(--hero-line-height);
  white-space: nowrap;
}
.hero-type .cursor {
  display: inline-block;
  width: 0.074em;
  height: 0.78em;
  margin-left: 0.08em;
  transform: translateY(0.08em);
  background: rgba(237, 230, 220, 0.62);
  animation: cursor-blink 0.9s step-end infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }
.hero.hero--stamp { transform-origin: 50% 50%; }
.hero.hero--stamp.is-stamped { animation: stamp-hit 2100ms cubic-bezier(.22,.82,.18,1) both; }
@keyframes stamp-hit {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(1.085);
    filter: blur(1.2px);
    color: var(--text);
  }
  30% {
    opacity: 1;
    transform: translateY(3px) scale(0.975);
    color: var(--danger-flash);
    filter: blur(0);
  }
  58% {
    transform: translateY(0) scale(1.01);
    color: var(--danger-flash);
  }
  100% {
    transform: translateY(0) scale(1);
    color: var(--text);
    filter: blur(0);
  }
}
.lead {
  margin: 22px 0 0;
  max-width: 560px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.55;
}
.scene-copy--center .lead { max-width: 620px; margin-left: auto; margin-right: auto; }
.meta-row {
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(185,175,163,0.72);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(209,176,97,0.62);
}
.glass-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  padding: 22px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.site-form { display: grid; gap: 14px; }
.site-form label { display: grid; gap: 8px; }
.site-form label span {
  font-size: 13px;
  line-height: 1.2;
  color: var(--text-soft-2);
}
input, textarea {
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: 16px;
  background: var(--field);
  color: var(--text);
  padding: 14px 15px;
  appearance: none;
}
input { min-height: 50px; }
textarea { resize: none; min-height: 118px; }
input::placeholder, textarea::placeholder { color: rgba(185,175,163,0.45); }
input:focus, textarea:focus {
  outline: none;
  border-color: rgba(209,176,97,0.56);
  box-shadow: 0 0 0 4px rgba(209,176,97,0.08);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 136px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.024);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, opacity 160ms ease;
}
.button:hover { transform: translateY(-1px); border-color: rgba(209,176,97,0.54); }
.button.primary {
  background: linear-gradient(180deg, rgba(209,176,97,0.23), rgba(209,176,97,0.11));
  border-color: rgba(209,176,97,0.38);
}
.button.full { width: 100%; }
.button:disabled { opacity: 0.68; cursor: wait; transform: none; }
.inline-status {
  min-height: 34px;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}
.inline-status.is-error { color: var(--danger); }
.inline-status.is-success { color: #9fb695; }
.site-footer {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 5;
  width: min(var(--shell), calc(100% - 56px));
  transform: translateX(-50%);
  min-height: var(--footer-h);
  display: grid;
  align-content: end;
  padding: 10px 0 22px;
}
.footer-rule {
  width: min(100%, 520px);
  justify-self: start;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(209,176,97,0.28) 16%, var(--accent-line) 50%, rgba(209,176,97,0.28) 84%, transparent 100%);
}
.footer-meta {
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-meta p, .footer-meta a {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-soft);
}
.footer-meta a:hover { color: var(--accent); }
.footer-meta p { max-width: 78%; letter-spacing: 0.01em; }
.footer-meta .copyright { white-space: nowrap; }
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(5px);
}
.loading-overlay.active { display: grid; }
.overlay-card { display: grid; justify-items: center; gap: 16px; }
.spinner {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
.seal-mark {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 1px solid rgba(209,176,97,0.48);
  box-shadow: 0 0 0 8px rgba(209,176,97,0.055), inset 0 0 0 1px rgba(255,255,255,0.05);
  animation: pulse-seal 1s ease-in-out infinite;
}
.seal-mark::before, .seal-mark::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 1px solid rgba(209,176,97,0.26);
}
.seal-mark::after {
  inset: 27px 20px;
  height: 1px;
  top: 32px;
  border: 0;
  background: rgba(237,230,220,0.56);
}
.loading-text {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-seal {
  0%, 100% { transform: scale(1); opacity: 0.84; }
  50% { transform: scale(1.03); opacity: 1; }
}
.page-home .scene-copy { max-width: 540px; }
.page-home .lead { max-width: 420px; }
.page-contact .scene-copy, .page-new-client .scene-copy { max-width: 520px; }
.page-denied .scene-copy--center, .page-contact-sent .scene-copy--center { max-width: 700px; }
@media (prefers-reduced-motion: reduce) {
  .spinner, .seal-mark, .hero-type .cursor, .hero.hero--stamp.is-stamped { animation: none !important; }
}
@media (max-width: 980px) {
  :root { --header-h: 82px; --footer-h: 90px; --brand-width: 146px; --brand-underline-width: 72px; }
  .shell { width: min(var(--shell), calc(100% - 42px)); }
  .scene-grid { gap: 28px; }
  .hero { font-size: clamp(3.8rem, 9vw, 5.7rem); }
}
@media (max-width: 768px) {
  :root { --header-h: 72px; --footer-h: 86px; --brand-width: 108px; --brand-underline-width: 54px; }
  html, body {
    height: var(--app-height);
    min-height: var(--app-height);
    overflow: hidden;
  }
  .shell { width: calc(100% - 28px); }
  .site-header {
    min-height: var(--header-h);
    padding: 14px 0 4px;
  }
  .brand {
    width: var(--brand-width);
    min-width: var(--brand-width);
    height: 20px;
    padding-bottom: 8px;
  }
  .header-slot { min-width: 46px; }
  .header-desktop-action, .header-desktop-spacer { display: none; }
  .menu-toggle { display: inline-flex !important; }
  .menu-panel { padding-top: 102px; padding-bottom: 24px; }
  .main-scene {
    min-height: 0;
    height: calc(var(--app-height) - var(--header-h) - var(--footer-h));
    padding: 2px 0 6px;
  }
  .scene-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: min-content;
    align-content: center;
    justify-items: stretch;
    gap: clamp(10px, 1.8vh, 16px);
  }
  .scene-copy, .scene-copy--center, .scene-panel {
    max-width: 100%;
    width: 100%;
    justify-self: stretch;
  }
  .scene-copy, .scene-copy--center { text-align: left; }
  .scene-grid--single .scene-copy--center { text-align: center; }
  .hero {
    --hero-line-height: 0.95;
    font-size: clamp(2.12rem, 8vw, 2.7rem);
    line-height: var(--hero-line-height);
    letter-spacing: -0.023em;
    gap: 0.01em;
  }
  .lead {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.42;
    max-width: 100%;
  }
  .meta-row {
    margin-top: 14px;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .glass-panel {
    padding: 12px;
    border-radius: 20px;
  }
  .site-form { gap: 9px; }
  .site-form label { gap: 5px; }
  .site-form label span, .inline-status, .loading-text, .footer-meta p, .footer-meta a { font-size: 11px; }
  input { min-height: 42px; }
  input, textarea {
    font-size: 16px;
    padding: 10px 13px;
  }
  textarea { min-height: 68px; }
  .button {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 14px;
  }
  .site-footer {
    width: calc(100% - 28px);
    min-height: var(--footer-h);
    padding: 8px 0 calc(14px + env(safe-area-inset-bottom));
  }
  .footer-rule { width: 100%; }
  .footer-meta {
    margin-top: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0;
  }
  .footer-meta p { max-width: none; }
  .footer-meta a { display: none; }
}
@media (max-width: 380px) {
  :root { --header-h: 68px; --footer-h: 82px; --brand-width: 102px; --brand-underline-width: 50px; }
  .brand { min-width: var(--brand-width); width: var(--brand-width); }
  .hero { font-size: clamp(1.92rem, 7.8vw, 2.42rem); --hero-line-height: 0.95; }
  .glass-panel { padding: 11px; }
  input { min-height: 40px; }
  textarea { min-height: 60px; }
  .button { min-height: 42px; }
}

.menu-overlay[hidden], .loading-overlay[hidden] { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

@media (max-width: 768px) {
  body.is-keyboard-open .site-footer { opacity: 0; visibility: hidden; pointer-events: none; }
  body.is-keyboard-open .main-scene { padding-bottom: 0; }
}
