/* ============================================================
   ZÁMEČNICTVÍ A KOVOVÝROBA HRUŠKA — editorial light theme
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --bg-3: #eef0f4;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #eef0f4;
  --border: rgba(15, 20, 30, 0.09);
  --border-strong: rgba(15, 20, 30, 0.18);
  --text: #0c1117;
  --text-muted: #5b6573;
  --text-dim: #8b95a3;
  --accent: #ff5a1f;
  --accent-hot: #ff7a44;
  --accent-dark: #d94714;
  --accent-dim: rgba(255, 90, 31, 0.08);
  --accent-soft: #fff1ea;
  --accent-glow: rgba(255, 90, 31, 0.22);
  --steel: #6b7585;
  --steel-light: #a8b3c2;
  --ink-dark: #0c1117;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 6px;

  --shadow-sm: 0 1px 2px rgba(15, 20, 30, 0.06);
  --shadow: 0 4px 22px rgba(15, 20, 30, 0.06), 0 1px 2px rgba(15, 20, 30, 0.04);
  --shadow-lg: 0 24px 60px rgba(15, 20, 30, 0.09), 0 2px 6px rgba(15, 20, 30, 0.04);
  --shadow-accent: 0 12px 36px rgba(255, 90, 31, 0.28);

  --container: 1320px;
  --container-narrow: 980px;
  --header-h: 84px;

  --t-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --t: 320ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 600ms cubic-bezier(0.22, 1, 0.36, 1);

  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

/* Subtle background ambient orange tint */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(255, 90, 31, 0.04), transparent 50%),
    radial-gradient(ellipse at 85% 100%, rgba(255, 90, 31, 0.03), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

/* ====== Typography ====== */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text);
}

h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.italic-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

p { color: var(--text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.eyebrow.center { justify-content: center; }

.accent { color: var(--accent); }

/* ====== Layout ====== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 130px 0; }
.section-sm { padding: 70px 0; }

@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-sm { padding: 44px 0; }
}

/* ====== Header ====== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: all var(--t);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(15, 20, 30, 0.02);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) { .header-inner { padding: 0 20px; } }

.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* New full-brand logo image */
.logo img.logo-full {
  height: 62px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo img.logo-full { height: 50px; }
}

/* Footer logo can be larger since there's more space */
.footer-about .logo img.logo-full {
  height: 80px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
}

.logo-mark svg { width: 26px; height: 26px; position: relative; z-index: 1; }

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }

.logo-text-top {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}

.logo-text-bottom {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* ====== Nav ====== */
.nav { display: flex; align-items: center; gap: 6px; }

.nav-link {
  position: relative;
  padding: 10px 16px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-link:hover { color: var(--text); background: var(--bg-2); }
.nav-link.active { color: var(--accent); }

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 2px;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.nav-has-sub { position: relative; }

.nav-has-sub > .nav-link::before {
  content: '+';
  margin-left: 4px;
  font-size: 0.85em;
  opacity: 0.6;
  display: inline-block;
  transition: transform var(--t-fast);
}

.nav-has-sub:hover > .nav-link::before { transform: rotate(45deg); }

.nav-sub {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 240px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--t);
}

.nav-has-sub:hover .nav-sub,
.nav-has-sub:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-sub a {
  display: block;
  padding: 11px 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
}

.nav-sub a:hover { color: var(--accent); background: var(--accent-soft); }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  transition: all var(--t-fast);
  letter-spacing: 0.01em;
}

.cta-btn::after {
  content: '→';
  font-size: 1.1em;
  transition: transform var(--t-fast);
}

.cta-btn.no-arrow::after { display: none; }

.cta-btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-accent); }
.cta-btn:hover::after { transform: translateX(4px); }

.cta-btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}

.cta-btn.ghost:hover { background: var(--bg-2); border-color: var(--text); }

.cta-btn.large { padding: 16px 30px; font-size: 1rem; }

