:root {
  --bg: #f7f2e9;
  --bg-soft: #11161b;
  --text: #102242;
  --muted: #aab0b6;
  --light: #fff;
  --dark-text: #102242;
  --accent: #be211b;
  --line: rgba(16,34,66,.18);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section-pad { padding: 88px 0; }
.section-dark { background: var(--bg); color: var(--text); }
.section-light { background: var(--light); color: var(--dark-text); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(8,11,14,.86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-wrap { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; flex-direction: column; line-height: 1; min-width: 135px; }
.logo-main { font-size: 27px; font-weight: 800; letter-spacing: -1px; }
.logo-main span { color: var(--accent); }
.logo small { margin-top: 5px; font-size: 7px; letter-spacing: 4px; color: #8e969d; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 14px; }
.main-nav a { color: #d9dde0; }
.main-nav a:hover { color: var(--accent); }
.header-cta { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; color: #fff; font-size: 28px; cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 3px; border: 1px solid transparent; font-weight: 700; font-size: 14px; transition: .25s ease; }
.btn-primary { background: var(--accent); color: #111; }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-outline { border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #111; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.hero {
  min-height: 760px;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 74px;
  overflow: hidden;

  background: var(--bg);
}
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle at 70% 50%, transparent 0 28%, rgba(0,0,0,.12) 55%, rgba(0,0,0,.45) 100%); }
.hero-content { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.hero-copy { max-width: 620px; }
.eyebrow { margin: 0 0 18px; font-size: 11px; font-weight: 700; letter-spacing: 6px; color: #d0d4d7; }
.eyebrow.dark { color: #7a8187; }
.hero h1 { margin: 0; font-size: clamp(56px, 7vw, 96px); line-height: .92; letter-spacing: -4px; }
.hero h1 span, .quote-section h2 span { color: var(--accent); }
.hero-lead { font-size: 27px; margin: 22px 0 10px; }
.hero-text { color: #d3d7da; max-width: 480px; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-benefits { display: flex; gap: 34px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-benefits div { display: flex; align-items: center; gap: 12px; color: #d7dadd; font-size: 13px; }
.hero-benefits strong { color: var(--accent); font-size: 26px; }
.hero-side-labels { display: flex; flex-direction: column; gap: 14px; color: rgba(255,255,255,.55); letter-spacing: 3px; font-size: 12px; margin-right: 20px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-heading h2, .about-copy h2, .quote-section h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); letter-spacing: -2px; }
.text-link { color: #15191d; text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .8px; }
.text-link:hover { color: var(--accent); }

.cards-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.service-card { background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.06); overflow: hidden; transition: .25s ease; }
.service-card:hover { transform: translateY(-5px); }
.card-image { aspect-ratio: 1.35/1; background-position: center; background-size: cover; }

.img-cnc {
  background-image: url("https://darstalworks.pl/assets/images/of/maszyny.png");
}

.img-steel {
  background-image: url("https://darstalworks.pl/assets/images/of/konstrukcje.png");
}

.img-turning {
  background-image: url("https://darstalworks.pl/assets/images/of/obrobka.png");
}

.img-weld {
  background-image: url("https://darstalworks.pl/assets/images/of/serwis.png");
}

.img-laser {
  background-image: url("https://darstalworks.pl/assets/images/of/doradzwo.png");
}

.img-plasma {
  background-image: url("https://darstalworks.pl/assets/images/of/plasma.png");
}

.img-schody {
  background-image: url("https://darstalworks.pl/assets/images/of/schody.png");
}

.card-body { position: relative; padding: 20px; min-height: 145px; }
.card-body h3 { margin: 0 0 10px; font-size: 18px; }
.card-body p { margin: 0; color: #596067; line-height: 1.5; font-size: 14px; }

.about-section { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1.15fr 1.35fr .55fr; gap: 46px; align-items: center; }

.about-image {
  min-height: 420px;

  background:
    linear-gradient(
      rgba(0, 0, 0, 0.08),
      rgba(0, 0, 0, 0.28)
    ),
    url("../../assets/images/firma/ofirmie.jpg") center / cover no-repeat;
}

.about-copy p:not(.eyebrow) { color: #c9ced2; line-height: 1.75; margin: 24px 0 30px; }
.stats { border-left: 1px solid var(--line); padding-left: 34px; display: grid; gap: 34px; }
.stats strong { display: block; color: var(--accent); font-size: 36px; }
.stats span { color: #d4d8db; font-size: 13px; }

.machine-list { border-top: 1px solid #cfd3d6; }
.machine-item { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid #cfd3d6; }
.machine-item > span { font-size: 14px; color: var(--accent); font-weight: 800; }
.machine-item h3 { margin: 0 0 7px; font-size: 24px; }
.machine-item p { margin: 0; color: #5b6268; }

.projects-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.project { aspect-ratio: 1.25/1; background-size: cover; background-position: center; filter: saturate(.25) contrast(1.05); transition: .25s ease; }
.project:hover { filter: saturate(.8); }
.p1 { background-image: url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=900&q=80'); }
.p2 { background-image: url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?auto=format&fit=crop&w=900&q=80'); }
.p3 { background-image: url('https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?auto=format&fit=crop&w=900&q=80'); }
.p4 { background-image: url('https://images.unsplash.com/photo-1562259949-e8e7689d7828?auto=format&fit=crop&w=900&q=80'); }
.p5 { background-image: url('https://images.unsplash.com/photo-1581092334651-ddf26d9a09d0?auto=format&fit=crop&w=900&q=80'); }

.quote-section { padding: 72px 0; background: var(--bg); }
.quote-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; align-items: center; }
.quote-section p:not(.eyebrow) { color: #c8cdd1; line-height: 1.6; max-width: 660px; }
.quote-action { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.contact-mini { display: flex; gap: 24px; flex-wrap: wrap; color: #d7dbde; font-size: 14px; }

.footer { background: #0b0f12; padding: 58px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr .8fr; gap: 40px; }
.footer h4 { margin: 0 0 16px; font-size: 14px; }
.footer a, .footer p { display: block; color: #aeb5ba; font-size: 13px; line-height: 1.7; margin: 0; }
.footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: #777f86; font-size: 11px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .main-nav { gap: 16px; font-size: 13px; }
  .header-cta { display: none; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr 1.2fr; }
  .stats { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 74px; left: 20px; right: 20px; padding: 18px; background: #0e1216; border: 1px solid rgba(255,255,255,.1); display: none; flex-direction: column; align-items: flex-start; }
  .main-nav.open { display: flex; }
  .hero { min-height: 700px; background-position: 62% center; }
  .hero-side-labels { display: none; }
  .hero h1 { font-size: clamp(52px, 14vw, 78px); }
  .hero-benefits { flex-direction: column; gap: 16px; }
  .section-pad { padding: 68px 0; }
  .cards-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .quote-grid, .footer-grid { grid-template-columns: 1fr; }
  .about-image { min-height: 320px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .hero { min-height: 760px; }
  .hero-lead { font-size: 22px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cards-grid, .projects-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .machine-item { grid-template-columns: 50px 1fr; }
  .footer-bottom { flex-direction: column; }
}

.projects-grid {
  overflow: visible;
}

.project {
  transition: transform 0.3s ease;
  transform-origin: center;
  position: relative;
  z-index: 1;
}

.project:hover {
  z-index: 10;
}

.project {
  overflow: visible;
  position: relative;
  z-index: 1;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;

  position: relative;
  z-index: 1;
}

.project:hover {
  z-index: 20;
}

.project:hover img {
  transform: scale(1.06);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  z-index: 20;
}

.projects-grid {
  overflow: visible;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  overflow: visible;
}

.project {
  width: 100%;
  height: 220px;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.project:hover {
  z-index: 20;
}

.project:hover img {
  transform: scale(1.06);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}




.social-links {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-links a {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.social-links a:hover {
  color: #fff;
}

.quote-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.contact-mini {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-mini a {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #fff;
  text-decoration: none;
  font-size: 17px;

  transition: 0.2s ease;
}

.contact-mini a:hover {
  color: var(--accent);
}

.contact-icon {
  color: var(--accent);
  width: 20px;
}



.company-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 420px;
}

.company-links a {
  display: flex;
  flex-direction: column;
  gap: 4px;

  padding: 14px 16px;

  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);

  text-decoration: none;

  transition: 0.25s ease;
}

.company-links a span {
  color: #8d969d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.company-links a strong {
  color: #fff;
  font-size: 14px;
}

.company-links a:hover {
  border-color: var(--accent);
  background: rgba(255,102,0,.08);
  transform: translateY(-2px);
}

.company-links a:hover strong {
  color: var(--accent);
}

/* ========================================
   GALERIA REALIZACJI
======================================== */

.gallery-page {
  min-height: 100vh;
  background: #0b0e11;
  color: #fff;
  padding: 140px 0 100px;
}

.gallery-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: rgba(8, 11, 14, 0.95);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.gallery-nav {
  min-height: 74px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gallery-logo {
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 1px;
}

.gallery-logo span {
  color: var(--accent);
}

.gallery-back {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;

  transition: .2s ease;
}

.gallery-back:hover {
  color: var(--accent);
}


/* nagłówek galerii */

.gallery-title {
  max-width: 750px;
  margin-bottom: 55px;
}

.gallery-title h1 {
  margin: 10px 0 20px;

  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -3px;
}

.gallery-title h1 span {
  color: var(--accent);
}

.gallery-title > p:last-child {
  color: #aeb5bb;
  font-size: 17px;
  line-height: 1.7;
  max-width: 650px;
}


/* zdjęcia */

.full-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  display: block;

  height: 280px;
  overflow: hidden;

  background: #111;

  transition: transform .3s ease;
  z-index: 1;
}

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

.gallery-item:hover {
  transform: scale(1.22);
  z-index: 20;
}

/* tablet */

@media (max-width: 900px) {

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

}


/* telefon */

@media (max-width: 600px) {

  .gallery-page {
    padding-top: 115px;
  }

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

  .gallery-item {
    height: 260px;
  }

  .gallery-title h1 {
    letter-spacing: -2px;
  }

  .gallery-back {
    font-size: 11px;
  }

}

/* ========================================
   STRONA KONTAKT
======================================== */

.contact-page {
  min-height: 100vh;
  background: #0b0e11;
  color: #fff;

  padding: 140px 0 100px;
}


/* GÓRNY PASEK */

.contact-header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  z-index: 1000;

  background: rgba(8, 11, 14, 0.96);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.contact-nav {
  min-height: 74px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-logo {
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 1px;
}

.contact-logo span {
  color: var(--accent);
}

.contact-back {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;

  transition: .2s ease;
}

.contact-back:hover {
  color: var(--accent);
}


/* UKŁAD */

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;

  align-items: start;
}


/* LEWA STRONA */

.contact-info h1 {
  margin: 10px 0 25px;

  font-size: clamp(46px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -3px;
}

.contact-info h1 span {
  color: var(--accent);
}

.contact-intro {
  max-width: 560px;

  color: #aeb5bb;
  font-size: 17px;
  line-height: 1.7;

  margin-bottom: 45px;
}


/* DANE KONTAKTOWE */

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.contact-details > div {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 16px;
}

.contact-label {
  display: block;

  margin-bottom: 9px;

  color: #7e8991;
  font-size: 11px;
  font-weight: 700;

  letter-spacing: 2px;
}

.contact-details a,
.contact-details p {
  display: block;

  margin: 0 0 6px;

  color: #fff;
  text-decoration: none;

  font-size: 16px;
  line-height: 1.6;
}

.contact-details a:hover {
  color: var(--accent);
}


/* FORMULARZ */

.contact-form-box {
  background: #11161a;

  border: 1px solid rgba(255,255,255,.08);

  padding: 42px;
}

.contact-form-box h2 {
  margin: 8px 0 30px;

  font-size: 34px;
}

.contact-form {
  display: flex;
  flex-direction: column;

  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;

  gap: 8px;
}

.form-group label {
  color: #aeb5bb;

  font-size: 13px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;

  padding: 14px 15px;

  border: 1px solid rgba(255,255,255,.12);

  background: #0b0e11;
  color: #fff;

  font-family: inherit;
  font-size: 15px;

  outline: none;

  transition: .2s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 160px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}


/* RESPONSYWNOŚĆ */

@media (max-width: 900px) {

  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

}

@media (max-width: 600px) {

  .contact-page {
    padding-top: 115px;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .contact-form-box {
    padding: 26px 20px;
  }

  .contact-info h1 {
    letter-spacing: -2px;
  }

}

.form-privacy {
  margin: 0;
  color: #7e8991;
  font-size: 11px;
  line-height: 1.6;
}

.form-privacy a {
  color: #aeb5bb;
  text-decoration: underline;
}

.form-privacy a:hover {
  color: var(--accent);
}

/* ========================================
   POLITYKA PRYWATNOŚCI
======================================== */

.privacy-page {
  min-height: 100vh;
  background: #0b0e11;
  color: #fff;
  padding: 140px 0 100px;
}

.privacy-container {
  max-width: 900px;
}

.privacy-container h1 {
  margin: 10px 0 25px;

  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -3px;
}

.privacy-container h1 span {
  color: var(--accent);
}

.privacy-intro {
  max-width: 760px;
  margin-bottom: 60px;

  color: #aeb5bb;
  font-size: 17px;
  line-height: 1.8;
}

.privacy-section {
  padding: 30px 0;

  border-top: 1px solid rgba(255,255,255,.1);
}

.privacy-section h2 {
  margin: 0 0 18px;

  color: #fff;
  font-size: 21px;
}

.privacy-section p,
.privacy-section li {
  color: #aeb5bb;

  font-size: 15px;
  line-height: 1.8;
}

.privacy-section ul {
  padding-left: 22px;
}

.privacy-section li {
  margin-bottom: 7px;
}

.privacy-section strong {
  color: #fff;
}

.privacy-section a {
  color: var(--accent);
  text-decoration: none;
}

.privacy-section a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {

  .privacy-page {
    padding-top: 115px;
  }

  .privacy-container h1 {
    letter-spacing: -2px;
  }

}

/* FILTRY GALERII */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
}

.filter-btn {
  padding: 12px 20px;
  background: #151a1e;
  color: #aeb5bb;
  border: 1px solid rgba(255,255,255,.12);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .25s ease;
}

.filter-btn:hover {
  color: #fff;
  border-color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Ukrywanie zdjęć */

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

@media (max-width: 600px) {
  .gallery-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 10px 13px;
    font-size: 12px;
  }
}

/* ========================================
   POPRAWKI RESPONSYWNOŚCI 
======================================== */
html, body { width: 100%; max-width: 100%; }
.container { min-width: 0; }
.hero-copy, .section-heading > div, .about-copy, .quote-grid > div,
.service-card, .machine-item > div, .contact-info, .contact-form-box { min-width: 0; }
.projects-more { grid-column: 1 / -1; text-align: center; padding: 16px 0; }

@media (max-width: 820px) {
  .site-header .nav-wrap { position: relative; }
  .main-nav { left: 0; right: 0; max-height: calc(100dvh - 74px); overflow-y: auto; }
  .hero-content { width: min(calc(100% - 28px), var(--max)); }
  .hero-copy { width: 100%; max-width: 100%; }
  .hero h1 { font-size: clamp(28px, 7.7vw, 56px); line-height: 1.06; letter-spacing: -1.5px; overflow-wrap: anywhere; }
  .hero-lead { font-size: clamp(19px, 4.5vw, 24px); }
  .hero-text { max-width: 100%; }
  .hero-benefits { margin-top: 36px; }
  .section-heading h2, .about-copy h2, .quote-section h2 {
    font-size: clamp(28px, 7vw, 44px); letter-spacing: -1px; overflow-wrap: anywhere;
  }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .project { height: auto; aspect-ratio: 1.25 / 1; }
  .project:hover, .project:hover img { transform: none; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 28px); }
  .hero { min-height: 0; padding-top: 120px; padding-bottom: 54px; }
  .hero h1 { font-size: clamp(27px, 7.4vw, 40px); letter-spacing: -1px; }
  .hero-actions .btn { width: 100%; text-align: center; white-space: normal; }
  .hero-benefits { gap: 15px; }
  .cards-grid, .projects-grid { grid-template-columns: minmax(0, 1fr); }
  .project { height: auto; aspect-ratio: 1.25 / 1; }
  .company-links { grid-template-columns: minmax(0, 1fr); }
  .contact-mini a { font-size: 15px; overflow-wrap: anywhere; }
  .gallery-title h1, .contact-info h1, .privacy-container h1 {
    font-size: clamp(30px, 8vw, 42px); letter-spacing: -1px; overflow-wrap: anywhere;
  }
}


.card-image { background-color:#263038; }
.offer-grid,.detail-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.detail-grid { display:grid; }
.offer-card { display:block; color:inherit; border-radius:4px; overflow:hidden; transition:box-shadow .18s; }
.offer-card:hover,.offer-card:focus-visible { box-shadow:0 0 0 2px var(--accent); }
.offer-card .card-body { min-height:120px; }
.offer-menu { position:relative; }
.offer-menu summary { display:flex; align-items:center; gap:.5em; list-style:none; cursor:pointer; color:#d9dde0; }
.offer-menu summary::-webkit-details-marker { display:none; }
.offer-menu-links { position:absolute; z-index:5; top:calc(100% + 12px); min-width:210px; padding:8px; background:#10171b; border:1px solid #38454b; border-radius:4px; }
.offer-menu-links a { display:block; padding:10px 12px; white-space:nowrap; }
.offer-menu-links a[aria-current="page"] { color:var(--accent); }
.legacy-anchor { display:block; scroll-margin-top:80px; }
.detail-hero { padding:145px 0 65px; background:var(--bg); }
.detail-hero-grid { display:grid; grid-template-columns:1.15fr 1fr; align-items:center; gap:44px; }
.detail-hero h1 { font-size:clamp(2rem,4.4vw,4.4rem); line-height:1.02; margin:16px 0; }
.detail-hero p { max-width:38ch; font-size:1.12rem; margin-bottom:24px; }
.detail-hero .card-image { border-radius:4px; }
.offer-back { color:var(--accent); }
.detail-card { padding:24px; background:#fff; border:1px solid #d6dfe1; border-top:3px solid var(--accent); }
.detail-card h3 { margin:0 0 8px; }
.detail-card p { margin:0; line-height:1.55; }
.detail-bottom { padding:40px 0; }
.detail-bottom .container { display:flex; gap:12px; flex-wrap:wrap; }
.reveal { opacity:1; transform:none; }
@media (max-width:820px) {
  .offer-grid,.detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .offer-menu-links { position:static; margin-top:8px; }
  .detail-hero-grid { grid-template-columns:1fr; gap:25px; }
}
@media (max-width:560px) {
  .offer-grid,.detail-grid { grid-template-columns:1fr; }
  .detail-hero { padding:110px 0 44px; }
}

/* Motyw inspirowany ulotką DARSTAL */
.brand-mark {
  display: block;
  width: 84px;
  height: 36px;
  object-fit: contain;
  object-position: left center;
}
.site-header, .gallery-header, .contact-header {
  background: rgba(247, 242, 233, .97);
  border-bottom-color: var(--line);
}
.main-nav a, .offer-menu summary, .menu-toggle,
.gallery-back, .contact-back { color: var(--text); }
.main-nav a:hover, .offer-menu summary:hover,
.gallery-back:hover, .contact-back:hover { color: var(--accent); }
.main-nav, .offer-menu-links { border-color: var(--line); }
.offer-menu-links { background: var(--bg); }
.logo small, .eyebrow, .eyebrow.dark { color: #526078; }

.btn-primary, .btn-outline:hover { color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: rgba(16, 34, 66, .05); }

.hero-overlay {
  background: url("../../assets/images/tlo/szkic_tryby.png") right center / auto 100% no-repeat;
  opacity: .16;
  pointer-events: none;
}
.hero-copy .eyebrow::before, .section-heading .eyebrow::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 6px;
  margin-right: 10px;
  vertical-align: .15em;
  background: var(--accent);
  transform: skewX(-35deg);
}
.hero-text, .hero-benefits div, .hero-side-labels,
.about-copy p:not(.eyebrow), .stats span,
.quote-section p:not(.eyebrow), .contact-mini,
.company-links a span { color: #45536a; }
.contact-mini a, .company-links a strong,
.social-links a:hover { color: var(--text); }
.contact-mini a:hover, .company-links a:hover strong { color: var(--accent); }
.company-links a { background: rgba(255,255,255,.55); border-color: var(--line); }
.company-links a:hover { background: rgba(190,33,27,.05); }

.footer { background: var(--bg); border-top: 1px solid var(--line); }
.footer a, .footer p, .footer-bottom { color: #45536a; }
.footer a:hover { color: var(--accent); }

.gallery-page, .contact-page, .privacy-page {
  background: var(--bg);
  color: var(--text);
}
.gallery-item, .filter-btn, .contact-form-box,
.form-group input, .form-group textarea { background: #fff; }
.contact-form-box, .form-group input, .form-group textarea,
.contact-details > div, .privacy-section, .filter-btn { border-color: var(--line); }
.gallery-title > p:last-child, .filter-btn, .contact-intro,
.contact-label, .form-group label, .form-privacy, .form-privacy a,
.privacy-intro, .privacy-section p, .privacy-section li { color: #45536a; }
.contact-details a, .contact-details p, .form-group input,
.form-group textarea, .privacy-section h2, .privacy-section strong,
.filter-btn:hover { color: var(--text); }
.filter-btn.active { background: var(--accent); color: #fff; }

@media (max-width: 900px) {
  .main-nav { background: var(--bg); }
  .hero-overlay { opacity: .10; }
}
@media (prefers-reduced-motion: reduce) {
  .project img { transition: none; }
  .project:hover img { transform: none; }
}

/* Szczegóły oferty i odnośniki do sekcji */
main section[id] { scroll-margin-top: 90px; }
#oferta .service-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.offer-detail p { max-width: 75ch; line-height: 1.65; }
.regeneration-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 850px;
  margin-top: 24px;
}
.regeneration-photos figure { margin: 0; }
.regeneration-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.regeneration-photos figcaption { margin-top: 8px; font-weight: 700; }
@media (max-width: 560px) {
  .regeneration-photos { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.offer-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
}
.offer-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
  font-weight: 700;
}
.offer-variants li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 4px;
  margin-right: 8px;
  vertical-align: .2em;
  background: var(--accent);
  transform: skewX(-35deg);
}
.offer-detail-photo {
  position: relative;
  margin: 0;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}
.offer-detail-photo::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 36px;
  background: var(--accent);
  clip-path: polygon(27px 0, 34px 0, 100% 18px, 100% 25px);
  pointer-events: none;
}
.offer-detail-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (max-width: 760px) {
  .offer-detail-grid { grid-template-columns: 1fr; }
}

.advice-visual { margin: 0; }
.advice-visual img { display: block; width: 100%; height: auto; }

.offer-variants-stacked {
  flex-direction: column;
  align-items: flex-start;
}
.steel-detail-grid { row-gap: 22px; column-gap: clamp(18px, 2vw, 32px); }
.steel-variants { margin-top: 0; align-self: start; }
.steel-detail-photo {
  position: relative;
  grid-column: 1;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--dark-text);
}
.steel-detail-photo::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 43px;
  height: 32px;
  background: var(--accent);
  clip-path: polygon(0 0, 8px 0, 100% 24px, 100% 32px);
  pointer-events: none;
}
.steel-detail-photo img { display: block; width: 100%; height: auto; }

/* Szkice na kartach oferty */
#oferta .card-image {
  background-color: var(--bg);
  background-size: contain;
  background-repeat: no-repeat;
  background-origin: content-box;
  padding: 12px;
}
#oferta .img-cnc { background-image: url("../../assets/images/of/maszyny.png"); }
#oferta .img-steel { background-image: url("../../assets/images/of/przenosnik_z_konstrukcja.png"); }
#oferta .img-turning { background-image: url("../../assets/images/of/uchwyt_tokarski.png"); }
#oferta .img-weld { background-image: url("../../assets/images/of/szkic_rozdrabiacz.png"); }
#oferta .img-laser { background-image: url("../../assets/images/of/plan.png"); }
#oferta .img-plasma { background-image: url("../../assets/images/of/plazma-szkic.png"); }
#oferta .img-schody { background-image: url("../../assets/images/of/Stalowe_schody.png"); }

#oferta .img-automation { background-image: url("../../assets/images/of/automatyzacja.png"); }

.automation-example {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--dark-text);
  background: #fff;
}
.automation-example::after {
  content: "";
  position: absolute;
  inset: -1px -1px auto auto;
  width: 25px;
  height: 25px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.automation-example figcaption { font-weight: 800; padding-right: 12px; }
.automation-example .automation-step { margin: 14px 0 4px; font-size: .85rem; font-weight: 700; }
.automation-example pre {
  margin: 0;
  padding: 8px 12px;
  overflow-x: auto;
  background: var(--bg);
  font: .85rem/1.45 ui-monospace, Consolas, monospace;
}
.automation-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) clamp(29px, 5vw, 54px) minmax(0, 1fr);
  grid-template-areas:
    "start . ."
    "entry . ."
    "decision no alarm"
    "yes . ."
    "delay . ."
    "exit . ."
    "run . .";
  align-items: center;
  max-width: 510px;
  margin: 14px auto 0;
  color: var(--dark-text);
  font-size: clamp(.75rem, 1.6vw, .88rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.automation-diagram__block {
  padding: 8px 5px;
  border: 1px solid currentColor;
  background: var(--bg);
}
.automation-diagram__start { grid-area: start; }
.automation-diagram__entry { grid-area: entry; }
.automation-diagram__decision {
  grid-area: decision;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 88px;
  padding: 8px 14%;
}
.automation-diagram__decision::before,
.automation-diagram__decision::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--dark-text);
}
.automation-diagram__decision::after {
  inset: 2px 3px;
  background: var(--bg);
}
.automation-diagram__no { grid-area: no; }
.automation-diagram__yes { grid-area: yes; }
.automation-diagram__alarm { grid-area: alarm; }
.automation-diagram__delay { grid-area: delay; }
.automation-diagram__exit { grid-area: exit; }
.automation-diagram__run { grid-area: run; }
.automation-diagram__connector {
  position: relative;
  justify-self: center;
  width: 1px;
  height: 16px;
  background: currentColor;
}
.automation-diagram__connector::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.automation-diagram__yes { height: 24px; }
.automation-diagram__yes span {
  position: absolute;
  top: 3px;
  left: 8px;
}
.automation-diagram__no,
.automation-diagram__alarm { color: var(--accent); }
.automation-diagram__no {
  width: 100%;
  height: 1px;
}
.automation-diagram__no span {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
}
.automation-diagram__no::after {
  right: 1px;
  bottom: -3px;
  left: auto;
  transform: rotate(-45deg);
}
.automation-example .automation-note { margin: 12px 0 0; font-size: .85rem; }

.gallery-viewer {
  box-sizing: border-box;
  width: min(1100px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: clamp(10px, 2vw, 22px);
  border: 1px solid var(--dark-text);
  background: var(--bg);
  color: var(--text);
}
.gallery-viewer::backdrop { background: rgb(10 20 36 / 80%); }
html:has(.gallery-viewer[open]) { overflow: hidden; }
.viewer-header, .viewer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.viewer-header h2 { margin: 0; font-size: clamp(16px, 3vw, 22px); }
.viewer-stage { margin: 10px 0; background: #fff; }
.viewer-image {
  display: block;
  width: 100%;
  height: min(580px, 58dvh);
  object-fit: contain;
}
.gallery-viewer button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.gallery-viewer button:disabled { opacity: .5; cursor: default; }
.gallery-viewer button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.viewer-thumbnails { display: flex; gap: 8px; overflow-x: auto; padding: 5px; margin-top: 8px; }
.viewer-thumbnails button { flex: 0 0 70px; height: 54px; padding: 2px; border: 2px solid transparent; }
.viewer-thumbnails button[aria-current="true"] { border-color: var(--accent); }
.viewer-thumbnails img { display: block; width: 100%; height: 100%; object-fit: cover; }
