/* ====== Local Futura font (fallback za Supreme) ====== */
@font-face {
  font-family: 'Futura';
  src: url('/fonts/Futura Book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura';
  src: url('/fonts/Futura Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura';
  src: url('/fonts/Futura Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura';
  src: url('/fonts/Futura Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Použití jako hlavní písmo */
:root {
  --ns-font: 'Futura', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

html, body {
  font-family: var(--ns-font);
}


/* =========================================
   BACKGROUND
========================================= */
.fx-bg {
  position: absolute;   
  top: 0;
  left: 0;
  right: 0;
  height: 0;     
  pointer-events: none;
  z-index: 1;          
}

.fx-lines {
  position: absolute;       
  top: 0px;         
  left: 50%;
  transform: translateX(-50%);
  width: 1310px;        
  min-width: 1310px;         
  max-width: 1310px;   
  height: auto;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: clip;
  padding: 0 10px;
  margin-bottom: 20px;
}

.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;

  transform: translateY(-70px);
  will-change: transform;
}

@media (max-width: 600px) {
  .hero-content {
    transform: translateY(-18px);
  }
}

/* =========================================
   LOGO
========================================= */
.hero-logo {
  width: 205px;
  height: auto;
}

/* =============== VARS (doladíš podle oka) =============== */
:root{
  --cta-h:52px;           
  --cta-r:15px;          
  --cta-b:1px;            
  --cta-gap:16px;         
  --cta-pad-x:32px;       
  --white:#f5f5f5;
  --ink:#0b0b0c;        
}

/* WRAPPER */
.ns-cta{
  display:flex;
  gap:var(--cta-gap);
  align-items:center;
}

/* =============== BUTTON =============== */
.ns-cta__outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 72px;
  width: 111px;
  border: 1px solid #f5f5f5;
  border-radius: 20px;
  background:transparent;
  color: #f5f5f5;
  font-family: 'Supreme Variable', 'Inter', sans-serif;
  font-size: 16.3px;
  text-decoration:none;
  transition:transform .2s ease;
  font-weight: 700;
}
.ns-cta__outline:hover{ transform:translateY(-2px); }

/* SHELL */
.btn-final{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 72px;
  width: 181px;
  border-radius: 20px;
  box-shadow: inset 0 0 0 2px #fff;
  background: transparent;
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
}

/* TEXT */
.btn-text{
  position: relative;
  z-index: 3;
  font-family: 'Supreme Variable','Inter',sans-serif;
  font-size: 16.3px;
  color: #f5f5f5;
  padding-left: 24px;
  font-weight: 700;
  transition:
    opacity .45s ease,
    transform .55s cubic-bezier(.22,.9,.22,1),
    color .45s ease;
}

.btn-bg{
  position:absolute;
  inset:0;
  background:#fff;
  border-radius:20px;
  z-index:1;
  clip-path: inset(0 0 0 calc(100% - 72px) round 20px);
  transition: clip-path .60s cubic-bezier(.22,.9,.22,1);
}

.btn-arrow{
  position:absolute;
  top:50%;
  right: 19.25px;
  width:33.5px;
  height:33.5px;
  transform:translateY(-50%);
  z-index:3;
  transition:
    left .60s cubic-bezier(.22,.9,.22,1) .05s,
    right .60s cubic-bezier(.22,.9,.22,1) .05s,
    transform .60s cubic-bezier(.22,.9,.22,1) .05s;
}

.btn-arrow img{
  width:100%;
  height:100%;
  display:block;
}

/* HOVER */
.btn-final:hover .btn-bg{
  clip-path: inset(0 0 0 0 round 20px);
}

.btn-final:hover .btn-text{
  opacity:0;
  transform:translateX(-10px);
  color:#000;
  transition-delay:.05s;
}

.btn-final:hover .btn-arrow{
  left: calc(50% - 16.75px);
  right:auto;
  transform:translateY(-50%) rotate(45deg);
}


/* OUTLINE */
.hero-btn--outline {
  background: transparent;
  border: 1px solid #f5f5f5;
  color: #f5f5f5;
}

/* FILLED */
.hero-btn--filled {
  background: #f5f5f5;
  color: #0b0b0c;
  border: 1px solid #f5f5f5;
}

.hero-btn--filled:hover {
  background: #e8e8e8;
}

/* ARROW */
.hero-btn-arrow {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  flex-shrink: 0;
}

/* COPYRIGHT */
.fx-copy {
  position: absolute;
  top: 760px;
  right: max(16px, calc((100vw - 1280px) / 2));
  font-family: 'Supreme Variable','Inter',sans-serif;
  font-size: 16.3px;
  color: #f5f5f5;
  letter-spacing: 0.5px;
  user-select: none;
  white-space: nowrap;
  pointer-events: none;
}














/* ===== STATIC SHOWCASE SECTION (1:1 podle Figmy) ===== */
#showcase {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#showcase .sc-stage {
  position: relative;
  display: grid;
  place-items: center;
}
#showcase .sc-line {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%); 
  font-family: 'Supreme Variable', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
  white-space: nowrap;
}

#showcase .sc-line--front {
  font-size: 233px;
  color: #F5F5F5;
  z-index: 3;
  transform: translateX(-50%) translateY(0px);
    font-weight: 900;
}

#showcase .sc-line--mid {
  font-size: 141px;
  color: #B8B8B8;
  z-index: 2;
  transform: translateX(-50%) translateY(-60px); 
  font-weight: 900;
}

