:root {
  --black: #07080D;
  --graphite: #171920;
  --graphite-layer: #262A36;
  --technical-line: rgba(255, 255, 255, .086);
  --technical-line-strong: rgba(255, 255, 255, .18);
  --white: #F5F7FA;
  --muted: #A4A9B5;
  --muted-deep: #6E7380;
  --cyan: #70E9D7;
  --cyan-deep: #46BFB3;
  --cta: linear-gradient(135deg, #71DED0, #5FB8C3);
  --display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", SFMono-Regular, Menlo, Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(.22, .76, .28, 1);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--black); }
body { min-width: 320px; margin: 0; background: var(--black); color: var(--white); font-family: var(--display); font-size: 16px; line-height: 1.55; }
body::before { position: fixed; z-index: 0; inset: 0; pointer-events: none; background-image: linear-gradient(var(--technical-line) 1px, transparent 1px), linear-gradient(90deg, var(--technical-line) 1px, transparent 1px); background-size: 64px 64px; content: ""; mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 74%); }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, p, dl, ol { margin-top: 0; }
::selection { background: var(--cyan); color: var(--black); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

.skip-link { position: fixed; z-index: 10; top: 16px; left: 16px; padding: 10px 14px; transform: translateY(-180%); background: var(--cyan); color: var(--black); font-size: 13px; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.contact-header, main, .contact-footer { position: relative; z-index: 1; width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.contact-header { min-height: 144px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--technical-line); }
.brand-lockup, .qr-brand { display: block; width: 142px; }
.brand-lockup img, .qr-brand img { width: 100%; height: auto; }
.qr-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--cyan); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.qr-link-mark { width: 16px; height: 16px; border: 1px solid var(--cyan); background: linear-gradient(90deg, transparent 42%, var(--cyan) 42% 58%, transparent 58%), linear-gradient(transparent 42%, var(--cyan) 42% 58%, transparent 58%); }
.qr-link:hover { color: var(--white); }
.qr-link:hover .qr-link-mark { border-color: var(--white); }

.contact-hero { display: flex; align-items: stretch; gap: clamp(44px, 8vw, 128px); padding: clamp(72px, 10vw, 136px) 0 clamp(64px, 8vw, 112px); border-bottom: 1px solid var(--technical-line); }
.hero-copy { flex: 1 1 56%; max-width: 640px; display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow, .system-label { margin-bottom: 18px; color: var(--cyan); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; line-height: 1.45; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 26px; height: 1px; background: currentColor; }
h1, h2 { margin-bottom: 0; color: var(--white); font-family: var(--display); font-weight: 700; letter-spacing: -.055em; line-height: .95; text-wrap: balance; }
h1 { max-width: 9ch; font-size: clamp(52px, 7.5vw, 100px); }
h2 { font-size: clamp(38px, 4.6vw, 62px); }
h1 em, h2 em { color: var(--cyan); font-style: normal; }
.intro { max-width: 51ch; margin: 30px 0 0; color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 0 20px; border: 1px solid transparent; font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; text-align: center; transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease); }
.button span { font-family: var(--mono); font-size: 15px; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--cta); color: var(--black); }
.button-primary:hover { background: #70E9D7; }
.button-secondary { border-color: var(--technical-line-strong); background: var(--graphite); color: var(--white); }
.button-secondary:hover { border-color: var(--cyan); background: var(--graphite-layer); color: var(--cyan); }
.appointment-status { display: flex; align-items: center; gap: 9px; margin: 26px 0 0; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.appointment-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }

.contact-register { flex: 1 1 360px; align-self: flex-end; max-width: 412px; border: 1px solid var(--technical-line-strong); background: var(--graphite); }
.register-heading { padding: 26px 28px 20px; border-bottom: 1px solid var(--technical-line); }
.register-heading .system-label { margin-bottom: 10px; }
.register-heading h2 { font-size: 25px; letter-spacing: -.03em; line-height: 1.05; }
.contact-list { margin: 0; }
.contact-list > div { display: grid; grid-template-columns: minmax(96px, .6fr) minmax(0, 1.4fr); gap: 16px; align-items: start; padding: 18px 28px; border-bottom: 1px solid var(--technical-line); }
.contact-list dt { color: var(--muted-deep); font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .1em; line-height: 1.55; }
.contact-list dd { min-width: 0; margin: 0; color: var(--white); font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a { border-bottom: 1px solid transparent; transition: color .16s var(--ease), border-color .16s var(--ease); }
.contact-list a:hover { border-color: var(--cyan); color: var(--cyan); }
.contact-list dd span { color: var(--cyan); font-family: var(--mono); }
.vcard-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 28px; background: var(--graphite-layer); color: var(--white); font-size: 13px; font-weight: 600; transition: background .18s var(--ease), color .18s var(--ease); }
.vcard-link strong { color: var(--cyan); font-family: var(--mono); font-size: 11px; letter-spacing: .09em; }
.vcard-link:hover { background: var(--cyan); color: var(--black); }
.vcard-link:hover strong { color: var(--black); }

.context-section { display: flex; gap: clamp(44px, 9vw, 150px); padding: clamp(68px, 9vw, 124px) 0; border-bottom: 1px solid var(--technical-line); }
.section-heading { flex: 1 1 36%; }
.context-body { flex: 1 1 56%; max-width: 620px; }
.context-body > p { margin-bottom: 36px; color: var(--white); font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; line-height: 1.45; }
.context-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--technical-line); border-left: 1px solid var(--technical-line); list-style: none; }
.context-points li { min-height: 174px; padding: 18px; border-right: 1px solid var(--technical-line); border-bottom: 1px solid var(--technical-line); background: rgba(23, 25, 32, .58); }
.context-points span { display: block; margin-bottom: 28px; color: var(--cyan); font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.context-points strong { display: block; color: var(--white); font-size: 14px; line-height: 1.35; }
.context-points p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.text-action { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--cyan); color: var(--cyan); font-size: 13px; font-weight: 600; transition: color .16s var(--ease), gap .16s var(--ease); }
.text-action span { font-family: var(--mono); }
.text-action:hover { gap: 17px; color: var(--white); }

