/* =============================================
   VENTRA — Industrial Design System
   uipro: Construction/B2B + Barlow Condensed
   ============================================= */

:root {
  /* Backgrounds */
  --bg:          #f3f5f8;
  --bg-surface:  #ffffff;
  --bg-card:     #ffffff;
  --bg-card-alt: #f8f9fb;
  --bg-alt:      #eaecf2;

  /* Brand — Plandeka Red + Harvest Gold (uipro: Sports/81 + Agriculture/52) */
  --orange:      #c41c1c;
  --orange-dark: #a51515;
  --orange-dim:  rgba(196, 28, 28, 0.09);
  --orange-glow: rgba(196, 28, 28, 0.18);
  --orange-border: rgba(196, 28, 28, 0.28);

  /* Gold accent */
  --gold:        #ca8a04;
  --gold-dim:    rgba(202, 138, 4, 0.12);
  --gold-border: rgba(202, 138, 4, 0.35);

  /* Steel tones */
  --steel-dark:  #1c2b3a;
  --steel:       #2d4459;
  --steel-mid:   #4a6278;
  --steel-light: #6e8aa0;

  /* Text */
  --text:        #1a2636;
  --text-muted:  #4a5e72;
  --text-dim:    #8a9aaa;

  /* Borders */
  --border:      #dce3ec;
  --border-mid:  #c8d4e0;
  --border-bright: rgba(28, 43, 58, 0.12);

  /* Shadows */
  --shadow:      0 2px 12px rgba(28, 43, 58, 0.10);
  --shadow-lift: 0 6px 32px rgba(28, 43, 58, 0.16);
  --shadow-card: 0 1px 6px rgba(28, 43, 58, 0.08);

  /* Layout */
  --container:   1200px;
  --radius:      6px;
  --radius-md:   10px;
  --radius-lg:   14px;

  /* Fonts */
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Barlow', 'Segoe UI', system-ui, sans-serif;

  /* Animation */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(var(--container), 92vw);
  margin: 0 auto;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; letter-spacing: 0.06em; color: var(--text-muted); }

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin: 0 0 10px;
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  padding: 13px 26px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out),
              background 0.2s ease,
              border-color 0.2s ease;
}
.btn-primary {
  background: var(--orange);
  color: #000;
  border-color: var(--orange);
  box-shadow: 0 4px 18px var(--orange-glow);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--orange-glow);
}
.btn-secondary {
  background: transparent;
  border-color: var(--border-mid);
  color: var(--text-muted);
}
.btn-secondary:hover {
  border-color: var(--orange-border);
  color: var(--text);
  transform: translateY(-2px);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ===== Topbar / Nav ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.topbar.is-scrolled {
  box-shadow: 0 2px 16px rgba(28, 43, 58, 0.12);
  border-bottom-color: var(--border-mid);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0;
  height: 140px;
}

.logo img {
  height: 120px;
  width: auto;
  transition: opacity 0.2s ease;
  filter: brightness(1.1);
}
.logo:hover img { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  position: relative;
  padding: 8px 13px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease-out);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(249, 115, 22, 0.07);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* CTA nav button */
.nav-links .btn {
  padding: 8px 16px;
  font-size: 0.82rem;
  margin-left: 4px;
}
.nav-links .btn::after { display: none; }
.nav-links .btn:hover { transform: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px;
  transition: border-color 0.2s ease;
}
.nav-toggle:hover { border-color: var(--orange-border); }
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--orange); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--orange); }

/* Lang switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 3px;
  flex-shrink: 0;
}
.lang-switch a {
  padding: 5px 9px;
  border-radius: calc(var(--radius) - 2px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-switch a:hover { color: var(--text); background: var(--bg-card); }
.lang-switch a.active {
  background: var(--orange);
  color: #000;
}

/* Nav right group */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background: var(--steel-dark);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-wrap video,
.hero-video-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: grayscale(20%);
}
.hero-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(28, 43, 58, 0.88) 0%,
    rgba(28, 43, 58, 0.55) 55%,
    rgba(28, 43, 58, 0.78) 100%
  );
}

/* Diagonal accent stripe */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--orange) 0%, transparent 100%);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-content .eyebrow { font-size: 0.85rem; }

h1.hero-title {
  font-size: clamp(3rem, 5.5vw, 5rem);
  color: #e4ecf4;
  margin-bottom: 20px;
}
h1.hero-title em {
  font-style: normal;
  color: var(--orange);
}

.hero-lead {
  font-size: 1.05rem;
  color: #a8bfd4;
  line-height: 1.72;
  max-width: 48ch;
}

