/* ============================================================
   buriandan_ - design system 2026
   Tone: dispatch / ops / data. Bone + ink + signal orange.
   ============================================================ */

/* Fonty servírujeme lokálně z fonts/, žádný externí CDN. @font-face pravidla jsou v sekci HTP additions na konci souboru. */

:root {
  /* Surfaces */
  --bg:           #FAFAF7;
  --bg-2:         #F2F0E8;
  --bg-3:         #ECE8DC;
  --invert-bg:    #0A0A0F;
  --invert-bg-2:  #14141B;

  /* Ink */
  --ink:          #0A0A0F;
  --ink-2:        #1B1B23;
  --muted:        #5C5C66;
  --muted-2:      #8C8C95;
  --invert-ink:   #FAFAF7;
  --invert-muted: #9C9CA8;

  /* Lines */
  --border:        #E2DED2;
  --border-strong: #C9C3B0;
  --invert-border: #26262E;

  /* Accent */
  --accent:        #FF4D1A;
  --accent-2:      #FF6B3D;
  --accent-3:      #FFE2D5;
  --accent-ink:    #B33308;

  /* Type */
  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body:    'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Scale */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;
  --s-32: 8rem;
  --s-40: 10rem;

  /* Soft shadows */
  --shadow-sm:  0 1px 2px rgba(10,10,15,.04);
  --shadow:     0 4px 14px -4px rgba(10,10,15,.08);
  --shadow-md:  0 12px 32px -12px rgba(10,10,15,.12);
  --shadow-lg:  0 24px 56px -20px rgba(10,10,15,.16);

  /* Radii */
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 12px;
  --r-xl: 16px;

  --max: 1280px;
  --t: 180ms cubic-bezier(.2,.7,.2,1);
}

/* - Reset - */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-feature-settings: 'cv11','ss01','ss03';
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--accent); color: var(--bg); }

/* - Typography - */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
}
h1 { font-size: clamp(2.75rem, 7vw, 6rem); letter-spacing: -0.045em; font-weight: 500; }
h2 { font-size: clamp(2.125rem, 4.8vw, 3.75rem); letter-spacing: -0.04em; font-weight: 500; }
h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); letter-spacing: -0.025em; line-height: 1.2; font-weight: 500; }
h4 { font-size: 1.125rem; line-height: 1.3; }

p { color: var(--ink-2); line-height: 1.65; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.375rem); color: var(--muted); max-width: 60ch; line-height: 1.55; font-weight: 400; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--accent);
}
.invert .eyebrow,
.invert .eyebrow * { color: var(--invert-muted); }
.invert .eyebrow::before { background: var(--accent); }

/* - Layout - */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--s-6); }
@media (min-width: 768px) { .container { padding: 0 var(--s-8); } }

.section {
  padding: var(--s-24) 0;
}
.section.invert {
  background: var(--invert-bg);
  color: var(--invert-ink);
}
.section.invert h1, .section.invert h2, .section.invert h3, .section.invert h4 { color: var(--invert-ink); }
.section.invert p { color: var(--invert-muted); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-16);
  max-width: 60rem;
}
.section-head .lead { margin-top: var(--s-3); }

@media (min-width: 1024px) {
  .section { padding: var(--s-40) 0; }
}

/* - Buttons (větší, vzdušnější) - */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 1.1rem 1.75rem;
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(255,77,26,.45);
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 8px 24px -6px rgba(255,77,26,.55);
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.invert .btn-ghost { color: var(--invert-ink); border-color: var(--invert-ink); }
.invert .btn-ghost:hover { background: var(--invert-ink); color: var(--invert-bg); }
.btn-arrow { gap: var(--s-2); }
.btn-arrow .arrow { transition: transform var(--t); }
.btn-arrow:hover .arrow { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-4); }

