/* ============================================================
   TECTIQ index (nowy styl) — design system + layout
   Typografia: Michroma (logo) + Space Grotesk (nagłówki/treść) + Azeret Mono (UI)
============================================================ */
:root {
  --tq-bg-body:       #020617;
  --tq-bg-elevated:   #0b1224;
  --tq-bg-header:     rgba(2, 6, 23, 0.88);
  --tq-bg-card:       rgba(15, 23, 42, 0.55);
  --tq-bg-card-solid: #0f172a;
  --tq-border-card:   rgba(226, 232, 240, 0.09);
  --tq-border-strong: rgba(226, 232, 240, 0.18);
  --tq-border-glow:   rgba(34, 211, 238, 0.22);

  --tq-text-primary:   #e2e8f0;
  --tq-text-secondary: #9fb0c4;
  --tq-text-muted:     #64748b;
  --tq-text-headline:  #ffffff;

  --tq-accent-cyan:  #22d3ee;
  --tq-accent-amber: #d97706;

  --font-logo: 'Michroma', system-ui, sans-serif;
  --font-headlines: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-ui: 'Azeret Mono', ui-monospace, monospace;
  --tq-ui-tracking: 0.1em;

  --tq-text-h1: clamp(2rem, 4.2vw, 3.15rem);
  --tq-text-h2: clamp(1.55rem, 2.6vw, 2.45rem);
  --tq-leading-tight: 1.12;
  --tq-leading-body: 1.65;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;

  --tq-radius-sm: 6px;
  --tq-radius-m:  10px;
  --tq-radius-lg: 14px;
  --tq-radius-xl: 20px;

  --tq-shadow-deep: 0 18px 40px -12px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.25);
  --tq-shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, var(--tq-shadow-deep);
  --tq-shadow-glow: 0 0 60px -20px rgba(34, 211, 238, 0.35);
}

html, body { overflow-x: hidden; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  position: relative;
  isolation: isolate;
  background-color: var(--tq-bg-body);
  color: var(--tq-text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--tq-leading-body);
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtelny mesh / noise — „premium canvas” bez ciężaru */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 80% at 0% -20%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(217, 119, 6, 0.1), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(15, 23, 42, 0.9), transparent 60%);
  opacity: 0.85;
}

.tq-wrap {
  width: 100%;
  max-width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
  box-sizing: border-box;
}

/* Definicje SVG (gradient logo) — poza ekranem */
.tq-sprite-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  left: -9999px;
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--tq-accent-cyan);
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible {
  outline-offset: 2px;
}

/* ============================================================
   HEADER — Dark, Sticky, z Mega Menu
============================================================ */
.tq-main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--tq-bg-header);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--tq-border-card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 40px -20px rgba(0, 0, 0, 0.5);
}

.tq-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo w headerze */
.tq-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.tq-header-logo svg {
  width: 32px;
  height: 32px;
}
.tq-mark {
  overflow: visible;
  filter: drop-shadow(0 0 25px rgba(0, 178, 255, 0.45));
}
.tq-pulse {
  animation: tqPulse 1.8s ease-in-out infinite;
}
.tq-header-logo .tq-logo-name {
  font-family: var(--font-logo);
  font-size: 19px;
  font-weight: 400;
  color: var(--tq-text-headline);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 16px rgba(34, 211, 238, 0.08);
}
.tq-header-logo .tq-logo-name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, 0.9) 45%, rgba(34, 211, 238, 0.55) 52%, transparent 80%);
  background-size: 220% 100%;
  background-position: 140% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  pointer-events: none;
  animation: tqWordmarkSweep 10s ease-in-out infinite;
}

/* NAV */
.tq-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tq-nav-item {
  position: relative;
}