/* Mobile nav */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.menu-toggle span {
  position: relative;
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
  border-radius: 2px;
  transition: background var(--t-fast);
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t);
}

.menu-toggle span::before { top: -8px; }
.menu-toggle span::after { top: 8px; }

.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px;
    background: #fff;
    border-top: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform var(--t);
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 1.05rem;
  }
  .nav-link.active::after { display: none; }
  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 8px 16px;
  }
  .nav-has-sub > .nav-link::before { display: none; }
}

/* ====== HERO (cinematic) ====== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg-image svg,
.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 45%,
    rgba(255, 255, 255, 0.55) 72%,
    rgba(255, 255, 255, 0.95) 92%,
    rgba(255, 255, 255, 1) 100%
  );
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-meta-line {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-meta-line.accent {
  color: var(--accent);
}

.hero-meta-line .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero h1 {
  margin: 0 0 32px;
  max-width: 1100px;
  color: var(--text);
}

.hero h1 .accent { color: var(--accent); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  max-width: 480px;
  color: var(--text-muted);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 3;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ====== Sections ====== */
.section-head {
  margin-bottom: 80px;
  max-width: 880px;
}

.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.left { text-align: left; }

.section-head h2 { margin: 18px 0 20px; }

.section-head p {
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 660px;
}

.section-head.center p { margin-left: auto; margin-right: auto; }

/* ====== Numbered service rows ====== */
.service-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr auto;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: all var(--t);
  position: relative;
}

.service-row::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--accent-dim), transparent);
  opacity: 0;
  transition: opacity var(--t);
  z-index: -1;
}

.service-row:hover::before { opacity: 1; }

.service-row .num {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.service-row:hover .num { color: var(--accent); }

.service-row .title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.service-row .desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.service-row .arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: all var(--t-fast);
  flex-shrink: 0;
}

.service-row:hover .arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .service-row {
    grid-template-columns: 50px 1fr auto;
    grid-template-rows: auto auto;
    gap: 16px 20px;
    padding: 28px 0;
  }
  .service-row .num { grid-row: 1; }
  .service-row .title { grid-row: 1; grid-column: 2; }
  .service-row .arrow { grid-row: 1; grid-column: 3; }
  .service-row .desc { grid-row: 2; grid-column: 2 / 4; font-size: 0.92rem; }
}

/* ====== Editorial card ====== */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.editorial.reverse > :first-child { order: 2; }

@media (max-width: 900px) {
  .editorial { grid-template-columns: 1fr; gap: 40px; }
  .editorial.reverse > :first-child { order: initial; }
}

.editorial-media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-2);
}

.editorial-media svg, .editorial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-media-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  color: var(--text);
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.editorial-text { padding: 20px 0; }
.editorial-text h2 { margin-bottom: 24px; }
.editorial-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.editorial-text strong { color: var(--text); font-weight: 600; }
.editorial-text .actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ====== Stat row ====== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-value {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-value .unit {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 0.6em;
  margin-left: 4px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ====== Cards grid ====== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card {
  background: var(--bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--t);
}

.card:hover { background: var(--bg-2); }

.card-num {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
}

.card h3 {
  font-size: 1.25rem;
  color: var(--text);
}

.card p {
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ====== Reference grid (asymmetric) ====== */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.ref-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--t);
  box-shadow: var(--shadow-sm);
}

.ref-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Span classes work for any direct child of .ref-grid (ref-card, ref-card-rich, etc.) */
.ref-grid > .span-12 { grid-column: span 12; }
.ref-grid > .span-8  { grid-column: span 8; }
.ref-grid > .span-7  { grid-column: span 7; }
.ref-grid > .span-6  { grid-column: span 6; }
.ref-grid > .span-5  { grid-column: span 5; }
.ref-grid > .span-4  { grid-column: span 4; }

@media (max-width: 900px) {
  .ref-grid > [class*="span-"] { grid-column: span 12; }
}

/* Fluid auto-fit grid for reference gallery (no spans needed) */
.ref-grid-fluid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}