#showcase .sc-line--back {
  font-size: 100px;
  color: #888888;
  z-index: 1;
  transform: translateX(-50%) translateY(-110px);
  font-weight: 900;
}


















/* =========================================================
   GALLERI
========================================================= */
.scroll-wrapper {
  position: relative;
  overflow: hidden;
  background: #0b0b0c;
}
.scroll-wrapper .cont-ainer {
  position: relative;
  display: flex;
  padding-left: 5rem;
  padding-right: 5rem;
}
.scroll-wrapper .sticky-wrapper {
  position: absolute;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  width: 260px;
  pointer-events: none;
}
.scroll-wrapper .le-ft {
  position: fixed;
  top: 50%;
  left: 92px;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.scroll-wrapper .le-ft.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-wrapper .progress-line {
  position: absolute;
  left: -34px;
  top: -8px;
  bottom: -8px;
  width: 1px;
  background: #414141;
  opacity: 0.9;
}
.scroll-wrapper .progress-fill {
  position: absolute;
  left: -35px;
  width: 3px;
  height: 24px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateY(0);
  transition: transform 0.22s ease, height 0.22s ease;
}
.scroll-wrapper .le-ft a {
  display: block;
  padding-top: 4px;
  padding-bottom: 4px;
  margin-top: 8px;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.15;
  color: #F5F5F5;
  text-decoration: none;
  opacity: 0.85;
  transition: color 0.18s ease, font-size 0.18s ease, opacity 0.18s ease;
  font-family: 'Supreme Variable','Inter',sans-serif;
}
.scroll-wrapper .le-ft a:hover {
  color: #bebec2;
  opacity: 1;
  font-weight: 700;
}
.scroll-wrapper .le-ft a.active {
  color: #f5f5f5;
  font-size: 16px;
  opacity: 1;
  font-weight: 900;
}
.scroll-wrapper .ri-ght {
  flex: 1 1 auto;
  margin-left: 22%;
  min-height: 100vh;
}
.scroll-wrapper .ri-ght > .scroll-offset {
  height: 10vh;
}
.scroll-wrapper .image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: 28px;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.scroll-wrapper .image-wrapper a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.scroll-wrapper .slide-img {
  display: block;
  width: calc(100% * 0.86);
  max-width: min(90vw, 1200px);
  height: auto;
  max-height: 86vh;
  object-fit: contain;
  object-position: center;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1024px) {
  .scroll-wrapper .ri-ght.nx-step-host {
    position: relative;
    height: 100vh;
    margin-left: 22%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .scroll-wrapper .ri-ght.nx-step-host > .scroll-offset {
    display: none !important;
  }
  .scroll-wrapper .ri-ght.nx-step-host > .image-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    top: 0px;
    height: calc(100vh - 60px);
  }
  .scroll-wrapper .ri-ght.nx-step-host .slide-img {
    max-height: 100%;
    width: calc(100% * 0.86);
  }
}

/* ===== Hover Zoom ===== */

/* ===== RIGHT gallery: smooth whole enlargement on hover (no zoom) ===== */
section#scroll-area .ri-ght .image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform 0.5s ease;
}

section#scroll-area .ri-ght .slide-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  transform: scale(0.9); 
  transition: transform 0.5s ease, opacity 0.3s ease, filter 0.3s ease;
  will-change: transform, opacity;
}

