/* =====================
   CSS PROMĚNNÉ
===================== */
:root {
  --color-ink:        #1C3144;
  --color-coral:      #FF450C;
  --color-ember:      #D23100;
  --color-sky:        #6C91C2;
  --color-iris:       #5C63A8;
  --color-button:     #364F8B;
  --color-button-hover: #2D4070;
  --color-canvas:     #F7F4F0;
  --color-hero-bg:    #F5E9E2;
  --color-surface:    #FFFFFF;
  --color-border:     #E8E4DF;
  --color-muted:      #5F6673;

  --font-main: 'Jost', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --container: 1200px;
  --section-pad: 80px 0;
}

/* =====================
   RESET & BASE
===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-main);
  background: var(--color-canvas);
  color: var(--color-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-main); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* =====================
   TYPOGRAFIE
===================== */
h1 { font-size: 48px; font-weight: 600; line-height: 1.1; letter-spacing: -0.5px; }
h2 { font-size: 36px; font-weight: 600; line-height: 1.15; letter-spacing: -0.3px; }
h3 { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -0.2px; }
h4 { font-size: 20px; font-weight: 500; line-height: 1.3; }
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-iris);
}
.body-l { font-size: 18px; font-weight: 400; line-height: 1.7; max-width: 68ch; }
.body-m { font-size: 16px; font-weight: 400; line-height: 1.65; }
.caption { font-size: 14px; color: var(--color-muted); }
.label {
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-muted);
}

/* =====================
   BUTTONY
===================== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-button); color: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  padding: 11px 24px; border-radius: var(--radius-sm);
  border: none; transition: background 0.2s;
}
.btn-primary:hover { background: var(--color-button-hover); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--color-button);
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  padding: 10px 24px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-button);
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: rgba(54,79,139,0.06); }

/* =====================
   NAVIGACE
===================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-hero-bg);
  border-bottom: 0.5px solid rgba(28,49,68,0.1);
  height: 64px;
  display: flex; align-items: center;
}
.nav .container {
  display: flex; align-items: center;
  justify-content: space-between; width: 100%;
}
.nav-logo {
  font-size: 16px; font-weight: 600; color: var(--color-ink);
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--color-ink);
  padding: 6px 14px; border-radius: var(--radius-sm);
  letter-spacing: 0.02em; position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-button); }
.nav-links a.active { color: var(--color-button); }
.nav-links a.active::after {
  content: '';
  position: absolute; bottom: -1px; left: 14px; right: 14px;
  height: 1.5px; background: var(--color-iris); border-radius: 2px;
}
.nav-links a::before {
  content: '';
  position: absolute; bottom: -1px; left: 14px; right: 14px;
  height: 1.5px; background: var(--color-button);
  transform: scaleX(0); transition: transform 0.2s ease;
}
.nav-links a:hover::before { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  font-size: 12px; font-weight: 500; color: var(--color-ink);
  border: 0.5px solid rgba(28,49,68,0.25); border-radius: 5px;
  padding: 5px 10px; background: transparent;
  letter-spacing: 0.04em; transition: border-color 0.2s, color 0.2s;
}
.lang-switch:hover { border-color: var(--color-button); color: var(--color-button); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--color-ink); border-radius: 2px;
  transition: all 0.2s;
}
.nav-drawer {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--color-hero-bg); border-bottom: 0.5px solid var(--color-border);
  padding: 8px 24px 20px; z-index: 99;
}
.nav-drawer.open { display: block; }
.nav-drawer a {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 500; color: var(--color-ink);
  padding: 13px 0; border-bottom: 0.5px solid rgba(28,49,68,0.08);
}
.nav-drawer a:last-of-type { border-bottom: none; }
.nav-drawer-bottom {
  display: flex; gap: 10px; margin-top: 14px;
}
.nav-drawer-bottom .btn-primary { flex: 1; justify-content: center; color: #fff; border-bottom: none; }
.nav-drawer-bottom .lang-switch { flex: 0 0 auto; }

/* =====================
   HERO
===================== */
#hero {
  background: var(--color-hero-bg);
  padding: 0;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
}
.hero-content {
  width: 46%;
  position: relative;
  z-index: 3;
  padding: 40px 0;
}
.hero-content h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.2px; margin-bottom: 20px; }
.hero-content p { font-size: 20px; color: var(--color-muted); margin-bottom: 32px; max-width: 480px; }
.hero-eyebrow { margin-bottom: 14px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 64%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 1;
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-blob {
  position: absolute; width: 420px; height: 420px;
  border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 40% 40%, var(--color-coral), var(--color-sky));
  opacity: 0.35; filter: blur(60px);
  right: -40px;
}
.hero-image img { position: relative; z-index: 1; }

