/* Projekt-Automatyka — Premium redesign v2
   Warstwa finalna ładowana po main-v6.css i pro-layout.css.
*/

:root {
  --ink: #0b1220;
  --ink-soft: #334155;
  --muted-2: #6b7b90;
  --line: rgba(15, 23, 42, .10);
  --blue-deep: #0b4fd8;
  --blue-bright: #2f7cff;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;
  --navy: #07111f;
  --navy-2: #0b1729;
  --premium-radius: 28px;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1240px, calc(100% - 56px));
}

/* Header */
.site-header {
  background: rgba(5, 12, 23, .88);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 82px;
}

.brand-new img {
  width: 220px;
}

.main-nav {
  gap: 30px;
}

.main-nav a {
  position: relative;
  padding: 30px 0 27px;
  color: #dce7f6;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 19px;
  height: 2px;
  background: var(--blue-bright);
  transition: right .22s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  right: 0;
}

/* Type */
.label {
  color: #2f7cff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

h1, h2, h3 {
  text-wrap: balance;
}

h1 {
  font-size: clamp(50px, 5.8vw, 88px);
  line-height: .98;
  letter-spacing: -.058em;
}

h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

h3 {
  letter-spacing: -.025em;
}

.section {
  padding: 112px 0;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 54px;
}

.section-intro p:last-child {
  max-width: 680px;
  color: var(--muted-2);
  font-size: 18px;
}

/* Hero — mniej kart, więcej kompozycji */
.home-page .hero {
  position: relative;
  min-height: 760px;
  padding: 92px 0 104px;
  background:
    linear-gradient(90deg, rgba(5,12,23,.97) 0%, rgba(5,12,23,.88) 45%, rgba(5,12,23,.54) 100%),
    url("../img/hero-bg.jpg") center 42% / cover no-repeat;
}

.home-page .hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(transparent, rgba(5,12,23,.58));
  pointer-events: none;
}

.home-page .hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 80px;
}

.home-page .hero-content {
  max-width: 820px;
}

.home-page .hero h1 {
  max-width: 850px;
}

.home-page .hero-text {
  max-width: 720px;
  margin-top: 28px;
  color: #c6d2e3;
  font-size: 20px;
  line-height: 1.7;
}

.home-page .hero-actions {
  margin-top: 36px;
}

.button {
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  letter-spacing: -.01em;
}

.button-primary {
  background: linear-gradient(135deg, #1766ee, #2f7cff);
  box-shadow: 0 12px 30px rgba(47,124,255,.24);
}

.button-outline {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.22);
}

.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 46px;
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.hero-capabilities span {
  padding: 15px 22px 15px 0;
  margin-right: 22px;
  color: #d7e2f1;
  font-size: 13px;
  font-weight: 700;
}

.hero-capabilities span + span {
  position: relative;
  padding-left: 22px;
}

.hero-capabilities span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: rgba(255,255,255,.16);
}

.hero-industrial-panel {
  align-self: end;
  padding: 26px 0 0 28px;
  border-left: 1px solid rgba(255,255,255,.18);
  color: white;
}

.hero-industrial-panel > p {
  margin: 0 0 18px;
  color: #91a4bd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-industrial-panel a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}

.hero-industrial-panel a strong {
  display: block;
  font-size: 17px;
}

.hero-industrial-panel a span {
  display: block;
  margin-top: 4px;
  color: #9fb0c4;
  font-size: 13px;
}

.hero-industrial-panel a b {
  font-size: 22px;
  font-weight: 400;
  transition: transform .2s ease;
}

.hero-industrial-panel a:hover b {
  transform: translateX(5px);
}

/* Flagowy vision — duży blok editorial */
.editorial-feature {
  background: #fff;
}

.editorial-feature-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 74px;
  align-items: center;
}

.editorial-media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 30px;
  background: #dfe7f0;
}

.editorial-media img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
}

.editorial-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4,12,24,.45));
}

.editorial-media-note {
  position: absolute;
  z-index: 2;
  left: 26px;
  bottom: 24px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  background: rgba(7,17,31,.72);
  backdrop-filter: blur(14px);
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.editorial-copy p:not(.label) {
  max-width: 600px;
  color: var(--muted-2);
  font-size: 18px;
}

.editorial-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  margin: 34px 0 36px;
  border-top: 1px solid var(--line);
}

.editorial-points span {
  padding: 18px 18px 18px 0;
  border-bottom: 1px solid var(--line);
  color: #25344a;
  font-size: 14px;
  font-weight: 750;
}

.editorial-points span:nth-child(even) {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

/* Oferta — żadnych sześciu równych kafelków */
.offer-editorial {
  background: #f7f9fc;
}

.offer-shell {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 80px;
  align-items: start;
}

.offer-sticky {
  position: sticky;
  top: 126px;
}

.offer-sticky p:not(.label) {
  color: var(--muted-2);
  font-size: 17px;
}

.service-lines {
  border-top: 1px solid rgba(15,23,42,.15);
}

.service-line {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 34px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid rgba(15,23,42,.12);
}

.service-line h3 {
  margin: 0;
  font-size: 21px;
}

.service-line p {
  margin: 0;
  color: var(--muted-2);
  line-height: 1.72;
}

.service-line a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 50%;
  color: #1766ee;
  text-decoration: none;
  font-size: 20px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.service-line:hover a {
  transform: translateX(4px);
  background: #1766ee;
  color: white;
}

/* Realizacje — bardziej magazynowy układ zdjęć */
.project-showcase-section {
  background: #08111f;
  color: white;
}

.project-showcase-head {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: end;
  margin-bottom: 46px;
}

.project-showcase-head > div {
  max-width: 720px;
}

.project-showcase-head p:last-child {
  max-width: 470px;
  margin: 0;
  color: #a9b7c9;
}

.project-mosaic {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  grid-template-rows: 280px 280px;
  gap: 18px;
}

.project-mosaic figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #162235;
}