.location-section { display: flex; align-items: end; justify-content: space-between; gap: 36px; padding: clamp(56px, 8vw, 100px) 0; }
.location-section > div { min-width: 0; }
.location-section .system-label { margin-bottom: 12px; }
.location-section address { min-width: 196px; margin: 0 0 4px; color: var(--muted); font-style: normal; font-size: 16px; line-height: 1.6; }
.location-section .button { flex: 0 0 auto; }

.contact-footer { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--technical-line); color: var(--muted-deep); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.contact-footer a { color: var(--muted); transition: color .16s var(--ease); }
.contact-footer a:hover { color: var(--cyan); }

.qr-page { min-height: 100svh; display: grid; place-items: center; padding: 32px 20px; }
.qr-page::before { mask-image: none; opacity: .72; }
.qr-card { position: relative; z-index: 1; width: min(100%, 520px); margin: auto; padding: 48px; border: 1px solid var(--technical-line-strong); background: var(--graphite); text-align: left; }
.qr-brand { width: 132px; margin-bottom: 42px; }
.qr-card h1 { max-width: 8ch; margin-bottom: 28px; font-size: clamp(46px, 10vw, 64px); }
.qr-surface { width: min(100%, 360px); margin: 0 0 24px; padding: 18px; background: var(--white); }
.qr-surface img { width: 100%; height: auto; }
.qr-instruction { max-width: 36ch; margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.qr-url { margin: 0 0 28px; color: var(--cyan); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.qr-card .button { width: 100%; }

@media (max-width: 820px) {
  .contact-header, main, .contact-footer { width: min(100% - 40px, 640px); }
  .contact-header { min-height: 118px; }
  .brand-lockup { width: 118px; }
  .contact-hero, .context-section { flex-direction: column; }
  .contact-hero { gap: 56px; }
  .contact-register { align-self: stretch; max-width: none; }
  .context-section { gap: 44px; }
  .context-body { max-width: none; }
  .location-section { flex-wrap: wrap; align-items: flex-start; }
  .location-section > div { flex-basis: 100%; }
}

@media (max-width: 560px) {
  .contact-header, main, .contact-footer { width: min(100% - 32px, 480px); }
  .contact-header { min-height: 96px; }
  .brand-lockup { width: 100px; }
  .qr-link { gap: 7px; font-size: 9px; }
  .qr-link-mark { width: 13px; height: 13px; }
  .contact-hero { padding-top: 58px; }
  h1 { font-size: clamp(46px, 14vw, 66px); }
  h2 { font-size: clamp(38px, 12vw, 52px); }
  .hero-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .contact-list > div { grid-template-columns: 1fr; gap: 5px; padding: 16px 20px; }
  .register-heading, .vcard-link { padding-left: 20px; padding-right: 20px; }
  .context-points { grid-template-columns: 1fr; }
  .context-points li { min-height: 0; display: grid; grid-template-columns: 42px 1fr; gap: 2px 12px; }
  .context-points span { grid-row: span 2; margin: 2px 0 0; }
  .context-points p { margin: 0; }
  .location-section { gap: 24px; }
  .location-section .button { width: 100%; }
  .contact-footer { min-height: 76px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; }
  .qr-page { padding: 16px; }
  .qr-card { padding: 32px 24px; }
  .qr-brand { width: 108px; margin-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  @page { margin: 0; size: auto; }
  .qr-page { padding: 0; background: var(--black); }
  .qr-card { width: 100%; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; border: 0; }
  .qr-card .button { display: none; }
}
