:root {
  --black: #050505;
  --panel: #181818;
  --panel-soft: #202020;
  --text: #f4f4f4;
  --muted: #d3d3d3;
  --ink: #151515;
  --accent: #f7b900;
  --accent-strong: #ffc400;
  --line: rgba(255, 255, 255, 0.3);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: relative;
  z-index: 30;
  background: #030303;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  width: min(100%, 1200px);
  height: 89px;
  margin: 0 auto;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
}

.brand-mark {
  width: 116px;
  height: 78px;
  margin-top: 10px;
  object-fit: contain;
}

.brand-name,
.footer-title {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 35px;
  line-height: 0.95;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-name strong,
.footer-title strong {
  color: var(--accent);
  font-weight: inherit;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 48px;
  height: 100%;
}

.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: auto;
  padding: 17px 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 21px;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 480px;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  background: #060606;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/heroimg.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: none;
}

.hero-inner {
  width: min(100%, 1200px);
  min-height: 480px;
  margin: 0 auto;
  padding: 57px 38px 43px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero h1 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(76px, 8.4vw, 102px);
  line-height: 0.88;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.hero h1 span,
.hero h1 strong {
  display: block;
}

.hero h1 strong {
  color: var(--accent);
  font-weight: inherit;
}

.hero-line {
  width: 84px;
  height: 4px;
  margin: 26px 0 23px;
  background: var(--accent);
}

.hero-lead {
  margin: 0 0 8px;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(30px, 2.9vw, 35px);
  line-height: 1;
  text-transform: uppercase;
}

.hero-sublead {
  margin: 0 0 34px;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(22px, 2.3vw, 27px);
  line-height: 1;
  color: var(--accent);
  text-transform: uppercase;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 160px;
  min-height: 47px;
  padding: 12px 28px;
  border-radius: 3px;
  background: var(--accent);
  color: #050505;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255, 221, 84, 0.18) inset;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-button:hover {
  transform: translateY(-2px);
  background: var(--accent-strong);
  box-shadow: 0 0 22px rgba(247, 185, 0, 0.25);
}

.features {
  position: relative;
  z-index: 1;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(90deg, #111 0%, #242424 50%, #111 100%);
}

.features-inner {
  width: min(100%, 1060px);
  min-height: 238px;
  margin: 0 auto;
  padding: 42px 38px 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature {
  position: relative;
  padding: 0 18px;
  text-align: center;
}

.feature + .feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 3px;
  width: 1px;
  background: var(--line);
}

.feature-icon {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  background: var(--accent);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.feature-icon-weld {
  --icon: url("../img/icons/spawam-wszystko.png");
}

.feature-icon-solid {
  --icon: url("../img/icons/solidnosc.png");
}

.feature-icon-time {
  --icon: url("../img/icons/terminowosc.png");
}

.feature-icon-experience {
  --icon: url("../img/icons/doswiadczenie.png");
}

.feature h2 {
  margin: 0 0 8px;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 22px;
  line-height: 1.05;
  color: #fff;
  text-transform: uppercase;
}

.feature p {
  margin: 0;
  color: #e2e2e2;
  font-size: 14px;
  line-height: 1.48;
}

.gallery-section {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.06), transparent 14%, transparent 86%, rgba(0, 0, 0, 0.06)),
    #f6f6f6;
  color: var(--ink);
  padding: 26px 38px 24px;
}

.section-heading {
  text-align: center;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 38px;
  line-height: 1;
  text-transform: uppercase;
}

.section-heading span {
  display: block;
  width: 48px;
  height: 3px;
  margin: 12px auto 0;
  background: var(--accent);
}

.gallery-grid {
  width: min(100%, 930px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.gallery-grid.is-expanded {
  padding-bottom: 12px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.51 / 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #1b1b1b;
  cursor: zoom-in;
  box-shadow:
    0 3px 9px rgba(0, 0, 0, 0.12),
    0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.gallery-item.is-extra {
  display: none;
}

.gallery-grid.is-expanded .gallery-item.is-extra {
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item::after {
  display: none;
}

.gallery-item:hover {
  z-index: 2;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(0, 0, 0, 0.24);
}

.gallery-item:hover img {
  transform: scale(1.055);
  filter: saturate(1.08) contrast(1.03);
}

.more-button {
  display: block;
  min-width: 193px;
  min-height: 44px;
  margin: 20px auto 0;
  padding: 9px 32px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: transparent;
  color: #111;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 21px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.more-button:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #000;
}

.site-footer {
  background:
    radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.07), transparent 32%),
    linear-gradient(90deg, #111 0%, #222 48%, #111 100%);
  color: #e8e8e8;
}

.footer-inner {
  width: min(100%, 1060px);
  min-height: 166px;
  margin: 0 auto;
  padding: 33px 38px 16px;
  display: grid;
  grid-template-columns: 1.7fr 1.18fr 1fr;
  gap: 42px;
  align-items: start;
}

.footer-brand,
.footer-contact,
.footer-area {
  min-height: 105px;
}

.footer-brand {
  display: grid;
  grid-template-columns: 188px 1fr;
  gap: 18px;
  align-items: center;
}

.footer-logo {
  width: 188px;
  height: 148px;
  object-fit: contain;
}

.footer-brand p:not(.footer-title),
.footer-area p {
  margin: 9px 0 0;
  font-size: 15px;
  line-height: 1.55;
}

.footer-contact {
  position: relative;
  padding-left: 58px;
  font-style: normal;
}

.footer-area {
  position: relative;
  padding-left: 58px;
}

.footer-contact::before,
.footer-area::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.footer-contact h2,
.footer-area h2 {
  margin: 0 0 17px;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 21px;
  line-height: 1;
  color: var(--accent);
  text-transform: uppercase;
}

.footer-contact a,
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
  color: #ededed;
  font-size: 15px;
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copyright {
  padding: 0 24px 14px;
  text-align: center;
  color: #cfcfcf;
  font-size: 13px;
  line-height: 1.4;
}

.copyright p {
  margin: 0;
}

.copyright p + p {
  margin-top: 5px;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 16px 24px;
  background: rgba(5, 5, 5, 0.96);
  border-top: 1px solid rgba(247, 185, 0, 0.24);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.28);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  width: min(100%, 1060px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.cookie-banner p {
  margin: 0;
  max-width: 720px;
  color: #ededed;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.cookie-button {
  min-height: 40px;
  padding: 9px 20px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: #050505;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cookie-button:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
}

.cookie-button-secondary {
  background: transparent;
  color: #fff;
}

.cookie-button-secondary:hover {
  background: rgba(247, 185, 0, 0.12);
  color: var(--accent);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(54px, 1fr) minmax(0, 1100px) minmax(54px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 34px;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-frame {
  margin: 0;
  min-width: 0;
}

.lightbox-frame img {
  width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
  border: 0;
  outline: 0;
  box-shadow: none;
}

.lightbox-frame figcaption {
  margin-top: 13px;
  color: #f0f0f0;
  font-size: 13px;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 45px;
  height: 45px;
}

.lightbox-close span,
.lightbox-close span::after {
  position: absolute;
  top: 22px;
  left: 9px;
  width: 28px;
  height: 2px;
  background: currentColor;
  content: "";
}

.lightbox-close span {
  transform: rotate(45deg);
}

.lightbox-close span::after {
  top: 0;
  left: 0;
  transform: rotate(90deg);
}

.lightbox-nav {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  justify-self: center;
  color: var(--accent);
}

.lightbox-nav svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 880px) {
  .header-inner {
    min-height: 76px;
    height: auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: minmax(76px, auto) auto;
    column-gap: 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 90px;
    height: 64px;
  }

  .brand-name {
    font-size: 29px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: static;
    grid-column: 1 / -1;
    width: calc(100% + 44px);
    max-height: 0;
    margin: 0 -22px;
    height: auto;
    padding: 0 22px;
    display: grid;
    gap: 0;
    background: #030303;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.2s ease, padding 0.2s ease, opacity 0.2s ease;
  }

  .site-nav.is-open {
    max-height: 176px;
    padding: 6px 22px 20px;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    height: auto;
    padding: 14px 0;
    justify-content: center;
  }

  .site-nav a::after {
    bottom: 7px;
    left: 38%;
    right: 38%;
  }

  .hero,
  .hero-inner {
    min-height: 520px;
  }

  .hero-bg {
    background-position: 64% center;
  }

  .hero-inner {
    padding: 54px 24px 52px;
  }

  .features-inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 36px 24px 30px;
    row-gap: 32px;
  }

  .feature {
    padding: 0 24px;
  }

  .feature:nth-child(3)::before {
    display: none;
  }

  .gallery-section {
    padding: 28px 20px 30px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 26px;
    padding: 35px 28px 22px;
    text-align: center;
  }

  .footer-brand {
    justify-items: center;
    text-align: center;
  }

  .footer-contact,
  .footer-area {
    padding-left: 0;
  }

  .footer-contact::before,
  .footer-area::before {
    display: none;
  }

  .footer-contact a,
  .footer-contact span {
    justify-content: center;
  }

  .cookie-banner {
    padding: 18px 20px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner p {
    max-width: none;
  }

  .cookie-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .lightbox {
    grid-template-columns: 52px 1fr 52px;
    padding: 24px 14px;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 25px;
  }

  .hero h1 {
    font-size: clamp(66px, 18vw, 88px);
  }

  .hero-lead {
    font-size: 30px;
  }

  .hero-sublead {
    font-size: 23px;
  }

  .features-inner {
    grid-template-columns: 1fr;
    padding: 34px 26px;
  }

  .feature {
    padding: 0;
  }

  .feature + .feature::before {
    display: none;
  }

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

  .gallery-item {
    aspect-ratio: 1.45 / 1;
  }

  .footer-brand {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-logo {
    width: 168px;
    height: 132px;
  }

  .footer-title {
    font-size: 31px;
  }

  .cookie-button {
    flex: 1 1 130px;
  }

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

  .lightbox-frame {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .lightbox-prev,
  .lightbox-next {
    grid-row: 2;
  }
}
