/* ─── RESET & VARIABLES ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #1a1a1a;
  --bg-card:   #222222;
  --bg-dark:   #141414;
  --border:    #2e2e2e;
  --lime:      #aaee00;
  --lime-dark: #88cc00;
  --white:     #ffffff;
  --grey:      #aaaaaa;
  --grey-dim:  #666666;
  --font:      'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── LOGO ─── */
.logo-mark { display: inline-flex; align-items: center; text-decoration: none; }
.logo-box {
  background: var(--lime);
  width: 56px; height: 56px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0; padding: 4px 5px; gap: 1px;
}
.logo-box .l1 { font-family: var(--font); font-weight: 900; font-size: .95rem; color: #000; line-height: 1; }
.logo-box .l2 { font-family: var(--font); font-weight: 700; font-size: .62rem; color: #000; line-height: 1; }
.logo-box .l3 { font-family: var(--font); font-weight: 900; font-size: 1.2rem;  color: #000; line-height: 1; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 72px;
  background: var(--bg-dark);
  border-bottom: 2px solid var(--lime);
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--grey); text-decoration: none; transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--lime); }
.nav-cta {
  font-family: var(--font); font-weight: 900; font-size: .95rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: #000; background: var(--lime); border: none;
  padding: .6rem 1.6rem; cursor: pointer; text-decoration: none;
  display: inline-block; transition: background .2s;
}
.nav-cta:hover { background: var(--lime-dark); }

/* hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
}
.hamburger span { display: block; width: 26px; height: 2px; background: var(--white); transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--bg-dark); border-bottom: 1px solid var(--border);
  z-index: 99; padding: 1.5rem 5vw 2rem; flex-direction: column; gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font); font-weight: 900; font-size: 1.6rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  padding: .9rem 0; border-bottom: 1px solid var(--border); transition: color .2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--lime); }

/* ─── PAGE HERO (podstrony) ─── */
.page-hero {
  padding: 130px 5vw 70px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
}
.page-hero-label {
  font-family: var(--font); font-weight: 700; font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--lime); margin-bottom: .5rem;
  display: flex; align-items: center; gap: .6rem;
}
.page-hero-label a {
  color: var(--grey-dim); text-decoration: none; transition: color .2s;
}
.page-hero-label a:hover { color: var(--lime); }
.page-hero-label span { color: var(--lime); }
.page-hero h1 {
  font-family: var(--font); font-weight: 900;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: .95; letter-spacing: .01em;
  text-transform: uppercase; margin-bottom: 1.2rem;
}
.page-hero-lead {
  font-size: 1.05rem; color: var(--grey);
  max-width: 580px; line-height: 1.7;
}

/* ─── SECTIONS ─── */
section { padding: 90px 5vw; }

.section-label {
  font-family: var(--font); font-weight: 700; font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--lime); margin-bottom: .5rem;
}
.section-title {
  font-family: var(--font); font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1; text-transform: uppercase;
  letter-spacing: .02em; margin-bottom: 1rem;
}
.section-lead {
  font-size: 1rem; color: var(--grey);
  max-width: 560px; margin-bottom: 3.5rem; line-height: 1.7;
}
.lime-line { width: 60px; height: 2px; background: var(--lime); margin-bottom: 1.5rem; }

/* ─── BUTTONS ─── */
.btn-lime {
  font-family: var(--font); font-weight: 800; font-size: 1rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: #000; background: var(--lime); border: none;
  padding: .95rem 2rem; cursor: pointer; text-decoration: none;
  display: inline-block; text-align: center; transition: background .2s;
}
.btn-lime:hover { background: var(--lime-dark); }

.btn-outline {
  font-family: var(--font); font-weight: 800; font-size: 1rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--white); background: transparent;
  border: 1px solid var(--lime); padding: .95rem 2rem;
  cursor: pointer; text-decoration: none;
  display: inline-block; text-align: center; transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--lime); color: #000; }