section#scroll-area .ri-ght .img-color {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  border-radius: 18px;
}

section#scroll-area .ri-ght .image-wrapper:hover .slide-img,
section#scroll-area .ri-ght .image-wrapper:focus-within .slide-img {
  transform: scale(1);
}

section#scroll-area .ri-ght .image-wrapper:hover .img-color,
section#scroll-area .ri-ght .image-wrapper:focus-within .img-color {
  opacity: 1;
}

section#scroll-area .ri-ght .image-wrapper:hover .img-base,
section#scroll-area .ri-ght .image-wrapper:focus-within .img-base {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  section#scroll-area .ri-ght .slide-img {
    transition: none;
  }
}















/* =============== FONT =============== */
@font-face {
  font-family: "Supreme";
  src: url("./fonts/Supreme.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* =============== ROOT =============== */
:root {
  --bg: #0b0b0b;
  --gap: 20px;
  --w: 600px;
  --h: 600px;
  --radius: 37.32px;
}

/* =============== RESET =============== */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* =============== LAYOUT =============== */
.nx-pricing{
  padding: 60px 20px;
  font-family: "Supreme", Inter, system-ui, sans-serif;
  display: flex;
  justify-content: center;
}

.nx-wrap{
  display: grid;
  grid-template-columns: repeat(2, var(--w));
  gap: var(--gap);
  justify-content: center;
}

/* =============== CARD =============== */
.nx-card{
  width: var(--w);
  height: var(--h);
  border-radius: var(--radius);
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
}
.nx-card--white{ background:#f5f5f5; color:#121212; }
.nx-card--dark { color:#f5f5f5; box-shadow: inset 0 0 0 1px var(--border); }

.nx-card:last-child{ padding: 0; }

/* =============== TYPO =============== */
.nx-card h2{
  font-size: 45px;
  font-weight: 700;
  margin-bottom: 20px;
}

.nx-sub{
  font-size: 14.5px;
  color: #121212;
  margin-bottom: 22px;
  font-weight: 300;
}

/* =============== LIST =============== */
.nx-list {
  list-style: none;
  margin-bottom: 22px;
  padding: 0;
}

.nx-list li {
  display: flex;
  align-items: center;  
  gap: 10px;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.4;
}

.nx-list img {
  width: 30px;
  height: 30px;
  display: block;    
  flex-shrink: 0;      
}

/* =============== BADGE - FULL WIDTH =============== */
.nx-badge.full{
  background: #EAEAEA;
  border-radius: 20px;
  padding: 30px 30px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-weight: 600;
  color: #121212;
  margin-top: auto;
}

/* =============== PRICE ROW =============== */
.nx-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  gap: 16px;                 /* lepší rozestup */
  flex-wrap: wrap;           /* když je málo místa, button spadne dolů */
}
.nx-price{
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1;
}
.nx-price span{
  font-size: 12px;
  font-weight: 300;
  color: #121212;
  margin-left: 6px;
}

/* =============== CONSULT ROWS =============== */
.nx-consult{
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}
.nx-consult__row{
  flex: 1;
  background: transparent;
  border: 2px solid #3F3F3F;
  border-radius: 40px;
  padding: 40px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nx-consult__row h3{
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

/* =============== BUTTON =============== */
.btn-final{
  position: relative;
  display: inline-flex;
  align-items: center;       
  justify-content: center;    
  height: 72px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
  padding: 0 72px 0 24px;  
  box-sizing: border-box;
}

/* TEXT */
.btn-text{
  position: relative;
  z-index: 3;
  font-family: "Supreme","Inter",sans-serif;
  font-size: 16.3px;
  font-weight: 700;
  padding-left: 0;
  transition:
    opacity .45s ease,
    transform .55s cubic-bezier(.22,.9,.22,1),
    color .45s ease;
}

/* BG panel */
.btn-bg{
  position: absolute;
  inset: 0;
  border-radius: 20px;
  z-index: 1;
  clip-path: inset(0 0 0 calc(100% - 72px) round 20px);
  transition: clip-path .60s cubic-bezier(.22,.9,.22,1);
}

/* ARROW */
.btn-arrow{
  position: absolute;
  top: 50%;
  right: 19.25px;
  width: 33.5px;
  height: 33.5px;
  transform: translateY(-50%);
  z-index: 3;
  transition:
    left .60s cubic-bezier(.22,.9,.22,1) .05s,
    right .60s cubic-bezier(.22,.9,.22,1) .05s,
    transform .60s cubic-bezier(.22,.9,.22,1) .05s;
}
.btn-arrow img{
  width: 100%;
  height: 100%;
  display: block;
}

/* HOVER animace */
.btn-final:hover .btn-bg{ clip-path: inset(0 0 0 0 round 20px); }
.btn-final:hover .btn-text{
  opacity: 0;
  transform: translateX(-10px);
  transition-delay: .05s;
}
.btn-final:hover .btn-arrow{
  left: calc(50% - 16.75px);
  right: auto;
  transform: translateY(-50%) rotate(45deg);
}

/* DARK BUTTON - WHITE CARD */
.btn--dark{
  box-shadow: inset 0 0 0 2px #0b0b0c;
  background: transparent;
  width: 251px;
}
.btn--dark .btn-text{ color:#0b0b0c; }
.btn--dark .btn-bg{ background:#0b0b0c; }

/* LIGHT BUTTON - DARK CARD */
.btn--light{
  box-shadow: inset 0 0 0 2px #f5f5f5;
  background: transparent;
  width: 251px;
}
.btn--light .btn-text{ color:#f5f5f5; }
.btn--light .btn-bg{ background:#f5f5f5; }

.btn--auto{ width:auto; }


/* ============================= */
/*   N KEY + BLUR FINAL VERSION  */
/* ============================= */

/* 1) Zrušení starého pseudo-elementu na dark kartě (pokud existuje) */
.nx-card--dark::after {
  content: none !important;
}

/* 2) Sekce má pozicování pro absolutní dekoraci */
.nx-pricing {
  position: relative;
}

/* 3) Obsah uvnitř má vyšší vrstvu než dekorace */
.nx-wrap {
  position: relative;
  z-index: 2;
}

/* 4) N klávesa jako background celé sekce */
.nx-pricing::after {
  content: "";
  position: absolute;
  right: -120px; /* klávesa mírně přesahuje za pravý okraj stránky */
  bottom: -180px; /* posun dolů jako ve Figmě */
  width: 690px;
  height: 690px;
  background: url("img/N.png") no-repeat right bottom / contain;
  pointer-events: none;
  opacity: 0.96;
  filter: drop-shadow(0 22px 70px rgba(0, 0, 0, 0.45));
  z-index: 1; 
}

/* 5) U dark karty necháme přesahy viditelné */
.nx-card--dark {
  position: relative;
  overflow: visible;
}

/* 6) Obsah consult (3 řádky) má vyšší z-index */
.nx-consult {
  position: relative;
  z-index: 3;
}

/* 7) Blur efekt pro všechny 3 obdélníky (Design / Code / Strategy) */
.nx-consult__row {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  box-shadow: inset 0 8px 28px rgba(0, 0, 0, 0.35),
              0 10px 40px rgba(0, 0, 0, 0.30);
  transition: backdrop-filter 0.3s ease, background 0.3s ease;
}

/* 8) Jemné zvýraznění blur efektu při hoveru */
.nx-consult__row:hover {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px) saturate(150%);
}

/* === BEZPEČNÉ VRSTVY – popup musí vždy fungovat === */

/* 1) Sekce vytvoří vlastní vrstvení a dekorace je pod vším */
.nx-pricing{
  position: relative;
  isolation: isolate;         /* oddělí stacking context */
  z-index: 0;                  /* základní vrstva */
}
.nx-pricing::after{
  z-index: -1 !important;      /* úplně pod obsahem sekce */
  pointer-events: none !important;
}

/* 2) Interaktivní UI (karty, tlačítka, consult řádky) nad dekorací */
.nx-wrap,
.nx-card,
.nx-consult,
.btn-final{
  position: relative;
  z-index: 1;
}

/* 3) Tmavá karta nesmí nic ořezávat (kdyby popup byl uvnitř) */
.nx-card--dark{ overflow: visible; }

/* 4) Blur efekt pro 3 obdélníky (ponecháme jak chceš) */
.nx-consult__row{
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  box-shadow: inset 0 8px 28px rgba(0,0,0,.35), 0 10px 40px rgba(0,0,0,.30);
}

/* 5) Popupy/meníčka úplně navrch, ať je nic nepřekryje */
.popup,
.popover,
.modal,
.dropdown,
.menu,
[role="dialog"],
[data-popup],
[data-popover]{
  position: fixed;                 /* pokud máš absolute, klidně nech absolute */
  z-index: 2147483647 !important;  /* úplný vrchol */
}

/* ===== UPDATE POPUP (visible + top layer) ===== */
#nxPopup{
  position: fixed;
  inset: 0;
  display: none;                  /* výchozí: skrytý */
  z-index: 2147483600;            /* úplně navrch nad vším */
}
#nxPopup.is-open{ display: block; }

/* Backdrop */
#nxPopup .nx-popup__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Card */
#nxPopup .nx-popup__card{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(760px, calc(100vw - 40px));
  background: #f5f5f5;
  color: #121212;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  padding: 40px 40px 34px;
  text-align: center;
  font-family: "Supreme Variable","Inter",sans-serif;
}

/* Title + text */
#nxPopup .nx-popup__title{
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: .2px;
}
#nxPopup .nx-popup__desc{
  margin: 0 auto 22px;
  max-width: 58ch;
  line-height: 1.6;
  font-size: 16px;
}

/* Close button */
#nxPopup .nx-popup__close{
  position: absolute;
  right: 16px;
  top: 16px;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #fff;
  color: #121212;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(0,0,0,.18);
}

/* Socials row */
#nxPopup .nx-popup__follow{ margin: 14px 0 10px; font-weight: 700; }
#nxPopup .nx-popup__socials{
  display: inline-flex; gap: 16px; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
#nxPopup .nx-popup__socials img{ width: 28px; height: 28px; display: block; }
#nxPopup .nx-popup__mail{
  display: inline-block; margin-top: 2px; color: #121212; font-weight: 800; text-decoration: underline;
}

/* Lock scroll when open (třídy přidává JS) */
html.nx-pop-lock, body.nx-pop-lock{ overflow: hidden !important; }

/* Extra: ať dekorace N-key nikdy nepřekryje popup */
.nx-pricing::after{ z-index: -1 !important; pointer-events: none !important; }


























/* =========================================================
   CONTACT FORM
========================================================= */

/* --- Overlay -------------------------------------------------------------- */
#contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2147483000;
}
#contact-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

/* --- Drawer --------------------------------------------------------------- */
#contact-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;

  width: min(600px, 40vw);
  background: #f5f5f5;
  color: #121212;

  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.35);

  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2147483001;

  display: grid;
  grid-template-rows: auto 1fr;

  font-family: "IBM Plex Mono", monospace;

  /* header sizing vars */
  --head-pt: 40px;
  --head-pr: 40px;
  --title-size: 30px;
  --close-size: 72px;
}
#contact-drawer[aria-hidden="false"] {
  transform: translateX(0);
}
html.cd-lock,
body.cd-lock {
  overflow: hidden !important;
}