/* - Nav (vzdušnější, větší font) - */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: var(--s-6);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--display);
  letter-spacing: -0.03em;
  transition: opacity var(--t);
}
.nav-logo:hover { opacity: .8; }
.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-sm);
}
.nav-logo-text {
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.nav-logo-accent {
  color: var(--accent);
  margin-left: 1px;
}
.nav-menu {
  display: none;
  gap: var(--s-10);
  align-items: center;
}
.nav-link {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 0;
  transition: color var(--t);
  letter-spacing: -0.005em;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 1rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  padding: 11px 18px;
  letter-spacing: -0.005em;
  transition: background var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
}
.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-toggle {
  width: 48px; height: 48px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav-menu { display: flex; }
  .nav-toggle { display: none; }
}

@media (max-width: 1023px) {
  .nav-menu {
    position: absolute;
    top: 84px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-strong);
    padding: var(--s-6);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-5);
  }
  .nav-menu.active { display: flex; }
  .nav-link { font-size: 1.125rem; }
  .nav-logo-text { font-size: 1.25rem; }
}

section { scroll-margin-top: 100px; }

/* - HERO (fit do 100vh) - */
.hero {
  background: var(--invert-bg);
  color: var(--invert-ink);
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  padding: var(--s-12) 0;
}
@media (min-width: 1024px) {
  .hero { padding: var(--s-16) 0; }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(255,77,26,.18), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(255,77,26,.12), transparent 60%);
  pointer-events: none;
}
/* Bez hero image: text bezi pres celou sirku */
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-10);
  align-items: end;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-10);
  font-weight: 500;
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 99px;
  background: var(--accent);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,77,26,.55); }
  70% { box-shadow: 0 0 0 12px rgba(255,77,26,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,26,0); }
}
.hero h1 {
  color: var(--invert-ink);
  margin-bottom: var(--s-8);
  font-weight: 500;
}
.hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 400; }
.hero h1 .stroke {
  -webkit-text-stroke: 1.5px var(--invert-ink);
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  color: var(--invert-muted);
  max-width: 64ch;
  margin-bottom: var(--s-10);
  line-height: 1.55;
  font-weight: 400;
}
.hero-portrait {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--invert-border);
  background: var(--invert-bg-2);
  aspect-ratio: 4/5;
}
.hero-portrait picture {
  position: absolute;
  inset: 0;
  display: block;
}
.hero-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}
.hero-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,15,.45));
  pointer-events: none;
}

/* - Marquee (clients) - */
.marquee {
  margin-top: var(--s-16);
  padding-top: var(--s-10);
  border-top: 1px solid var(--invert-border);
  overflow: hidden;
  position: relative;
}
.marquee-label {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--invert-muted);
  margin-bottom: var(--s-6);
  font-weight: 500;
}
.marquee-track {
  display: flex;
  gap: var(--s-16);
  width: max-content;
  animation: scroll 40s linear infinite;
  align-items: center;
}
.marquee-track img {
  height: 32px;
  width: auto;
  opacity: 0.55;
  filter: invert(1) brightness(2) grayscale(1);
  transition: opacity var(--t);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img:hover { opacity: 1; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* - Now: signature cards (vzdušné, soft shadow) - */
.now-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 900px) {
  .now-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
}
.now-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-10);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
  box-shadow: var(--shadow-sm);
}
.now-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.now-card .badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  align-self: flex-start;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 99px;
}
.now-card .badge.alt {
  background: var(--ink);
  color: var(--bg);
}
.now-card h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
}
.now-card p { font-size: 1rem; color: var(--ink-2); line-height: 1.55; }
.now-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-2);
}
.now-card .tag {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--muted);
  padding: 4px 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
}
.now-card .out-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px dashed var(--border-strong);
  transition: color var(--t), gap var(--t);
}
.now-card .out-link:hover { color: var(--accent); gap: var(--s-3); }

/* - About - */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-12);
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 4fr 7fr; gap: var(--s-20); }
}
.about-text p { font-size: 1.1875rem; line-height: 1.7; margin-bottom: var(--s-6); color: var(--ink-2); }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--ink); font-weight: 500; }

.about-aside {
  border-left: 2px solid var(--accent);
  padding-left: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  align-self: flex-start;
}
.about-aside .item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-aside .label {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.about-aside .val {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
}


/* - Services (vzdušná mřížka, jemné dělící linky) - */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 900px) {
  .svc-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
}
.svc-card {
  background: transparent;
  padding: var(--s-10) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  border-radius: var(--r-xl);
  transition: background var(--t), transform var(--t);
  border: 1px solid var(--border);
}
@media (min-width: 900px) {
  .svc-card {
    padding: var(--s-10) var(--s-8);
    border: 0;
    border-left: 1px solid var(--border);
    border-radius: 0;
  }
  .svc-card:first-child { border-left: 0; }
}
.svc-card:hover { background: var(--bg-2); }
.svc-card .num {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .08em;
  font-weight: 500;
}
.svc-card h3 { font-size: 1.625rem; line-height: 1.15; }
.svc-card .when {
  font-size: 1rem;
  color: var(--muted);
}
.svc-card .what { font-size: 1.0625rem; color: var(--ink-2); line-height: 1.6; }
.svc-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-5);
}
.svc-card .tag {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  padding: 5px 10px;
  background: var(--bg-2);
  border-radius: 99px;
  letter-spacing: .02em;
}
.svc-card:hover .tag { background: var(--bg); }