/* ─── SERVICES GRID (on homepage) ─── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.service-card {
  background: var(--bg-card); padding: 2.5rem 2rem 2rem;
  position: relative; overflow: hidden; transition: background .25s;
  text-decoration: none; display: block;
}
.service-card:hover { background: #272727; }
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.service-card:hover::after { transform: scaleX(1); }
.service-num {
  font-family: var(--font); font-weight: 900; font-size: 4.5rem;
  color: var(--border); position: absolute; top: .5rem; right: 1.2rem; line-height: 1;
}
.service-icon { font-size: 1.8rem; margin-bottom: 1rem; display: block; }
.service-name {
  font-family: var(--font); font-weight: 900; font-size: 1.25rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--white); margin-bottom: .7rem;
}
.service-desc { font-size: .88rem; color: var(--grey); line-height: 1.7; }
.service-more {
  font-family: var(--font); font-weight: 700; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--lime); margin-top: 1rem; display: inline-block;
}

/* ─── WHY GRID ─── */
.why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 3rem;
}
.why-card { background: var(--bg-card); padding: 3rem 2.5rem; position: relative; }
.why-card-num {
  font-family: var(--font); font-weight: 900; font-size: 5rem;
  color: rgba(170,238,0,.07); position: absolute; top: 1rem; right: 1.5rem; line-height: 1;
}
.why-line { width: 40px; height: 2px; background: var(--lime); margin-bottom: 1.2rem; }
.why-card-title {
  font-family: var(--font); font-weight: 900; font-size: 1.2rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--white); margin-bottom: .7rem;
}
.why-card p { font-size: .88rem; color: var(--grey); line-height: 1.75; }

/* ─── PORTFOLIO GRID ─── */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.portfolio-item {
  background: var(--bg-card); aspect-ratio: 4/3;
  position: relative; overflow: hidden; cursor: pointer;
}
.portfolio-item.featured { grid-column: span 2; aspect-ratio: 16/9; }
.portfolio-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e1e1e 0%, #111 100%); transition: transform .4s ease;
}
.portfolio-item:hover .portfolio-bg { transform: scale(1.04); }
.portfolio-placeholder {
  font-family: var(--font); font-weight: 900; font-size: 3rem;
  color: var(--border); letter-spacing: .1em; text-transform: uppercase;
}
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.4rem; opacity: 0; transition: opacity .3s;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-top-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.portfolio-item:hover .portfolio-top-bar { transform: scaleX(1); }
.portfolio-tag {
  font-family: var(--font); font-weight: 700; font-size: .7rem;
  letter-spacing: .15em; text-transform: uppercase; color: var(--lime); margin-bottom: .3rem;
}
.portfolio-title-item {
  font-family: var(--font); font-weight: 900; font-size: 1rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--white);
}

/* ─── CONTACT ─── */
.contact-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.contact-rows { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2rem; }
.contact-row { display: flex; align-items: center; gap: 1rem; }
.contact-icon {
  width: 44px; height: 44px; background: var(--lime);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem; color: #000;
}
.contact-row-label {
  font-family: var(--font); font-weight: 700; font-size: .7rem;
  letter-spacing: .15em; text-transform: uppercase; color: var(--grey-dim);
}
.contact-row-val { font-family: var(--font); font-weight: 700; font-size: 1.05rem; color: var(--white); }
.contact-row-val a { color: var(--white); text-decoration: none; }
.contact-row-val a:hover { color: var(--lime); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
label {
  font-family: var(--font); font-weight: 700; font-size: .75rem;
  letter-spacing: .15em; text-transform: uppercase; color: var(--grey-dim);
}
input, textarea, select {
  background: var(--bg-card); border: 1px solid var(--border); border-bottom-color: #444;
  color: var(--white); font-family: var(--font-body); font-size: .9rem;
  padding: .75rem 1rem; outline: none; transition: border-color .2s; width: 100%; -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--lime); }
textarea { resize: vertical; min-height: 110px; }
select option { background: var(--bg-card); }
.form-submit {
  font-family: var(--font); font-weight: 900; font-size: 1rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: #000; background: var(--lime); border: none;
  padding: 1rem 2.5rem; cursor: pointer; align-self: flex-start; transition: background .2s;
}
.form-submit:hover { background: var(--lime-dark); }
.form-note { font-size: .78rem; color: var(--grey-dim); }
.form-msg {
  display: none; padding: .9rem 1.2rem;
  border-left: 3px solid var(--lime); background: rgba(170,238,0,.07);
  font-size: .88rem; color: var(--white);
}
.form-msg.error { border-color: #e03; background: rgba(238,0,51,.07); }

/* ─── PROCES ─── */
.proces-list { display: flex; flex-direction: column; max-width: 680px; }
.proces-item { border-top: 2px solid var(--lime); padding: 2rem 0 2.5rem; }
.proces-num {
  font-family: var(--font); font-weight: 900; font-size: 5.5rem;
  color: var(--white); line-height: 1; margin-bottom: .4rem;
}
.proces-name {
  font-family: var(--font); font-weight: 800; font-size: 1.15rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--white); margin-bottom: .4rem;
}
.proces-desc { font-size: .93rem; color: var(--grey); line-height: 1.7; }