/* --- Header --------------------------------------------------------------- */
#contact-drawer .cd-head {
  position: relative;
  padding: var(--head-pt) var(--head-pr) 20px var(--head-pr);
}
#contact-drawer .cd-head h2 {
  margin: 0;
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  color: #121212;
  letter-spacing: 0.5px;
  font-family: "Supreme Variable", "Inter", sans-serif;
}

/* close button */
#contact-drawer .cd-close {
  position: absolute;
  right: var(--head-pr);
  top: calc(var(--head-pt) + (var(--title-size) - var(--close-size)) / 2);

  width: var(--close-size);
  height: var(--close-size);
  border-radius: 20px;

  background: #ffffff;
  border: 1px solid #ffffff;
  color: #121212;

  font-size: 16px;
  line-height: 1;

  display: grid;
  place-items: center;

  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2147483002;
  pointer-events: auto;
}
#contact-drawer .cd-close:hover {
  background: #f5f5f5;
  border: 1px solid #f5f5f5;
}

/* --- Form layout ---------------------------------------------------------- */
#contact-drawer .cd-form {
  padding: 8px 40px 28px;
  overflow: auto;
}
#contact-drawer .cd-row {
  margin-bottom: 25px;
}
#contact-drawer .cd-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: 1px;
  color: #121212;
}
#contact-drawer .cd-muted {
  color: #121212;
  font-size: 12.5px;
}