/* All text inside hero must be light (dark --steel-dark background) */
.hero h1, .hero h2, .hero h3, .hero h4 { color: #e4ecf4; }
.hero p { color: #a8bfd4; }
.hero .eyebrow { color: var(--gold); }

/* Hero image panel */
.hero-image-wrap {
  position: relative;
}
.hero-image-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-mid);
  box-shadow: var(--shadow-lift);
  filter: brightness(0.9) contrast(1.05);
}
/* Orange corner accent */
.hero-image-wrap::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  width: 48px;
  height: 48px;
  border-top: 3px solid var(--orange);
  border-left: 3px solid var(--orange);
  border-radius: 2px 0 0 0;
  z-index: 2;
}
.hero-image-wrap::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 48px;
  height: 48px;
  border-bottom: 3px solid var(--orange);
  border-right: 3px solid var(--orange);
  border-radius: 0 0 2px 0;
  z-index: 2;
}

/* Hero figure (technologia.html uses .hero-image) */
.hero-image {
  position: relative;
  margin: 0;
}
.hero-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-lift);
  display: block;
}
.hero-image::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  width: 48px;
  height: 48px;
  border-top: 3px solid var(--orange);
  border-left: 3px solid var(--orange);
  border-radius: 2px 0 0 0;
  z-index: 2;
}
.hero-image::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 48px;
  height: 48px;
  border-bottom: 3px solid var(--orange);
  border-right: 3px solid var(--orange);
  border-radius: 0 0 2px 0;
  z-index: 2;
}

/* ===== Sections ===== */
.section {
  padding: 72px 0;
}
.section.alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section.dark {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 42px;
}
.section-header .lead { max-width: 60ch; }

/* ===== KPI / Stats strip ===== */
.stats-strip {
  background: var(--steel-dark);
  border-top: none;
  border-bottom: none;
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--orange);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e4ecf4;
  margin-bottom: 6px;
}
.stat-desc {
  font-size: 0.88rem;
  color: #8fa3b8;
  max-width: 22ch;
  line-height: 1.5;
}

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out),
              border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--orange-border);
}
.card--accent {
  border-left: 3px solid var(--orange);
}
.card h3 { margin-bottom: 10px; }

/* Grid layouts */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ===== Feature list ===== */
.feat-list {
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.feat-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: left;
}
.feat-list li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

/* ===== Module grid (produkty) — horizontal cards ===== */
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.module-grid .card {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 16px;
  row-gap: 4px;
  align-items: start;
  padding: 16px;
}
.module-photo {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 200px;
  height: 140px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  flex-shrink: 0;
}
.module-grid .card h3 {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 6px;
}
.module-grid .card p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

/* ===== Reveal animation ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-grid figure {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.gallery-grid figure:hover {
  transform: translateY(-3px);
  border-color: var(--orange-border);
}
.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}
.gallery-grid figure:hover img { opacity: 0.88; }
.gallery-grid figcaption {
  font-size: 0.92rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--text);
  padding: 8px 10px 9px;
  background: var(--bg-card);
}

/* 3-col gallery variant */
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-3 img { aspect-ratio: 16/10; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 12, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-content {
  max-width: min(1280px, 96vw);
  max-height: 94vh;
  text-align: center;
}
.lightbox-content img {
  max-height: 82vh;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-mid);
}
.lightbox-caption {
  color: var(--text-muted);
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}
.lightbox-close:hover { color: var(--orange); }

/* ===== Projects ===== */
.project-grid { display: grid; gap: 24px; }
.project-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--orange-border);
}
.project-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.1);
  transition: filter 0.3s ease;
}
.project-card:hover img { filter: brightness(0.95) contrast(1.1); }
.project-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-content h3 { margin-bottom: 10px; }
.project-content p { color: var(--text-muted); font-size: 0.97rem; }
.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.project-facts li {
  background: var(--orange-dim);
  border: 1px solid var(--orange-border);
  border-radius: 4px;
  padding: 5px 11px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
}

/* ===== Kurniki tiles ===== */
.kurnik-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.kurnik-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}
.kurnik-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--orange-border);
}
.kurnik-tile__media {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.kurnik-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) contrast(1.05);
  transition: transform 0.4s var(--ease-out), filter 0.3s ease;
}
.kurnik-tile:hover .kurnik-tile__media img {
  transform: scale(1.05);
  filter: brightness(0.95) contrast(1.05);
}
.kurnik-tile__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kurnik-tile__body h3 { margin: 0; color: var(--text); }
.kurnik-tile__body p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }
.kurnik-tile__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--orange);
  margin-top: 4px;
  transition: opacity 0.2s ease;
}
.kurnik-tile__link:hover { opacity: 0.75; }

