
/* ---------- Base Typography & Colors ---------- */
:root{
  --bg:#ffffff;
  --text:#141414;
  --muted:#666;
  --line:#eee;
  --primary:#f7d9e3;   /* pastel pink */
  --primary-600:#f2bfd1;
  --accent:#d1e9ff;    /* soft baby blue */
  --radius:16px;
  --shadow:0 6px 24px rgba(0,0,0,.08);
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji','Segoe UI Emoji';
  color:var(--text);
  background:var(--bg);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

h1,h2,h3{
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  letter-spacing:.3px;
}

.container{width:min(1100px, 92%); margin:0 auto;}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

/* ---------- Header / Nav ---------- */
header{
  position:sticky;top:0;background:rgba(255,255,255,.9);
  backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--line);
  z-index:50;
}
nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0;
}
.logo{font-weight:700; font-size:1.3rem; letter-spacing:.5px}
.nav-menu{list-style:none; display:flex; gap:22px}
.nav-menu a{padding:8px 10px; border-radius:12px; transition:.2s}
.nav-menu a:hover{background:var(--primary);}

/* ---------- Hero ---------- */
.hero{padding:72px 0 36px 0; text-align:center}
.hero h1{font-size:clamp(2.2rem, 4vw, 3rem);}
.hero h1 span{
  background:linear-gradient(90deg, var(--primary-600), var(--accent));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero p{color:var(--muted); margin-top:10px; font-size:1.05rem}

/* ---------- Projects ---------- */
.section{padding:56px 0}
.section h2{text-align:center; margin-bottom:22px; font-size:2rem}
.filters{display:flex; gap:8px; justify-content:center; margin-bottom:16px}
.tag{padding:6px 12px; border:1px solid var(--line); border-radius:999px; cursor:pointer}
.tag.active{background:var(--primary); border-color:transparent}

.project-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px,1fr));
  gap:18px;
}

.project-card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  transition:transform .2s ease, box-shadow .2s ease;
}

.project-card:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 30px rgba(0,0,0,.12);
}

.project-card .thumb{
  aspect-ratio:4/3;
  object-fit:cover;
  width:100%;
}

.project-card .content{
  padding:14px 14px 16px 14px;
  display:flex;
  flex-direction:column;
  flex-grow:1;
}

.project-card .type{
  font-size:.78rem;
  color:#555;
  background:#fafafa;
  border:1px solid #efefef;
  padding:3px 8px;
  border-radius:999px;
  display:inline-block;
  margin-bottom:8px;
}

.project-card h3{
  font-size:1.1rem;
  margin-bottom:6px;
}

.project-card p{
  color:var(--muted);
  font-size:.95rem;
  margin-bottom:10px;
  flex-grow:1;   /* ⬅️ DÔLEŽITÉ */
}

.project-card .btn{
  display:inline-block;
  padding:10px 12px;
  border-radius:12px;
  background:var(--primary);
  font-weight:600;
  margin-top:auto;     /* 🔑 tlačidlo vždy dole */
  text-align:center;
}

.project-card .btn:hover{
  filter:brightness(.97);
}

/* ---------- Reviews ---------- */
.reviews{display:grid; grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); gap:16px}
.review-card{border:1px solid var(--line); border-radius:var(--radius); padding:16px; background:#fff; box-shadow:var(--shadow)}
.review-card .who{font-weight:600}
.review-form{margin-top:18px; display:grid; gap:10px}
.input, textarea, select{
  width:100%; padding:12px 14px; border-radius:12px; border:1px solid #ddd; font:inherit;
  background:#fff;
}
button{cursor:pointer}
.btn-primary{padding:12px 16px; border:none; border-radius:12px; background:var(--text); color:#fff; font-weight:600}
.btn-primary:hover{opacity:.9}

/* ---------- Footer ---------- */
footer{border-top:1px solid var(--line); margin-top:48px; padding:28px 0; color:#444}
.footer-links{display:flex; gap:14px; justify-content:center; margin-top:8px}
.icon{width:22px; height:22px; display:inline-block}

/* ---------- Project page ---------- */
.project-hero{display:grid; gap:20px; grid-template-columns:1.2fr .8fr; align-items:start}
.project-hero h1{margin-bottom:6px}
.meta{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px}
.meta .chip{background:#fafafa; border:1px solid var(--line); border-radius:999px; padding:6px 10px; font-size:.85rem}
.gallery{display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:12px; margin-top:14px}
@media (max-width: 820px){
  .project-hero{grid-template-columns:1fr}
}