/* inputs */
#contact-drawer .cd-input {
  position: relative;
}
#contact-drawer input,
#contact-drawer textarea {
  width: 100%;
  height: 40px;

  background: #ffffff;
  color: #121212;

  border: 1px solid #c8c8c8;
  border-radius: 12px;

  font-size: 13.5px;
  padding: 2px 0 2px 12px;

  outline: none;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
#contact-drawer input:focus,
#contact-drawer textarea:focus {
  background: #f5f5f5;
  border-color: #c8c8c8;
}
#contact-drawer input::placeholder,
#contact-drawer textarea::placeholder {
  color: #c8c8c8;
  letter-spacing: 0.8px;
  font-size: 15px;
  font-family: "IBM Plex Mono", monospace;
}

/* textarea */
#contact-drawer textarea {
  min-height: 86px;
  height: auto;
  resize: vertical;

  border-radius: 20px;
  padding-top: 10px;
  padding-left: 10px;
}

/* --- Status icon ----------------------------------------------- */
#contact-drawer .cd-status {
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);

  width: 20px;
  height: 20px;
  border-radius: 50%;

  border: 2px solid #c8c8c8;
  display: grid;
  place-items: center;

  transition: border-color 0.25s ease;
}
#contact-drawer .cd-status::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg);
  transition: border-color 0.25s ease;
}
#contact-drawer .cd-input textarea ~ .cd-status {
  display: none !important;
}
#contact-drawer .cd-input.valid .cd-status {
  border-color: #121212;
}
#contact-drawer .cd-input.valid .cd-status::after {
  border-left-color: #121212;
  border-bottom-color: #121212;
}
#contact-drawer .cd-input.invalid .cd-status {
  border-color: #ff4d4f;
}
#contact-drawer .cd-input.invalid .cd-status::after {
  border-left-color: transparent;
  border-bottom-color: transparent;
}