.tq-nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--tq-text-secondary);
  text-decoration: none;
  border-radius: var(--tq-radius-m);
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  text-transform: uppercase;
  letter-spacing: var(--tq-ui-tracking);
}
.tq-nav-link:hover,
.tq-nav-item:hover > .tq-nav-link {
  color: var(--tq-text-headline);
  background: rgba(255,255,255,0.05);
}
.tq-nav-link .tq-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
  stroke: currentColor;
  fill: none;
}
.tq-nav-item:hover > .tq-nav-link .tq-chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.tq-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--tq-bg-card-solid);
  border: 1px solid var(--tq-border-card);
  border-radius: var(--tq-radius-m);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: var(--tq-shadow-deep);
}
.tq-nav-item:hover > .tq-dropdown,
.tq-nav-item:focus-within > .tq-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tq-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--tq-text-secondary);
  font-size: 14px;
  transition: color 0.15s, background 0.15s;
}
.tq-dropdown a:hover {
  color: var(--tq-text-headline);
  background: rgba(255,255,255,0.06);
}
.tq-dropdown a .dd-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--tq-accent-cyan);
}
.tq-dropdown a .dd-label {
  display: flex;
  flex-direction: column;
}
.tq-dropdown a .dd-label strong {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--tq-text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tq-dropdown a .dd-label span {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--tq-text-secondary);
}
.tq-dropdown-divider {
  height: 1px;
  background: var(--tq-border-card);
  margin: 6px 0;
}

/* Header CTA buttons */
.tq-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-header-login {
  padding: 7px 16px;
  border-radius: var(--tq-radius-m);
  border: 1px solid var(--tq-border-strong);
  background: transparent;
  color: var(--tq-text-secondary);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  text-transform: uppercase;
  letter-spacing: var(--tq-ui-tracking);
}
.btn-header-login:hover {
  color: var(--tq-text-headline);
  border-color: var(--tq-border-strong);
}
.btn-header-register {
  padding: 7px 16px;
  border-radius: var(--tq-radius-m);
  border: none;
  background: var(--tq-accent-amber);
  color: #FFFFFF;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  text-transform: uppercase;
  letter-spacing: var(--tq-ui-tracking);
}
.btn-header-register:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Hamburger */
.tq-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.tq-mobile-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--tq-text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav drawer */
.tq-mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--tq-bg-card-solid);
  border-top: 1px solid var(--tq-border-card);
  padding: 16px 24px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.tq-mobile-nav.open { display: flex; }
.tq-mobile-nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--tq-border-card);
  color: var(--tq-text-secondary);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tq-ui-tracking);
}
.tq-mobile-nav a:hover { color: var(--tq-text-headline); }
.tq-mobile-nav .mobile-section-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tq-accent-cyan);
  margin-top: 16px;
  margin-bottom: 4px;
  padding-bottom: 0;
  border-bottom: none;
}
.tq-mobile-ctas {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.tq-mobile-ctas a {
  flex: 1;
  text-align: center;
  border: none;
  border-bottom: none !important;
  padding: 12px !important;
  border-radius: var(--tq-radius-m);
}
.tq-mobile-ctas .btn-mob-login {
  background: transparent;
  border: 1px solid var(--tq-border-strong) !important;
  color: var(--tq-text-secondary) !important;
}
.tq-mobile-ctas .btn-mob-register {
  background: var(--tq-accent-amber) !important;
  color: #fff !important;
}

/* ============================================================
   HERO — 2-kolumnowy, ciemne tło z obrazem
============================================================ */
.tq-hero {
  min-height: 100vh;
  padding-top: 64px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: #020617;
}

/* Video w tle hero */
.tq-hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  /* Fallback zanim video się załaduje */
}

/* Ciemny overlay na video — taki sam jak wcześniej gradient */
.tq-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}

/* Treść hero musi być nad video i overlayem */
.tq-hero > .tq-wrap {
  position: relative;
  z-index: 2;
}

.tq-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

/* Lewa kolumna – tekst */
.tq-hero-text {}

.tq-hero-pre {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tq-accent-cyan);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tq-hero-pre::before {
  display: none;
}

