/* ===== RESET ===== */
*{margin:0;padding:0;box-sizing:border-box;}

html{
  scroll-behavior:smooth;
  scroll-padding-top:60px; /* desktop */
}

:root{
  --ink:#1f2933;

  /* stal */
  --steelA:#f8f9fb;
  --steelB:#dce2ea;
  --steelC:#b7c0cb;
  --steelLight1:#f6f8fa;
  --steelLight2:#e1e6ec;

  --line:rgba(0,0,0,.22);
  --line2:rgba(0,0,0,.14);

  --r:14px;
  --shadow:0 12px 26px rgba(0,0,0,.12);
}

body{
  font-family:"Inter",system-ui,sans-serif;
  color:var(--ink);
  background:#fff;
}

/* ===== HEADER ===== */
.site-header{position:sticky;top:0;z-index:1000;}

/* ===== MOBILE HEADER ===== */
.mobile-header{
  background:linear-gradient(135deg,var(--steelA),var(--steelB),var(--steelC));
  border-bottom:2px solid rgba(0,0,0,.25);
}

.logo-mobile{
  display:flex;
  justify-content:center;
  padding:14px;
  overflow:hidden;
  text-decoration:none;
  background:
    linear-gradient(180deg,rgba(255,255,255,.85),rgba(255,255,255,.35) 40%,rgba(255,255,255,0) 55%),
    linear-gradient(135deg,var(--steelA),var(--steelB),var(--steelC));
  border-bottom:1px solid rgba(0,0,0,.25);
}
.logo-mobile img{
  height:52px;
  transform:scale(2);
  transform-origin:center;
  object-fit:contain;
  display:block;
}

.menu-toggle{
  width:100%;
  height:48px;
  font-family:"Inter",system-ui,sans-serif;
  font-weight:700;
  font-size:.92rem;
  line-height:1;
  color:var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  appearance:none;
  -webkit-appearance:none;
  background:
    linear-gradient(180deg,rgba(255,255,255,.85),rgba(255,255,255,.35) 40%,rgba(255,255,255,0) 55%),
    linear-gradient(135deg,var(--steelA),var(--steelB),var(--steelC));
  border:none;
  border-bottom:2px solid rgba(0,0,0,.25);
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle:focus{outline:none;}
.menu-toggle .chevron{margin-left:8px;display:inline-block;transition:transform .2s ease;}
.menu-toggle.open .chevron{transform:rotate(180deg);}

.mobile-menu{
  max-height:0;
  overflow:hidden;
  transition:max-height .28s ease;
  background:linear-gradient(135deg,var(--steelLight1),var(--steelLight2));
}
.mobile-menu.open{max-height:900px;}
.mobile-menu a{
  display:block;
  padding:14px 16px;
  border-top:1px solid rgba(0,0,0,.18);
  text-decoration:none;
  font-weight:700;
  color:var(--ink);
}
.mobile-menu a.is-active{
  background:linear-gradient(180deg,rgba(255,255,255,.65),rgba(255,255,255,0));
}

/* ===== DESKTOP HEADER ===== */
.desktop-header{display:none;}
.logo-desktop img{height:44px;object-fit:contain;display:block;}

/* ===================================================================== */
/* ===== STRONA GŁÓWNA (INDEX) ===== */
/* ===================================================================== */

.hero{
  min-height:calc(100vh - 110px);
  background:
    linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.7)),
    url("images/hero-machine.jpg") center/cover no-repeat;
  display:flex;
  align-items:center;
}

.hero-content{
  padding:0 6%;
  max-width:1100px;
  color:#fff;
}

.hero h1{
  font-size:clamp(2rem,5vw,3.2rem);
  font-weight:800;
  letter-spacing:-.01em;
  line-height:1.1;
  text-shadow:0 10px 30px rgba(0,0,0,.45);
}

.hero p{
  margin-top:18px;
  font-size:1.05rem;
  font-weight:650;
  opacity:.96;
  line-height:1.45;
  text-shadow:0 10px 26px rgba(0,0,0,.45);
}