.project-mosaic figure:first-child {
  grid-row: 1 / 3;
}

.project-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.project-mosaic figure:hover img {
  transform: scale(1.025);
}

.project-mosaic figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(5,12,23,.72);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 13px;
  font-weight: 700;
}

/* SIASUN — pas partnera zamiast dużej karty */
.partner-band {
  padding: 92px 0;
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partner-band-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 90px;
  align-items: center;
}

.partner-brand {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.partner-brand img {
  width: min(320px, 82%);
}

.partner-band-copy p:not(.label) {
  color: var(--muted-2);
  font-size: 17px;
}

.partner-band-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 28px 0 34px;
}

.partner-band-links span {
  position: relative;
  padding-left: 14px;
  color: #344256;
  font-size: 14px;
  font-weight: 700;
}

.partner-band-links span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2f7cff;
}

/* Kontakt */
.contact-section {
  padding: 96px 0;
  background:
    radial-gradient(circle at 78% 15%, rgba(47,124,255,.22), transparent 28%),
    #07111f;
}

.contact-cta {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 90px;
  align-items: end;
}

.contact-cta-copy p:not(.label) {
  max-width: 620px;
  color: #b5c2d2;
  font-size: 18px;
}

.contact-direct {
  padding-left: 38px;
  border-left: 1px solid rgba(255,255,255,.16);
}

.contact-direct small {
  display: block;
  margin-bottom: 10px;
  color: #7f91a8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-direct a {
  display: block;
  margin: 6px 0;
  color: white;
  text-decoration: none;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -.025em;
}

.contact-direct p {
  margin-top: 22px;
  color: #8fa1b7;
  font-size: 14px;
}

/* Podstrony — subtelniejszy, bardziej premium wspólny język */
.subhero {
  padding: 112px 0 100px;
  background:
    radial-gradient(circle at 78% 22%, rgba(47,124,255,.18), transparent 28%),
    linear-gradient(135deg, #07111f, #0d1a2e);
}

.subhero h1 {
  font-size: clamp(46px, 5vw, 76px);
  max-width: 900px;
}

.subhero-card,
.hero-panel {
  border-radius: 20px;
  border-color: rgba(255,255,255,.14);
}

.model-family-grid article,
.welding-functions article,
.vision-platforms article,
.vision-benefits article,
.app-card,
.steps article,
.robot-card {
  box-shadow: none;
  border-color: rgba(15,23,42,.10);
}

.model-family-grid article::before,
.welding-functions article::before,
.vision-platforms article::before,
.vision-benefits article::before,
.app-card::before,
.steps article::before {
  height: 2px;
}

/* Footer */
.footer {
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* Responsive */
@media (max-width: 1000px) {
  .home-page .hero-grid,
  .editorial-feature-grid,
  .offer-shell,
  .partner-band-grid,
  .contact-cta {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-industrial-panel {
    max-width: 620px;
    align-self: auto;
  }

  .offer-sticky {
    position: static;
  }

  .partner-brand {
    min-height: 160px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 38px;
  }

  .contact-direct {
    padding-left: 0;
    padding-top: 30px;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.16);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 36px, 1240px);
  }

  .header-inner {
    height: 76px;
  }

  .brand-new img {
    width: 185px;
  }

  .main-nav {
    top: 76px;
  }

  .home-page .hero {
    min-height: auto;
    padding: 76px 0 82px;
  }

  .home-page .hero-grid {
    gap: 48px;
  }

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

  .hero-capabilities span,
  .hero-capabilities span + span {
    margin: 0;
    padding: 12px 10px 12px 0;
  }

  .hero-capabilities span + span::before {
    display: none;
  }

  .hero-industrial-panel {
    padding-left: 20px;
  }

  .section {
    padding: 80px 0;
  }

  .editorial-media,
  .editorial-media img {
    min-height: 380px;
    height: 380px;
  }

  .editorial-points {
    grid-template-columns: 1fr;
  }

  .editorial-points span:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .service-line {
    grid-template-columns: 1fr auto;
    gap: 14px 20px;
    padding: 25px 0;
  }

  .service-line h3 {
    grid-column: 1;
  }

  .service-line p {
    grid-column: 1 / 3;
  }

  .service-line a {
    grid-column: 2;
    grid-row: 1;
  }

  .project-showcase-head {
    display: block;
  }

  .project-showcase-head p:last-child {
    margin-top: 20px;
  }

  .project-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: 360px 240px 240px;
  }

  .project-mosaic figure:first-child {
    grid-row: auto;
  }
}