/* - Process steps - */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-12); }
}
.step {
  background: transparent;
  padding: var(--s-6) 0;
  position: relative;
}
@media (min-width: 900px) {
  .step { border-left: 1px solid var(--invert-border); padding: var(--s-2) 0 var(--s-2) var(--s-8); }
  .step:first-child { border-left: 0; padding-left: 0; }
}
.step .num {
  font-family: var(--display);
  font-size: 3.25rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: var(--s-6);
}
.step h3 { color: var(--invert-ink); margin-bottom: var(--s-4); font-size: 1.5rem; }
.step p { color: var(--invert-muted); font-size: 1.0625rem; line-height: 1.6; }
.step p + p { margin-top: var(--s-3); }
.step .rate {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-2);
  margin-top: var(--s-5);
  padding: 8px 14px;
  border: 1px solid var(--invert-border);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: .9rem;
  color: var(--invert-ink);
}
.step .rate strong { color: var(--accent); font-weight: 500; }

/* - References - */
.refs-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-12);
}
.chip {
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 450;
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-2);
  border-radius: 99px;
  transition: all var(--t);
  letter-spacing: -0.005em;
}
.chip:hover { color: var(--ink); border-color: var(--ink); background: var(--bg-2); }
.chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.chip .count {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: .72rem;
  opacity: .65;
}

.refs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 700px)  { .refs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .refs-grid { grid-template-columns: repeat(3, 1fr); } }

.ref-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
  box-shadow: var(--shadow-sm);
}
.ref-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.ref-card.hidden { display: none; }

.ref-cover {
  aspect-ratio: 16/10;
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.ref-cover picture {
  position: absolute;
  inset: 0;
  display: block;
}
.ref-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.ref-card:hover .ref-cover img { transform: scale(1.04); }
.ref-cover .live {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 99px;
}

.ref-body {
  padding: var(--s-8) var(--s-6) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}
.ref-body h3 { font-size: 1.375rem; }
.ref-body p { font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.ref-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--s-5);
}
.ref-tags .t {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .02em;
  padding: 4px 10px;
  background: var(--bg-2);
  border-radius: 99px;
  color: var(--muted);
}

/* - Contact - */
.contact {
  background: var(--invert-bg);
  color: var(--invert-ink);
  border-radius: 24px;
  padding: var(--s-20) var(--s-10);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 768px) {
  .contact { padding: var(--s-24) var(--s-16); }
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 500px at 100% 100%, rgba(255,77,26,.18), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.contact h2 { color: var(--invert-ink); margin-bottom: var(--s-5); max-width: 24ch; }
.contact .lead { color: var(--invert-muted); max-width: 60ch; }
/* Kontakt: medailonek foundera pres celou sirku, psany v 1. osobe */
.contact-person {
  margin-top: var(--s-10);
  display: flex;
  align-items: center;
  gap: var(--s-8);
  width: 100%;
}
.contact-person img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid var(--invert-bg-2);
  box-shadow: 0 0 0 3px var(--accent);
}
.contact-person p {
  color: var(--invert-muted);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.65;
}
.contact-person strong { color: var(--invert-ink); }
@media (max-width: 640px) {
  .contact-person { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
}

.contact-tags {
  margin-top: var(--s-12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.contact-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 14px 20px;
  border: 1px solid var(--invert-border);
  border-radius: 99px;
  color: var(--invert-ink);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 450;
  background: var(--invert-bg-2);
  transition: all var(--t);
  letter-spacing: -0.005em;
}
.contact-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.contact-icon-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FAFAF7;
  padding: 2px;
  display: block;
  flex-shrink: 0;
}
.contact-tag.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 4px 14px -4px rgba(255,77,26,.45);
}
.contact-tag.primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -6px rgba(255,77,26,.55);
}
.contact-tag i, .contact-tag svg { font-size: 1rem; }
.contact-tag img { width: 18px; height: 18px; }

