/* Projekt-Automatyka — style.css */

:root {
  --dark: #07111f;
  --dark-2: #0d1b2f;
  --blue: #2563eb;
  --blue-2: #38bdf8;
  --orange: #f59e0b;
  --bg: #f5f7fb;
  --text: #111827;
  --muted: #64748b;
  --white: #ffffff;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 17, 31, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,17,31,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-new {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-new img {
  width: 260px;
  height: auto;
  display: block;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  transition: opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 0.7;
}

.brand-logo {
  width: 86px;
  height: auto;
  display: block;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 24px;
  font-weight: 900;
}

.brand-copy small {
  margin-top: 8px;
  color: #a7b4c8;
  font-size: 15px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.brand strong {
  display: block;
  line-height: 1.1;
  font-size: 18px;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: #a7b4c8;
  font-size: 12px;
}

.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}

.main-nav a {
  color: #dbeafe;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--white);
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px 0;
  background: var(--white);
}

.hero {
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: center;
  padding: 40px 0 80px;

  background:
    linear-gradient(rgba(7,17,31,0.82), rgba(7,17,31,0.92)),
    url("../img/hero-bg.jpg");

  background-size: cover;
  background-position: center;
  color: white;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 46px;
  align-items: center;
}

.label {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 900px;
  font-size: clamp(54px, 5vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(30px, 3.5vw, 48px);
}

h3 {
  font-size: 22px;
}

.hero-text {
  max-width: 760px;
  margin: 24px 0 0;
  color: #cbd5e1;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  color: var(--white);
}

.button-primary:hover {
  background: #1d4ed8;
}

.button-outline {
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
}

.button-outline-dark {
  color: var(--blue);
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.hero-metrics div {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-metrics strong {
  display: block;
  color: var(--white);
}

.hero-metrics span {
  display: block;
  margin-top: 4px;
  color: #a7b4c8;
  font-size: 13px;
}

.hero-panel {
  position: relative;
  padding: 34px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.96);
  color: var(--text);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--blue-2), var(--orange));
}

.panel-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 900;
}

.hero-panel ul {
  margin: 0;
  padding-left: 20px;
  color: #334155;
}

.hero-panel li + li {
  margin-top: 10px;
}

.section {
  padding: 92px 0;
}

.section-dark {
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(37,99,235,0.25), transparent 36%),
    linear-gradient(135deg, #07111f, #101b2e);
}

.section-intro {
  max-width: 860px;
  margin-bottom: 36px;
}

.section-intro p,
.split p,
.partner p,
.contact-grid p {
  color: var(--muted);
  font-size: 17px;
}

.section-dark .split p {
  color: #cbd5e1;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.service-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #eff6ff;
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 18px;
}

.service-card h3 {
  margin-bottom: 12px;
  color: #0f172a;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.split,
.partner,
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.gallery img {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: cover;
}

.gallery img[src$='.jpg'] {
  background: #172033;
}

.gallery figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(7,17,31,0.78);
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  backdrop-filter: blur(12px);
}

.partner {
  padding: 40px;
  border-radius: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.partner-logo-box {
  width: 100%;
  max-width: 100%;

  min-height: unset;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 24px;

  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      rgba(37,99,235,0.08),
      rgba(14,165,233,0.12)
    ),
    #f8fafc;

  border: 1px dashed rgba(37,99,235,0.35);

  overflow: hidden;
}

.partner-logo-box img {
  width: 100%;
  max-width: 320px;

  height: auto;
  object-fit: contain;

  display: block;
}

.partner-logo-box span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.contact-section {
  color: var(--white);
  background:
    linear-gradient(rgba(7,17,31,0.92), rgba(7,17,31,0.92)),
    linear-gradient(135deg, var(--dark), var(--dark-2));
}

.contact-card {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
}

.contact-card p {
  margin: 8px 0;
  color: #334155;
}

.contact-links {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.contact-links a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.footer {
  padding: 24px 0;
  background: #040812;
  color: #94a3b8;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
}

@media (max-width: 920px) {
  .hero-grid,
  .split,
  .partner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: auto;
    padding: 90px 0;
  }
}

