/* ===== najduvam.cz — styly ===== */

/* Inter (self-hosted, bez Google CDN kvůli GDPR) */
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/inter-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/inter-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/inter-latin-ext-600-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/inter-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/inter-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/inter-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/inter-latin-ext-500-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/inter-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{
  --hx:clamp(10px,1.4vw,18px);   /* okraj bílého bloku */
  --cpx:clamp(14px,1.6vw,22px);  /* vnitřní okraj bílého bloku */
  --tx:clamp(6px,1vw,14px);      /* odsazení nadpisu */
  --tagx:14px;                   /* odsazení štítků od kraje fotky */
  --hero-max:calc(1300px + 2*clamp(16px,4vw,40px) + 90px);
  /* barvy převzaté z původního webu */
  --bg:#f9f6f0;
  --card:#ffffff;
  --ink:#260e01;        /* nadpisy, tmavý text */
  --ink-2:#1c2706;      /* podnadpis (tmavě olivová) */
  --brand:#6e3215;      /* logo, tlačítko */
  --nav:#915536;        /* menu */
  --foot:#7a2f0a;       /* copyright */
  --pill-1:#fae6be;     /* Individuální výběr */
  --pill-2:#ffe8f8;     /* Prověřené projekty */
  --pill-3:#d7e5ff;     /* Neveřejné nabídky */
  --dot:#ff6b36;
  --line:#ececec;

  --display:"General Sans","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --text:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;

  --wrap:1300px;
  --radius:28px;
  --gutter:clamp(16px,4vw,40px);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--display);font-weight:400;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
img{display:block;max-width:100%}
.nowrap{white-space:nowrap}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}

/* ===== Header ===== */
.site-header{width:100%;max-width:var(--hero-max);margin:0 auto;padding:0 calc(var(--hx) + var(--cpx) + var(--tagx)) 0 calc(var(--hx) + var(--cpx) + var(--tx));height:46px;display:flex;align-items:center;justify-content:space-between;flex:none}
.logo img{height:26px;width:auto}
.nav{display:flex;gap:32px}
.nav a{color:var(--nav);font-size:15px;font-weight:400;transition:color .2s}
.nav a:hover,.nav a[aria-current="page"]{color:var(--brand)}

/* ===== Footer ===== */
.site-footer{width:100%;max-width:var(--hero-max);margin:0 auto;padding:0 calc(var(--hx) + var(--cpx) + var(--tagx)) 0 calc(var(--hx) + var(--cpx) + var(--tx));height:30px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:11.5px;flex:none}
.site-footer .copy{color:var(--foot)}
.site-footer a{color:var(--ink)}
.site-footer a:hover{color:var(--brand)}
.site-footer .s{display:none}

