:root{
  --bg0:#07090c;
  --bg1:#0b1118;

  --paper:#ffffff;
  --paper2:#f7f6f3;

  --text:#eef3f8;
  --muted:#a7b1bd;

  --ink:#111317;
  --ink2:#505660;

  --line: rgba(255,255,255,.10);
  --line2: rgba(17,19,23,.10);

  --card: rgba(255,255,255,.08);
  --card2: rgba(255,255,255,.12);

  --shadow: 0 24px 80px rgba(0,0,0,.55);
  --shadowSoft: 0 18px 60px rgba(0,0,0,.12);

  --r: 18px;
  --r2: 22px;

  --accent:#f2a313;
  --accent2:#ffbf3e;

  --max: 1180px;

  --headerH: 76px;
  --headerH2: 64px;
}

/* Reset */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink);
  background:var(--paper2);
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
button,input,textarea{font:inherit}

/* Layout */
.container{width:min(var(--max), calc(100% - 40px)); margin:0 auto}
.section{padding:72px 0}
.section--light{background:var(--paper)}
.section--dark{background:linear-gradient(180deg, var(--bg1), var(--bg0)); color:var(--text)}

@media (max-width: 720px){
  .container{width:calc(100% - 28px)}
  .section{padding:56px 0}
}

/* Header */
.header{
  position:fixed;
  inset:0 0 auto 0;
  z-index:50;
  height:var(--headerH);
  transition:height .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  background:linear-gradient(180deg, rgba(10,12,15,.85), rgba(10,12,15,.35));
  border-bottom:1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header.is-scrolled{
  height:var(--headerH2);
  background:rgba(10,12,15,.82);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.header__inner{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.brand__mark{
  width:36px; height:36px;
  border-radius:12px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  display:grid;
  place-items:center;
  position:relative;
  overflow:hidden;
}
.brand__mark::after{
  content:"";
  position:absolute;
  inset:-30%;
  background:radial-gradient(circle at 30% 30%, rgba(242,163,19,.28), transparent 55%);
  transform:rotate(20deg);
}
.brand__mark .brick{
  width:14px; height:6px;
  background:linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius:4px;
  display:block;
  margin:2px 0;
  position:relative;
  z-index:1;
}
.brand__text{display:flex; flex-direction:column; line-height:1.05}
.brand__name{font-weight:800; color:#fff; letter-spacing:.2px}
.brand__sub{font-size:11px; color:rgba(255,255,255,.70); letter-spacing:.12em}

.nav{
  display:flex;
  align-items:center;
  gap:18px;
}
.nav__link{
  color:rgba(255,255,255,.78);
  font-weight:650;
  font-size:14px;
  padding:10px 10px;
  border-radius:12px;
  transition: background .2s ease, color .2s ease;
}
.nav__link:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
}

.header__actions{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid transparent;
  font-weight:800;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  user-select:none;
}
.btn:active{transform: translateY(1px)}
.btn--sm{padding:10px 14px; border-radius:13px; font-size:14px}
.btn--wide{width:100%}

.btn--primary{
  background:linear-gradient(90deg, var(--accent), var(--accent2));
  color:#1b1406;
  box-shadow: 0 14px 40px rgba(242,163,19,.22);
}
.btn--primary:hover{box-shadow: 0 18px 55px rgba(242,163,19,.30)}

.btn--ghost{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.18);
  color:#fff;
}
.btn--ghost:hover{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.24);
}

/* Hamburger */
.hamburger{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
  position:relative;
}
.hamburger span{
  position:absolute;
  left:12px; right:12px;
  height:2px;
  background:#fff;
  border-radius:2px;
  transition: transform .18s ease, top .18s ease, opacity .18s ease;
}
.hamburger span:nth-child(1){top:15px}
.hamburger span:nth-child(2){top:21px; opacity:.9}
.hamburger span:nth-child(3){top:27px}

.header.is-open .hamburger span:nth-child(1){top:21px; transform:rotate(45deg)}
.header.is-open .hamburger span:nth-child(2){opacity:0}
.header.is-open .hamburger span:nth-child(3){top:21px; transform:rotate(-45deg)}

/* Mobile menu (push-down) */
.mobileMenu{
  max-height:0;
  overflow:hidden;
  border-bottom:1px solid rgba(255,255,255,.10);
  background:rgba(10,12,15,.92);
  transition:max-height .22s ease;
}
.header.is-open .mobileMenu{max-height: 320px;}
.mobileMenu__inner{
  padding:16px 0 18px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.mobileMenu__link{
  padding:12px 12px;
  border-radius:14px;
  color:rgba(255,255,255,.86);
  font-weight:750;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.mobileMenu__link:hover{background:rgba(255,255,255,.09)}

@media (max-width: 940px){
  .nav{display:none}
  .hamburger{display:inline-flex}
  .brand{min-width:auto}

  /* ✅ úprava: na mobilu skryj tlačítko "Kontaktujte nás" v headeru */
  .header__actions .btn{display:none;}
}

/* Hero */
.hero{
  position:relative;
  min-height: 92vh;
  display:flex;
  align-items:stretch;
  color:var(--text);
  height: 100vh;
  padding-top: var(--headerH);
  overflow:hidden;
}
.hero__bg{
  position:absolute;
  inset:0;
  background:
    url("../../imgs/richard-folvarcny.jpg");
  background-size: cover;
  background-position: center;
}
.hero__bg::after{
  content:"";
  position:absolute;
  inset:0;
}

.hero__inner{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:34px;
  align-items:center;
  padding: 52px 0 70px;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  background:rgba(242,163,19,.12);
  color:#8a5a00;
  border:1px solid rgba(242,163,19,.22);
}
.pill--dark{
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.85);
  border-color:rgba(255,255,255,.14);
}

.hero__title{
  margin:14px 0 12px;
  font-size: clamp(34px, 4vw, 56px);
  line-height:1.05;
  letter-spacing:-.02em;
  font-weight:900;
}
.hero__title span{
  background:linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero__lead{
  margin:0 0 18px;
  color:rgba(255,255,255,.78);
  font-size:16px;
  line-height:1.65;
  max-width: 56ch;
}
.hero__cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 18px;
}

.hero__meta{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top:1px solid rgba(255,255,255,.12);
  max-width: 680px;
}
.metaItem{
  display:flex;
  align-items:center;
  gap:10px;
  color:rgba(255,255,255,.82);
  font-weight:750;
  font-size:13px;
}
.metaItem__icon{
  width:34px; height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
}

.stats{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:14px;
}
.statCard{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  border-radius: var(--r2);
  padding:18px 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.statCard__num{
  font-size:28px;
  font-weight:950;
  letter-spacing:-.02em;
  background:linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.statCard__lbl{
  margin-top:4px;
  color:rgba(255,255,255,.75);
  font-weight:750;
  font-size:13px;
}

.scrollHint{
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  width:44px; height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.18);
  display:grid;
  place-items:center;
}
.scrollHint__dot{
  width:6px; height:6px;
  border-radius:999px;
  background:rgba(255,255,255,.85);
  animation: bounce 1.4s infinite ease-in-out;
}
@keyframes bounce{
  0%,100%{transform: translateY(-4px); opacity:.75}
  50%{transform: translateY(6px); opacity:1}
}

/* ✅ úprava: na menších zařízeních zruš pevnou výšku hero, aby se statCard neořezávaly */
@media (max-width: 980px){
  .hero{
    min-height:auto;
    height:auto;
    padding-bottom:60px;
  }

  .hero__inner{
    grid-template-columns: 1fr;
    padding: 44px 0 40px;
  }

  .hero__right{
    margin-top:24px;
  }

  .stats{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 560px){
  .stats{grid-template-columns: 1fr}

  /* ✅ úprava: jemně zmenšit karty a mezery */
  .statCard{padding:16px}
  .stats{gap:12px}
}

/* Section Head */
.sectionHead{
  text-align:center;
  margin-bottom: 26px;
}
.sectionHead__title{
  margin:10px 0 10px;
  font-size: clamp(26px, 3.2vw, 42px);
  letter-spacing:-.02em;
  font-weight:950;
  color:var(--ink);
}
.sectionHead__lead{
  margin:0 auto;
  max-width: 70ch;
  color: var(--ink2);
  line-height:1.7;
  font-size: 15px;
}
.sectionHead--dark .sectionHead__title{color:var(--text)}
.sectionHead--dark .sectionHead__lead{color:rgba(255,255,255,.72)}

/* Grids */
.grid{display:grid; gap:14px}
.grid--services{grid-template-columns: repeat(4, minmax(0, 1fr))}
.grid--projects{grid-template-columns: repeat(4, minmax(0, 1fr)); gap:16px}

@media (max-width: 1100px){
  .grid--services{grid-template-columns: repeat(3, minmax(0,1fr))}
  .grid--projects{grid-template-columns: repeat(2, minmax(0,1fr))}
}
@media (max-width: 720px){
  .grid--services{grid-template-columns: repeat(2, minmax(0,1fr))}
}
@media (max-width: 520px){
  .grid--services{grid-template-columns: 1fr}
  .grid--projects{grid-template-columns: 1fr}
}

/* Service card */
.serviceCard{
  background: #fff;
  border:1px solid rgba(242,163,19,.28);
  border-radius: var(--r2);
  padding:16px 16px 14px;
  box-shadow: var(--shadowSoft);
  transition: transform .15s ease, box-shadow .2s ease;
  position:relative;
  overflow:hidden;
  justify-items: center;
}
.serviceCard::before{
  content:"";
  position:absolute;
  inset:-50%;
  background:radial-gradient(circle at 20% 20%, rgba(242,163,19,.18), transparent 55%);
  transform: rotate(12deg);
}
.serviceCard:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 70px rgba(0,0,0,.14);
}
.serviceCard__icon{
  width:44px; height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background: rgba(242,163,19,.12);
  border: 1px solid rgba(242,163,19,.18);
  position:relative;
  z-index:1;
}
.serviceCard__title{
  margin:12px 0 6px;
  font-weight:900;
  position:relative;
  z-index:1;
}
.serviceCard__text{
  margin:0;
  color:#5b616b;
  line-height:1.6;
  font-size:14px;
  position:relative;
  z-index:1;
}

/* Projects */
.projectCard{
  position:relative;
  border-radius: 22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 70px rgba(0,0,0,.35);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.projectCard:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 24px 85px rgba(0,0,0,.44);
}
.projectCard__media{
  height: 220px;
  background-size: cover;
  background-position:center;
  filter:saturate(1.05) contrast(1.05);
}
.projectCard__media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.65));
  pointer-events:none;
}
.projectCard__media--a{
  background-image:
    linear-gradient(135deg, rgba(242,163,19,.22), rgba(0,0,0,.25)),
    url("../../imgs/richard-folvarcny.jpg");
}
.projectCard__media--b{
  background-image:
    linear-gradient(135deg, rgba(255,191,62,.18), rgba(0,0,0,.28)),
    url("../../imgs/richard-folvarcny.jpg");
  background-position: 60% 45%;
}
.projectCard__media--c{
  background-image:
    linear-gradient(135deg, rgba(120,200,255,.16), rgba(0,0,0,.30)),
    url("../../imgs/richard-folvarcny.jpg");
  background-position: 45% 55%;
}
.projectCard__media--d{
  background-image:
    linear-gradient(135deg, rgba(120,255,180,.14), rgba(0,0,0,.30)),
    url("../../imgs/richard-folvarcny.jpg");
  background-position: 55% 50%;
}

