:root{
  --brand:#b5151c;
  --accent:#ffd051;

  --ink:#0f172a;
  --muted:#475569;

  --bg:#f6eef1;
  --card:#ffffff;
  --border:rgba(15, 23, 42, .08);

  --shadow: 0 18px 45px rgba(15,23,42,.12);
  --radius:22px;
}

/* ===== RESET ===== */
*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 50% 0%, #fff, var(--bg));
}

.page{
  max-width:1020px;
  margin:26px auto;
  padding:0 14px;
}

/* ===== TOP CARD ===== */
.topcard{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius) var(--radius) 0 0; /* spodní rohy rovné */
  box-shadow:var(--shadow);
  overflow:hidden;
  position:relative;
}

/* obsah pod hlavičkou držíme čistě bílý */
.content{
  position: relative;
  z-index: 1;
  background:#fff;
}

/* ===== HEADER / TOPBAR ===== */
.topbar{
  position:relative;
  z-index:2;
  padding:18px 20px 16px;
  background:#fff;
  overflow:hidden;
}

.topbar.topbar-2col{
  display:grid;
  grid-template-columns: 1fr 300px;
  gap:18px;
  align-items:stretch;
}

.topbar > *{
  position:relative;
  z-index:2;
}

.topbar-left{
  display:flex;
  flex-direction:column;
  min-height:100%;
}

/* brand blok */
.topbar .brand{
  display:flex;
  align-items:flex-start;
  gap:16px;

  position: relative;
  padding:12px 14px;
  border-radius:16px;
}

.topbar .brand::before{
  content:"";
  position:absolute;
  inset:-40px -80px -30px -30px;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255,208,81,.35),
      rgba(255,208,81,.18),
      rgba(255,208,81,.08),
      rgba(255,208,81,0) 70%
    );
  filter: blur(26px);
}

.topbar .brand-logo{
  width:86px;
  height:86px;
  border-radius:50%;
  object-fit:contain;
  display:block;
  background:#fff;
  box-shadow:0 10px 22px rgba(15,23,42,.12);
  flex:0 0 auto;
}

.topbar .brand-text{ min-width:0; padding-top:2px; }

.topbar .brand-title{
  font-weight:900;
  font-size:40px;
  line-height:1.05;
  letter-spacing:.2px;
}

.topbar .brand-title .t1{ color:#0b1b3a; }
.topbar .brand-title .t2{
  color: var(--brand);
  text-shadow: 0 1px 0 rgba(0,0,0,.14);
}

.topbar .brand-sub{
  margin-top:6px;
  color:var(--muted);
  font-weight:600;
  font-size:14px;
  line-height:1.25;
  max-width:560px;
}

/* pravý sloupec: koláž */
.topbar-collage{
  width:300px;
  display:flex;
  justify-content:flex-end;
  align-items:flex-start;
  justify-self:end;
  position:relative;
}

.collage-img{
  width:260px;
  height:auto;
  display:block;
}

/* HERO vypnutý */
.hero{ display:none !important; }

/* ===== OBSAH ===== */
.section-title{
  text-align:center;
  margin:18px 0;
  background:transparent !important;
  box-shadow:none !important;
}
.section-title::before,
.section-title::after{ content:none !important; }

.section-title h2{
  margin:0;
  font-size:36px;
  font-weight:900;
  color: var(--ink) !important;
  text-shadow:none !important;
  filter:none !important;
}

/* ===== PROJEKTY ===== */
.projects{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  max-width:700px;
  margin:0 auto;
}

.p-card{
  background:#fff;
  border-radius:18px;
  box-shadow:var(--shadow);
  overflow:hidden;
  border:1px solid var(--border);

  display:flex;
  flex-direction:column;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, opacity .18s ease;
}

.p-imgwrap{
  position:relative;
  overflow:hidden;
  aspect-ratio: 3 / 4;
  flex:1;
}

.p-imgwrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition: transform .18s ease, filter .18s ease;
}

.p-imgtitle{
  position:absolute;
  top:12px;
  left:14px;
  font-size:26px;
  font-weight:900;
  color:#fff;
  text-shadow:0 6px 16px rgba(0,0,0,.4);
  transition: transform .18s ease, opacity .18s ease;
}