@media (max-width: 720px) {
  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    background: #07111f;
    border: 1px solid rgba(255,255,255,0.1);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 12px;
  }

  .hero-metrics,
  .service-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .gallery img {
    height: 220px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
@media (max-width: 720px) {
  .brand-logo {
    width: 70px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy small {
    font-size: 12px;
  }
}

.header-inner {
  min-height: 82px;
}

@media (max-width: 720px) {
  .brand-logo-new {
    width: 145px;
  }
}
@media (max-width: 720px) {

  .partner-logo-box {
    padding: 18px;
  }

  .partner-logo-box img {
    max-width: 240px;
  }

}
* {
  box-sizing: border-box;
}

/* ===== Rozbudowa: podstrony Robotyka / SIASUN ===== */

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.subhero {
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 90px 0;
  color: var(--white);
  background:
    linear-gradient(rgba(7,17,31,0.88), rgba(7,17,31,0.94)),
    radial-gradient(circle at 80% 20%, rgba(37,99,235,0.42), transparent 34%),
    linear-gradient(135deg, var(--dark), var(--dark-2));
}

.subhero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
}

.subhero-card,
.siasun-hero-logo {
  border-radius: 30px;
  background: rgba(255,255,255,0.96);
  color: var(--text);
  box-shadow: var(--shadow);
  padding: 34px;
  border: 1px solid rgba(255,255,255,0.12);
}

.subhero-card h3 {
  margin-bottom: 18px;
}

.subhero-card ul {
  margin: 0;
  padding-left: 20px;
  color: #334155;
}

.subhero-card li + li {
  margin-top: 10px;
}

.siasun-hero-logo {
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(37,99,235,0.08), rgba(14,165,233,0.16)),
    #f8fafc;
  border: 1px dashed rgba(37,99,235,0.35);
}

.siasun-hero-logo img {
  width: min(420px, 100%);
  height: auto;
  object-fit: contain;
}

.siasun-hero-logo span {
  color: var(--muted);
  font-weight: 700;
}

.compact {
  margin-bottom: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.steps article,
.wide-card,
.cta-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  padding: 28px;
}

.steps span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #eff6ff;
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 16px;
}

.steps p,
.wide-card p,
.cta-box p {
  color: var(--muted);
}

.sale-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 0;
  overflow: hidden;
  border-radius: 30px;
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
}

.sale-image {
  min-height: 460px;
  background:
    linear-gradient(135deg, rgba(37,99,235,0.16), rgba(14,165,233,0.10)),
    #dbeafe;
}

.sale-image img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  display: block;
  object-fit: cover;
}

.sale-content {
  padding: 38px;
}