/* - Footer - */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--s-12) 0;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1.5fr 1fr; gap: var(--s-10); align-items: start; }
}

/* Single-line footer (Dan OSVČ) */
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.footer-row .footer-logo {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.footer-legal-line {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--muted);
  flex: 1 1 auto;
  text-align: center;
  line-height: 1.4;
}
.footer-year {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--muted);
}
@media (max-width: 768px) {
  .footer-row { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  .footer-legal-line { text-align: left; font-size: .78rem; }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.footer-logo {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.footer-tagline {
  font-family: var(--body);
  font-size: .92rem;
  color: var(--muted);
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}
.footer-company {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.footer-legal em { font-style: normal; color: var(--accent-ink); opacity: .7; }
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--muted);
}
@media (min-width: 768px) {
  .footer-meta { text-align: right; }
}
.footer-meta a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.footer-meta a:hover { color: var(--accent-ink); }

/* - Fade-in - */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* - Cookies consent banner - */
.cookies-consent {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 480px;
  margin-left: auto;
  background: var(--invert-bg);
  color: var(--invert-ink);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  border: 1px solid var(--invert-border);
  z-index: 100;
  transform: translateY(140%);
  transition: transform 350ms cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 30px 60px -20px rgba(10,10,15,.5);
}
.cookies-consent.show { transform: translateY(0); }
.cookies-consent h3 {
  color: var(--invert-ink);
  font-size: 1rem;
  margin-bottom: var(--s-2);
}
.cookies-consent p {
  font-size: .88rem;
  color: var(--invert-muted);
  margin-bottom: var(--s-4);
  line-height: 1.5;
}
.cookies-consent strong { color: var(--invert-ink); font-weight: 500; }
.cookies-buttons {
  display: flex;
  gap: var(--s-3);
}
.cookies-buttons .btn {
  padding: 9px 16px;
  font-size: .9rem;
  flex: 1;
  justify-content: center;
}
.cookies-buttons .btn-ghost {
  color: var(--invert-ink);
  border-color: var(--invert-border);
}
.cookies-buttons .btn-ghost:hover {
  background: var(--invert-ink);
  color: var(--invert-bg);
  border-color: var(--invert-ink);
}
@media (max-width: 768px) {
  .cookies-consent { left: 12px; right: 12px; bottom: 12px; padding: var(--s-4); }
  .cookies-consent p { font-size: .82rem; }
}

/* - Utilities - */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Mobile polish ---------- */
@media (max-width: 768px) {
  body { font-size: 16px; overflow-x: hidden; }
  html { overflow-x: hidden; }
  .container { padding: 0 var(--s-5); max-width: 100%; }
  .section { padding: var(--s-20) 0; }
  h1 { font-size: clamp(1.875rem, 8vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; word-break: break-word; overflow-wrap: break-word; }
  h2 { font-size: clamp(1.625rem, 6vw, 2.25rem); letter-spacing: -0.03em; }
  h3 { font-size: 1.25rem; }
  .lead { font-size: 1rem; }
  .hero {
    min-height: auto;
    padding: var(--s-12) 0 var(--s-10);
    display: block;
  }
  .hero-grid { gap: var(--s-8); grid-template-columns: 1fr; }
  .hero-text { min-width: 0; }
  .hero-eyebrow {
    font-size: .68rem;
    letter-spacing: .06em;
    line-height: 1.4;
    margin-bottom: var(--s-5);
  }
  .hero h1 { margin-bottom: var(--s-5); }
  .hero h1 br { display: none; }
  .hero-sub { font-size: 1rem; margin-bottom: var(--s-6); line-height: 1.5; }
  .hero-portrait {
    max-width: 280px;
    margin: 0 auto;
    aspect-ratio: 4/5;
  }
  .btn { padding: 0.95rem 1.4rem; font-size: 1rem; width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; gap: var(--s-3); width: 100%; }
  .marquee {
    margin-top: var(--s-10);
    padding-top: var(--s-6);
    margin-left: calc(-1 * var(--s-5));
    margin-right: calc(-1 * var(--s-5));
  }
  .marquee-track { gap: var(--s-10); }
  .marquee-track img { height: 22px; }
  .nav-row { height: 68px; gap: var(--s-3); }
  .nav-logo { gap: var(--s-3); }
  .nav-logo-img { width: 36px; height: 36px; border-radius: 11px; }
  .nav-logo-text { font-size: 1.0625rem; }
  .nav-cta { padding: 9px 14px; font-size: 1rem; }
  .nav-menu { top: 68px; padding: var(--s-5); gap: var(--s-5); }
  .nav-link { font-size: 1rem; padding: 8px 0; }
  .hero { min-height: calc(100vh - 68px); padding: var(--s-10) 0; }
  section { scroll-margin-top: 80px; }
  .now-card { padding: var(--s-7, 1.75rem); padding: var(--s-6); }
  .now-card h3 { font-size: 1.5rem; }
  .svc-card { padding: var(--s-8) var(--s-5); }
  .step { padding: var(--s-5) 0; }
  .step .num { font-size: 2.75rem; margin-bottom: var(--s-4); }
  .refs-filter { gap: 8px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; margin-bottom: var(--s-8); }
  .chip { white-space: nowrap; flex-shrink: 0; padding: 9px 14px; font-size: .9rem; }
  .ref-body { padding: var(--s-6) var(--s-5) var(--s-5); }
  .contact { padding: var(--s-14, 3.5rem) var(--s-6); border-radius: 20px; }
  .contact-tag { padding: 11px 16px; font-size: .92rem; gap: var(--s-2); }
  .footer-row { font-size: .8rem; gap: var(--s-3); }
  .about-grid { gap: var(--s-10); }
  .about-aside { padding-left: var(--s-5); }
  .about-text p { font-size: 1.0625rem; line-height: 1.65; margin-bottom: var(--s-5); }
  /* iOS notch / safe areas */
  .nav .container { padding-left: max(var(--s-5), env(safe-area-inset-left)); padding-right: max(var(--s-5), env(safe-area-inset-right)); }
  .footer .container { padding-left: max(var(--s-5), env(safe-area-inset-left)); padding-right: max(var(--s-5), env(safe-area-inset-right)); }
}

/* Touch hint - bigger tap targets */
@media (hover: none) and (pointer: coarse) {
  .btn { padding: 1.05rem 1.65rem; }
  .nav-link { padding: 12px 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none !important; }
}

/* ============================================================
   HTP additions - Head The Projects
   Lokalni fonty (latin + latin-ext pro cestinu) a drobne doplnky.
   Nic z puvodniho design systemu se tu nemeni.
   ============================================================ */

/* Inter 400 latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-latin-ext.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;
}
/* Inter 400 latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-latin.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;
}
/* Inter 450 latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 450;
  font-display: swap;
  src: url('../fonts/inter-450-latin-ext.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;
}
/* Inter 450 latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 450;
  font-display: swap;
  src: url('../fonts/inter-450-latin.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;
}
/* Inter 500 latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500-latin-ext.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;
}
/* Inter 500 latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500-latin.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;
}
/* Inter 600 latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600-latin-ext.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;
}
/* Inter 600 latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600-latin.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;
}
/* Inter 700 latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700-latin-ext.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;
}
/* Inter 700 latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700-latin.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;
}
/* JetBrains Mono 400 latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-400-latin-ext.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;
}
/* JetBrains Mono 400 latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-400-latin.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;
}
/* JetBrains Mono 500 latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-500-latin-ext.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;
}
/* JetBrains Mono 500 latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-500-latin.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;
}
/* Space Grotesk 400 latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-grotesk-400-latin-ext.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;
}
/* Space Grotesk 400 latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-grotesk-400-latin.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;
}
/* Space Grotesk 500 latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-500-latin-ext.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;
}
/* Space Grotesk 500 latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-500-latin.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;
}
/* Space Grotesk 600 latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/space-grotesk-600-latin-ext.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;
}
/* Space Grotesk 600 latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/space-grotesk-600-latin.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;
}
/* Space Grotesk 700 latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-700-latin-ext.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;
}
/* Space Grotesk 700 latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-700-latin.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;
}

/* Textovy odkaz v odstavci */
.text-link {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--t);
}
.text-link:hover { color: var(--accent); }