/* CTA */
.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:26px;
  padding:14px 28px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.82),rgba(255,255,255,.28) 40%,rgba(255,255,255,0) 58%),
    linear-gradient(135deg,var(--steelA),var(--steelB),var(--steelC));
  border-radius:12px;
  text-decoration:none;
  font-weight:900;
  color:var(--ink);
  box-shadow:0 12px 22px rgba(0,0,0,.35);
  border:1px solid rgba(0,0,0,.18);
  transition:transform .12s ease, filter .12s ease, box-shadow .12s ease;
  position:relative;
  overflow:hidden;
}
.cta:hover{
  transform:translateY(-2px);
  filter:brightness(1.02);
  box-shadow:0 16px 28px rgba(0,0,0,.42);
}
.cta:active{transform:translateY(1px);}

/* krótki połysk na CTA */
.cta::after{
  content:"";
  position:absolute;
  left:-45%;
  top:-60%;
  width:60%;
  height:220%;
  background:linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  transform:rotate(18deg);
  opacity:0;
  transition:opacity .15s ease, transform .28s ease;
  pointer-events:none;
}
.cta:hover::after{
  opacity:.75;
  transform:translateX(170%) rotate(18deg);
}

/* ===================================================================== */
/* ===== PODSTRONY HERO ===== */
/* ===================================================================== */
.page-hero{
  background:
    linear-gradient(rgba(0,0,0,.22),rgba(0,0,0,.58)),
    url("images/hero-machine.jpg") center/cover no-repeat;
  padding:42px 0;
}
.page-hero-inner{
  padding:0 6%;
  max-width:1100px;
  margin:0 auto;
  color:#fff;
}
.page-hero h1{
  font-size:clamp(1.8rem,3.2vw,2.6rem);
  font-weight:800;
  letter-spacing:-.01em;
}
.page-hero p{
  margin-top:10px;
  font-weight:600;
  opacity:.95;
  max-width:900px;
}

/* ===== LAYOUT ===== */
.page{
  max-width:1100px;
  margin:0 auto;
  padding:28px 6% 40px;
}
.section-title{
  font-size:1.05rem;
  font-weight:800;
  margin-bottom:12px;
}
.center{text-align:center;}

/* ===================================================================== */
/* ===== KONTAKT ===== */
/* ===================================================================== */
.contact-layout{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  align-items:start;
}

.map iframe{
  width:100%;
  height:340px;
  border:0;
  border-radius:var(--r);
  box-shadow:var(--shadow);
}

.contact-side{
  background:
    linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.25) 40%,rgba(255,255,255,0) 60%),
    linear-gradient(135deg,var(--steelLight1),var(--steelLight2));
  border:1px solid var(--line2);
  border-radius:var(--r);
  padding:16px;
  box-shadow:var(--shadow);
}

.contact-item{padding:10px 2px;}

.contact-head{
  font-weight:800;
  font-size:.98rem;
  margin-bottom:6px;
  display:flex;
  align-items:center;
  gap:10px;
}
.contact-row{
  font-weight:700;
  font-size:.93rem;
  margin:7px 0;
  display:flex;
  align-items:center;
  gap:10px;
}
.contact-row a{
  color:var(--ink);
  text-decoration:none;
  font-weight:800;
}
.contact-row a:hover{text-decoration:underline;}

.contact-sep{
  height:1px;
  width:100%;
  margin:10px 0;
  background:linear-gradient(90deg,rgba(0,0,0,0),rgba(0,0,0,.28),rgba(0,0,0,0));
}