/* Kurnik gallery 2-col */
.gallery-kurnik {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.gallery-kurnik figure {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease;
}
.gallery-kurnik figure:hover {
  transform: translateY(-3px);
  border-color: var(--orange-border);
}
.gallery-kurnik img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 4px);
  filter: brightness(0.88) contrast(1.05);
  transition: transform 0.3s var(--ease-out), filter 0.25s ease;
}
.gallery-kurnik figure:hover img {
  transform: scale(1.04);
  filter: brightness(0.96) contrast(1.05);
}
.gallery-kurnik figcaption {
  font-size: 0.75rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 5px 2px 0;
}
.kurnik-gallery-section h2 { margin-bottom: 6px; }

/* ===== About brand logos ===== */
.about-brand-strip {
  margin-top: 20px;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.about-brand-strip__intro { color: var(--text-muted); margin-bottom: 24px; text-align: center; }
.about-brand-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 32px;
}
.about-brand-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 180px;
}
.about-brand-logos a:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.about-brand-logos img {
  max-height: 120px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}
.about-brand-logos a:hover img { opacity: 0.9; }

/* Timeline */
.about-timeline { color: var(--text-muted); }
.about-timeline li { margin-bottom: 12px; padding-left: 20px; }

/* ===== Video ===== */
.video-wrap video {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

/* ===== Contact ===== */
.company-photo {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-top: 16px;
  display: block;
}

/* ===== Form ===== */
.form-grid { display: grid; gap: 10px; }
.input,
select,
textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.input::placeholder,
textarea::placeholder { color: var(--text-dim); }
.input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--orange-border);
  box-shadow: 0 0 0 3px var(--orange-dim);
}
select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238fa3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea { min-height: 130px; resize: vertical; }
.form-status { font-family: var(--font-display); font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; }
.form-field-conditional:not([hidden]) { margin-top: 2px; }

/* ===== Footer ===== */
.footer {
  background: var(--steel-dark);
  border-top: none;
  padding: 52px 0 28px;
  color: #e4ecf4;
}
/* Orange top accent line */
.footer::before {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--orange);
  margin: 0 auto 52px;
  transform: translateY(-52px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
}
.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 14px;
  filter: brightness(1.05);
}
.footer-brand p { font-size: 0.9rem; color: #8fa3b8; line-height: 1.6; }
.footer h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e4ecf4;
  margin-bottom: 14px;
}
.footer a {
  display: block;
  color: #8fa3b8;
  font-size: 0.93rem;
  margin-bottom: 7px;
  transition: color 0.2s ease;
  text-decoration: none;
}
.footer a:hover { color: var(--orange); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom small { color: #546070; font-size: 0.82rem; }

/* ===== Stock image ===== */
.stock-team-wrap {
  position: relative;
  margin-top: 16px;
}
.stock-team {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-mid);
  box-shadow: var(--shadow-lift);
}
.stock-team-wrap::before {
  content: '';
  position: absolute;
  top: -6px; left: -6px;
  width: 40px; height: 40px;
  border-top: 3px solid var(--orange);
  border-left: 3px solid var(--orange);
  border-radius: 2px 0 0 0;
  z-index: 2;
}
.stock-team-wrap::after {
  content: '';
  position: absolute;
  bottom: -6px; right: -6px;
  width: 40px; height: 40px;
  border-bottom: 3px solid var(--orange);
  border-right: 3px solid var(--orange);
  border-radius: 0 0 2px 0;
  z-index: 2;
}

/* ===== Misc ===== */
.list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
}
.list li { margin-bottom: 8px; }

/* Tech badge strip */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tech-badge {
  background: var(--orange-dim);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius);
  padding: 5px 12px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--orange);
}

/* Section divider */
.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 0 28px;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .module-grid .card { grid-template-columns: 160px 1fr; }
  .module-photo { width: 160px; height: 120px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .kurnik-tile-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  /* Nav mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: 140px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 4px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(28,43,58,0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-links .btn { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: flex; }

  /* Layouts */
  .hero-grid,
  .split,
  .project-card { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero .container { padding: 60px 0; }
  .hero-image-wrap { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-kurnik { grid-template-columns: repeat(2, 1fr); }
  .kurnik-tile-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .project-card img { min-height: 240px; max-height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .module-grid .card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .module-photo { grid-row: 1; grid-column: 1; width: 100%; height: 180px; }
  .module-grid .card h3 { grid-column: 1; grid-row: 2; }
  .module-grid .card p { grid-column: 1; grid-row: 3; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; }
  .btn { justify-content: center; text-align: center; }
  .gallery-3 { grid-template-columns: 1fr; }
  .gallery-kurnik { grid-template-columns: 1fr; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video-wrap video { display: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover,
  .card:hover,
  .kurnik-tile:hover,
  .project-card:hover,
  .gallery-grid figure:hover,
  .gallery-kurnik figure:hover { transform: none; }
}
