
:root{
  --bg:#f4f1e8;
  --ink:#101010;
  --muted:#68645b;
  --line:#151515;
  --acid:#c8ff00;
  --warm:#fffaf0;
  --silver:#d9d6cc;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:
    linear-gradient(90deg, rgba(16,16,16,.045) 1px, transparent 1px),
    linear-gradient(180deg, #f9f6ee 0%, #ece7dc 100%);
  background-size:72px 72px, auto;
}
a{color:inherit;text-decoration:none}
img{width:100%;display:block}
.top-bar{
  position:sticky;
  top:0;
  z-index:1000;
  border-bottom:2px solid var(--ink);
  background:rgba(249,246,238,.86);
  backdrop-filter:blur(16px);
}
.top-bar-inner{
  width:min(1240px,calc(100% - 32px));
  min-height:68px;
  margin:auto;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
}
.back-portfolio{
  justify-self:start;
  font-size:.74rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.13em;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.back-portfolio::before{
  content:"";
  width:34px;
  height:2px;
  background:var(--ink);
  display:block;
}
.bm-logo{
  width:64px;
  height:64px;
  object-fit:cover;
  border-radius:50%;
  padding:4px;
  border:1px solid var(--ink);
  background:#fff;
}
.top-note{
  justify-self:end;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.site-header{
  width:min(1240px,calc(100% - 32px));
  margin:0 auto;
  min-height:94px;
  display:grid;
  grid-template-columns:1.1fr 1.8fr .9fr;
  align-items:center;
  border-bottom:2px solid var(--ink);
}
.brand{
  font-size:clamp(1.3rem,2.2vw,2.1rem);
  font-weight:950;
  letter-spacing:-.08em;
  line-height:.86;
  text-transform:uppercase;
}
.brand span{
  display:block;
  color:transparent;
  -webkit-text-stroke:1px var(--ink);
}
.nav{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  height:100%;
  border-left:2px solid var(--ink);
}
.nav a{
  display:grid;
  place-items:center;
  border-right:2px solid var(--ink);
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.78rem;
  transition:.18s ease;
}
.nav a:hover,.nav .active{
  background:var(--ink);
  color:#fff;
}
.header-cta{
  justify-self:end;
  background:var(--acid);
  border:2px solid var(--ink);
  padding:13px 18px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.07em;
  box-shadow:6px 6px 0 var(--ink);
  transition:.18s ease;
}
.header-cta:hover{transform:translate(3px,3px);box-shadow:3px 3px 0 var(--ink)}
.hero{
  width:min(1240px,calc(100% - 32px));
  margin:28px auto 0;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  min-height:690px;
  border:2px solid var(--ink);
  background:var(--warm);
}
.hero-copy{
  padding:clamp(30px,5vw,72px);
  border-right:2px solid var(--ink);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.eyebrow{
  font-size:.76rem;
  font-weight:950;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--muted);
}
h1,h2,h3,p{margin:0}
h1{
  margin-top:22px;
  font-size:clamp(4.2rem,9vw,10rem);
  line-height:.78;
  letter-spacing:-.1em;
  text-transform:uppercase;
}
h1 .outline,.outline{
  color:transparent;
  -webkit-text-stroke:2px var(--ink);
}
.lead{
  max-width:620px;
  margin-top:28px;
  color:var(--muted);
  font-size:1.08rem;
  line-height:1.7;
}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:36px}
.btn{
  display:inline-flex;
  min-height:54px;
  padding:0 20px;
  align-items:center;
  justify-content:center;
  border:2px solid var(--ink);
  background:#fff;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.06em;
  box-shadow:6px 6px 0 var(--ink);
  transition:.18s ease;
}
.btn.primary{background:var(--ink);color:#fff;box-shadow:6px 6px 0 var(--acid)}
.btn.acid{background:var(--acid)}
.btn:hover{transform:translate(3px,3px);box-shadow:3px 3px 0 var(--ink)}
.btn.primary:hover{box-shadow:3px 3px 0 var(--acid)}
.hero-meta{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:2px solid var(--ink);
  margin:54px -72px -72px;
}
.hero-meta div{
  padding:22px;
  border-right:2px solid var(--ink);
}
.hero-meta div:last-child{border-right:0}
.hero-meta strong{font-size:1.8rem;font-weight:950}
.hero-meta span{display:block;color:var(--muted);font-size:.78rem;text-transform:uppercase;font-weight:900;margin-top:5px}
.hero-visual{
  position:relative;
  min-height:620px;
  background:
    linear-gradient(180deg,rgba(255,250,240,.05),rgba(16,16,16,.25)),
    url("https://images.unsplash.com/photo-1607860108855-64acf2078ed9?auto=format&fit=crop&w=1400&q=80") center/cover;
}
.hero-visual::before{
  content:"DETAIL";
  position:absolute;
  left:-18px;
  top:30px;
  writing-mode:vertical-rl;
  font-size:clamp(5rem,10vw,11rem);
  font-weight:950;
  letter-spacing:-.12em;
  color:rgba(255,255,255,.5);
  mix-blend-mode:overlay;
}
.diagonal-tag{
  position:absolute;
  right:26px;
  bottom:26px;
  background:var(--acid);
  border:2px solid var(--ink);
  padding:18px 22px;
  max-width:300px;
  font-weight:900;
  transform:rotate(-2deg);
}
.section{
  width:min(1240px,calc(100% - 32px));
  margin:0 auto;
  padding:72px 0;
}
.section-head{
  display:grid;
  grid-template-columns:.5fr 1.5fr;
  gap:28px;
  align-items:end;
  border-bottom:2px solid var(--ink);
  padding-bottom:26px;
  margin-bottom:24px;
}
.section-head h2{
  font-size:clamp(3rem,6vw,7.5rem);
  line-height:.82;
  letter-spacing:-.1em;
  text-transform:uppercase;
}
.feature-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr 1fr;
  border:2px solid var(--ink);
  border-bottom:0;
}
.feature{
  min-height:330px;
  padding:30px;
  border-right:2px solid var(--ink);
  border-bottom:2px solid var(--ink);
  background:#fffaf0;
  position:relative;
  overflow:hidden;
}
.feature:nth-child(2){background:var(--ink);color:#fff}
.feature:nth-child(3){background:var(--acid)}
.feature:nth-child(4){grid-column:span 2;background:url("https://images.unsplash.com/photo-1619405399517-d7fce0f13302?auto=format&fit=crop&w=1400&q=80") center/cover;min-height:420px}
.feature:nth-child(5){background:#fff}
.feature h3{
  font-size:clamp(1.8rem,3vw,3.3rem);
  line-height:.9;
  letter-spacing:-.07em;
  text-transform:uppercase;
}
.feature p{margin-top:18px;color:var(--muted);line-height:1.65}
.feature:nth-child(2) p{color:rgba(255,255,255,.72)}
.number{
  position:absolute;
  right:22px;
  bottom:12px;
  font-size:5rem;
  font-weight:950;
  letter-spacing:-.12em;
  opacity:.12;
}
.process{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border:2px solid var(--ink);
}
.step{
  padding:28px;
  min-height:250px;
  border-right:2px solid var(--ink);
  background:rgba(255,255,255,.45);
}
.step:last-child{border-right:0}
.step b{font-size:2.6rem;letter-spacing:-.08em}
.step h3{margin-top:34px;font-size:1.3rem;text-transform:uppercase;letter-spacing:-.04em}
.step p{margin-top:12px;color:var(--muted);line-height:1.6}
.price-list{
  border:2px solid var(--ink);
}
.price-row{
  display:grid;
  grid-template-columns:1fr 190px;
  border-bottom:2px solid var(--ink);
  background:#fffaf0;
}
.price-row:last-child{border-bottom:0}
.price-row:hover{background:var(--acid)}
.price-info{padding:28px}
.price-info strong{
  display:block;
  font-size:clamp(1.5rem,2.5vw,2.7rem);
  line-height:.9;
  letter-spacing:-.07em;
  text-transform:uppercase;
}
.price-info p{margin-top:10px;color:var(--muted);line-height:1.55}
.price{
  display:grid;
  place-items:center;
  border-left:2px solid var(--ink);
  font-size:1.4rem;
  font-weight:950;
  text-align:center;
}
.contact-layout{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  border:2px solid var(--ink);
  background:#fffaf0;
}
.contact-card{
  padding:34px;
  border-right:2px solid var(--ink);
  background:var(--acid);
}
.contact-card h3{
  font-size:clamp(2rem,4vw,4.5rem);
  line-height:.82;
  letter-spacing:-.09em;
  text-transform:uppercase;
}
.contact-card p{margin-top:22px;line-height:1.7;font-weight:700}
.form{
  padding:34px;
  display:grid;
  gap:18px;
}
label{font-size:.8rem;font-weight:950;text-transform:uppercase;letter-spacing:.1em}
input,textarea,select{
  width:100%;
  margin-top:10px;
  border:0;
  border-bottom:2px solid var(--ink);
  background:transparent;
  padding:14px 0;
  font:inherit;
  outline:none;
  color:var(--ink);
}
textarea{resize:vertical}
.footer{
  width:min(1240px,calc(100% - 32px));
  margin:0 auto 24px;
  border-top:2px solid var(--ink);
  padding:26px 0;
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-weight:800;
}


/* =========================================================
   MOBILE / RESPONSIVE FIX — B&M Results
   Cel: stabilny układ na telefonach bez utraty brutalistycznego stylu
   ========================================================= */

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

body {
  -webkit-text-size-adjust: 100%;
}

main {
  overflow: hidden;
}

.top-bar {
  position: sticky;
}

.top-bar-inner,
.site-header,
.hero,
.section,
.footer {
  width: min(1240px, calc(100% - 32px));
}

/* Lepszy układ top-bara na mniejszych ekranach */
@media (max-width: 760px) {
  .top-bar-inner {
    min-height: 58px;
    width: calc(100% - 20px);
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .back-portfolio {
    font-size: .62rem;
    letter-spacing: .08em;
    gap: 7px;
    line-height: 1.15;
  }

  .back-portfolio::before {
    width: 20px;
  }

  .bm-logo {
    width: 44px;
    height: 44px;
    padding: 3px;
  }

  .top-note {
    display: none;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
    padding: 18px 0;
  }

  .brand {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
  }

  .brand span {
    display: inline;
  }

  .nav {
    width: 100%;
    height: auto;
    border: 2px solid var(--ink);
    grid-template-columns: repeat(4, 1fr);
  }

  .nav a {
    min-height: 48px;
    border-right: 2px solid var(--ink);
    text-align: center;
  }

  .nav a:last-child {
    border-right: 0;
  }

  .header-cta {
    justify-self: start;
    width: fit-content;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .hero-visual {
    min-height: 520px;
  }

  .section-head,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .feature:nth-child(4) {
    grid-column: span 2;
  }

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

  .step:nth-child(2) {
    border-right: 0;
  }

  .step:nth-child(1),
  .step:nth-child(2) {
    border-bottom: 2px solid var(--ink);
  }

  .contact-card {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }
}

/* Telefon */
@media (max-width: 640px) {
  body {
    background-size: 42px 42px, auto;
  }

  .top-bar-inner,
  .site-header,
  .hero,
  .section,
  .footer {
    width: calc(100% - 20px);
  }

  .site-header {
    margin-top: 0;
    border-bottom: 2px solid var(--ink);
  }

  .brand {
    font-size: clamp(1.55rem, 9vw, 2.6rem);
    line-height: .82;
    display: block;
  }

  .brand span {
    display: block;
  }

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

  .nav a {
    min-height: 52px;
    font-size: .72rem;
    letter-spacing: .06em;
  }

  .nav a:nth-child(2) {
    border-right: 0;
  }

  .nav a:nth-child(1),
  .nav a:nth-child(2) {
    border-bottom: 2px solid var(--ink);
  }

  .header-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .hero {
    margin-top: 18px;
  }

  .hero-copy {
    padding: 24px 18px 0;
  }

  .eyebrow {
    font-size: .64rem;
    letter-spacing: .14em;
    line-height: 1.5;
  }

  h1 {
    font-size: clamp(3.05rem, 17vw, 5.2rem);
    line-height: .82;
    letter-spacing: -.09em;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  h1 .outline,
  .outline {
    -webkit-text-stroke: 1.15px var(--ink);
  }

  .lead {
    font-size: .98rem;
    line-height: 1.62;
    margin-top: 20px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }

  .btn {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    font-size: .78rem;
    text-align: center;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .btn.primary {
    box-shadow: 4px 4px 0 var(--acid);
  }

  .btn:hover {
    transform: none;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    margin: 30px -18px 0;
  }

  .hero-meta div {
    padding: 16px 18px;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .hero-meta div:last-child {
    border-bottom: 0;
  }

  .hero-visual {
    min-height: 410px;
    background-position: center;
  }

  .hero-visual::before {
    left: -10px;
    top: 18px;
    font-size: clamp(4.5rem, 24vw, 7.2rem);
    opacity: .75;
  }

  .diagonal-tag {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
    padding: 14px 16px;
    font-size: .86rem;
    transform: rotate(-1deg);
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 18px;
  }

  .section-head h2 {
    font-size: clamp(2.55rem, 14vw, 4.6rem);
    line-height: .84;
    letter-spacing: -.085em;
    overflow-wrap: break-word;
  }

  .feature-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .feature,
  .step {
    min-height: auto;
    padding: 22px 18px;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .feature:nth-child(4) {
    grid-column: auto;
    min-height: 330px;
    background-position: center;
  }

  .feature h3 {
    font-size: clamp(1.85rem, 10vw, 3rem);
  }

  .feature p,
  .step p,
  .price-info p,
  .contact-card p {
    font-size: .95rem;
    line-height: 1.58;
  }

  .number {
    font-size: 3.8rem;
    right: 14px;
    bottom: 6px;
  }

  .step h3 {
    margin-top: 20px;
  }

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

  .price-info {
    padding: 22px 18px;
  }

  .price-info strong {
    font-size: clamp(1.75rem, 10vw, 3rem);
  }

  .price {
    border-left: 0;
    border-top: 2px solid var(--ink);
    min-height: 70px;
    padding: 18px;
    font-size: 1.25rem;
    justify-content: start;
    text-align: left;
  }

  .contact-card,
  .form {
    padding: 22px 18px;
  }

  .contact-card h3 {
    font-size: clamp(2.35rem, 13vw, 4.2rem);
    overflow-wrap: break-word;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }

  .footer {
    display: block;
    margin-bottom: 18px;
    padding: 20px 0;
    font-size: .84rem;
  }
}

/* Bardzo małe telefony */
@media (max-width: 380px) {
  .back-portfolio {
    font-size: .56rem;
  }

  .bm-logo {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: 2.8rem;
  }

  .section-head h2 {
    font-size: 2.35rem;
  }

  .nav a {
    font-size: .66rem;
  }
}


/* =========================================================
   HOTFIX: mobile headline overflow
   ========================================================= */

@media (max-width: 640px) {
  .hero-copy {
    min-width: 0;
    width: 100%;
  }

  .hero-copy > div:first-child {
    min-width: 0;
    width: 100%;
  }

  h1 {
    font-size: clamp(2.25rem, 13.2vw, 4.15rem);
    line-height: .88;
    letter-spacing: -.075em;
    max-width: 100%;
    width: 100%;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  h1 .outline,
  .outline {
    display: block;
    max-width: 100%;
    -webkit-text-stroke: .9px var(--ink);
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: clamp(2.05rem, 12.4vw, 3.3rem);
    line-height: .92;
    letter-spacing: -.06em;
  }

  .hero-copy {
    padding: 22px 14px 0;
  }

  .lead {
    font-size: .9rem;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 1.92rem;
    letter-spacing: -.045em;
  }
}