.sale-content p {
  color: var(--muted);
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.spec-list div,
.feature-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.spec-list strong,
.feature-list strong {
  color: var(--text);
}

.spec-list span,
.feature-list span {
  color: var(--muted);
  text-align: right;
}

.price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 22px;
  border-radius: 20px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.price-row span {
  color: var(--muted);
  font-weight: 800;
}

.price-row strong {
  color: var(--blue);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.feature-list {
  padding: 34px;
  border-radius: 30px;
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow);
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-box div {
  max-width: 760px;
}

.partner-home {
  align-items: center;
}

@media (max-width: 920px) {
  .subhero-grid,
  .process-grid,
  .sale-card,
  .cards-2 {
    grid-template-columns: 1fr;
  }

  .sale-image,
  .sale-image img {
    min-height: 320px;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .subhero {
    min-height: auto;
    padding: 70px 0;
  }

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

  .sale-content {
    padding: 26px;
  }

  .spec-list div,
  .feature-list div,
  .price-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .spec-list span,
  .feature-list span {
    text-align: left;
  }

  .siasun-hero-logo {
    min-height: 220px;
  }

  .siasun-hero-logo img {
    max-width: 260px;
  }
}


/* ===== Wersja PRO: Robotyka + SIASUN ===== */

.main-nav a.active {
  color: #ffffff;
  opacity: 1;
}

.model-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.model-pills span {
  padding: 9px 13px;
  border-radius: 999px;
  color: #0f172a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-weight: 900;
  font-size: 13px;
}

.robotyka-hero,
.siasun-page-hero {
  background:
    linear-gradient(rgba(7,17,31,0.88), rgba(7,17,31,0.94)),
    radial-gradient(circle at 80% 20%, rgba(37,99,235,0.42), transparent 34%),
    url("../img/hero-bg.jpg"),
    linear-gradient(135deg, var(--dark), var(--dark-2));
  background-size: cover;
  background-position: center;
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.app-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.app-card > span,
.model-section-heading > span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: #eff6ff;
  color: var(--blue);
  font-weight: 900;
  flex-shrink: 0;
}

.app-card h3 {
  margin: 18px 0 12px;
}

.app-card p {
  color: var(--muted);
}

.app-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.app-card li {
  color: #334155;
  padding-left: 20px;
  position: relative;
}

.app-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 900;
}

.premium-sale-card {
  border: 1px solid rgba(255,255,255,0.14);
}

.sale-note {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: #334155;
}

.model-section {
  margin-top: 26px;
  padding: 30px;
  border-radius: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.highlighted-model-section {
  background:
    linear-gradient(135deg, rgba(37,99,235,0.08), rgba(245,158,11,0.07)),
    var(--white);
  border-color: rgba(37,99,235,0.22);
}

.model-section-heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.model-section-heading h3 {
  margin: 0 0 8px;
  font-size: 28px;
}

.model-section-heading p {
  margin: 0;
  color: var(--muted);
}

.model-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.model-table article {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,0.08);
}

.model-table strong {
  color: #0f172a;
}

.model-table span {
  color: var(--muted);
  font-weight: 700;
}

.industry-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: start;
}

.industry-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.industry-cards article {
  padding: 24px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.industry-cards p {
  color: var(--muted);
}

@media (max-width: 1020px) {
  .applications-grid,
  .model-table,
  .industry-grid,
  .industry-cards {
    grid-template-columns: 1fr;
  }

  .model-table article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .model-section {
    padding: 22px;
  }

  .model-section-heading {
    flex-direction: column;
  }

  .model-section-heading h3 {
    font-size: 24px;
  }

  .app-card {
    padding: 24px;
  }
}


/* ===== v5: SIASUN, roboty na sprzedaż, systemy wizyjne ===== */

.main-nav a.active {
  color: #fff;
  opacity: 1;
}

.model-family-grid,
.robot-market-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.model-family-grid article,
.robot-card,
.welding-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.model-family-grid article {
  padding: 30px;
}

.model-family-grid h3 {
  margin-bottom: 12px;
  color: #0f172a;
}

.model-family-grid p {
  color: var(--muted);
}

.model-family-grid strong {
  display: block;
  margin-top: 18px;
  color: var(--blue);
}

.model-family-grid span {
  display: block;
  margin-top: 6px;
  color: #334155;
  font-weight: 800;
}

.section-feature {
  background: #eaf0f8;
}

.featured-robot {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 38px;
  align-items: center;
}

.featured-robot-image,
.featured-robot-content {
  border-radius: 30px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.featured-robot-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.featured-robot-content {
  padding: 38px;
}

.featured-robot-content p {
  color: var(--muted);
}

.clean-spec {
  margin: 26px 0;
}

.use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.use-cases span {
  padding: 9px 13px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-weight: 900;
  font-size: 13px;
}

.welding-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.welding-card {
  padding: 30px;
}

.welding-card.visual {
  padding: 0;
  overflow: hidden;
}

.welding-card.visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 28px;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #334155;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 900;
}

.welding-functions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.welding-functions article {
  padding: 24px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.welding-functions p {
  color: var(--muted);
}

.robot-card {
  overflow: hidden;
}

.robot-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
}

.robot-card-image {
  position: relative;
  min-height: 420px;
  background: #dbeafe;
}

.robot-card-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.robot-card-content {
  padding: 34px;
}

.robot-card-content p {
  color: var(--muted);
}

.badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #22c55e;
  color: white;
  font-weight: 900;
}

.mini-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.mini-specs span {
  padding: 13px;
  border-radius: 16px;
  background: #f8fafc;
  color: #334155;
  border: 1px solid rgba(15,23,42,0.08);
}

.robot-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 20px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.robot-price span {
  color: var(--muted);
  font-weight: 900;
}

.robot-price strong {
  color: var(--blue);
  font-size: clamp(30px, 4vw, 46px);
}

.empty-slot {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(37,99,235,0.35);
  background:
    linear-gradient(135deg, rgba(37,99,235,0.08), rgba(14,165,233,0.12)),
    #f8fafc;
  color: var(--blue);
  font-weight: 900;
  font-size: 22px;
}

.applications-grid.detailed .app-card {
  min-height: 100%;
}

.vision-hero {
  background:
    linear-gradient(rgba(7,17,31,0.88), rgba(7,17,31,0.94)),
    radial-gradient(circle at 80% 20%, rgba(14,165,233,0.36), transparent 34%),
    linear-gradient(135deg, var(--dark), var(--dark-2));
}

@media (max-width: 1100px) {
  .welding-functions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .model-family-grid,
  .featured-robot,
  .welding-grid,
  .robot-card.featured,
  .robot-market-grid {
    grid-template-columns: 1fr;
  }

  .robot-card.featured {
    grid-column: span 1;
  }

  .featured-robot-image img,
  .welding-card.visual img,
  .robot-card-image img,
  .robot-card-image {
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .welding-functions,
  .mini-specs {
    grid-template-columns: 1fr;
  }

  .featured-robot-content,
  .welding-card,
  .robot-card-content {
    padding: 24px;
  }

  .robot-price {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ===== v6: Vision jako główny filar + SIASUN 3D ===== */

.home-vision-flagship { background:#eef4fb; }
.home-vision-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center;
}
.home-vision-image {
  position:relative; min-height:420px; border-radius:30px; overflow:hidden;
  box-shadow:var(--shadow); background:#07111f;
}
.home-vision-image img { width:100%; height:100%; min-height:420px; object-fit:cover; display:block; }
.home-vision-points { display:flex; flex-wrap:wrap; gap:10px; margin:22px 0 28px; }
.home-vision-points span {
  padding:9px 13px; border-radius:999px; background:#fff; border:1px solid #cbd5e1;
  color:#334155; font-weight:800; font-size:13px;
}

.vision-flagship .subhero-grid { align-items:stretch; }
.vision-real-example {
  position:relative; min-height:430px; border-radius:30px; overflow:hidden;
  border:1px solid rgba(255,255,255,.12); box-shadow:var(--shadow); background:#020617;
}
.vision-real-example img { width:100%; height:100%; min-height:430px; object-fit:cover; display:block; }
.vision-overlay-caption {
  position:absolute; left:20px; right:20px; bottom:20px; padding:18px 20px;
  border-radius:18px; background:rgba(7,17,31,.86); backdrop-filter:blur(12px); color:#fff;
}
.vision-overlay-caption strong,.vision-overlay-caption span { display:block; }
.vision-overlay-caption span { color:#cbd5e1; margin-top:4px; }

.vision-problem-strip { background:#eaf0f8; }
.vision-benefits {
  display:grid; grid-template-columns:repeat(4,1fr); gap:18px;
}
.vision-benefits article {
  padding:24px; border-radius:22px; background:#fff; border:1px solid var(--border);
  box-shadow:0 15px 35px rgba(15,23,42,.07);
}
.vision-benefits strong { display:block; color:var(--blue); font-size:30px; line-height:1; }
.vision-benefits span { display:block; margin-top:10px; color:var(--muted); }

.vision-showcase-grid {
  display:grid; grid-template-columns:repeat(2,1fr); gap:24px;
}
.vision-showcase-card {
  overflow:hidden; border-radius:26px; background:#fff; border:1px solid var(--border);
  box-shadow:0 18px 45px rgba(15,23,42,.08);
}
.vision-showcase-card > img { width:100%; aspect-ratio:8/5; object-fit:cover; display:block; background:#07111f; }
.vision-showcase-card > div { padding:26px; }
.vision-showcase-card > div > span {
  display:inline-flex; width:42px; height:42px; align-items:center; justify-content:center;
  border-radius:14px; background:#eff6ff; color:var(--blue); font-weight:900; margin-bottom:14px;
}
.vision-showcase-card p { color:var(--muted); }
.vision-showcase-card ul { list-style:none; padding:0; margin:18px 0 0; display:flex; flex-wrap:wrap; gap:8px; }
.vision-showcase-card li {
  padding:7px 10px; border-radius:999px; background:#f1f5f9; color:#334155; font-size:13px; font-weight:800;
}
.vision-showcase-card.text-only {
  min-height:300px; display:flex; align-items:center;
  background:linear-gradient(135deg,#fff,#eff6ff);
}

.vision-platforms { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.vision-platforms article {
  padding:28px; border-radius:24px; background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}
.vision-platforms article.featured { background:#fff; color:#0f172a; transform:translateY(-8px); }
.vision-platforms span { color:var(--orange); font-weight:900; }
.vision-platforms p,.vision-platforms small { color:#cbd5e1; }
.vision-platforms article.featured p,.vision-platforms article.featured small { color:var(--muted); }
.vision-platforms strong,.vision-platforms small { display:block; margin-top:14px; }

.model-3d-disabled { display:none !important; }
.model-3d-section { background:#eef4fb; }
.model-3d-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:36px; align-items:center; }
.robot-model-viewer {
  width:100%; height:560px; border-radius:30px; background:#dfe9f5;
  box-shadow:var(--shadow); --poster-color:#dfe9f5;
}
.model-family-grid article { position:relative; overflow:hidden; }
.family-icon {
  width:46px; height:46px; display:grid; place-items:center; border-radius:15px;
  background:linear-gradient(135deg,var(--blue),#38bdf8); color:#fff; font-weight:900; margin-bottom:16px;
}
.model-family-grid em { display:block; margin-top:16px; color:#475569; font-style:normal; font-size:14px; }

.robot-market-grid:has(.robot-card:only-child) { grid-template-columns:1fr; }
.robot-market-grid:has(.robot-card:only-child) .robot-card.featured {
  grid-column:auto; max-width:1100px; margin:0 auto; width:100%;
}

@media (max-width:920px) {
  .home-vision-grid,.model-3d-grid { grid-template-columns:1fr; }
  .vision-benefits { grid-template-columns:repeat(2,1fr); }
  .vision-platforms { grid-template-columns:1fr; }
  .vision-platforms article.featured { transform:none; }
}
@media (max-width:720px) {
  .vision-showcase-grid,.vision-benefits { grid-template-columns:1fr; }
  .vision-real-example,.vision-real-example img { min-height:300px; }
  .home-vision-image,.home-vision-image img { min-height:300px; }
  .robot-model-viewer { height:420px; }
}


/* ===== Vision photo update ===== */
.vision-showcase-card > img {
  height: 260px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}
.vision-showcase-card:hover > img { transform: scale(1.035); }
.vision-photo-story { background:#f8fafc; }
.vision-photo-mosaic {
  display:grid;
  grid-template-columns:1.35fr .65fr;
  grid-template-rows:repeat(2, 245px);
  gap:18px;
}
.vision-photo-mosaic figure {
  position:relative; margin:0; border-radius:26px; overflow:hidden;
  background:#07111f; box-shadow:0 18px 45px rgba(15,23,42,.10);
}
.vision-photo-mosaic .vision-photo-large { grid-row:1 / 3; }
.vision-photo-mosaic img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s ease; }
.vision-photo-mosaic figure:hover img { transform:scale(1.025); }
.vision-photo-mosaic figcaption {
  position:absolute; left:0; right:0; bottom:0; padding:48px 24px 22px;
  color:#fff; background:linear-gradient(transparent,rgba(2,6,23,.88));
}
.vision-photo-mosaic figcaption strong,.vision-photo-mosaic figcaption span { display:block; }
.vision-photo-mosaic figcaption strong { font-size:22px; }
.vision-photo-mosaic figcaption span { color:#dbeafe; margin-top:4px; }
@media (max-width:720px) {
  .vision-showcase-card > img { height:220px; }
  .vision-photo-mosaic { grid-template-columns:1fr; grid-template-rows:none; }
  .vision-photo-mosaic .vision-photo-large { grid-row:auto; }
  .vision-photo-mosaic figure { height:280px; }
}