/* --- Name + Company (2 columns fix width) -------------------------------- */
#contact-drawer .cd-two {
  display: grid;
  grid-template-columns: 205px 205px;
  justify-content: space-between;     
  column-gap: 0;
  row-gap: 16px;
}
#contact-drawer .cd-two .cd-col { min-width: 0; }
#contact-drawer .cd-two .cd-input input { width: 100%; }

/* --- Checkboxes ----------------------------------------------------------- */
#contact-drawer fieldset { border: 0; padding: 0; }
#contact-drawer .cd-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 56px;
}
#contact-drawer .cd-checkboxes label {
  display: grid;
  grid-template-columns: 16px auto;
  gap: 10px;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
}
#contact-drawer .cd-checkboxes input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
#contact-drawer .cd-checkboxes i {
  width: 16px;
  height: 16px;
  border: 1px solid #121212;
  background: #f5f5f5;
  border-radius: 4px;
  display: inline-block;
  transition: all 0.25s ease;
}
#contact-drawer .cd-checkboxes input:checked + i {
  background: #121212;
  border-color: #f5f5f5;
}

/* --- Autofill fix (Chrome / Safari) -------------------------------------- */
#contact-drawer input:-webkit-autofill,
#contact-drawer textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #f5f5f5 inset !important;
  -webkit-text-fill-color: #121212 !important;
  border-radius: 12px;
  transition: background-color 5000s ease-in-out 0s;
}
#contact-drawer input:-webkit-autofill:focus,
#contact-drawer textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #f5f5f5 inset !important;
  -webkit-text-fill-color: #121212 !important;
}

/* --- Actions row (submit left + call right) ------------------------------- */
aside#contact-drawer .cd-actions {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 30px !important;
  margin-top: 24px !important;
  width: 100% !important;
}

/* --- New CTA Submit (robustní kapsa bez clip-path) ----------------------- */
.cd-cta-wrap { position: relative; display: inline-block; }

.cd-cta {
    --radius: 20px;
  --cap: 72px;    
  --arrow: 32px; 

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;

  height: 72px;
  width: 168px;
  border-radius: var(--radius);

  background: transparent;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  text-decoration: none;

  border: 2px solid #0b0b0c; 
  padding: 0;
}

/* text */
.cd-cta__text{
  position: relative;
  z-index: 3;
  font-family: "Supreme Variable","Inter",sans-serif;
  font-size: 16.3px;
  font-weight: 700;
  color: #0b0b0c;
  padding-left: 24px;
  transition: opacity .45s ease, transform .55s cubic-bezier(.22,.9,.22,1), color .45s ease;
}

.cd-cta__bg{ display:none !important; }