.tq-hero-h1 {
  font-family: var(--font-headlines);
  font-size: var(--tq-text-h1);
  font-weight: 700;
  color: var(--tq-text-headline);
  margin: 0 0 20px 0;
  line-height: var(--tq-leading-tight);
  letter-spacing: -0.035em;
}
.tq-hero-h1 .tq-gradient-word {
  background: linear-gradient(105deg, #fff 0%, #e2e8f0 45%, var(--tq-accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tq-hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--tq-text-secondary);
  margin: 0 0 36px 0;
  max-width: 44ch;
}

.tq-hero-stats {
  display: flex;
  gap: 32px;
}
.tq-hero-stat {
  display: flex;
  flex-direction: column;
}
.tq-hero-stat strong {
  font-family: var(--font-ui);
  font-size: 28px;
  font-weight: 700;
  color: var(--tq-text-headline);
  line-height: 1;
  letter-spacing: 0.02em;
}
.tq-hero-stat span {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--tq-text-secondary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Prawa kolumna – Giga-Wyszukiwarka */
.tq-hero-search-card {
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.45) 100%);
  border: 1px solid var(--tq-border-card);
  border-radius: var(--tq-radius-lg);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  padding: 28px;
  box-shadow: var(--tq-shadow-card), var(--tq-shadow-glow);
}

/* Tabs w search card */
.tq-search-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--tq-radius-m);
  padding: 4px;
}
.tq-search-tab {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--tq-text-secondary);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tq-search-tab.active {
  background: var(--tq-accent-cyan);
  color: #020617;
}
.tq-search-tab:not(.active):hover {
  color: var(--tq-text-headline);
  background: rgba(255,255,255,0.06);
}

/* Search form */
.tq-search-panel { }
.tq-search-panel.hidden { display: none; }

.tq-search-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.tq-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tq-field-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tq-text-secondary);
}
.tq-dark-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--tq-border-card);
  border-radius: var(--tq-radius-m);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--tq-text-primary);
  box-sizing: border-box;
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.tq-dark-input::placeholder { color: var(--tq-text-secondary); opacity: 0.6; }
.tq-dark-input:focus {
  border-color: var(--tq-accent-cyan);
  background: rgba(34, 211, 238, 0.04);
}
.tq-dark-input option {
  background: #0F172A;
  color: var(--tq-text-primary);
}

.tq-btn-search-big {
  width: 100%;
  padding: 14px 24px;
  background: var(--tq-accent-amber);
  color: #FFFFFF;
  border: none;
  border-radius: var(--tq-radius-m);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.12em;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
}
.tq-btn-search-big:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.tq-search-ai-link {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  font-family: var(--font-ui);
  color: var(--tq-accent-cyan);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tq-search-ai-link:hover { opacity: 0.8; }

/* AI Chat panel (in card) */
.tq-ai-panel {
  display: none;
  flex-direction: column;
  height: 320px;
}
.tq-ai-panel.active { display: flex; }

.tq-chat-history {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  padding-right: 4px;
}
.tq-chat-history::-webkit-scrollbar { width: 6px; }
.tq-chat-history::-webkit-scrollbar-thumb { background: var(--tq-border-card); border-radius: 4px; }

.tq-ai-bubble, .tq-user-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}
.tq-ai-bubble {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--tq-border-card);
  color: var(--tq-text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.tq-ai-bubble strong { color: var(--tq-accent-cyan); }
.tq-ai-bubble a { color: var(--tq-accent-cyan); }
.tq-user-bubble {
  background: var(--tq-accent-amber);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.tq-chat-input-row {
  display: flex;
  gap: 8px;
}
.tq-chat-input-row input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--tq-border-card);
  border-radius: var(--tq-radius-m);
  padding: 10px 12px;
  color: var(--tq-text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
}
.tq-chat-input-row input:focus { border-color: var(--tq-accent-cyan); }
.tq-chat-input-row input::placeholder { color: var(--tq-text-secondary); opacity: 0.6; }
.tq-chat-send-btn {
  padding: 10px 16px;
  background: var(--tq-accent-cyan);
  color: #020617;
  border: none;
  border-radius: var(--tq-radius-m);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tq-chat-send-btn:hover { opacity: 0.85; }

.tq-ai-loader { color: var(--tq-text-secondary); font-size: 20px; }
@keyframes tqBlink { 0%,100%{opacity:0.3} 50%{opacity:1} }
.tq-ai-loader { animation: tqBlink 1.4s infinite; }

/* AI chat link button */
.tq-chat-link-button {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 14px;
  background: var(--tq-accent-cyan);
  color: #020617 !important;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
}

/* ============================================================
   KATALOG SPRZĘTU — pas jasny (hybryda), kafelki pod szkice na białym tle
============================================================ */
/* Jak na produkcyjnym index.html: jasne tło + subtelny wzór (nie gradient „płaski”) */
.tq-catalog-section {
  position: relative;
  padding: 72px 0 88px;
  background-color: #f8fafc;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.tq-catalog-section .tq-section-label {
  color: #0e7490;
}

.tq-catalog-section .tq-section-header h2 {
  color: #0f172a;
}

.tq-catalog-section .tq-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.tq-catalog-section .tq-section-header p {
  color: #475569;
  margin-left: auto;
  margin-right: auto;
}

.tq-catalog-section .tq-catalog-loading {
  color: #64748b;
}

.tq-catalog-section .tq-info-item {
  color: #475569;
}

.tq-catalog-section .tq-info-icon {
  color: #0891b2;
}

.tq-catalog-section .tq-info-text h4 {
  color: #0f172a;
}

.tq-catalog-section .tq-info-text p {
  color: #64748b;
}

.tq-section-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tq-accent-cyan);
  margin-bottom: 12px;
}