@media (max-width: 500px) {
  .ref-grid-fluid { grid-template-columns: 1fr; }
}

.ref-card-media {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.ref-card.tall .ref-card-media { aspect-ratio: 3/4; }
.ref-card.wide .ref-card-media { aspect-ratio: 16/9; }

.ref-card-media svg, .ref-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ref-card:hover .ref-card-media svg,
.ref-card:hover .ref-card-media img { transform: scale(1.05); }

.ref-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 9, 12, 0.85) 0%, rgba(8, 9, 12, 0.15) 50%, transparent 100%);
}

.ref-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 24px 22px;
  z-index: 2;
}

.ref-card-tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  margin-bottom: 12px;
}

.ref-card-title {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.ref-card-meta {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ====== Gallery ====== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item svg, .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.gallery-item:hover svg, .gallery-item:hover img { transform: scale(1.06); }

.gallery-item::after {
  content: '+';
  position: absolute;
  top: 12px; right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 1.4rem;
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--t-fast);
  box-shadow: var(--shadow-sm);
}

.gallery-item:hover::after { opacity: 1; }

/* ====== Forms ====== */
.form { display: grid; gap: 22px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 14px 18px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dim); }

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.1);
}

.form-field textarea { resize: vertical; min-height: 150px; }

/* ====== Contact ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.contact-info { display: grid; gap: 32px; }

.contact-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: 0; }

.contact-item-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
}

.contact-item-icon svg { width: 22px; height: 22px; }

.contact-item-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-item-value {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.contact-item-value a:hover { color: var(--accent); }

/* ====== Page hero (subpages) ====== */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 100px) 0 80px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 90, 31, 0.08), transparent 60%);
  pointer-events: none;
}

.page-hero-inner { position: relative; max-width: 880px; }
.page-hero h1 { margin: 24px 0; }
.page-hero p { font-size: 1.08rem; line-height: 1.55; max-width: 600px; }

.breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.4; }

/* ====== Content block ====== */
.content-block { max-width: 760px; }
.content-block h2 { margin-bottom: 24px; }
.content-block h3 { margin: 36px 0 16px; font-size: 1.4rem; color: var(--text); }
.content-block p { margin-bottom: 18px; line-height: 1.75; color: var(--text-muted); }
.content-block ul { padding-left: 24px; margin-bottom: 24px; color: var(--text-muted); }
.content-block ul li { margin-bottom: 10px; line-height: 1.65; }
.content-block ul li::marker { color: var(--accent); }
.content-block strong { color: var(--text); font-weight: 600; }
.content-block .accent { color: var(--accent); }

.note-box {
  padding: 24px 28px;
  margin: 32px 0;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
}

.note-box strong { color: var(--accent-dark); }

/* Feature list */
.feature-list {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 24px 0;
  padding: 0 !important;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 1.02rem;
}

.feature-list li:first-child { border-top: 1px solid var(--border); }

.feature-list li::before {
  content: '';
  width: 22px;
  height: 22px;
  background: var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ff5a1f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3 8 L7 12 L13 4'/></svg>") no-repeat center;
  background-size: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-list li::marker { display: none; }

.feature-list li strong { color: var(--text); font-weight: 600; }

/* Price table */
.price-table { display: grid; gap: 0; margin: 32px 0; }

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.price-row:first-child { border-top: 1px solid var(--border); }

.price-row strong { color: var(--text); font-weight: 600; font-size: 1.05rem; }

.price-row .price {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* ====== Big CTA section (dark island on light page) ====== */
.cta-section {
  position: relative;
  padding: 140px 0;
  text-align: center;
  overflow: hidden;
  background: var(--ink-dark);
  color: #fff;
}

.cta-section.rounded {
  border-radius: var(--radius-lg);
  margin: 0 32px;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 90, 31, 0.28) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  margin-bottom: 24px;
  position: relative;
  color: #fff;
}

.cta-section h2 .italic-serif { color: var(--accent); }

.cta-section p {
  font-size: 1.2rem;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
  position: relative;
  color: rgba(255, 255, 255, 0.72);
}

.cta-section .eyebrow { color: var(--accent); }
.cta-section .eyebrow::before { background: var(--accent); }

.cta-section .actions {
  position: relative;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .cta-btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}
.cta-section .cta-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .cta-section { padding: 80px 0; }
  .cta-section.rounded { margin: 0 20px; }
}

