:root {
  color-scheme: light;
  --ink: #171b19;
  --ink-soft: #272e2a;
  --paper: #f3f3ec;
  --paper-deep: #e8e9df;
  --lime: #d9fa55;
  --muted: #737972;
  --line: rgba(23, 27, 25, .17);
  --font-display: 'Manrope', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
.section-pad { padding-block: 112px; }

.site-header { position: absolute; z-index: 5; inset: 0 0 auto; color: white; border-bottom: 1px solid rgba(255,255,255,.18); }
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid var(--lime); font: 800 20px var(--font-display); color: var(--lime); line-height: 1; }
.brand-mark span { position: absolute; transform: translate(11px, -9px); font-size: 11px; }
.brand-name { font: 800 16px/1.1 var(--font-display); letter-spacing: 0; }
.brand-name > span { display: block; margin-top: 5px; font: 600 8px/1 var(--font-body); letter-spacing: 1.1px; }
.nav-links { display: flex; align-items: center; gap: 38px; font-size: 13px; font-weight: 600; }
.nav-links > a:not(.nav-contact) { color: rgba(255,255,255,.8); transition: color .2s ease; }
.nav-links > a:hover { color: var(--lime); }
.nav-contact { padding: 10px 14px; border: 1px solid rgba(255,255,255,.45); }
.nav-contact span { margin-left: 8px; color: var(--lime); }
.nav-toggle { display: none; }

.hero { position: relative; min-height: 690px; min-height: min(780px, 100svh); display: flex; align-items: center; overflow: hidden; background: #202622; color: white; }
.hero-photo, .hero-shade { position: absolute; inset: 0; }
.hero-photo { background: url('../images/realizacje/praca-elektryka.jpg') center 48% / cover; transform: scale(1.02); }
.hero-shade { background: linear-gradient(90deg, rgba(12,17,14,.9) 0%, rgba(12,17,14,.67) 45%, rgba(12,17,14,.2) 100%), linear-gradient(0deg, rgba(12,17,14,.48), transparent 35%); }
.hero-content { position: relative; z-index: 1; padding-top: 75px; }
.eyebrow { margin: 0 0 23px; color: var(--lime); font: 700 10px/1.4 var(--font-body); letter-spacing: 1.15px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(217,250,85,.14); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 760px; margin-bottom: 22px; font: 600 clamp(58px, 8vw, 104px)/.99 var(--font-display); letter-spacing: 0; }
.hero h1 em, .approach h2 em { color: var(--lime); font-style: normal; }
.hero-copy { max-width: 430px; margin-bottom: 30px; color: rgba(255,255,255,.78); font-size: 16px; }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 0 19px; border: 1px solid transparent; font-size: 12px; font-weight: 700; transition: background .2s ease, color .2s ease, transform .2s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button-lime { background: var(--lime); color: var(--ink); }
.button-lime:hover { background: white; }
.button span { font-size: 17px; line-height: 1; }
.text-link { color: white; font-size: 12px; font-weight: 600; }
.text-link span { padding-left: 7px; color: var(--lime); }
.hero-index { position: absolute; right: 32px; bottom: 35px; z-index: 1; display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,.68); font: 600 9px var(--font-body); letter-spacing: .7px; }
.index-line { width: 56px; height: 1px; background: var(--lime); }
.hero-scroll { position: absolute; bottom: 27px; left: 50%; color: var(--lime); font-size: 23px; }