.tq-section-header {
  margin-bottom: 48px;
}
.tq-section-header h2 {
  font-family: var(--font-headlines);
  font-size: var(--tq-text-h2);
  font-weight: 700;
  color: var(--tq-text-headline);
  margin: 0 0 12px 0;
  letter-spacing: -0.03em;
  line-height: var(--tq-leading-tight);
}
.tq-section-header p {
  font-size: 17px;
  color: var(--tq-text-secondary);
  margin: 0;
  max-width: 56ch;
  line-height: 1.6;
}

/* Grid kafelków */
.tq-catalog-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--tq-text-secondary);
  padding: var(--space-6) 0;
  font-size: 15px;
}

.tq-catalog-error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--tq-text-secondary);
  padding: 20px 0;
  font-size: 15px;
}

.tq-btn-retry {
  margin-top: 12px;
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--tq-border-strong);
  color: var(--tq-text-secondary);
  border-radius: var(--tq-radius-m);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tq-btn-retry:hover {
  border-color: var(--tq-accent-cyan);
  color: var(--tq-text-headline);
}

.tq-equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Kafelki jak na produkcji (index.html): biała karta, szkic u góry, tytuł na „pillu” — bez gradientu na całości */
.tq-equipment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 175px;
  padding: 10px;
  box-sizing: border-box;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  background-size: 130px auto;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.tq-equipment-card:hover {
  transform: translateY(-5px);
  border-color: var(--tq-accent-cyan);
  box-shadow: 0 15px 30px -5px rgba(34, 211, 238, 0.25);
}

.tq-equipment-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-headlines);
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 auto;
  text-align: center;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.95);
  width: 100%;
  max-width: 130px;
  padding: 6px 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  transition: color 0.2s ease;
}

.tq-equipment-card:hover h3 {
  color: var(--tq-accent-cyan);
}

.tq-card-desc { display: none !important; }

/* Narzędzia special */
.tq-tools-special-item {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin-top: 16px;
}
.tq-side-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 240px;
}
.tq-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--tq-text-secondary);
}
.tq-info-icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.5px;
  flex-shrink: 0;
  color: var(--tq-accent-cyan);
}
.tq-info-text h4 {
  font-family: var(--font-headlines);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 2px 0;
  color: var(--tq-text-primary);
}
.tq-info-text p {
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
  color: var(--tq-text-secondary);
}
.tq-equipment-card.tq-tools-special {
  width: 400px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  background-size: 176px auto;
  background-position: center 28%;
  background-image: url('/storage/szkic-narzedzia.jpg');
}