/* Animovaná ilustrace v hero */
.hero-illu { position: absolute; top: 18px; bottom: 0px; left: 50%; transform: translateX(-50%); width: 100vw; z-index: 1; pointer-events: none; }

.hero-illu-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-illu-scrim { position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(245,233,226,0.92) 0%, rgba(245,233,226,0.78) 38%, rgba(245,233,226,0.2) 70%); }
@media (max-width: 600px) {
  .hero-inner { min-height: 0; display: block; }
  .hero-content { width: 100%; padding: 22px 0 12px; }
  .hero-content h1 { font-size: 26px; line-height: 1.25; margin-bottom: 10px; }
  .hero-content p { font-size: 15px; line-height: 1.55; margin-bottom: 20px; max-width: 400px; }
  .hero-btns { margin-bottom: 4px; }
  .hero-illu { position: relative; top: 0 !important; bottom: auto !important; left: 0; transform: none;
    width: 100vw; margin-left: calc(50% - 50vw); height: 340px; border-radius: 0; overflow: hidden; }
  .hero-illu-svg { position: absolute; inset: 0; }
  .hero-illu-scrim { display: none; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .hero-content { width: 54%; padding: 28px 0; }
  .hero-inner { min-height: 520px; }
}

/* =====================
   MARQUEE LOGY KLIENTŮ
===================== */
#clients {
  background: var(--color-surface);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
}
.marquee-label {
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--color-muted);
  text-align: center; margin-bottom: 14px;
}
.marquee-track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 70s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  display: flex; align-items: center; padding: 0 36px;
}
a.marquee-item { cursor: pointer; transition: transform 0.2s ease; }
a.marquee-item:hover { transform: translateY(-2px); }
.nav-cv { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--color-ink); }
.nav-cv i { font-size: 16px; }
.nav-cv:hover { color: var(--color-button); }
.logo-swap {
  display: block; height: 32px;
}
.logo-swap img {
  height: 32px; width: auto; display: block;
  filter: grayscale(1); opacity: 0.55;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.marquee-item:hover .logo-swap img {
  filter: none; opacity: 1;
}
.marquee-fade-l, .marquee-fade-r {
  position: absolute; top: 0; bottom: 0; width: 80px;
  z-index: 2; pointer-events: none;
}
.marquee-fade-l { left: 0; background: linear-gradient(to right, var(--color-surface), transparent); }
.marquee-fade-r { right: 0; background: linear-gradient(to left, var(--color-surface), transparent); }

/* =====================
   USP
===================== */
#usp { padding: var(--section-pad); background: var(--color-canvas); }
.usp-header { margin-bottom: 48px; }
.usp-header .eyebrow { margin-bottom: 10px; }
.usp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.usp-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(245,233,226,0.7);
  display: flex; flex-direction: column; gap: 16px;
}
.usp-illus {
  width: 100%; height: 100px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-hero-bg); border-radius: var(--radius-md);
}
.usp-num { font-size: 11px; font-weight: 500; color: var(--color-muted); letter-spacing: 0.06em; }
.usp-card h4 { margin-bottom: 4px; }
.usp-card p { font-size: 14px; color: var(--color-muted); line-height: 1.65; }