/* ===== Landing: celá stránka na výšku obrazovky ===== */
.landing{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.hero{flex:1;min-height:0;width:100%;max-width:var(--hero-max);margin:0 auto;padding:0 var(--hx)}
.hero-card{height:100%;background:var(--card);border-radius:var(--radius);padding:clamp(14px,2.2vh,22px) var(--cpx);display:grid;grid-template-columns:1fr 1fr;gap:28px}

.hero-left{display:flex;flex-direction:column;min-height:0;padding:clamp(6px,1.4vh,16px) 0 0 var(--tx)}
.hero-title{font-size:clamp(40px,4.1vw,66px);line-height:1.06;letter-spacing:-.015em;font-weight:400;color:var(--ink)}
.hero-sub{margin-top:clamp(14px,2.2vh,28px);font-size:clamp(19px,1.85vw,30px);line-height:1.45;color:var(--ink-2);font-weight:400}
.hero-sub .arrow{display:inline-block;animation:nudge 1.8s ease-in-out infinite}
@keyframes nudge{0%,100%{transform:translateY(0)}50%{transform:translateY(4px)}}

/* Formulář: zabere zbylou výšku; když je otázka vyšší, posouvá se uvnitř */
.form-wrap{flex:1;min-height:0;margin-top:clamp(20px,4vh,44px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;padding:0;scrollbar-width:thin;scrollbar-color:#e2dcd2 transparent}
.form-box{position:relative;width:100%;overflow:hidden;flex:none;min-height:180px}
.form-box iframe{position:absolute;left:0;top:0;width:111.2%;border:0;display:block;transform-origin:0 0;transform:scale(.9)}
.form-fallback{font-family:var(--text);font-size:15px;color:var(--nav);padding:16px 0}
.form-fallback a{color:var(--brand);text-decoration:underline}

/* Obrázek + panely */
.hero-right{position:relative;min-height:0;border-radius:16px;overflow:hidden;background:#ece6dc}
.hero-right picture,.hero-right img{width:100%;height:100%;object-fit:cover;object-position:60% 55%}
.pills{position:absolute;top:14px;right:var(--tagx);left:var(--tagx);display:flex;justify-content:flex-end;flex-wrap:wrap;gap:5px}
.pill{font-size:clamp(11px,.85vw,13px);line-height:1;padding:clamp(7px,.6vw,9px) clamp(9px,.9vw,13px);border-radius:999px;color:var(--ink);white-space:nowrap}
.pill:nth-child(1){background:var(--pill-1)}
.pill:nth-child(2){background:var(--pill-2)}
.pill:nth-child(3){background:var(--pill-3)}

.offers{position:absolute;right:12px;bottom:12px;display:flex;flex-direction:column;align-items:stretch;gap:6px;max-width:calc(100% - 24px)}
.offer{position:relative;background:#fff;border-radius:10px;padding:7px 12px 7px 30px;display:flex;align-items:center;gap:10px;box-shadow:0 2px 14px rgba(38,14,1,.08);width:auto}
.offer .num{font-size:clamp(22px,1.7vw,26px);min-width:.8em;text-align:center;line-height:1;color:var(--ink-2);font-weight:400;white-space:nowrap}
.offer .txt{font-size:clamp(12px,.9vw,13.5px);line-height:1.25;color:var(--ink)}
.offer .pulse{position:absolute;left:9px;top:9px;width:9px;height:9px;border-radius:50%;background:var(--dot)}
.offer .pulse::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--dot);animation:pulse 1.8s ease-out infinite}
@keyframes pulse{0%{transform:scale(1);opacity:.7}100%{transform:scale(2.8);opacity:0}}

/* ===== Podstránky ===== */
.page{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.page main{flex:1;width:100%;max-width:calc(var(--wrap) + 2*var(--gutter));margin:0 auto;padding:clamp(48px,12vh,140px) var(--gutter) clamp(48px,10vh,120px)}
.page-title{font-size:clamp(36px,4vw,62px);line-height:1.1;text-align:center;font-weight:400;letter-spacing:-.015em;margin-bottom:clamp(32px,6vh,72px)}
.card{background:var(--card);border-radius:24px;padding:clamp(24px,3vw,34px)}
.card h2{font-size:clamp(22px,1.75vw,27px);font-weight:400;line-height:1.2;margin-bottom:clamp(16px,3vh,40px)}
.card p{font-size:15px;line-height:1.45}

.about-grid{max-width:868px;margin:0 auto;display:grid;grid-template-columns:1fr auto;gap:22px;align-items:start}
.about-grid .contact{min-width:250px}
.contact .who{font-size:15px;line-height:1.45}
.contact .gap{height:24px}
.contact a:hover{color:var(--brand)}

.steps{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.steps .card{padding:clamp(24px,3vw,34px) clamp(24px,3vw,34px) clamp(28px,4vh,40px)}

/* právní texty */
.legal{max-width:890px;margin:0 auto;font-family:var(--text);font-size:15px;line-height:1.25;color:var(--ink)}
.legal h1,.legal h2.big{font-family:var(--display);font-size:clamp(26px,2.3vw,34px);font-weight:500;line-height:1.2;margin:0 0 44px}
.legal h2.big{margin-top:64px}
.legal h3{font-size:17px;font-weight:600;margin:22px 0 2px}
.legal p{margin:0 0 18px}
.legal ol,.legal ul{margin:0;padding-left:20px}
.legal ul{list-style:disc}
.legal li ul{padding-left:20px}
.legal a{color:#1a73e8;text-decoration:underline}
.legal .contact-list{margin:-18px 0 18px}
.legal .effective{margin-top:22px}
.legal .short p{margin-bottom:18px}

/* ===== Děkovací stránka ===== */
.thanks-grid{max-width:560px;margin:0 auto}
.thanks-grid .card{text-align:center}
.thanks-grid .card h2{margin-bottom:clamp(12px,2vh,20px)}
.thanks-back{display:flex;justify-content:center;margin-top:clamp(28px,5vh,48px)}
.btn{display:inline-flex;align-items:center;gap:10px;background:var(--brand);color:#fff;font:600 16px/1 var(--text);padding:15px 22px;border-radius:8px;transition:background .2s}
.btn:hover{background:#5a2810}

/* ===== Cookie lišta ===== */
.consent{position:fixed;left:12px;right:12px;bottom:12px;z-index:50;max-width:560px;margin:0 auto;background:#fff;border-radius:16px;box-shadow:0 8px 32px rgba(38,14,1,.16);padding:14px 16px;font-family:var(--text);font-size:13px;line-height:1.4;color:var(--ink);display:none}
.consent.show{display:block}
.consent p{margin-bottom:10px}
.consent p a{text-decoration:underline;color:var(--nav)}
.consent .btns{display:flex;gap:8px;justify-content:flex-end}
.consent button{font:600 13px/1 var(--text);border-radius:8px;padding:10px 14px;cursor:pointer;border:1px solid #e5ddd2;background:#fff;color:var(--ink)}
.consent button.ok{background:var(--brand);border-color:var(--brand);color:#fff}

/* ===== Tablet ===== */
@media (max-width:1100px){
  .hero-card{padding:16px;gap:20px}
  .form-wrap{padding:0}
}

/* ===== Tablet na výšku + mobil: pod sebou, vše na jednu výšku ===== */
@media (max-width:860px){
  :root{--hx:10px;--cpx:10px;--tx:6px;--tagx:10px}
  .site-header{height:46px}
  .logo img{height:24px}
  .nav{gap:18px}
  .nav a{font-size:15px}

  .landing{height:auto;min-height:100dvh;overflow:visible}
  .hero{flex:none}
  .hero-card{height:auto;display:flex;flex-direction:column;gap:0;padding:10px var(--cpx);border-radius:22px}
  .hero-right{order:-1;flex:none;height:auto;aspect-ratio:1/1;border-radius:14px}
  .hero-right img{object-position:62% 55%}
  .pills{top:10px;justify-content:flex-end;flex-wrap:nowrap;gap:4px}
  .pill{font-size:clamp(9px,2.5vw,11px);padding:5px clamp(5px,1.5vw,8px)}
  .offers{right:8px;bottom:8px;gap:4px}
  .offer{padding:5px 9px 5px 24px;gap:7px;border-radius:8px;width:auto}
  .offer .num{font-size:19px}
  .offer .txt{font-size:11px}
  .offer .pulse{left:7px;top:7px;width:7px;height:7px}

  .hero-left{flex:none;padding:16px 0 0 var(--tx)}
  .hero-title{font-size:clamp(27px,7.6vw,44px);line-height:1.08}
  .hero-sub{margin-top:8px;font-size:clamp(15px,4.1vw,22px);line-height:1.35}
  .form-wrap{flex:none;margin-top:20px;overflow:visible}

  .site-footer{height:auto;padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom));font-size:11px;gap:10px}
  .site-footer .l{display:none}
  .site-footer .s{display:inline}

  .page main{padding-top:48px}
  .about-grid,.steps{grid-template-columns:1fr}
  .about-grid .contact{min-width:0}
}

/* nízké obrazovky (telefon na šířku): zrušit pevnou výšku, ať jde stránka posouvat */
@media (max-height:520px){
  .landing{height:auto;min-height:100dvh;overflow:visible}
  .hero-card{height:auto}
  .hero-right{min-height:320px}
  .form-wrap{overflow:visible}
}


/* ===== Animace (postupné zobrazení při načtení) ===== */
@keyframes nvUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes nvFade{from{opacity:0}to{opacity:1}}
@keyframes nvImg{from{opacity:0;transform:scale(.975)}to{opacity:1;transform:none}}
@keyframes nvPop{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:none}}
.site-header,.site-footer{animation:nvFade .4s ease-out both}
.hero-card{animation:nvFade .35s ease-out both}
.hero-right{animation:nvImg .6s cubic-bezier(.2,.7,.2,1) .05s both}
.hero-title{animation:nvUp .5s cubic-bezier(.2,.7,.2,1) .12s both}
.hero-sub{animation:nvUp .5s cubic-bezier(.2,.7,.2,1) .22s both}
.form-wrap{animation:nvUp .5s cubic-bezier(.2,.7,.2,1) .32s both}
.pill{animation:nvPop .4s cubic-bezier(.2,.7,.2,1) both}
.pill:nth-child(1){animation-delay:.45s}
.pill:nth-child(2){animation-delay:.53s}
.pill:nth-child(3){animation-delay:.61s}
.offer{animation:nvPop .45s cubic-bezier(.2,.7,.2,1) both}
.offer:nth-child(1){animation-delay:.75s}
.offer:nth-child(2){animation-delay:.85s}
.offer:nth-child(3){animation-delay:.95s}
.offer:nth-child(2) .pulse::after{animation-delay:.6s}
.offer:nth-child(3) .pulse::after{animation-delay:1.2s}
/* podstránky */
.page-title{animation:nvUp .5s cubic-bezier(.2,.7,.2,1) .05s both}
.page main .card{animation:nvUp .5s cubic-bezier(.2,.7,.2,1) both}
.page main .card:nth-child(1){animation-delay:.18s}
.page main .card:nth-child(2){animation-delay:.28s}
.page main .card:nth-child(3){animation-delay:.38s}
.page main .card:nth-child(4){animation-delay:.48s}
.thanks-back{animation:nvUp .5s cubic-bezier(.2,.7,.2,1) .4s both}
.legal{animation:nvUp .5s cubic-bezier(.2,.7,.2,1) .05s both}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-delay:0s!important}
  .offer .pulse::after,.hero-sub .arrow{animation:none}
}