.tq-equipment-card.tq-tools-special h3 {
  max-width: 240px;
  color: #0f172a;
}

.tq-equipment-card.tq-tools-special:hover h3 {
  color: var(--tq-accent-cyan);
}

/* ============================================================
   SEKCJA: EKOSYSTEM TECTIQ
============================================================ */
.tq-ecosystem-section {
  background: var(--tq-bg-body);
  padding: 80px 0;
  border-top: 1px solid var(--tq-border-card);
}

.tq-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.tq-eco-card {
  background: var(--tq-bg-card);
  border: 1px solid var(--tq-border-card);
  border-radius: var(--tq-radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.tq-eco-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-4px);
}
.tq-eco-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--tq-radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--tq-accent-cyan);
}
.tq-eco-card-icon svg { width: 22px; height: 22px; }

.tq-eco-card h3 {
  font-family: var(--font-headlines);
  font-size: 18px;
  font-weight: 700;
  color: var(--tq-text-headline);
  margin: 0 0 10px 0;
}
.tq-eco-card p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--tq-text-secondary);
  margin: 0 0 24px 0;
  flex-grow: 1;
}
.tq-eco-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--tq-accent-cyan);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.tq-eco-cta::after {
  content: '>';
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.tq-eco-cta:hover {
  color: #67e8f9;
  transform: translateX(1px);
}
.tq-eco-cta:hover::after {
  transform: translateX(2px);
  opacity: 1;
}

/* ============================================================
   JAK TO DZIAŁA
============================================================ */
.tq-how-section {
  background: var(--tq-bg-body);
  padding: 80px 0;
  border-top: 1px solid var(--tq-border-card);
}

.tq-process-pipeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-top: 48px;
}
.tq-process-pipeline::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tq-accent-cyan), var(--tq-accent-amber));
  z-index: 0;
}
.tq-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}
.tq-node {
  width: 16px;
  height: 16px;
  background: var(--tq-accent-amber);
  border: 3px solid var(--tq-bg-body);
  border-radius: 50%;
  outline: 2px solid var(--tq-accent-amber);
  transition: transform 0.2s;
}
.tq-step:hover .tq-node { transform: scale(1.3); }
.tq-step h3 {
  font-family: var(--font-headlines);
  font-size: 15px;
  font-weight: 700;
  color: var(--tq-text-headline);
  margin: 16px 0 4px 0;
}
.tq-step p {
  font-size: 13px;
  color: var(--tq-text-secondary);
  margin: 0;
  line-height: 1.5;
}
.tq-text-wrap {}

/* ============================================================
   DLA PARTNERÓW — pas jasny (hybryda)
============================================================ */
.tq-partner-section.tq-band-light {
  background: linear-gradient(180deg, #e8eef5 0%, #f8fafc 48%, #eef2f7 100%);
  padding: 88px 0 96px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.tq-partner-section.tq-band-light .tq-section-label {
  color: #0e7490;
}

.tq-partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.tq-partner-content h2 {
  font-family: var(--font-headlines);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px 0;
  line-height: 1.2;
}
.tq-partner-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--tq-text-secondary);
  margin: 0 0 28px 0;
}

.tq-partner-section.tq-band-light .tq-partner-lead {
  color: #475569;
}

.tq-partner-section.tq-band-light .tq-partner-benefits li {
  color: #1e293b;
}

.tq-partner-section.tq-band-light .tq-microcopy {
  color: #64748b;
}

.tq-partner-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}
.tq-partner-benefits li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--tq-text-primary);
}
.tq-partner-benefits li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tq-accent-cyan);
}
.tq-btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--tq-accent-amber);
  color: #FFFFFF;
  border: none;
  border-radius: var(--tq-radius-m);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.tq-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.tq-btn-xl { padding: 16px 40px; font-size: 17px; }
.tq-microcopy {
  font-size: 13px;
  color: var(--tq-text-secondary);
  margin: 10px 0 0 0;
}
.tq-partner-img {
  width: 100%;
  height: auto;
  border-radius: var(--tq-radius-lg);
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  display: block;
}

