/* =========================
   Clean UI (2 accents, subtle depth)
   ========================= */
:root{
  --c1:#7c5cff;
  --c2:#0ea5e9;
  --ink:#0b1220;
  --muted:#6b7280;
  --line:#e7eaf2;
  --surface:#ffffff;
  --radius:16px;
  --max:1360px; /* bývalo 1280px – trochu víc místa na PC */
}



/* Base */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0; color:var(--ink);
  font:16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
 background:
    radial-gradient(1100px 700px at 85% -10%,
      color-mix(in oklab, var(--c1) 16%, transparent), transparent 60%),
    radial-gradient(900px 650px at -10% 10%,
      color-mix(in oklab, var(--c2) 14%, transparent), transparent 60%),
    linear-gradient(#fcfcfe, #f7f8fb);

  background-repeat: no-repeat;
  background-size: cover;       /* roztáhne přes plochu */
  background-attachment: fixed; /* drží se viewportu při scrollu (můžeš klidně smazat, pokud nechceš „parallax“ efekt) */
}
a{ color:inherit; text-decoration:none; }
.container{ max-width:var(--max); margin:24px auto; padding:0 60px; }

/* Header – minimalist */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{
  max-width:var(--max); margin:0 auto; padding:12px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.brand{ display:flex; align-items:center; gap:10px; color:var(--ink); }
.logo-mark{     width: 58px;
    height: 63px; }
.brand-name{ font-weight:800; letter-spacing:.2px; }
.site-nav{ display:flex; align-items:center; gap:10px; }
.site-nav a, .theme-btn{
  padding:5px 5px; border-radius:10px; border:1px solid transparent;
}
.site-nav a:hover{ background:#f3f4f6; border-color:#e5e7eb; }
.nav-toggle{ display:none; }

@media (max-width:900px){
  .site-nav{
    position:absolute;
    top:60px;
    left:16px;
    right:16px;
    display:none;
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
    padding:10px;
    flex-direction:column;
       
  }
  .site-nav.open{
    display:flex;
  }

  .container{

padding: 23px;

  }

  /* >>> jen upravený hamburger <<< */
  .nav-toggle{
    display:flex;
    width:40px;
    height:32px;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:4px;
    border-radius:10px;
    border:1px solid #e5e7eb;
    background:#ffffff;
    cursor:pointer;
  }
  .nav-toggle span{
    display:block;
    width:18px;
    height:2px;
    border-radius:999px;
    background:#111827;
  }
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 16px; border-radius:12px; border:1px solid var(--line);
  background:#fff; color:var(--ink); cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  padding: 5px 10px;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0,0,0,.08); }
.btn--primary{
  position:relative; overflow:hidden; color:#fff; border:0;
  background: linear-gradient(180deg, var(--c1), color-mix(in oklab, var(--c1) 70%, #5b3dff));
}
.btn--primary::after{
  content:""; position:absolute; inset:-1px; border-radius:inherit; pointer-events:none;
  background: linear-gradient(90deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 80%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn--primary:hover::after{ transform: translateX(120%); }
.btn.sm{ padding:8px 12px; font-size:14px; }

/* HERO (two-color + optional photo via inline --hero-image) */
.hero{ margin-top:10px; }
.hero.hero--two{
  position:relative; border:1px solid var(--line); border-radius:var(--radius);
  padding:clamp(16px,3vw,24px); overflow:hidden; box-shadow:0 18px 50px rgba(15,23,42,.08);
  isolation:isolate;
}
.hero.hero--two::before{
  content:""; position:absolute; inset:-20% -10% auto -10%; height:82%;
  background:
    radial-gradient(60% 60% at 80% 10%, color-mix(in oklab, var(--c1) 30%, transparent), transparent 70%),
    radial-gradient(60% 60% at 10% 90%, color-mix(in oklab, var(--c2) 28%, transparent), transparent 70%);
  filter: blur(12px) saturate(1.1);
  z-index:-2; transform: translateY(0);
}
.hero.hero--two::after{
  content:""; position:absolute; inset:0; z-index:-3;
  background:
    linear-gradient(180deg, rgba(255,255,255,.0) 0%, rgba(255,255,255,.45) 100%),
    var(--hero-image, none);
  background-size:cover; background-position:center; background-repeat:no-repeat;
  filter: saturate(1.05) contrast(1.02);
}
@media (prefers-reduced-motion: no-preference){
  .hero.hero--two::before{ animation: heroFloat 8s ease-in-out infinite alternate; }
  @keyframes heroFloat{ to{ transform: translateY(8px); } }
}
.hero__inner{ display:grid; grid-template-columns: 1.05fr 1fr; gap:28px; align-items:center; }
.hero__copy h1{ font-size:clamp(28px, 4.2vw, 35px); line-height:1.1; margin:0 0 10px; letter-spacing:-.02em; }
.lead{ font-size:clamp(16px,2.2vw,18px); color:#374151; max-width:720px; }
.hero__cta{ display:flex; flex-wrap:wrap; gap:10px; margin:16px 0 10px; }
.hero__stats{ display:flex; gap:18px; margin:12px 0; flex-wrap:wrap; }
.stat__n{ display:block; font-size:22px; font-weight:800; }
.stat__l{ display:block; color:var(--muted); font-size:13px; }
.hero__media{
  width:100%; min-height:360px; aspect-ratio:4/3;
  background:#f3f4f6 center/cover no-repeat;
  border-radius:16px; border:1px solid var(--line);
  box-shadow:0 12px 28px rgba(0,0,0,.06);
}
@media (max-width:900px){
  .hero__inner{ grid-template-columns:1fr; }
  .hero__media{ min-height:260px; aspect-ratio:16/9; }
}

/* Sections */
.section{ margin:26px 0; }
.section__head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.link{ color:#374151; text-decoration:none; }
.link:hover{ text-decoration:underline; }
.split{ display:grid; grid-template-columns: 1fr 1fr; gap:20px; }
@media (max-width:900px){ .split{ grid-template-columns:1fr; } }
.panel{
  position:relative; background:var(--surface); border:1px solid var(--line);
  border-radius:14px; padding:16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}
.panel:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(15,23,42,.10);
  /* border-color: color-mix(in oklab, var(--line), var(--c1) 32%); */
}
.panel::before{
  content:""; position:absolute; left:0; right:0; top:-1px; height:3px;
  border-top-left-radius:14px; border-top-right-radius:14px;
  background: linear-gradient(90deg, var(--c2), var(--c1));
  opacity:0; transition:opacity .2s ease;
}
.panel:hover::before{ opacity:1; }
.list{ margin:8px 0 16px; padding-left:18px; }
.list li{ margin:6px 0; }

/* Grids */
.grid{ display:grid; gap:18px; }
.grid--cards{ grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--creators{ grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--cards, .grid--creators{ position:relative; z-index:0; }
.grid--cards::before, .grid--creators::before{
  content:""; position:absolute; inset:-14px; z-index:-1; border-radius:24px;
  background:
    radial-gradient(55% 45% at 20% 0%, color-mix(in oklab, var(--c1) 20%, transparent), transparent 65%),
    radial-gradient(50% 40% at 100% 60%, color-mix(in oklab, var(--c2) 18%, transparent), transparent 60%);
  filter: blur(22px) saturate(1.08); pointer-events:none;
}

/* Cards */
.card{
  position:relative; background:var(--surface); 
  /* border:1px solid var(--line); */
  border-radius:14px; padding:14px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 10px 24px rgba(15,23,42,.06);
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(15,23,42,.10);
  /* border-color: color-mix(in oklab, var(--line), var(--c1) 32%); */
}
.card::before{
  content:""; position:absolute; left:0; right:0; top:-1px; height:3px;
  border-top-left-radius:14px; border-top-right-radius:14px;
  background: linear-gradient(90deg, var(--c2), var(--c1));
  opacity:0; transition: opacity .2s ease;
}
.card:hover::before{ opacity:1; }
.card__title{ margin:6px 0 8px; font-size:18px; line-height:1.25; }
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:4px 10px; border-radius:999px; font-size:12px;
  border:1px solid var(--line); background:#fff; color:#374151;
}
.badge .dot{ width:8px; height:8px; border-radius:999px; background:var(--c1); }
.muted{ color:var(--muted); }

/* Deadline progress */
.deadline{ display:flex; align-items:center; gap:10px; margin-top:8px; }
.deadline .bar{
  position:relative; flex:1; height:10px; border-radius:999px; overflow:hidden;
  border:1px solid #e7ebf5; background: linear-gradient(180deg, #f5f7fd, #eef2f9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.deadline .bar i{
  display:block; height:100%; width:0%; border-radius:inherit;
  background: linear-gradient(90deg, var(--c2), var(--c1));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 6px 14px rgba(124,92,255,.18);
  transition: width .6s cubic-bezier(.22,1,.36,1);
  position:relative;
}
@media (prefers-reduced-motion: no-preference){
  .deadline .bar i::after{
    content:""; position:absolute; inset:0;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,.32) 0 8px, rgba(255,255,255,0) 8px 16px);
    mix-blend-mode: soft-light; animation: barShimmer 2.6s linear infinite;
  }
  @keyframes barShimmer{ to{ background-position:160px 0; } }
}

/* Creators */
.creator__cover{ aspect-ratio:16/9; background:#f3f4f6; border-radius:10px; overflow:hidden; border:1px solid var(--line); }
.creator__cover img{ width:100%; height:100%; object-fit:cover; display:block; }
.creator__ph{ display:flex; align-items:center; justify-content:center; font-size:40px; height:100%; color:#374151; }
.creator__meta{ display:flex; align-items:center; gap:10px; margin-top:10px; }
.avatar{ width:36px; height:36px; border-radius:999px; background:#111827; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; }
.creator__name{ font-weight:600; }

/* Steps */
.section--strip{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:12px; }
.steps{ display:grid; grid-template-columns: repeat(4,1fr); gap:10px; text-align:center; }
.steps div{ background:#f9fafb; border:1px solid var(--line); border-radius:12px; padding:12px; }
.steps span{ display:inline-flex; width:28px; height:28px; align-items:center; justify-content:center; border-radius:999px; background:#111827; color:#fff; font-weight:700; margin-bottom:6px; }
@media (max-width:900px){ .steps{ grid-template-columns:1fr 1fr; } }
@media (max-width:580px){ .steps{ grid-template-columns:1fr; } }

/* Quote */
.quote{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px; }
.quote p{ font-size:20px; line-height:1.5; margin:0 0 10px; }
.quote__meta{ display:flex; align-items:center; gap:10px; }
.quote__meta img{ border-radius:999px; border:1px solid var(--line); }

/* Final CTA */
.section.cta{
  text-align:center; background:#111827; color:#fff; border-radius:16px; padding:28px;
  box-shadow:0 16px 44px rgba(15,23,42,.16);
}
.section.cta p{ color:#e5e7eb; }
.section.cta .btn{ background:#fff; border-color:#fff; color:#111827; }
.section.cta .btn:hover{ box-shadow:0 10px 26px rgba(255,255,255,.25); }

/* Reveal motion */
@media (prefers-reduced-motion: no-preference){
  .reveal{ opacity:0; transform: translateY(14px) scale(.985); filter: blur(2px); }
  .reveal.in{ animation: fadeUp .7s cubic-bezier(.22,1,.36,1) forwards; }
  .reveal.stagger-1.in{ animation-delay:.08s; }
  .reveal.stagger-2.in{ animation-delay:.16s; }
  .reveal.stagger-3.in{ animation-delay:.24s; }
  @keyframes fadeUp{
    0%{ opacity:0; transform: translateY(14px) scale(.985); filter: blur(2px); }
    100%{ opacity:1; transform: translateY(0) scale(1); filter: blur(0); }
  }
}
.hero__media img{ width:100%; height:100%; object-fit:cover; display:block; }
/* === FIX: nikdy nebluruj obsah při načítání === */
.reveal{ filter: none !important; }
/* jemná animace bez rozostření */
@media (prefers-reduced-motion: no-preference){
  .reveal{ opacity:0; transform: translateY(12px); }
  .reveal.in{ opacity:1; transform:none; transition: opacity .45s cubic-bezier(.22,1,.36,1),
                                         transform .45s cubic-bezier(.22,1,.36,1); }
}



/* === FIX: nikdy nebluruj obsah při načítání === */
.reveal{ filter: none !important; }
/* jemná animace bez rozostření */
@media (prefers-reduced-motion: no-preference){
  .reveal{ opacity:0; transform: translateY(12px); }
  .reveal.in{ opacity:1; transform:none; transition: opacity .45s cubic-bezier(.22,1,.36,1),
                                         transform .45s cubic-bezier(.22,1,.36,1); }
}

/* ať se ukáže CELÁ fotka (bez ořezu) a ostře */
.hero__media{
  overflow:hidden; /* rámeček drží stíny */
  border-radius:16px; border:1px solid var(--line); box-shadow:0 12px 28px rgba(0,0,0,.06);
  /* zruš případná dřívější omezení výšky/aspect-ratio: */
  min-height:unset; aspect-ratio:auto; background:none;
}
.hero__media img{
  display:block;
  width:100%; height:auto;       /* žádné ořezání, žádná deformace */
  image-rendering:auto;
  /* -webkit-backface-visibility:hidden; */
  transform:translateZ(0);       /* vyhne se subpixel „zrnění“ */
}

/* pokud máš .reveal s blur, zakaž ho – dělá měkký start */
.reveal{ filter:none !important; }
@media (prefers-reduced-motion:no-preference){
  .reveal{ opacity:0; transform: translateY(12px); }
  .reveal.in{ opacity:1; transform:none; transition: opacity .45s cubic-bezier(.22,1,.36,1), transform .45s cubic-bezier(.22,1,.36,1); }
}


/* Badge hodnocení zadavatele */
.client-rating-badge{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.9);
  cursor:pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  height: 79px;
  margin-bottom: 8px;
}
.client-rating-badge:hover{
  transform: translateY(-1px);
  box-shadow:0 10px 24px rgba(15,23,42,.1);
  border-color: color-mix(in oklab, var(--line), var(--c1) 35%);
}
.client-rating-badge__left{
  display:flex;
  flex-direction:column;
}
.client-rating-badge__label{
      font-size: 16px;
    color: #010101;
    margin-bottom: 1px;
}
.client-rating-badge__name{
  font-weight:600;
}
.client-rating-badge__right{
  text-align:right;
  font-size:13px;
}
.cr-stars{
  display:inline-flex;
  gap:3px;
  margin-bottom:2px;
}
.cr-star{
  font-size:16px;
  color:#d1d5db;           /* šedé */
}
.cr-star--full{
  color:#facc15;           /* zlaté */
}
.cr-rating-text{
  font-size:12px;
  color:var(--muted);
}

/* ////////////flash */
.flash-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: flash-fadeIn 0.25s ease-out;
}

.flash-modal {
  background: #fff;
  padding: 2.2rem 2.4rem 2rem;
  border-radius: 18px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  animation: flash-slideUp 0.25s ease-out;
}

.flash-modal.ok {
  border-top: 4px solid var(--success, #2ecc71);
}

.flash-modal.err {
  border-top: 4px solid var(--error, #e74c3c);
}

/* Ikonka nahoře */
.flash-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.flash-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 10px;
  box-sizing: border-box;
  background: radial-gradient(circle at 30% 0%, rgba(255,255,255,0.8), transparent),
              linear-gradient(135deg, #e3f7ff, #f3fff8);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  transform-origin: center;
  animation: flash-pop 0.4s ease-out;
}

.flash-modal.ok .flash-icon {
  background: radial-gradient(circle at 30% 0%, rgba(255,255,255,0.85), transparent),
              linear-gradient(135deg, #a6f0c6, #2ecc71);
}

.flash-modal.err .flash-icon {
  background: radial-gradient(circle at 30% 0%, rgba(255,255,255,0.85), transparent),
              linear-gradient(135deg, #ffb3b3, #e74c3c);
}

/* Kruh + čára animované */
.flash-icon-circle {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2.5;
}

.flash-icon-check,
.flash-icon-cross {
  stroke: #fff;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: flash-draw 0.45s ease-out forwards 0.15s;
}

.flash-title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.flash-text {
  margin: 0 0 1.3rem;
  font-size: 0.98rem;
  color: #4a4a4a;
}

/* Tlačítko */
.flash-btn {
  margin-top: 0.5rem;
  padding: 0.65rem 1.6rem;
  background: var(--brand, #0077ff);
  border: none;
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(0, 119, 255, 0.35);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, opacity 0.15s;
}

.flash-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 119, 255, 0.4);
  opacity: 0.96;
}

.flash-btn:active {
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(0, 119, 255, 0.3);
}

/* Animace */
@keyframes flash-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes flash-slideUp {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes flash-pop {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes flash-draw {
  to { stroke-dashoffset: 0; }
}