/* ─── CTA STRIP ─── */
.cta-strip {
  background: var(--lime); padding: 60px 5vw;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-strip-title {
  font-family: var(--font); font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1; text-transform: uppercase; color: #000;
}
.cta-strip-sub { font-size: .95rem; color: rgba(0,0,0,.6); margin-top: .4rem; }
.btn-black {
  font-family: var(--font); font-weight: 900; font-size: 1rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); background: #000; border: none;
  padding: 1rem 2.5rem; cursor: pointer; text-decoration: none;
  display: inline-block; white-space: nowrap; transition: background .2s;
  flex-shrink: 0;
}
.btn-black:hover { background: #222; }

/* ─── O NAS BOX ─── */
.onas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.onas-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-top: 3px solid var(--lime); aspect-ratio: 4/5;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.onas-big {
  font-family: var(--font); font-weight: 900; font-size: 7rem;
  color: var(--border); line-height: 1; text-align: center; text-transform: uppercase;
}
.onas-badge {
  position: absolute; bottom: -1rem; right: -1rem;
  width: 110px; height: 110px; background: var(--lime);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.onas-badge-num { font-family: var(--font); font-weight: 900; font-size: 2.6rem; color: #000; line-height: 1; }
.onas-badge-txt {
  font-family: var(--font); font-weight: 700; font-size: .6rem;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(0,0,0,.65); text-align: center;
}
.onas-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.onas-list li {
  display: flex; align-items: flex-start; gap: .8rem;
  font-size: .93rem; color: var(--grey); line-height: 1.5;
}
.onas-list li::before { content: '→'; color: var(--lime); font-family: var(--font); font-weight: 700; flex-shrink: 0; }

/* ─── USŁUGA DETAIL ─── */
.service-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.service-features { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.feature-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.2rem 1.5rem; background: var(--bg-card);
  border: 1px solid var(--border); border-left: 3px solid var(--lime);
}
.feature-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.feature-name {
  font-family: var(--font); font-weight: 900; font-size: 1rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--white); margin-bottom: .3rem;
}
.feature-desc { font-size: .85rem; color: var(--grey); line-height: 1.6; }

.service-visual {
  background: var(--bg-card); border: 1px solid var(--border);
  border-top: 3px solid var(--lime); aspect-ratio: 4/5;
  display: flex; align-items: center; justify-content: center;
  position: sticky; top: 90px;
}
.service-visual-text {
  font-family: var(--font); font-weight: 900; font-size: 7rem;
  color: var(--border); text-align: center; line-height: 1;
  text-transform: uppercase;
}

/* ─── FOOTER ─── */
footer {
  background: #111; border-top: 2px solid var(--lime); padding: 2.5rem 5vw;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.footer-logo-box {
  background: var(--lime); width: 46px; height: 46px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; padding: 3px 4px; text-decoration: none;
}
.footer-logo-box .l1 { font-family: var(--font); font-weight: 900; font-size: .78rem; color: #000; line-height: 1; }
.footer-logo-box .l2 { font-family: var(--font); font-weight: 700; font-size: .52rem; color: #000; line-height: 1; }
.footer-logo-box .l3 { font-family: var(--font); font-weight: 900; font-size: .95rem; color: #000; line-height: 1; }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
  font-family: var(--font); font-weight: 700; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--grey-dim); text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: var(--lime); }
.footer-social { display: flex; gap: .8rem; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-dim); text-decoration: none; font-size: .85rem;
  font-weight: bold; transition: border-color .2s, color .2s;
}
.footer-social a:hover { border-color: var(--lime); color: var(--lime); }
.footer-copy {
  font-family: var(--font); font-weight: 600; font-size: .82rem;
  color: var(--grey-dim); letter-spacing: .04em;
}

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .onas-grid, .contact-section, .service-detail-grid { grid-template-columns: 1fr; gap: 3rem; }
  .onas-box { display: none; }
  .service-visual { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-item.featured { grid-column: span 2; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item.featured { grid-column: span 1; aspect-ratio: 4/3; }
  section { padding: 60px 5vw; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { display: none; }
}