/* ============================================================
   PORADNIK BUDOWLANY
============================================================ */
.tq-blog-section {
  background: var(--tq-bg-body);
  padding: 80px 0;
  border-top: 1px solid var(--tq-border-card);
}

.tq-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.tq-blog-card {
  background: var(--tq-bg-card);
  border: 1px solid var(--tq-border-card);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.tq-blog-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-4px);
}

.tq-blog-card--soon {
  cursor: default;
}

.tq-blog-card--soon:hover {
  transform: none;
  border-color: var(--tq-border-card);
}

.tq-blog-card-soon-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  color: var(--tq-text-muted);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tq-blog-card-img {
  width: 100%;
  height: 168px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px 20px;
  color: var(--tq-text-secondary);
  border-bottom: 1px solid var(--tq-border-card);
}

.tq-blog-card-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.72)),
    radial-gradient(ellipse 80% 70% at 20% 30%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 70%, rgba(217, 119, 6, 0.12), transparent 50%);
  z-index: 1;
}

.tq-blog-card-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tq-blog-card-code {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  background: rgba(2, 6, 23, 0.46);
  color: var(--tq-accent-cyan);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tq-blog-card-body {
  padding: 20px 22px 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.tq-blog-card-tag {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tq-accent-cyan);
  margin: 0 0 8px 0;
}
.tq-blog-card h3 {
  font-family: var(--font-headlines);
  font-size: 17px;
  font-weight: 700;
  color: var(--tq-text-headline);
  margin: 0 0 8px 0;
  line-height: 1.3;
}
.tq-blog-card p {
  font-size: 14px;
  color: var(--tq-text-secondary);
  line-height: 1.6;
  margin: 0 0 16px 0;
  flex-grow: 1;
}
.tq-blog-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tq-blog-card-link:hover {
  text-decoration: none;
}
.tq-blog-coming {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(217, 119, 6, 0.14);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: var(--tq-radius-sm);
  font-family: var(--font-ui);
  font-size: 10px;
  color: #fbbf24;
  font-weight: 500;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   FORMULARZ KONTAKTOWY — pas jasny
============================================================ */
.tq-contact-section.tq-band-light {
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 55%, #e8eef5 100%);
  padding: 88px 0 96px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.tq-contact-section.tq-band-light .tq-section-label {
  color: #0e7490;
}

.tq-contact-section.tq-band-light .tq-section-header h2 {
  color: #0f172a;
}

.tq-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: flex-start;
  margin-top: 48px;
}

.tq-contact-section.tq-band-light .tq-contact-info h3 {
  color: #0f172a;
}

.tq-contact-info h3 {
  font-family: var(--font-headlines);
  font-size: 22px;
  font-weight: 700;
  color: var(--tq-text-headline);
  margin: 0 0 12px 0;
}

.tq-contact-section.tq-band-light .tq-contact-info p {
  color: #475569;
}

.tq-contact-info p {
  color: var(--tq-text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 28px 0;
}

.tq-contact-section.tq-band-light .tq-contact-detail {
  color: #64748b;
}

.tq-contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--tq-text-secondary);
}
.tq-contact-detail svg {
  width: 18px;
  height: 18px;
  color: var(--tq-accent-cyan);
  flex-shrink: 0;
}

.tq-contact-section.tq-band-light .tq-contact-detail svg {
  color: #0891b2;
}

.tq-contact-detail a {
  color: var(--tq-accent-cyan);
  text-decoration: none;
}
.tq-contact-detail a:hover { text-decoration: underline; }

.tq-contact-section.tq-band-light .tq-contact-detail a {
  color: #0e7490;
}

.tq-contact-section.tq-band-light .tq-contact-form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
  backdrop-filter: none;
}

.tq-contact-form {
  background: var(--tq-bg-card);
  border: 1px solid var(--tq-border-card);
  border-radius: var(--tq-radius-lg);
  padding: 32px;
  backdrop-filter: blur(8px);
}

.tq-contact-section.tq-band-light .tq-form-label {
  color: #64748b;
}