/* Dane firmy */
.company-lines{
  margin-top:6px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.company-line{
  font-weight:700;
  font-size:.93rem;
  line-height:1.35;
}
.company-line .k{font-weight:900;opacity:.78;margin-right:6px;}
.company-line .v{font-weight:800;}

/* ===== IKONY (SVG w CSS) ===== */
.icon-mail::before,
.icon-phone::before,
.icon-person::before,
.icon-office::before,
.icon-invoice::before,
.icon-company::before{
  content:"";
  width:18px;height:18px;flex:0 0 18px;
  display:inline-block;
  opacity:.92;
  background-repeat:no-repeat;
  background-size:18px 18px;
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.35));
}
.icon-mail::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231f2933' stroke-width='2' d='M4 7h16v10H4z'/%3E%3Cpath fill='none' stroke='%231f2933' stroke-width='2' d='M4 7l8 6 8-6'/%3E%3C/svg%3E");
}
.icon-phone::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231f2933' stroke-width='2' d='M7 4h3l2 5-2 1c1 3 3 5 6 6l1-2 5 2v3c0 1-1 2-2 2-9 0-16-7-16-16 0-1 1-2 2-2z'/%3E%3C/svg%3E");
}
.icon-person::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231f2933' stroke-width='2' d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4z'/%3E%3Cpath fill='none' stroke='%231f2933' stroke-width='2' d='M4 20c1.5-4 14.5-4 16 0'/%3E%3C/svg%3E");
}
.icon-office::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231f2933' stroke-width='2' d='M3 20h18'/%3E%3Cpath fill='none' stroke='%231f2933' stroke-width='2' d='M5 20V10l6-3v13'/%3E%3Cpath fill='none' stroke='%231f2933' stroke-width='2' d='M11 20V8l8-3v15'/%3E%3C/svg%3E");
}
.icon-invoice::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231f2933' stroke-width='2' d='M6 2h12v20l-2-1-2 1-2-1-2 1-2-1-2 1z'/%3E%3Cpath fill='none' stroke='%231f2933' stroke-width='2' d='M8 7h8M8 11h8M8 15h5'/%3E%3C/svg%3E");
}
.icon-company::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231f2933' stroke-width='2' d='M8 7V6a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1'/%3E%3Cpath fill='none' stroke='%231f2933' stroke-width='2' d='M4 7h16v13H4z'/%3E%3Cpath fill='none' stroke='%231f2933' stroke-width='2' d='M9 12h6'/%3E%3C/svg%3E");
}

/* ===== FORMULARZ ===== */
.contact-form-wrap{margin-top:36px;}
#formularz{scroll-margin-top:1px;}

.form-centered{
  max-width:760px;
  margin:0 auto;
  border-radius:var(--r);
  padding:18px;
  box-shadow:var(--shadow);
  border:1px solid var(--line2);
}
.form-light{
  background:
    linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.25) 40%,rgba(255,255,255,0) 60%),
    linear-gradient(135deg,var(--steelLight1),var(--steelLight2));
}
.form-row{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:12px;
}
.form-row label{font-weight:800;font-size:.92rem;}
.form-row input,
.form-row select,
.form-row textarea{
  font-family:"Inter",system-ui,sans-serif;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.18);
  background:rgba(255,255,255,.75);
  color:var(--ink);
  padding:10px 12px;
  outline:none;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{
  border-color:rgba(0,0,0,.28);
  box-shadow:0 0 0 3px rgba(31,41,51,.08);
}
.form-row select{appearance:none;-webkit-appearance:none;}
.form-row.two{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:12px;
  font-weight:900;
  border:1px solid rgba(0,0,0,.18);
  cursor:pointer;
}
.btn-cta{
  width:100%;
  background:linear-gradient(135deg,var(--steelA),var(--steelB),var(--steelC));
  color:var(--ink);
  transition:transform .12s ease, filter .12s ease;
}
.btn-cta:hover{filter:brightness(1.03);}
.btn-cta:active{transform:translateY(1px);}

/* ===================================================================== */
/* ===== KAFELKI (Maszyny specjalnego przeznaczenia) ===== */
/* ===================================================================== */
.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:26px;
}