.tag{
  position:absolute;
  top:12px; left:12px;
  z-index:2;
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  background:rgba(242,163,19,.92);
  color:#1b1406;
  box-shadow: 0 12px 28px rgba(242,163,19,.20);
}

.projectCard__body{
  position:relative;
  z-index:2;
  padding:14px 14px 16px;
}
.projectCard__title{
  margin:0 0 6px;
  font-weight:950;
  letter-spacing:-.01em;
  color:#fff;
}
.projectCard__meta{
  margin:0;
  color:rgba(255,255,255,.72);
  font-weight:750;
  font-size:13px;
}

/* Contact */
.contact{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap:18px;
  align-items:start;
}
@media (max-width: 980px){
  .contact{grid-template-columns: 1fr}
}

.contact__left{display:flex; flex-direction:column; gap:14px}
.contact__title{
  margin:0 0 2px;
  font-weight:950;
  letter-spacing:-.01em;
}
.infoCard{
  background:#fff;
  border:1px solid rgba(242,163,19,.22);
  border-radius: var(--r2);
  padding:14px;
  box-shadow: var(--shadowSoft);
}

/* ✅ úprava: kontaktní řádky – pevná ikona + text vlevo zarovnaný */
.infoRow{
  display:grid;
  grid-template-columns: 52px 1fr;
  align-items:center;
  column-gap:12px;
  padding:12px 10px;
  border-radius:16px;
  min-height:72px;
}
.infoRow + .infoRow{border-top:1px solid rgba(17,19,23,.08)}