/* Animované ilustrace v kartách */
.usp-illus.illus-anim {
  height: 140px; padding: 0; border-radius: 8px; overflow: hidden;
}
.usp-illus.illus-anim svg { width: 100%; height: 100%; display: block; }
.illus-anim [class^="a-"] { transform-box: fill-box; transform-origin: center; }
@keyframes illusDraw {
  0%   { stroke-dashoffset: 1; }
  12%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
@keyframes illusPop {
  0%, 4% { transform: scale(0); opacity: 0; }
  14%    { transform: scale(1); opacity: 1; }
  100%   { transform: scale(1); opacity: 1; }
}
@keyframes illusBar {
  0%, 4% { transform: scaleX(0); opacity: 0; }
  14%    { transform: scaleX(1); opacity: 1; }
  100%   { transform: scaleX(1); opacity: 1; }
}
.illus-anim .a-line {
  fill: none; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: illusDraw 25s ease-in-out infinite;
}
.illus-anim .a-dot { animation: illusPop 25s ease-in-out infinite; }
.illus-anim .a-bar { transform-origin: left center; animation: illusBar 25s ease-in-out infinite; }
@keyframes illusAppear {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.illus-anim .a-core { animation: illusAppear 1.3s cubic-bezier(.2,.7,.3,1) .1s 1 both; }
@media (prefers-reduced-motion: reduce) {
  .illus-anim svg [class^="a-"] { animation: none !important; }
}

/* =====================
   PROCESS
===================== */
#process { padding: 48px 0; background: var(--color-surface); }
#testimonials { padding: var(--section-pad); background: var(--color-hero-bg); }
.testimonials-header { margin-bottom: 28px; }
.tcar { position: relative; }
.tcar-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 4px; scrollbar-width: none; }
.tcar-track::-webkit-scrollbar { display: none; }
.tcar-track > .testimonial-card { flex: 0 0 calc(50% - 10px); scroll-snap-align: start; }
@media (max-width: 768px) { .tcar-track > .testimonial-card { flex: 0 0 100%; } }
.tcar-nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 22px; }
.tcar-btns { display: flex; gap: 10px; }
.tcar-count { font-size: 14px; font-weight: 500; color: var(--color-muted); font-family: 'Jost', sans-serif; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.tcar-btn { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--color-surface); color: var(--color-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, color .15s; }
.tcar-btn:hover { background: var(--color-button); color: #fff; }
.tcar-btn i { font-size: 20px; }
.testimonial-card { background: var(--color-surface); border-radius: var(--radius-lg); padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 20px; }
.testimonial-mark { font-family: Georgia, serif; font-size: 44px; line-height: 0.6; color: var(--color-coral); height: 20px; }
.testimonial-quote { font-size: 17px; line-height: 1.55; color: var(--color-ink); flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--color-hero-bg); flex-shrink: 0; }
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--color-ink); }
.testimonial-role { font-size: 12px; color: var(--color-muted); }
@media (max-width: 768px) { #testimonials { padding: 44px 0; } .testimonials-grid { grid-template-columns: 1fr; gap: 14px; } .testimonials-header { margin-bottom: 18px; } }
.process-header { margin-bottom: 28px; }
.process-header .eyebrow { margin-bottom: 10px; }
.process-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 20px;
}
.step-text {
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.step-num {
  font-size: 11px; font-weight: 500; color: var(--color-iris);
  letter-spacing: 0.06em; margin-bottom: 6px;
}
.step-text h4 { margin-bottom: 8px; }
.step-text p { font-size: 14px; color: var(--color-muted); line-height: 1.65; }
.step-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.step-number {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 8px;
}

.step-arrow { display: flex; justify-content: center; margin: 2px 0 18px; color: var(--color-coral); }
.step-arrow i { font-size: 30px; }
.step-vis {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;
  width: 100%;
  margin: 0;
  background: #F5E9E2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
.step-vis svg {
  width: 100%;
  height: 100%;
  display: block;
}
.step-vis svg {
  width: 100%;
  height: 100%;
}
.step-vis img { width: 100%; height: 100%; object-fit: cover; }
.step-vis-placeholder {
  width: 100%; height: 100%;
  background: var(--color-canvas);
  display: flex; align-items: center; justify-content: center;
  color: #D3C4BB; font-size: 13px;
}
.step-sub-label {
  font-size: 11px; font-weight: 500; color: var(--color-iris);
  letter-spacing: 0.06em; margin-bottom: 8px; margin-top: -4px;
}

/* =====================
   PROJEKTY
===================== */
#projects { padding: 24px 0 80px; background: var(--color-canvas); }
.projects-header { margin-bottom: 40px; }
.projects-header .eyebrow { margin-bottom: 10px; }
.projects-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 2px 12px rgba(245,233,226,0.7);
  position: relative;
  cursor: pointer;
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects-main-grid { display: flex; flex-direction: column; gap: 16px; margin-bottom: 12px; }
.brand-dots { display: flex; align-items: center; gap: 6px; padding: 14px 16px 0; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.project-feature {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 2px 12px rgba(245,233,226,0.7);
  position: relative;
  text-decoration: none; color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-feature:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(245,233,226,0.6); }
.feature-body { padding: 32px 32px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.feature-badge {
  position: absolute; top: 22px; left: -44px; z-index: 2;
  width: 170px; text-align: center; padding: 6px 0;
  transform: rotate(-45deg); transform-origin: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff; background: var(--color-iris);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.feature-cat { font-size: 12px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--color-iris); }
.feature-meta { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: 6px 10px; }
.feature-title { font-size: clamp(22px, 2vw, 28px); font-weight: 600; line-height: 1.3; margin: 0; }
.feature-desc { font-size: 16px; line-height: 1.6; color: var(--color-muted); max-width: 500px; }
.feature-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px;
  font-size: 15px; font-weight: 600; color: var(--color-iris);
}
.feature-link i { font-size: 16px; }
.feature-img { position: relative; overflow: hidden; min-height: 400px; }
.project-feature .feature-img .fan-back { transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.project-feature .feature-img .fan-front { transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.project-feature:hover .feature-img .fan-back { transform: rotate(9deg) translate(133%, 4%) !important; }
.project-feature:hover .feature-img .fan-front { transform: rotate(-6deg) translate(-14%, 11%) !important; }
.project-card .project-img .fan-back { transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.project-card .project-img .fan-front { transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.project-card:hover .project-img .fan-back { transform: rotate(9deg) translate(114%, 4%) !important; }
.project-card:hover .project-img .fan-front { transform: rotate(-6deg) translate(-10%, 11%) !important; }

.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.small-cards-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project-sub { font-size: 13px; color: var(--color-muted); margin: -2px 0 8px; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 20px;
  font-size: 14px; font-weight: 600; color: var(--color-iris);
}
.card-link i { font-size: 15px; }
@media (max-width: 900px) {
  .project-feature { grid-template-columns: 1fr; }
  .feature-img { min-height: 220px; order: -1; }
  .small-cards-row { grid-template-columns: 1fr; }
}
.project-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(245,233,226,0.6); }
.project-card.hero-card { grid-row: 1 / 3; }
.project-img {
  width: 100%; overflow: hidden; position: relative;
}
.hero-card .project-img { height: 300px; }
.small-card .project-img { height: 260px; }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--color-ink), var(--color-button));
  display: flex; align-items: center; justify-content: center;
}
.overlay {
  position: absolute; inset: 0;
  background: var(--color-ink);
  opacity: 0; transition: opacity 0.3s;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 24px;
}
.project-card:hover .overlay { opacity: 0.93; }
.overlay-content {
  transform: translateY(8px);
  transition: transform 0.3s;
}
.project-card:hover .overlay-content { transform: translateY(0); }
.overlay-cat {
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--color-sky); margin-bottom: 6px;
}
.overlay-title {
  font-size: 16px; font-weight: 600; color: #fff;
  line-height: 1.3; margin-bottom: 8px;
}
.overlay-desc {
  font-size: 12px; color: rgba(255,255,255,0.65);
  line-height: 1.6; margin-bottom: 12px;
}
.overlay-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.overlay-tag {
  font-size: 10px; font-weight: 500; padding: 2px 8px;
  border-radius: 3px; background: rgba(108,145,194,0.25); color: var(--color-sky);
}
.overlay-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--color-coral);
}
.project-body { padding: 32px 32px; display: flex; flex-direction: column; flex: 1; }
.project-meta {
  display: flex; flex-wrap: wrap; justify-content: flex-start;
  align-items: baseline; gap: 4px 8px; margin-bottom: 12px;
}
.project-cat {
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--color-iris);
}
.project-year { font-size: 10px; color: var(--color-muted); }
.project-title {
  font-size: 17px; font-weight: 600; color: var(--color-ink);
  line-height: 1.4; margin-bottom: 16px;
}
.hero-card .project-title { font-size: 18px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tag {
  font-size: 12px; font-weight: 500; padding: 4px 10px;
  border-radius: 4px; background: rgba(54,79,139,0.08); color: var(--color-button);
  letter-spacing: 0.02em;
}
.projects-sub-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.sub-card .project-img { height: 120px; }
.projects-footer {
  display: flex; justify-content: center; margin-top: 32px;
}

/* =====================
   O MNĚ
===================== */
#about { padding: var(--section-pad); background: var(--color-surface); }
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.about-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--color-ink), var(--color-button));
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.about-content .eyebrow { margin-bottom: 12px; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { font-size: 16px; color: var(--color-muted); line-height: 1.75; margin-bottom: 16px; }
.about-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* =====================
   SKILLS
===================== */
#skills { padding: var(--section-pad); background: var(--color-canvas); }
.skills-header { margin-bottom: 40px; }
.skills-header .eyebrow { margin-bottom: 10px; }
.col-label {
  font-size: 15px; font-weight: 600; color: var(--color-ink);
  letter-spacing: 0; margin-bottom: 18px;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.tool-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 20px 14px;
  border-radius: var(--radius-lg);
  background: var(--color-surface); text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tool-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(28,49,68,0.08); }
.tool-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.tool-name { font-size: 13px; font-weight: 600; color: var(--color-ink); }
.tool-type { font-size: 11px; color: var(--color-muted); }
.skills-divider { height: 0.5px; background: var(--color-border); margin: 0 0 32px; }
.skills-groups { display: flex; flex-direction: column; gap: 20px; }
.skills-group-label {
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--color-muted); margin-bottom: 10px;
}
.pills-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; padding: 8px 16px;
  border-radius: 20px; border: 0.5px solid;
}
.pill-dot { display: none; }
.pill-blue  { color: #0C447C; background: #E6F1FB; border-color: #85B7EB; }
.pill-purple{ color: #3C3489; background: #EEEDFE; border-color: #AFA9EC; }
.pill-coral { color: #712B13; background: #FAECE7; border-color: #F0997B; }
.pill-teal  { color: #085041; background: #E1F5EE; border-color: #5DCAA5; }

/* =====================
   KONTAKT
===================== */
#contact { padding: var(--section-pad); background: var(--color-hero-bg); }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}
.contact-left .eyebrow { margin-bottom: 12px; }
.contact-left h2 { margin-bottom: 16px; }
.contact-left p { font-size: 15px; color: var(--color-muted); line-height: 1.75; margin-bottom: 28px; }
.contact-info-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.contact-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(54,79,139,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon i { font-size: 17px; color: var(--color-button); }
.contact-info-label { font-size: 13px; color: var(--color-muted); margin-bottom: 2px; }
.contact-info-val { font-size: 16px; font-weight: 500; color: var(--color-ink); }
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 11px; font-weight: 500;
  color: var(--color-muted); letter-spacing: 0.04em; margin-bottom: 6px;
}
.form-input, .form-textarea {
  width: 100%; background: var(--color-surface);
  border: 0.5px solid rgba(28,49,68,0.15);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-main); font-size: 14px;
  color: var(--color-ink); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder, .form-textarea::placeholder { color: #767676; }
.form-input:focus, .form-textarea:focus {
  border-color: var(--color-button);
  box-shadow: 0 0 0 3px rgba(54,79,139,0.1);
}
.form-textarea { resize: none; height: 120px; line-height: 1.65; }
.form-submit {
  width: 100%; padding: 14px 20px;
  background: var(--color-button); color: #fff;
  font-family: var(--font-main); font-size: 14px; font-weight: 600;
  border: none; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s; margin-top: 4px;
}
.form-submit:hover { background: var(--color-button-hover); }
.form-note {
  font-size: 11px; color: #595959;
  text-align: center; margin-top: 10px;
}

/* =====================
   FOOTER
===================== */
footer {
  background: var(--color-ink);
  padding: 18px 0;
  border-top: 0.5px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between;
}
.footer-name {
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.85);
}
.footer-copy {
  font-size: 11px; color: rgba(255,255,255,0.3);
}
.footer-right {
  display: flex; align-items: center; gap: 16px;
}
.footer-linkedin {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-linkedin:hover { color: #fff; }
.footer-divider {
  width: 1px; height: 14px; background: rgba(255,255,255,0.15);
}
.footer-lang {
  font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em; background: none; border: none;
  transition: color 0.2s;
}
.footer-lang:hover { color: rgba(255,255,255,0.8); }

/* =====================
   RESPONZIVITA
===================== */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  :root { --section-pad: 56px 0; }

  .nav-links, .nav-right .btn-primary { display: none; }
  .nav-hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-image { order: -1; }
  .hero-blob { width: 280px; height: 280px; }

  .usp-grid { grid-template-columns: 1fr; gap: 12px; }

  .process-step { grid-template-columns: 1fr 1fr; gap: 32px; }

  .projects-main-grid { grid-template-columns: 1fr; }
  .project-card.hero-card { grid-row: auto; }
  .hero-card .project-img { height: 220px; }
  .projects-sub-grid { grid-template-columns: 1fr 1fr; }

  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-height: 320px; aspect-ratio: auto; }

  .tools-grid { grid-template-columns: 1fr 1fr; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }

  .footer-inner { flex-wrap: wrap; gap: 10px; }
  .footer-copy { order: 3; width: 100%; text-align: center; }
}

@media (max-width: 580px) {
  h1 { font-size: 28px; }
  .projects-sub-grid { grid-template-columns: 1fr; }
  .process-step { grid-template-columns: 1fr; }
  .step-mid { display: none; }
  
  
  .step-vis { margin: 0 0 20px; }
}


@media (max-width: 768px) {
  .step {
  align-items: stretch;
    display: flex;
    flex-direction: column;
    margin-bottom: 48px;
  }
  .step-text {
    order: 1;
    text-align: left !important;
    padding: 0 !important;
    margin-bottom: 24px;
  }
  .step-text p {
    line-height: 1.7;
  }
  .step-mid {
    order: 2;
    display: none;
  }
  .step-vis {
    order: 3;
    margin-top: 0;
  }
}
@media (max-width: 768px) {
  #about { padding: 44px 0; }
  #projects { padding: 8px 0 44px; }
  #process { padding: 32px 0; }
  #contact { padding: 44px 0; }
  #usp { padding: 44px 0; }
  .projects-header { margin-bottom: 22px; }
  .process-header { margin-bottom: 16px; }
  .usp-header { margin-bottom: 22px; }
  .about-content h2 { margin-bottom: 14px; }
  .projects-header .eyebrow, .process-header .eyebrow, .about-content .eyebrow, .usp-header .eyebrow { margin-bottom: 6px; }
}

path[id="Ellipse 103"] { transform-box:fill-box; transform-origin:center; animation:floatA 3.5s ease-in-out infinite 0.0s; }
path[id="Ellipse 114"] { transform-box:fill-box; transform-origin:center; animation:floatB 3.9s ease-in-out infinite 0.3s; }
path[id="Ellipse 104"] { transform-box:fill-box; transform-origin:center; animation:floatC 4.3s ease-in-out infinite 0.6s; }
path[id="Ellipse 105"] { transform-box:fill-box; transform-origin:center; animation:floatA 4.7s ease-in-out infinite 0.9s; }
path[id="Polygon 8"] { transform-box:fill-box; transform-origin:center; animation:floatB 5.1s ease-in-out infinite 1.2s; }
path[id="Polygon 10"] { transform-box:fill-box; transform-origin:center; animation:floatC 5.5s ease-in-out infinite 1.5s; }
path[id="Rectangle 137"] { transform-box:fill-box; transform-origin:center; animation:floatA 5.9s ease-in-out infinite 1.8s; }
path[id="Rectangle 143"] { transform-box:fill-box; transform-origin:center; animation:floatB 6.3s ease-in-out infinite 2.1s; }
path[id="Subtract"] { transform-box:fill-box; transform-origin:center; animation:floatC 6.7s ease-in-out infinite 2.4s; }
@keyframes floatA { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes floatB { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-6px) rotate(4deg)} }
@keyframes floatC { 0%,100%{transform:translateY(0) rotate(0deg)} 33%{transform:translateY(-5px) rotate(-3deg)} 66%{transform:translateY(-9px) rotate(2deg)} }

path[id="Union_3"] { transform-box:fill-box; transform-origin:center; animation: appear-4 9s ease-in-out infinite, floatB 5.1s ease-in-out infinite 2.4s; opacity:0; }
path[id="Union_4"] { transform-box:fill-box; transform-origin:center; animation: appear-1 9s ease-in-out infinite, floatB 3.9s ease-in-out infinite 0.6s; opacity:0; }
path[id="Union_5"] { transform-box:fill-box; transform-origin:center; animation: appear-2 9s ease-in-out infinite, floatC 4.3s ease-in-out infinite 1.2s; opacity:0; }
path[id="kriz"] { transform-box:fill-box; transform-origin:center; animation: appear-0 9s ease-in-out infinite, floatA 3.5s ease-in-out infinite 0.0s; opacity:0; }
path[id="kriz_2"] { transform-box:fill-box; transform-origin:center; animation: appear-3 9s ease-in-out infinite, floatA 4.7s ease-in-out infinite 1.8s; opacity:0; }
g[id="ruka"] {
  animation: ruka-write 4s ease-in-out infinite;
}
@keyframes ruka-write {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(13px, 0); }
  100% { transform: translate(0, 0); }
}
@keyframes appear-0 { 0%,5.0% { opacity: 0; } 10.0%,90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes appear-1 { 0%,13.0% { opacity: 0; } 18.0%,90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes appear-2 { 0%,21.0% { opacity: 0; } 26.0%,90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes appear-3 { 0%,29.0% { opacity: 0; } 34.0%,90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes appear-4 { 0%,37.0% { opacity: 0; } 42.0%,90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes floatA { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes floatB { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-6px) rotate(4deg)} }
@keyframes floatC { 0%,100%{transform:translateY(0) rotate(0deg)} 33%{transform:translateY(-5px) rotate(-3deg)} 66%{transform:translateY(-9px) rotate(2deg)} }


.form-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.form-error {
	margin: 6px 0 0;
	font-size: 13px;
	color: #C0392B;
}
.form-input.is-error,
.form-textarea.is-error {
	border-color: #C0392B;
}
.form-status {
	margin-top: 12px;
	font-size: 14px;
}
.form-status.is-success {
	color: #0F6E56;
}
.form-status.is-error {
	color: #C0392B;
}
.form-submit[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.error-page {
	min-height: 70vh;
	display: grid;
	place-items: center;
	text-align: center;
	padding: 80px 0;
}
.error-page .error-code {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--color-iris);
	margin: 0 0 12px;
}
.error-page h1 {
	margin: 0 0 12px;
}
.error-page .error-text {
	color: var(--color-muted);
	margin: 0 0 28px;
}
