/* ----- Vuxo — Organic Modern + High-Tech Dark ----- */
:root {
  --bg: #0a0a0a;
  --bg-elevated: #111;
  --text: #f5f5f5;
  --text-muted: #999;
  --oak: #c9a962;
  --oak-muted: #8b7355;
  --border: rgba(255, 255, 255, 0.08);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.25s ease;
  --section-padding: 4rem 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  transition: background var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.nav-cta {
  color: var(--text);
}

.nav-cta {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }
  .nav-links.open {
    display: flex;
    opacity: 1;
    visibility: visible;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.85) 100%);
}

.hero-hex-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  color: var(--text);
  pointer-events: none;
  overflow: hidden;
}

.hero-hex-bg svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
}

.hero-hex-bg .hero-hex-cell {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.7;
  transition: stroke-opacity 0.15s ease, filter 0.15s ease;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 900px;
}

.hero-badge {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
  margin: 0 0 0.75rem;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oak);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  border-radius: 6px;
  transition: background var(--transition), border-color var(--transition);
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.75);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 32px;
  margin: 0.5rem auto 0;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  opacity: 0.6;
}

/* ----- Sekcje wspólne ----- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.section-lead {
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-lead-gold {
  color: var(--oak);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ----- Dotknij ----- */
.touch-section {
  padding: var(--section-padding);
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.touch-container {
  max-width: 640px;
  margin: 0 auto;
}

.touch-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.touch-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.touch-lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.touch-demo {
  margin-bottom: 1.5rem;
}

.touch-table-wrap {
  max-width: 520px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.touch-table {
  position: relative;
  aspect-ratio: 5/3;
  background: #0f0d0b;
  display: block;
}

.touch-table-hex-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.touch-table-hex-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.touch-table-hex-cell {
  pointer-events: none;
}

.touch-table-hex-hover {
  cursor: pointer;
}

.touch-hint {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0.75rem 0 0;
}

.touch-note {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

/* ----- Showcase Dzień/Noc ----- */
.showcase {
  padding: var(--section-padding);
  background: var(--bg-elevated);
}

.showcase-description {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.showcase-description-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oak);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.showcase-description-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.showcase-slider-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.showcase-images {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.showcase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.night-img {
  opacity: 0;
  transition: opacity var(--transition);
}

.showcase-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.showcase-controls input[type="range"] {
  width: 200px;
  accent-color: var(--oak);
}

.showcase-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----- Technologia ----- */
.technology {
  padding: var(--section-padding);
  background: var(--bg);
}

.tech-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: left;
}

.technology .section-lead {
  text-align: left;
  max-width: 720px;
  margin-bottom: 0.5rem;
}

.technology .tech-intro {
  margin-top: 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tech-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
}

.tech-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.tech-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ----- Konfigurator ----- */
.configurator {
  padding: 2rem 0 4rem;
  background: #0a0a0a;
}

.configurator-simple {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0;
}

.configurator-block {
  text-align: center;
  max-width: 420px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.configurator-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.configurator-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

.configurator-3d-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--oak);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.configurator-3d-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.25);
}

.configurator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .configurator-layout {
    grid-template-columns: 1fr;
  }
}

.configurator-heading {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.configurator-subheading {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.config-resin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.resin-card {
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.resin-card:hover,
.resin-card.active {
  border-color: var(--oak);
  box-shadow: 0 0 0 1px var(--oak);
}

.configurator-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--oak);
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: opacity var(--transition);
}

.configurator-cta:hover {
  opacity: 0.9;
}

.configurator-preview {
  position: sticky;
  top: 6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 280px;
}

.configurator-preview-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.table-preview {
  --preview-resin: #22d3ee;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
}

.table-preview-svg {
  width: 100%;
  height: auto;
  display: block;
}

.table-preview .hex-cell-preview {
  fill: var(--preview-resin);
}

/* ----- Projekty indywidualne ----- */
.custom-projects {
  padding: var(--section-padding);
  background: var(--bg);
}

.custom-projects-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .custom-projects-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .custom-projects-visual {
    order: -1;
  }
}

.custom-projects-left {
  min-width: 0;
}

.custom-projects .section-lead.custom-projects-lead {
  text-align: left;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1rem;
}

.custom-projects-content {
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.custom-projects-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.custom-projects-example-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 0.75rem;
}

.custom-projects-table-mockup {
  width: 100%;
  max-width: 280px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
}

.custom-projects-table-svg {
  width: 100%;
  height: auto;
  display: block;
}

.custom-projects-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.custom-projects-text:last-of-type {
  margin-bottom: 1.75rem;
}

.custom-projects-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--oak);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border-radius: 10px;
  transition: opacity var(--transition), transform 0.2s ease;
}

.custom-projects-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ----- Video ----- */
.video-section {
  padding: var(--section-padding);
  background: var(--bg-elevated);
}

.video-section-lead {
  max-width: 640px;
  margin-bottom: 2rem;
  text-align: left;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.video-card {
  margin: 0;
}

.video-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ----- Galeria ----- */
.gallery {
  padding: var(--section-padding);
  background: var(--bg);
}

.gallery-lead {
  color: var(--oak);
  text-transform: uppercase;
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 100%;
}

.gallery-item {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  min-width: 0;
  width: 100%;
  display: block;
  text-align: left;
}

.gallery-item:focus-visible {
  outline: 2px solid var(--oak);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* ----- Lightbox galeria ----- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  margin: 0;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.75);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(30, 30, 30, 0.95);
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--oak);
  outline-offset: 2px;
}

/* ----- CTA ----- */
.cta-section {
  padding: var(--section-padding);
  background: var(--bg-elevated);
  text-align: center;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--oak);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: opacity var(--transition);
}

.cta-button:hover {
  opacity: 0.9;
}

/* ----- Strona Kontakt / Formularz ----- */
.contact-main {
  min-height: 80vh;
  padding-top: 6rem;
}

.contact-section {
  padding: 2rem 0 4rem;
  background: var(--bg);
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.contact-lead {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.thanks-section {
  padding: 2rem 0 4rem;
  background: var(--bg);
}

.thanks-inner {
  max-width: 560px;
}

.thanks-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 2rem;
}

.thanks-back {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--oak);
  color: var(--bg);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity var(--transition), transform 0.2s ease;
}

.thanks-back:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: var(--bg);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-form {
  position: relative;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 1rem;
}

.contact-label:first-of-type {
  margin-top: 0;
}

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color var(--transition);
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: var(--oak);
}

.contact-textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form-status {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.contact-form-status--success {
  background: rgba(201, 169, 98, 0.12);
  color: var(--oak);
  border: 1px solid rgba(201, 169, 98, 0.35);
}

.contact-form-status--error {
  background: rgba(200, 80, 80, 0.12);
  color: #e8b4b4;
  border: 1px solid rgba(255, 120, 120, 0.25);
}

.contact-submit {
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  background: var(--oak);
  color: var(--bg);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity var(--transition), transform 0.2s ease;
}

.contact-submit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ----- Footer ----- */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--text);
}