.tq-contact-section.tq-band-light .tq-form-input,
.tq-contact-section.tq-band-light .tq-form-textarea {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.tq-contact-section.tq-band-light .tq-form-input:focus,
.tq-contact-section.tq-band-light .tq-form-textarea:focus {
  background: #fff;
  border-color: var(--tq-accent-cyan);
}

.tq-contact-feedback {
  display: none;
  margin: 10px 0 0;
  font-size: 14px;
  text-align: center;
}

.tq-contact-feedback.is-visible {
  display: block;
}

.tq-contact-feedback.is-success {
  color: #0891b2;
}

.tq-contact-feedback.is-error {
  color: var(--tq-accent-amber);
}

.tq-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tq-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.tq-form-group:last-child { margin-bottom: 0; }

.tq-form-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tq-text-secondary);
}
.tq-form-input,
.tq-form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--tq-border-card);
  border-radius: var(--tq-radius-m);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--tq-text-primary);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  width: 100%;
}
.tq-form-input::placeholder,
.tq-form-textarea::placeholder {
  color: var(--tq-text-secondary);
  opacity: 0.5;
}
.tq-form-input:focus,
.tq-form-textarea:focus { border-color: var(--tq-accent-cyan); }

.tq-form-textarea {
  resize: vertical;
  min-height: 120px;
}

.tq-btn-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--tq-accent-amber);
  color: #fff;
  border: none;
  border-radius: var(--tq-radius-m);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.tq-btn-submit:hover { opacity: 0.9; transform: translateY(-1px); }

/* ============================================================
   STOPKA
============================================================ */
.tq-main-footer {
  background: #010409;
  border-top: 1px solid var(--tq-border-card);
  padding: 64px 0 32px;
}
.tq-footer-content {
  display: grid;
  grid-template-columns: 240px 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.tq-footer-brand .tq-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.tq-footer-brand .tq-wordmark {
  font-family: var(--font-logo);
  font-size: 20px;
  font-weight: 400;
  color: var(--tq-text-headline);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 16px rgba(34, 211, 238, 0.08);
}
.tq-footer-brand .tq-wordmark::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, 0.9) 45%, rgba(34, 211, 238, 0.55) 52%, transparent 80%);
  background-size: 220% 100%;
  background-position: 140% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  pointer-events: none;
  animation: tqWordmarkSweep 10s ease-in-out infinite 1.4s;
}
.tq-footer-brand p {
  font-size: 14px;
  color: var(--tq-text-secondary);
  line-height: 1.6;
  margin: 0;
}
.tq-footer-col h4 {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tq-text-primary);
  margin: 0 0 16px 0;
}
.tq-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tq-footer-col li { margin-bottom: 10px; }
.tq-footer-col a {
  font-size: 14px;
  color: var(--tq-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.tq-footer-col a:hover { color: var(--tq-text-primary); }

.tq-footer-bottom {
  border-top: 1px solid var(--tq-border-card);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tq-footer-bottom p {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.5);
  margin: 0;
}

/* ============================================================
   COOKIE CONSENT
============================================================ */
.tq-cookie-backdrop {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
  box-sizing: border-box;
}
.tq-cookie-modal {
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid var(--tq-border-card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--tq-shadow-deep);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--tq-text-primary);
  animation: slideUp 0.4s ease-out;
}
@keyframes slideUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.tq-cookie-content h3 { margin: 0 0 6px; font-family: var(--font-headlines); color: #fff; }

@keyframes tqPulse {
  0% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.25); opacity: .6; }
  100% { transform: scale(1); opacity: .9; }
}