.product-tile{
  display:block;
  text-decoration:none;
  color:var(--ink);
  border-radius:16px;
  overflow:hidden;
  background:
    linear-gradient(180deg,rgba(255,255,255,.7),rgba(255,255,255,.25) 45%,rgba(255,255,255,0) 60%),
    linear-gradient(135deg,var(--steelLight1),var(--steelLight2));
  border:1px solid rgba(0,0,0,.18);
  box-shadow:0 14px 30px rgba(0,0,0,.18);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
  position:relative;
}
.product-tile::after{
  content:"";
  position:absolute;
  left:-40%;
  top:-60%;
  width:70%;
  height:220%;
  background:linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  transform:rotate(18deg);
  opacity:0;
  transition:opacity .18s ease, transform .42s ease;
  pointer-events:none;
}
.product-tile:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 40px rgba(0,0,0,.28);
  filter:brightness(1.02);
}
.product-tile:hover::after{
  opacity:.65;
  transform:translateX(180%) rotate(18deg);
}

/* domyślne */
.tile-image{
  height:170px;
  background:linear-gradient(135deg,#dfe4ea,#bfc7d1);
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}

/* ===== MINIATURKI (TO BYŁO BRAKIEM) ===== */
.tile-ft{
  background-image:
    linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)),
    url("images/min_FT.jpg");
}
.tile-dp{
  background-image:
    linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)),
    url("images/min_DP.jpg");
}
.tile-dpr{
  background-image:
    linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)),
    url("images/min_DPR.jpg");
}
.tile-mw{
  background-image:
    linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)),
    url("images/min_MW.bmp");
}
.tile-mp{
  background-image:
    linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)),
    url("images/min_MP.bmp");
}
.tile-zp{
  background-image:
    linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)),
    url("images/min_ZP.bmp");
}
.tile-sb{
  background-image:
    linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)),
    url("images/min_SB.bmp");
}

.tile-content{padding:16px 18px 20px;}
.tile-content h3{font-size:1.05rem;font-weight:800;margin-bottom:6px;}
.tile-content p{font-size:.92rem;font-weight:600;opacity:.78;line-height:1.35;}

/* ===== FOOTER ===== */
.footer{
  background:linear-gradient(135deg,var(--steelLight1),var(--steelLight2));
  padding:16px;
  border-top:1px solid rgba(0,0,0,.12);
}
.footer-inner{
  max-width:1100px;
  margin:0 auto;
  padding:0 6%;
  text-align:center;
  font-size:.9rem;
  opacity:.85;
}

/* ===== DESKTOP ===== */
@media(min-width:1025px){
  html{scroll-padding-top:60px;}
  .mobile-header{display:none;}

  .desktop-header{
    display:flex;
    align-items:center;
    padding:0 16px;
    height:60px;
    background:
      linear-gradient(180deg,rgba(255,255,255,.85),rgba(255,255,255,.35) 40%,rgba(255,255,255,0) 55%),
      linear-gradient(135deg,var(--steelA),var(--steelB),var(--steelC));
    border-bottom:2px solid rgba(0,0,0,.3);
  }

  .desktop-menu{
    display:flex;
    margin-left:24px;
    flex:1;
  }
  .desktop-menu a{
    padding:0 14px;
    display:flex;
    align-items:center;
    border-left:1px solid rgba(0,0,0,.35);
    font-weight:700;
    font-size:.92rem;
    text-decoration:none;
    color:var(--ink);
    height:60px;
  }
  .desktop-menu a:last-child{
    border-right:1px solid rgba(0,0,0,.35);
  }
  .desktop-menu a.is-active{
    background:linear-gradient(180deg,rgba(255,255,255,.65),rgba(255,255,255,0));
  }

  .contact-layout{
    grid-template-columns:1.35fr .65fr;
    gap:20px;
  }

  .form-row.two{
    grid-template-columns:1fr 1fr;
  }
}

/* ===== MOBILE offset dla kotwic ===== */
@media(max-width:1024px){
  html{scroll-padding-top:170px;}
}