.infoRow__icon{
  width:44px; height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background: rgba(242,163,19,.12);
  border: 1px solid rgba(242,163,19,.18);
  justify-self:start;
}

.infoRow__text{
  text-align:left;
  justify-self:start;
}

.infoRow__lbl{
  font-size:12px;
  font-weight:850;
  color:#6a707a;
  margin:0 0 2px;
  line-height:1.2;
}

.infoRow__val{
  font-weight:900;
  color:#1b1f25;
  line-height:1.25;
  word-break:break-word;
}

a.infoRow__val:hover{text-decoration:underline}

.factCard{
  background: linear-gradient(180deg, #111317, #0b1118);
  color:#fff;
  border-radius: var(--r2);
  padding:26px;
  box-shadow: 0 18px 70px rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);
  text-align: left;
}
@media (max-width: 920px){
  .factCard{text-align: center;}
}
.factCard__title{
  font-weight:950;
  letter-spacing:-.01em;
  margin:0 0 8px;
}
.factCard__text{
  color:rgba(255,255,255,.78);
  line-height:1.65;
  font-weight:650;
}

.contact__form{
  background:#fff;
  border:1px solid rgba(242,163,19,.22);
  border-radius: var(--r2);
  padding:18px;
  box-shadow: var(--shadowSoft);
}
.contact__formTitle{
  margin:0 0 14px;
  font-weight:950;
  letter-spacing:-.01em;
}

.formGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.field--full{grid-column: 1 / -1}
@media (max-width: 620px){
  .formGrid{grid-template-columns: 1fr}
}

.field__lbl{
  display:block;
  font-size:12px;
  font-weight:900;
  color:#6a707a;
  margin: 0 0 6px;
}
.field__input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(17,19,23,.14);
  background:#fff;
  outline:none;
  transition:border-color .15s ease, box-shadow .2s ease;
}
.field__input:focus{
  border-color: rgba(242,163,19,.55);
  box-shadow: 0 0 0 4px rgba(242,163,19,.18);
}
.field__textarea{min-height: 140px; resize: vertical}

.formNote{
  margin:10px 2px 0;
  font-size:13px;
  color:#6a707a;
  min-height: 18px;
}

/* Footer */
.footer{
  background:linear-gradient(180deg, #0b1118, #07090c);
  color:rgba(255,255,255,.85);
  padding: 46px 0 0;
}
.footer__inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr .9fr;
  gap:18px;
  padding-bottom: 30px;
}
@media (max-width: 900px){
  .footer__inner{grid-template-columns: 1fr}
}
.brand--footer .brand__mark{background:rgba(255,255,255,.06)}
.footer__desc{
  margin:12px 0 0;
  color:rgba(255,255,255,.68);
  line-height:1.7;
  max-width: 48ch;
}
.footer__ttl{
  font-weight:950;
  margin-bottom:10px;
}
.footer__link{
  display:block;
  padding:8px 0;
  color:rgba(255,255,255,.76);
}
.footer__link:hover{color:#fff}

.footer__bottom{
  border-top:1px solid rgba(255,255,255,.10);
  padding: 14px 0;
}
.footer__bottomInner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.toTop{
  color:rgba(255,255,255,.78);
  font-weight:850;
}
.toTop:hover{color:#fff}

/* Reveal animations */
.reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in{
  opacity:1;
  transform:none;
  justify-content: center;
  text-align: center;
  /* ✅ úprava: odstraněno centrování, které rozbíjelo layout */
}

/* Offset anchor for fixed header */
section[id]{scroll-margin-top: 92px}

/* Body push-down for mobile menu */
body.menu-open{
  padding-top: 0;
}


/* Service cards jako odkazy (obal) */
.serviceLink{
  display:block;
  color:inherit;
}
.serviceLink:focus-visible{
  outline: 3px solid rgba(242,163,19,.45);
  outline-offset: 6px;
  border-radius: var(--r2);
}

/* Before/After grid */
.baGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:16px;
  margin-top: 18px;
}
@media (max-width: 900px){
  .baGrid{grid-template-columns:1fr;}
}

/* Before/After component */
.ba{
 position:relative;
  border-radius: var(--r2);
  overflow:hidden;
  background:#111;
  border: 1px solid rgba(17,19,23,.10);
  box-shadow: var(--shadowSoft);
  min-height: 320px;
}
.ba__img{
    position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.ba__before{
 position:absolute;
  inset:0;
  overflow:hidden;
  border-right: 1px solid rgba(255,255,255,.25);
  /* default */
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}
.ba__range{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  width:calc(100% - 24px);
  z-index:5;
  accent-color: var(--accent);
}
.ba__handle{
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:2px;
  background: rgba(255,255,255,.75);
  z-index:4;
  pointer-events:none;
}
.ba__handle::after{
  content:"↔";
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.22);
  color:#fff;
  font-weight:900;
  letter-spacing:.02em;
}

/* Caption */
.ba__cap{
  position:absolute;
  left:0; right:0;
  top:0;
  padding:12px;
  z-index:3;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0));
  color:#fff;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.ba__tag{
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
}
.ba__tag--right{
  margin-left:auto;
}
.ba__title{
  width:100%;
  font-weight:950;
  letter-spacing:-.01em;
  opacity:.92;
}

.brand img {
  height: 42px;
  width: auto;
}