.p-body{
  padding:14px;
  text-align:center;
  margin-top:auto;
}

.p-body p{
  font-weight:700;
  color:#334155;
}

.btn{
  display:inline-block;
  padding:10px 22px;
  border-radius:14px;
  font-weight:900;
  text-decoration:none;
  transition: transform .18s ease;
}

.btn-red{
  background:linear-gradient(180deg,#d11b24,#a90f17);
  color:#fff;
}

.btn-wide{ width:70%; }

/* hover projekty */
.p-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15,23,42,.18);
}
.p-card:hover .p-imgwrap img{
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.03);
}
.p-card:hover .p-imgtitle{
  transform: translateY(-2px);
  opacity: 1;
}
.p-card:hover .btn{
  transform: translateY(-2px);
}
@media (hover:none){
  .p-card:hover{ transform:none; box-shadow: var(--shadow); }
  .p-card:hover .p-imgwrap img{ transform:none; filter:none; }
  .p-card:hover .btn{ transform:none; }
}

/* =================================================
   MENU – TEXT V LIŠTĚ (UŽŠÍ, BEZ OHRANIČENÍ MEZI TEXTY)
   ================================================= */

.menubar{
  display:flex;
  flex-wrap:wrap;
  margin-top:10px;
}

/* lišta */
.menubar.menubar-in-left{
  padding:4px 10px;                 /* ⬅️ UŽŠÍ */

  background: linear-gradient(
    180deg,
    #2b2f34,
    #1e2125
  );

  border-radius:8px;                /* menší radius */
  border:1px solid rgba(255,255,255,.08);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 6px 16px rgba(15,23,42,.28);
}

/* položka – čistý text */
.menubar.menubar-in-left a{
  position:relative;

  padding:5px 12px;                 /* ⬅️ MENŠÍ */
  font-size:13px;
  font-weight:900;
  letter-spacing:.35px;

  color:#e5e7eb;
  text-decoration:none;

  background:none;
  border:none;
  border-radius:0;

  transition: color .15s ease;
}

/* ❌ ŽÁDNÉ oddělovače */
/* (schválně tu NIC není) */

/* hover */
.menubar.menubar-in-left a:hover{
  color: var(--accent);
}

/* aktivní položka */
.menubar.menubar-in-left a.active{
  color: var(--accent);
}

/* jemná zlatá linka pod aktivní */
.menubar.menubar-in-left a.active::after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:-2px;
  height:2px;

  background: var(--accent);
  border-radius:2px;
  box-shadow: 0 0 6px rgba(255,208,81,.45);
}

/* mobil */
@media (max-width:720px){
  .menubar.menubar-in-left{
    padding:6px;
  }

  .menubar.menubar-in-left a{
    padding:8px 10px;
    font-size:14px;
  }
}


/* ===== FOOTER – PŮVODNÍ (černý), bez sjednocování ===== */
.footer{
  margin:0;
  padding:0;
  background:transparent;
}

.footer-inner{
  background: linear-gradient(
  180deg,
  #2b2f34,
  #1e2125
);

  color:#e5e7eb;
  text-align:center;
  font-size:13px;
  font-weight:700;

  padding:14px 20px;
  border-radius:0 0 var(--radius) var(--radius);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 -8px 22px rgba(0,0,0,.35);
}

/* ===== RESPONSIVE (čisté, bez duplicit) ===== */

@media (max-width:900px){
  /* layout headeru */
  .topbar .brand-title{ font-size:32px; }
  .topbar .brand-logo{ width:74px; height:74px; }

  .topbar.topbar-2col{ grid-template-columns: 1fr 260px; }
  .topbar-collage{ width:260px; }
  .collage-img{ width:220px; }

  /* projekty už v 1 sloupci */
  .projects{ grid-template-columns:1fr; max-width:520px; }
}