/* ====== Footer ====== */
.footer {
  position: relative;
  padding: 120px 0 36px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 80px;
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
  font-family: var(--sans);
  font-weight: 600;
}

.footer-col ul { list-style: none; display: grid; gap: 14px; }

.footer-col a {
  font-size: 0.98rem;
  color: var(--text);
  transition: color var(--t-fast);
}

.footer-col a:hover { color: var(--accent); }

.footer-about p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 20px;
  max-width: 360px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-dim);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom a:hover { color: var(--accent); }

/* ====== Lightbox ====== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(15, 20, 30, 0.85);
  backdrop-filter: blur(10px);
}

.lightbox.open { display: flex; }

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}

.lightbox-content svg { width: min(85vw, 1000px); height: auto; aspect-ratio: 4/3; }

.lightbox-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.4rem;
  z-index: 2;
  box-shadow: var(--shadow);
}

/* ====== Reveal animations ====== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }

/* Marquee */
.marquee {
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
  background: var(--bg-2);
}

.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 36s linear infinite;
  white-space: nowrap;
  align-items: center;
}

.marquee span {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 60px;
}

.marquee span::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.marquee em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   EXTENSIONS: trust pills, testimonial, process, why-us, pricing, tech-tags, grain
   ======================================== */

/* Subtle film grain overlay (industrial texture) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* ===== Tech tags (industrial monospace chips) ===== */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-muted);
}

.tech-tag.accent {
  background: var(--accent-soft);
  border-color: rgba(255, 90, 31, 0.25);
  color: var(--accent-dark);
}

.tech-tag::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* ===== Hero — trust pills + cinematic overlay ===== */
.hero-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 20, 30, 0.08);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 12px rgba(15, 20, 30, 0.06);
}

.trust-pill .icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.trust-pill .icon svg { width: 16px; height: 16px; }

/* Better cinematic gradient over hero photo */
.hero-bg::before {
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.72) 25%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    rgba(255, 255, 255, 0.4) 100%
  ) !important;
}

/* Bottom fade (text readability) layered on top */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 55%,
    rgba(255, 255, 255, 0.5) 80%,
    rgba(255, 255, 255, 0.95) 100%
  );
  z-index: 1;
}

/* ===== Testimonial quote below hero ===== */
.testimonial-strip {
  padding: 56px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.testimonial {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .testimonial { grid-template-columns: auto 1fr; gap: 18px; }
  .testimonial .stars { grid-column: 1 / -1; }
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.testimonial-text {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.testimonial-text::before { content: '„'; color: var(--accent); margin-right: 4px; }
.testimonial-text::after { content: '"'; color: var(--accent); margin-left: 4px; }

.testimonial-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.testimonial-meta strong { color: var(--text); font-weight: 600; }

.testimonial .stars {
  display: flex;
  gap: 2px;
  color: var(--accent);
}

/* ===== Process section (Jak vzniká naše práce) ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.process-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.process-card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-2);
}

.process-card-media img,
.process-card-media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.process-card:hover .process-card-media img { transform: scale(1.05); }

.process-card-step {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 4px;
}

.process-card-body {
  padding: 22px 24px 26px;
}

.process-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text);
}

.process-card-body p {
  font-size: 0.94rem;
  line-height: 1.55;
}

/* ===== Why-us section ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}

.why-item {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--t);
}

.why-item:hover { background: var(--bg-2); }

.why-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.why-icon svg { width: 24px; height: 24px; }

.why-item h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
}

.why-item p {
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
}

/* ===== Pricing teaser ===== */
.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}

.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.price-card-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.price-card-icon svg { width: 28px; height: 28px; }

.price-card h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin: 0;
}

.price-card .from {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.price-card .amount {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-card .amount .unit {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  margin-left: 4px;
}

.price-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.price-card .link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}
.price-card .link::after { content: '→'; transition: transform var(--t-fast); }
.price-card:hover .link::after { transform: translateX(4px); }

/* ===== Improved reference cards (richer info) ===== */
.ref-card-rich {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t);
}

.ref-card-rich:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ref-card-rich .media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.ref-card-rich .media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow);
}