.cd-cta::after{
  content:"";
  position:absolute;
  top:-2px; bottom:-2px; right:-2px;               /* přeteče pod border → bez bílých mezer */
  width:calc(var(--cap) + 4px);
  background:#121212;
  border-radius:var(--radius);
  z-index:1;
  transition: left .6s cubic-bezier(.22,.9,.22,1), right .6s cubic-bezier(.22,.9,.22,1), width .6s cubic-bezier(.22,.9,.22,1);
}

/* šipka vycentrovaná v kapse */
.cd-cta__arrow{
  position:absolute;
  top:50%;
  right:calc((var(--cap) - var(--arrow))/2);
  width:var(--arrow);
  height:var(--arrow);
  transform:translateY(-50%);
  z-index:3;
  transition:left .6s cubic-bezier(.22,.9,.22,1) .05s, right .6s cubic-bezier(.22,.9,.22,1) .05s, transform .6s cubic-bezier(.22,.9,.22,1) .05s;
}
.cd-cta__arrow img{ width:100%; height:100%; display:block; }

/* hover: kapsa vyplní celé tlačítko, šipka do středu + rotace */
.cd-cta:hover::after{ left:-2px; right:-2px; width:auto; }
.cd-cta:hover .cd-cta__text{ opacity:0; transform:translateX(-10px); color:#fff; transition-delay:.05s; }
.cd-cta:hover .cd-cta__arrow{ left:50%; right:auto; transform:translate(-50%,-50%) rotate(45deg); }

/* --- Right side (note + Book a Call) ------------------------------------- */
aside#contact-drawer .cd-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 8px !important;
  margin-top: 0 !important;
  min-width: 0 !important;
}
#contact-drawer .cd-note {
  display: block;
  font-size: 16.3px;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* Book a Call (zachováno) */
#contact-drawer .cd-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 70px;
  width: 141px;

  border-radius: 20px;
  background: transparent;
  color: #121212;
  border: 1px solid #121212;

  font-family: "Supreme Variable", "Inter", sans-serif;
  font-size: 16.3px;
  font-weight: 700;
  text-decoration: none;

  transition: all 0.3s ease;
}
#contact-drawer .cd-call:hover { transform: translateY(-1px); }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1000px) {
  #contact-drawer{
    width:100vw;
    border-left:none;
    box-shadow:-20px 0 50px rgba(0,0,0,.35);
    --head-pt:28px; --head-pr:24px; --title-size:26px; --close-size:60px;
  }
  #contact-drawer .cd-head h2{ font-size:40px; }
  #contact-drawer .cd-form{ padding:8px 24px 22px; }
}

@media (max-width: 700px) {
  #contact-drawer .cd-two{
    grid-template-columns:1fr; justify-content:initial; gap:14px;
  }
  .cd-cta{ width:100%; }
  #contact-drawer .cd-call{ height:54px; padding:0 30px; }
  #contact-drawer .cd-head h2{ font-size:36px; }
}

/* Button responsiveness only */
@media (max-width: 900px){
  .cd-cta{ height:66px; width:184px; --cap:68px; --arrow:30px; }
  .cd-cta__text{ font-size:16px; padding-left:22px; }
}
@media (max-width: 760px){
  .cd-cta{ height:62px; width:176px; --cap:64px; --arrow:28px; border-width:2px; }
  .cd-cta__text{ font-size:15.5px; padding-left:20px; }
  .cd-cta__arrow{ right:calc((var(--cap) - var(--arrow))/2); }
}
@media (max-width: 640px){
  .cd-cta{ height:58px; width:168px; --cap:60px; --arrow:26px; border-width:1.8px; border-radius:18px; }
  .cd-cta::after{ border-radius:18px; }
  .cd-cta__text{ font-size:15px; padding-left:18px; }
}
@media (max-width: 520px){
  .cd-cta{ width:100%; max-width:420px; height:56px; --cap:56px; --arrow:24px; border-width:1.8px; }
  .cd-cta__text{ font-size:14.8px; padding-left:16px; }
}
@media (max-width: 480px){
  #contact-drawer .cd-checkboxes{ grid-template-columns:1fr; gap:10px; }
}
@media (max-width: 400px){
  .cd-cta{ height:52px; --cap:52px; --arrow:22px; border-width:1.6px; border-radius:16px; }
  .cd-cta::after{ border-radius:16px; }
  .cd-cta__text{ font-size:14.5px; padding-left:14px; }
}















