:root { --ivory: #f7f3eb; --line: rgba(255,255,255,.56); --ink: #211c18; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--ivory); background: var(--ink); font-family: Arial, Helvetica, sans-serif; font-weight: 300; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.hero, .contact-section { position: relative; min-height: 100svh; isolation: isolate; overflow: hidden; background-size: cover; background-position: center; }
.hero { background-image: url('/images/klinika-hero.webp'); }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(25,19,14,.86) 0%, rgba(28,21,15,.58) 35%, rgba(15,12,9,.05) 72%), linear-gradient(0deg, rgba(18,13,9,.7) 0%, transparent 38%); }
.hero-header { position: absolute; inset: 0 0 auto; padding: 3.5vh 3.8vw; display: flex; align-items: flex-start; justify-content: space-between; }
.brand-logo { width: clamp(104px, 9vw, 136px); height: auto; filter: drop-shadow(0 1px 7px rgba(0,0,0,.25)); }
.project-label, .contact-project-label { margin: 0; font: 400 clamp(9px, .7vw, 11px)/1.4 Arial, Helvetica, sans-serif; letter-spacing: .035em; text-transform: uppercase; }
.project-label { color: rgba(33,28,24,.76); }
.project-label span, .contact-project-label span { margin: 0 .55rem; opacity: .55; }
.hero-copy { position: absolute; top: 25.8%; left: 3.8vw; width: min(41vw, 590px); }
h1, h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(31px, 2.6vw, 44px); line-height: 1.16; }
.fine-line { width: 30px; height: 1px; margin: 1.55rem 0 1.35rem; background: rgba(255,255,255,.68); }
.hero-copy p { max-width: 475px; margin: 0; font-size: clamp(13px, 1.03vw, 16px); line-height: 1.58; color: rgba(255,255,255,.82); }
.outline-button, .submit-button { margin-top: 1.7rem; min-height: 44px; border: 1px solid rgba(255,255,255,.64); display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 1.25rem; text-transform: uppercase; letter-spacing: .045em; font-size: 11px; transition: background .25s, color .25s; }
.outline-button:hover, .outline-button:focus-visible, .submit-button:hover, .submit-button:focus-visible { background: var(--ivory); color: var(--ink); outline: none; }
.outline-button span, .submit-button span { font-size: 21px; font-weight: 200; }
.hero-bottom { position: absolute; inset: auto 3.8vw 3.3vh; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.recognition { display: flex; align-items: flex-end; gap: 8px; height: clamp(104px, 18.5vh, 150px); }
.recognition > img:not(.saw-logo) { height: 100%; width: auto; object-fit: contain; }
.saw-link { display: block; margin-left: 1rem; transition: opacity .2s; }
.saw-link:hover, .saw-link:focus-visible { opacity: .78; outline: none; }
.recognition .saw-logo { display: block; width: clamp(126px, 14vw, 200px); margin: 0 0 .3rem; opacity: .94; }
.contact-strip { display: flex; align-items: center; gap: .85rem; font-size: clamp(9px, .77vw, 12px); color: rgba(255,255,255,.8); white-space: nowrap; }
.contact-strip a { transition: color .2s; }
.contact-strip a:hover { color: white; }
.contact-strip i { width: 1px; height: 13px; background: rgba(255,255,255,.4); }
.contact-strip a:first-child { text-transform: none; }

.contact-section { display: none; background-image: url('/images/klinika-kontakt.webp'); background-position: center; }
.contact-route .hero, .contact-route footer { display: none; }
.contact-route .contact-section { display: block; }
.contact-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(24,20,16,.93) 0%, rgba(27,23,18,.85) 38%, rgba(25,21,17,.33) 55%, rgba(21,17,14,.06) 76%); }
.contact-project-label { position: absolute; top: 3.2vh; right: 3.2vw; font-family: Arial, sans-serif; font-size: 10px; text-transform: uppercase; color: rgba(33,28,24,.76); }
.contact-panel { width: min(44vw, 635px); min-height: 100svh; padding: 5.8vh 0 3.6vh 3.2vw; display: flex; flex-direction: column; }
.contact-panel h2 { font-size: clamp(34px, 3vw, 50px); line-height: 1.08; }
.contact-panel .intro { max-width: 470px; margin: 1.25rem 0 0; font-size: clamp(13px, .96vw, 15px); line-height: 1.5; color: rgba(255,255,255,.8); }
.contact-panel .fine-line { margin: 1.2rem 0 1.3rem; }
form { width: min(100%, 600px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field-row .field:nth-child(2) { display: block; }
.field-row .field:nth-child(2) input { display: block; margin-top: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 10px; line-height: 1.2; text-transform: uppercase; color: rgba(255,255,255,.82); }
.field > span { text-transform: none; color: rgba(255,255,255,.54); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid rgba(255,255,255,.49); border-radius: 0; outline: 0; background: rgba(255,255,255,.015); color: white; padding: 8px 12px; font-size: 13px; line-height: 1.35; transition: border-color .2s, background .2s; }
.field input, .field select { height: 35px; }
.field textarea { resize: vertical; min-height: 65px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: white; background: rgba(255,255,255,.06); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%); background-position: calc(100% - 18px) 14px, calc(100% - 13px) 14px; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: var(--ink); background: white; }
.field textarea::placeholder { color: rgba(255,255,255,.38); text-transform: none; }
.consent-field { display: flex; align-items: flex-start; gap: 10px; margin-top: 2px; font-size: 10px; line-height: 1.5; color: rgba(255,255,255,.72); cursor: pointer; }
.consent-field input { appearance: none; flex: 0 0 17px; width: 17px; height: 17px; margin: 0; border: 1px solid rgba(255,255,255,.6); display: grid; place-items: center; }
.consent-field input:checked::after { content: ''; width: 9px; height: 5px; border: solid white; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translateY(-1px); }
.consent-field a, .response-info a, .form-status a { text-decoration: underline; text-underline-offset: 2px; }
.submit-button { width: 295px; height: 44px; margin-top: 14px; color: white; background: transparent; cursor: pointer; }
.submit-button:disabled { opacity: .6; cursor: wait; }
.form-status { min-height: 18px; margin: 8px 0 0; font-size: 11px; line-height: 1.4; color: rgba(255,255,255,.8); }
.form-status.success { color: #d8e1cf; }
.form-status.error { color: #f0c6c0; }
.response-info { margin-top: auto; padding-top: 1rem; display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; width: min(100%, 600px); font-size: 11px; line-height: 1.55; color: rgba(255,255,255,.72); }
.response-info p { margin: 0; }
.response-info p + p { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.36); }
.contact-copyright { position: absolute; right: 3.2vw; bottom: 2.2vh; margin: 0; font-size: 9px; letter-spacing: .04em; color: rgba(255,255,255,.55); }
.honeypot { position: absolute !important; left: -9999px !important; }

footer { display: none; min-height: 64px; padding: 0 3.8vw; align-items: center; justify-content: space-between; gap: 1rem; font-size: 11px; color: rgba(255,255,255,.62); background: #171310; }
.footer-links { display: flex; gap: 18px; align-items: center; }
.footer-links button { padding: 0; border: 0; color: inherit; background: none; cursor: pointer; font-size: inherit; }
.footer-links button:hover, .footer-links a:hover { color: white; }
.cookie-notice { position: fixed; z-index: 20; right: 20px; bottom: 20px; width: min(420px, calc(100vw - 40px)); padding: 17px 18px; border: 1px solid rgba(255,255,255,.3); background: rgba(24,19,16,.97); box-shadow: 0 12px 35px rgba(0,0,0,.32); }
.cookie-notice p { margin: 0; font-size: 11px; line-height: 1.5; color: rgba(255,255,255,.78); }
.cookie-notice a { text-decoration: underline; }
.cookie-notice div { display: flex; gap: 8px; margin-top: 12px; }
.cookie-notice button { padding: 8px 12px; border: 1px solid rgba(255,255,255,.45); color: white; background: transparent; font-size: 10px; text-transform: uppercase; cursor: pointer; }
.cookie-notice button:last-child { background: white; color: #211c18; }

@media (max-width: 900px) {
  .hero { min-height: 900px; background-position: 59% center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(20,15,11,.58) 0%, rgba(20,15,11,.25) 37%, rgba(16,12,9,.78) 73%, rgba(16,12,9,.92) 100%); }
  .hero-header { padding: 24px 22px; }
  .project-label { max-width: 145px; text-align: right; font-size: 10px; }
  .brand-logo { width: 104px; }
  .hero-copy { top: 23%; left: 22px; right: 22px; width: auto; }
  h1 { font-size: clamp(31px, 7.6vw, 39px); }
  .hero-copy p { font-size: 13px; max-width: 430px; }
  .hero-bottom { left: 22px; right: 22px; bottom: 24px; display: block; }
  .recognition { height: 112px; }
  .saw-link { margin-left: 8px; }
  .recognition .saw-logo { width: 132px; }
  .contact-strip { margin-top: 20px; flex-wrap: wrap; gap: 8px 12px; font-size: 10px; }
  .contact-section { min-height: auto; background-position: 60% center; }
  .contact-overlay { background: linear-gradient(90deg, rgba(24,20,16,.94) 0%, rgba(24,20,16,.83) 68%, rgba(24,20,16,.57) 100%); }
  .contact-panel { width: 76%; min-height: 940px; padding: 50px 0 38px 22px; }
  .contact-project-label { top: 20px; right: 22px; }
}

@media (max-width: 620px) {
  .hero { min-height: 860px; background-position: 61% center; }
  .hero-copy { top: 19%; }
  h1 { font-size: 31px; }
  .hero-copy .fine-line { margin: 1.1rem 0; }
  .outline-button { width: 100%; max-width: 315px; }
  .recognition { height: 88px; }
  .recognition .saw-logo { width: 112px; }
  .contact-strip i { display: none; }
  .contact-strip { align-items: flex-start; flex-direction: column; }
  .contact-section { background-position: 61% center; }
  .contact-overlay { background: rgba(24,20,16,.86); }
  .contact-project-label { color: rgba(255,255,255,.6); }
  .contact-copyright { right: 18px; bottom: 12px; }
  .contact-panel { width: calc(100% - 22px); min-height: 1000px; padding-right: 0; }
  .contact-panel h2 { font-size: 37px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .submit-button { width: 100%; }
  .response-info { grid-template-columns: 1fr; gap: 12px; }
  .response-info p + p { padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.3); }
  footer { padding: 20px 22px; flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