.ref-card-rich:hover .media img { transform: scale(1.05); }

.ref-card-rich .location {
  position: absolute;
  top: 16px; left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.ref-card-rich .location svg { width: 12px; height: 12px; color: var(--accent); }

.ref-card-rich .body {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.ref-card-rich .body h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
  margin: 0;
}

.ref-card-rich .body p {
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
}

.ref-card-rich .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.ref-card-rich .footer .cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ref-card-rich .footer .cta::after { content: '→'; transition: transform var(--t-fast); }
.ref-card-rich:hover .footer .cta::after { transform: translateX(4px); }

/* ===== Extended footer ===== */
.footer-extended {
  padding-top: 100px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; gap: 40px; } }

.footer-cta {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow);
}

.footer-cta h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--text);
}

.footer-cta p {
  font-size: 1rem;
  margin-bottom: 22px;
}

.footer-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-map {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.footer-map iframe,
.footer-map img,
.footer-map svg {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.footer-map-overlay {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.footer-map-overlay strong { display: block; color: var(--text); font-family: var(--display); font-weight: 600; }
.footer-map-overlay span { display: block; color: var(--text-muted); font-size: 0.88rem; margin-top: 2px; }

.footer-info-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

@media (max-width: 900px) { .footer-info-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 540px) { .footer-info-grid { grid-template-columns: 1fr; } }

.footer-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
}

.footer-meta-row span strong { color: var(--text); font-weight: 600; }

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-link {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all var(--t-fast);
}

.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.social-link svg { width: 18px; height: 18px; }

/* ===== Reference detail — project info card ===== */
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 110px;
}

@media (max-width: 900px) {
  .info-card { position: static; padding: 28px; }
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: var(--text);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.info-card .info-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.info-card .info-row:last-child { border-bottom: 0; }

.info-card .label {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.info-card .value {
  color: var(--text);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  text-align: right;
}

.info-card .info-cta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

/* Detail page hero (big photo as background) */
.detail-hero {
  position: relative;
  height: 60vh;
  min-height: 460px;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--bg-2);
}

.detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 9, 12, 0.85) 0%, rgba(8, 9, 12, 0.3) 50%, transparent 100%);
}

.detail-hero-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 60px 0;
  color: #fff;
}

.detail-hero-content .breadcrumb {
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.detail-hero-content .breadcrumb a { color: rgba(255,255,255,0.85); }
.detail-hero-content .breadcrumb a:hover { color: var(--accent); }
.detail-hero-content .breadcrumb .sep { color: rgba(255,255,255,0.4); }

.detail-hero-content h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin: 8px 0 12px;
  max-width: 800px;
}

.detail-hero-content .meta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  margin-top: 14px;
}

.detail-hero-content .meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.detail-hero-content .meta-row svg { width: 16px; height: 16px; color: var(--accent); }

/* Detail two-col layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* Detail gallery */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.detail-gallery .item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  cursor: pointer;
}

.detail-gallery .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.detail-gallery .item:hover img { transform: scale(1.05); }

/* Hours block */
.hours-list {
  list-style: none;
  display: grid;
  gap: 6px;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
}

.hours-list .day { color: var(--text-muted); }
.hours-list .time { color: var(--text); font-weight: 500; font-family: var(--display); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