/* MOBIL */
@media (max-width:720px){

  /* stránka kompaktnější */
  .page{ margin:14px auto; padding:0 10px; }
  .topbar{ padding:14px 14px 12px; }

  /* 2 sloupce -> 1 */
  .topbar.topbar-2col{
    grid-template-columns:1fr;
    gap:10px;
  }

  /* brand kompaktnější */
  .topbar .brand{ gap:12px; padding:10px 10px; }
  .topbar .brand-logo{ width:68px; height:68px; }
  .topbar .brand-title{ font-size:28px; line-height:1.05; }
  .topbar .brand-sub{ font-size:13px; line-height:1.25; }

  /* ✅ koláž na mobilu pryč */
  .topbar-collage{ display:none; }

  /* menu – tap friendly */
  .menubar.menubar-in-left{
    width:100%;
    justify-content:center;
    gap:2px;
    padding:6px;
  }
  .menubar.menubar-in-left a{
    padding:10px 10px;
    font-size:14px;
  }

  /* ✅ projekty – nízké karty, aby se vešly na výšku */
  section.projects{
    grid-template-columns:1fr;
    max-width:100%;
    margin:0 auto;
    gap:14px;
    padding:0 8px;
  }

  section.projects .p-card{
    border-radius:14px;
  }

  section.projects .p-imgwrap{
    aspect-ratio: 16 / 7;   /* nízký banner */
    max-height: 42vh;       /* pojistka proti obří výšce */
  }

  section.projects .p-imgwrap img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  section.projects .p-imgtitle{
    font-size:20px;
    top:auto;
    left:14px;
    bottom:12px;
  }

  section.projects .p-body{
    padding:10px 12px;
  }
}

/* extra malý mobil */
@media (max-width:520px){
  .topbar .brand-title{ font-size:26px; }
}

@media (max-width:420px){
  section.projects .p-imgwrap{ max-height: 38vh; }
  section.projects .p-imgtitle{ font-size:18px; }
}

/* =========================
   MOBIL – PROJEKTY (FINÁL)
   ========================= */
@media (max-width:720px){

  section.projects{
    grid-template-columns:1fr;
    gap:14px;
    padding:0 8px;
    max-width:100%;
  }

  section.projects .p-card{
    border-radius:14px;
    overflow:hidden;
  }

  /* ⬅️ KLÍČ: obrázek nesmí být vyšší než 30 % displeje */
  section.projects .p-imgwrap{
    height: 30vh;        /* HLAVNÍ ZMĚNA */
    max-height: 220px;  /* pojistka pro větší mobily */
  }

  section.projects .p-imgwrap img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  section.projects .p-imgtitle{
    font-size:18px;
    bottom:10px;
  }
}

/* =========================
   MOBIL – PROJEKTY (UŽŠÍ, KLASICKÁ VÝŠKA)
   ========================= */
@media (max-width:720px){

  /* kontejner projektů – užší než obrazovka */
  section.projects{
    grid-template-columns:1fr;
    max-width:85%;        /* ⬅️ HLAVNÍ ZMĚNA */
    margin:0 auto;        /* vycentrovat */
    gap:16px;
  }

  /* karta – beze změny výšky */
  section.projects .p-card{
    border-radius:18px;
  }

}

/* =========================
   MOBIL – PROJEKTY (UŽŠÍ, KLASICKÁ VÝŠKA)
   ========================= */
@media (max-width:720px){

  /* kontejner projektů – užší než obrazovka */
  section.projects{
    grid-template-columns:1fr;
    max-width:85%;        /* ⬅️ HLAVNÍ ZMĚNA */
    margin:0 auto;        /* vycentrovat */
    gap:16px;
  }

  /* karta – beze změny výšky */
  section.projects .p-card{
    border-radius:18px;
  }

}

/* =========================
   MOBIL – PROJEKTY (TEXT JE V OBRÁZKU)
   - užší karty
   - vyšší obrázky
   - bez ořezu (contain)
   ========================= */
@media (max-width:720px){

  /* užší než celá šířka */
  section.projects{
    grid-template-columns:1fr;
    max-width:86%;
    margin:0 auto;
    gap:18px;
  }

  /* vyšší "rámeček" pro obrázek */
  section.projects .p-imgwrap{
    aspect-ratio: 3 / 4;   /* vyšší než 16/9 */
    background:#0b0f16;    /* aby při contain nevznikla “bílá plocha” */
  }

  /* důležité: neřezat text v obrázku */
  section.projects .p-imgwrap img{
    width:100%;
    height:100%;
    object-fit: contain;   /* ⬅️ žádné ořezávání */
    display:block;
  }

  /* nepotřebujeme overlay text */
  section.projects .p-imgtitle{
    display:none;
  }
}