.eyebrow-dark { color: #67732f; }
.intro { background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: .7fr 1.6fr .65fr; column-gap: 42px; align-items: start; }
.intro-grid > .eyebrow { padding-top: 13px; }
h2 { margin-bottom: 19px; font: 600 clamp(34px, 4.3vw, 55px)/1.08 var(--font-display); letter-spacing: 0; }
.intro h2 span, .section-heading h2 span, .contact h2 span { color: #828a70; }
.intro-copy { max-width: 560px; margin-bottom: 0; color: #5d635d; font-size: 15px; }
.intro-note { align-self: end; padding: 18px 0 0 17px; border-left: 1px solid #a6ad8c; }
.note-mark { color: #747d51; font-size: 22px; }
.intro-note p { margin: 8px 0 0; font: 600 13px/1.6 var(--font-display); }

.services { background: var(--paper-deep); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 47px; }
.section-heading .eyebrow { margin-bottom: 17px; }
.section-heading h2 { margin: 0; }
.section-heading > p { max-width: 330px; margin: 0 0 5px; color: #616861; font-size: 14px; }
.service-grid { border-top: 1px solid var(--line); }
.service-item { display: grid; grid-template-columns: 62px 1fr 28px; gap: 20px; align-items: start; padding: 27px 5px 26px 0; border-bottom: 1px solid var(--line); transition: padding .22s ease; }
.service-item:hover { padding-left: 10px; }
.service-number { padding-top: 4px; color: #858b7f; font: 600 11px var(--font-body); }
.service-item h3 { margin-bottom: 7px; font: 700 19px var(--font-display); }
.service-item p { max-width: 690px; margin-bottom: 12px; color: #626961; font-size: 13px; }
.service-tags { color: #707768; font: 600 9px var(--font-body); letter-spacing: .65px; }
.service-tags i { margin: 0 5px; color: #9bad43; font-style: normal; }
.service-arrow { color: #7c8644; font-size: 18px; }

.showcase { background: var(--paper); }
.showcase-heading { margin-bottom: 35px; }
.showcase-heading > p { max-width: 365px; }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, 220px); grid-auto-rows: 230px; gap: 12px; }
.project-card { position: relative; grid-column: span 5; min-width: 0; margin: 0; overflow: hidden; background: #353b35; color: white; }
.project-card--feature { grid-column: span 7; grid-row: span 2; }
.project-card--wide { grid-column: 1 / -1; }
.project-preview { position: absolute; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: inherit; cursor: zoom-in; }
.project-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.project-card:hover img { transform: scale(1.035); }
.project-preview:focus-visible { outline: 3px solid var(--lime); outline-offset: -5px; }
.preview-indicator { position: absolute; top: 14px; right: 14px; display: grid; width: 34px; aspect-ratio: 1; place-items: center; border: 1px solid rgba(255,255,255,.7); background: rgba(23,27,25,.68); color: white; font-size: 17px; }
.project-card--feature img { object-position: 43% center; }
.project-card--wide img { object-position: center 54%; }
.project-card::after { position: absolute; inset: 25% 0 0; background: linear-gradient(0deg, rgba(10,14,11,.8), transparent); content: ''; pointer-events: none; }
.project-card figcaption { position: absolute; z-index: 1; inset: auto 21px 18px; display: grid; gap: 4px; }
.project-card figcaption span { color: var(--lime); font: 700 9px var(--font-body); letter-spacing: .9px; }
.project-card figcaption strong { font: 700 16px var(--font-display); }
.gallery-note { margin: 14px 0 0; color: var(--muted); font-size: 10px; }
.photo-dialog { position: fixed; width: min(94vw, 1180px); max-width: none; max-height: 94svh; padding: 28px 22px 20px; overflow: auto; border: 1px solid rgba(255,255,255,.2); background: var(--ink); color: white; }
.photo-dialog::backdrop { background: rgba(8,12,9,.88); backdrop-filter: blur(4px); }
.photo-dialog figure { display: grid; justify-items: center; gap: 12px; margin: 0; }
.photo-dialog img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(94svh - 90px); object-fit: contain; }
.photo-dialog figcaption { color: rgba(255,255,255,.82); font: 600 13px var(--font-display); text-align: center; }
.photo-dialog-close { position: absolute; z-index: 1; top: 8px; right: 8px; display: grid; width: 38px; aspect-ratio: 1; place-items: center; border: 1px solid rgba(255,255,255,.42); background: var(--ink); color: white; font-size: 25px; line-height: 1; cursor: pointer; }
.photo-dialog-close:hover { border-color: var(--lime); color: var(--lime); }
.photo-dialog-close:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

.approach { background: var(--ink); color: white; }
.approach-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 12%; }
.approach h2 { margin-bottom: 21px; font-size: clamp(42px, 5vw, 64px); }
.approach-lead { max-width: 290px; color: rgba(255,255,255,.62); font-size: 14px; }
.steps { padding-top: 13px; }
.step { display: grid; grid-template-columns: 47px 1fr; gap: 12px; padding: 0 0 27px; margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,.2); }
.step > span { color: var(--lime); font: 600 11px var(--font-body); }
.step h3 { margin-bottom: 7px; font: 700 16px var(--font-display); }
.step p { max-width: 430px; margin-bottom: 0; color: rgba(255,255,255,.62); font-size: 12px; }
.button-outline { margin-top: 4px; border-color: rgba(255,255,255,.55); color: white; }
.button-outline:hover { border-color: var(--lime); color: var(--lime); }

.contact { background: var(--lime); }
.contact-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 13%; }
.contact .eyebrow { color: #596522; }
.contact h2 { margin-bottom: 19px; font-size: clamp(45px, 6vw, 72px); }
.contact h2 span { color: #66733a; }
.contact-copy > p:not(.eyebrow) { max-width: 400px; color: #41482d; font-size: 14px; }
.contact-details { display: flex; flex-wrap: wrap; gap: 25px 37px; margin-top: 40px; }
.contact-details a, .contact-details p { display: grid; gap: 4px; margin: 0; }
.contact-details span { color: #5d6735; font: 700 9px var(--font-body); letter-spacing: .8px; }
.contact-details strong { font: 700 13px var(--font-display); }
.contact-form { padding-top: 5px; }
.contact-form label { display: block; margin: 0 0 6px; color: #363d25; font-size: 11px; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; margin-bottom: 18px; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(23,27,25,.38); border-radius: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(23,27,25,.48); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #343c34; }
.form-note { margin: 11px 0 0; color: #525a3c; font-size: 10px; }
.form-status { min-height: 1.3em; margin: 4px 0 0; color: #343c21; font-size: 12px; }

.footer { padding-block: 29px; background: var(--ink); color: white; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 12px 25px; }
.footer-brand .brand-mark { width: 33px; height: 33px; }
.footer-inner > p { margin: 0; color: rgba(255,255,255,.55); font-size: 11px; }
.back-top { justify-self: end; color: var(--lime); font: 700 9px var(--font-body); }
.footer small { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.46); font-size: 9px; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 40px, var(--wrap)); }
  .section-pad { padding-block: 78px; }
  .site-header { position: absolute; }
  .nav { min-height: 70px; }
  .nav-toggle { width: 42px; height: 42px; display: grid; align-content: center; justify-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: white; }
  .nav-toggle span { width: 17px; height: 1px; background: currentColor; transition: transform .2s ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-links { position: absolute; top: 69px; inset-inline: 0; display: none; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--ink); }
  .nav-links.is-open { display: flex; flex-direction: column; }
  .nav-links > a:not(.nav-contact) { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .nav-contact { align-self: flex-start; margin-top: 14px; }
  .hero { min-height: 690px; min-height: 92svh; }
  .hero-photo { background-position: 48% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(12,17,14,.86), rgba(12,17,14,.32)), linear-gradient(0deg, rgba(12,17,14,.55), transparent 50%); }
  .hero-content { padding-top: 73px; }
  .hero h1 { font-size: clamp(57px, 14vw, 84px); }
  .hero-copy { max-width: 370px; font-size: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero-index { right: 20px; bottom: 23px; font-size: 8px; }
  .hero-scroll { display: none; }
  .intro-grid { grid-template-columns: 1fr; gap: 18px; }
  .intro-grid > .eyebrow { padding: 0; }
  .intro h2 { font-size: clamp(36px, 9vw, 50px); }
  .intro-note { max-width: 260px; margin-top: 12px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 32px; }
  .section-heading h2 { font-size: 44px; }
  .section-heading > p { max-width: 440px; }
  .service-item { grid-template-columns: 31px 1fr 18px; gap: 10px; padding-block: 23px; }
  .service-item h3 { font-size: 17px; }
  .service-item p { font-size: 12px; }
  .service-tags { font-size: 8px; line-height: 1.8; }
  .showcase-heading { margin-bottom: 27px; }
  .project-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 240px; gap: 10px; }
  .project-card, .project-card--feature, .project-card--wide { grid-column: auto; grid-row: auto; }
  .project-card--feature { grid-row: span 1; }
  .project-card figcaption { inset-inline: 15px; bottom: 15px; }
  .project-card--feature img { object-position: 43% center; }
  .approach-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .approach h2 { font-size: 52px; }
  .contact h2 { font-size: 58px; }
  .contact-details { gap: 20px 28px; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner > p { grid-row: 2; }
  .back-top { grid-column: 2; grid-row: 1; }
  .footer small { grid-row: 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}