@keyframes tqWordmarkSweep {
  0%, 82%, 100% {
    background-position: 140% 50%;
    opacity: 0;
  }
  86% {
    opacity: 0.2;
  }
  90% {
    background-position: 50% 50%;
    opacity: 0.95;
  }
  95% {
    background-position: -35% 50%;
    opacity: 0.12;
  }
}
.tq-cookie-content p { margin: 0; font-size: 14px; color: var(--tq-text-secondary); line-height: 1.5; }
.tq-cookie-content a { color: var(--tq-accent-cyan); text-decoration: none; }
.tq-cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }
.tq-btn-cookie-primary {
  background: var(--tq-accent-cyan); color: #020617;
  border: none; padding: 10px 20px; border-radius: var(--tq-radius-m);
  font-family: var(--font-ui); font-weight: 700; font-size: 12px; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.tq-btn-cookie-outline {
  background: transparent; color: var(--tq-text-secondary);
  border: 1px solid var(--tq-border-strong);
  padding: 10px 20px; border-radius: var(--tq-radius-m);
  font-family: var(--font-ui); font-weight: 500; font-size: 12px; cursor: pointer; transition: border-color 0.2s;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.tq-btn-cookie-outline:hover { border-color: #EF4444; color: #EF4444; }

/* ============================================================
   A11Y
============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .tq-side-info-col { display: none; }
  .tq-footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .tq-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .tq-hero {
    min-height: auto;
  }
  /* Na mobile overlay mocniejszy żeby tekst był czytelny */
  .tq-hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.65) 100%);
  }
  .tq-hero-grid { padding: 40px 0; }
  .tq-hero-sub { max-width: 100%; }
  .tq-ecosystem-grid { grid-template-columns: 1fr; }
  .tq-blog-grid { grid-template-columns: 1fr; }
  .tq-partner-grid { grid-template-columns: 1fr; gap: 32px; }
  .tq-contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .tq-footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .tq-nav { display: none; }
  .tq-header-actions { display: none; }
  .tq-mobile-toggle { display: flex; }

  .tq-hero-stats { gap: 20px; }
  .tq-hero-stat strong { font-size: 22px; }

  .tq-equipment-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tq-equipment-card {
    height: 160px;
    background-size: 110px auto;
    background-position: center 28%;
  }
  .tq-equipment-card.tq-tools-special { width: 100%; }

  .tq-tools-special-item { gap: 0; margin-top: 8px; }

  .tq-ecosystem-grid { grid-template-columns: 1fr; }
  .tq-blog-grid { grid-template-columns: 1fr; }

  .tq-process-pipeline {
    flex-direction: column;
    padding-left: 28px;
  }
  .tq-process-pipeline::before { display: none; }
  .tq-process-pipeline::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--tq-accent-cyan), var(--tq-accent-amber));
  }
  .tq-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    text-align: left;
  }
  .tq-node { flex-shrink: 0; margin-top: 3px; }
  .tq-text-wrap { display: flex; flex-direction: column; }
  .tq-step h3 { margin: 0 0 4px; font-size: 15px; }
  .tq-step p { font-size: 13px; }

  .tq-form-row { grid-template-columns: 1fr; }
  .tq-contact-form { padding: 20px; }

  .tq-footer-content { grid-template-columns: 1fr; gap: 28px; }
  .tq-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .tq-hero-search-card { padding: 20px; }

  .tq-catalog-section,
  .tq-ecosystem-section,
  .tq-how-section,
  .tq-partner-section,
  .tq-blog-section,
  .tq-contact-section { padding: 48px 0; }
}

@media (max-width: 600px) {
  .tq-cookie-backdrop { bottom: 0; max-width: 100%; padding: 0; transform: none; left: 0; }
  .tq-cookie-modal { border-radius: 12px 12px 0 0; border-bottom: none; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .tq-cookie-actions { flex-direction: column-reverse; }
  .tq-btn-cookie-primary, .tq-btn-cookie-outline { width: 100%; padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Skip link + stopka meta */
.tq-skip-link {
  position: fixed;
  top: 0;
  left: 16px;
  z-index: 10001;
  padding: 12px 20px;
  background: var(--tq-accent-cyan);
  color: #020617;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--tq-radius-m);
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}
.tq-skip-link:focus {
  transform: translateY(16px);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.tq-footer-meta {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.35);
  margin: 0;
}

/* Kotwice sekcji */
section[id] {
  scroll-margin-top: 88px;
}
