:root {
  --ink: #111411;
  --ink-2: #252923;
  --paper: #f3f1ea;
  --paper-2: #e8e5db;
  --white: #fffef9;
  --accent: #dfff39;
  --muted: #73776f;
  --line: rgba(17,20,17,.16);
  --line-light: rgba(255,255,255,.19);
  --body: "Manrope", Arial, sans-serif;
  --display: "Syne", Arial, sans-serif;
  --container: 1240px;
  --header: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { color: var(--ink); background: var(--accent); }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { padding: 140px 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; color: var(--ink); background: var(--accent); transform: translateY(-160%); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; letter-spacing: -.035em; }
h1 { max-width: 980px; margin-bottom: 30px; color: var(--white); font-size: clamp(3.4rem,7.7vw,7.4rem); }
h2 { margin-bottom: 40px; font-size: clamp(2.6rem,5vw,5rem); }
h2 em, h1 em { color: var(--accent); font-style: normal; font-weight: inherit; }
h3 { font-size: clamp(1.35rem,2vw,1.8rem); }
.eyebrow { margin-bottom: 24px; font-size: .72rem; font-weight: 700; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
.eyebrow-light { color: rgba(255,255,255,.62); }

.button { display: inline-flex; min-height: 58px; align-items: center; justify-content: center; gap: 24px; padding: 0 25px; border: 1px solid var(--accent); border-radius: 2px; color: var(--ink); background: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .055em; line-height: 1.2; text-transform: uppercase; transition: .22s ease; }
.button:hover { background: var(--white); border-color: var(--white); transform: translateY(-2px); }
.button svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.button-small { min-height: 44px; padding: 0 18px; font-size: .68rem; }
.button-dark { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button-dark:hover { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.button-light { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 16px; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: .18s ease; }
.text-link:hover { color: #637500; gap: 22px; }
.text-link-light { color: var(--white); }
.text-link-light:hover { color: var(--accent); }
.section-label { display: flex; align-items: flex-start; gap: 14px; padding-top: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section-label span { color: #7a7e75; }
.section-label p { margin: 0; }
.section-label-light { color: var(--white); }
.section-label-light span { color: rgba(255,255,255,.44); }
.section-heading { display: grid; grid-template-columns: 25% 1fr; margin-bottom: 72px; }
.section-heading > div:last-child { max-width: 930px; }

.site-header { position: fixed; z-index: 100; top: 0; right: 0; left: 0; height: var(--header); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.18); transition: .22s ease; }
.site-header.is-scrolled { height: 72px; color: var(--ink); background: rgba(243,241,234,.94); border-bottom-color: var(--line); box-shadow: 0 8px 40px rgba(0,0,0,.06); backdrop-filter: blur(14px); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.brand-mark { display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; color: var(--ink); background: var(--accent); font-family: var(--display); font-size: .83rem; font-weight: 700; letter-spacing: -.08em; transform: skew(-7deg); }
.brand-mark span { margin-left: -.22em; color: rgba(17,20,17,.52); }
.brand-name { font-family: var(--display); font-size: .8rem; letter-spacing: .06em; line-height: 1.1; }
.brand-name strong { display: block; color: var(--accent); }
.site-header.is-scrolled .brand-name strong { color: #718700; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px,2.4vw,38px); }
.main-nav a { position: relative; font-size: .69rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.main-nav a::after { position: absolute; right: 0; bottom: -9px; left: 0; height: 1px; content: ""; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.language-switch { display: flex; align-items: center; gap: 5px; font-size: .66rem; font-weight: 700; }
.language-switch > span { opacity: .4; }
.language-button { padding: 3px; border: 0; opacity: .48; background: transparent; cursor: pointer; }
.language-button:hover, .language-button.is-active { opacity: 1; color: var(--accent); }
.site-header.is-scrolled .language-button.is-active { color: #6f8500; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid currentColor; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; transition: transform .18s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.hero { position: relative; min-height: 800px; height: max(760px,100svh); display: flex; align-items: center; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; background: url("https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?auto=format&fit=crop&w=2200&q=90") center 55%/cover; animation: heroZoom 16s ease-out both; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(11,14,11,.91),rgba(11,14,11,.64) 47%,rgba(11,14,11,.2)),linear-gradient(0deg,rgba(11,14,11,.58),transparent 43%); }
.hero-content { position: relative; z-index: 1; padding-top: 95px; }
.hero-eyebrow { display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,.73); }
.hero-eyebrow > span:first-child { width: 28px; height: 2px; background: var(--accent); }
.hero-lead { max-width: 590px; margin-bottom: 40px; color: rgba(255,255,255,.72); font-size: clamp(1rem,1.4vw,1.18rem); }
.hero-actions { display: flex; align-items: center; gap: 34px; }
.hero-bottom { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3,1fr) 1.15fr; border-top: 1px solid rgba(255,255,255,.2); color: var(--white); }
.hero-stat { min-height: 96px; display: flex; align-items: center; gap: 14px; border-right: 1px solid rgba(255,255,255,.2); }
.hero-stat strong { font-family: var(--display); font-size: 1.35rem; }
.hero-stat span { max-width: 90px; color: rgba(255,255,255,.55); font-size: .65rem; line-height: 1.35; text-transform: uppercase; }
.scroll-cue { display: flex; align-items: center; justify-content: flex-end; gap: 18px; color: rgba(255,255,255,.66); font-size: .67rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.scroll-line { position: relative; width: 62px; height: 1px; overflow: hidden; background: rgba(255,255,255,.35); }
.scroll-line::after { position: absolute; inset: 0; content: ""; background: var(--accent); animation: scrollLine 2.2s ease-in-out infinite; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes scrollLine { 0% { transform: translateX(-100%); } 55%,100% { transform: translateX(100%); } }

.intro { overflow: hidden; }
.intro-grid { display: grid; grid-template-columns: 25% 1fr; }
.intro-copy { max-width: 970px; }
.intro-copy h2 em, .projects h2 em, .process h2 em { color: #839b00; }
.intro-text-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; color: var(--muted); }
.intro-text-grid p { margin-bottom: 30px; }
.about-visual { position: relative; margin-top: 90px; }
.about-image { height: min(62vw,690px); margin: 0 9% 0 0; overflow: hidden; }
.about-image img { height: 100%; object-fit: cover; transition: transform .8s ease; }
.about-image:hover img { transform: scale(1.025); }
.about-note { position: absolute; right: 0; bottom: -42px; width: min(340px,32vw); min-height: 215px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; background: var(--accent); }
.about-note .note-icon { font-size: 1.7rem; }
.about-note p { margin: 0; font-family: var(--display); font-size: clamp(1.1rem,2vw,1.5rem); line-height: 1.25; }

.services { color: var(--white); background: var(--ink); }
.services h2 { color: var(--white); }
.services-list { border-top: 1px solid var(--line-light); }
.service-item { display: grid; min-height: 176px; grid-template-columns: 8% 13% 1fr auto; align-items: center; gap: 22px; border-bottom: 1px solid var(--line-light); transition: .22s ease; }
.service-item:hover { padding-inline: 18px; background: rgba(255,255,255,.035); }
.service-number { align-self: start; padding-top: 30px; color: rgba(255,255,255,.35); font-size: .65rem; }
.service-icon { display: grid; width: 70px; height: 70px; place-items: center; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; transition: .22s ease; }
.service-icon svg { width: 35px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.2; }
.service-item:hover .service-icon { color: var(--ink); border-color: var(--accent); background: var(--accent); }
.service-copy { display: grid; grid-template-columns: minmax(260px,.85fr) 1fr; align-items: center; gap: 50px; }
.service-copy h3 { margin: 0; }
.service-copy p { max-width: 490px; margin: 0; color: rgba(255,255,255,.56); font-size: .9rem; }
.service-arrow { color: var(--accent); font-size: 1.6rem; transition: transform .22s ease; }
.service-item:hover .service-arrow { transform: translate(4px,4px); }

.projects { background: var(--white); }
.project-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
.project-card { position: relative; min-height: 390px; overflow: hidden; background: var(--ink); }
.project-card-large { grid-row: span 2; min-height: 802px; }
.project-card img { height: 100%; object-fit: cover; opacity: .88; transition: .7s ease; }
.project-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg,rgba(7,9,7,.78),transparent 57%); }
.project-card:hover img { opacity: 1; transform: scale(1.04); }
.project-overlay { position: absolute; z-index: 1; right: 28px; bottom: 28px; left: 28px; color: var(--white); }
.project-overlay span { display: block; margin-bottom: 9px; color: var(--accent); font-size: .63rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.project-overlay h3 { margin: 0; font-size: clamp(1.2rem,2vw,1.7rem); }
.project-disclaimer { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--muted); font-size: .68rem; }
.project-disclaimer span { color: #9eb700; font-size: .5rem; }
.project-disclaimer p { margin: 0; }

.process { background: var(--paper-2); }
.process-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(70px,10vw,150px); align-items: start; }
.process-sticky { position: sticky; top: 125px; }
.process-sticky .section-label { margin-bottom: 75px; }
.process-sticky > p:not(.eyebrow) { max-width: 470px; margin-bottom: 35px; color: var(--muted); }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-step { display: grid; min-height: 190px; grid-template-columns: 70px 1fr; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.process-step > span { align-self: start; padding-top: 32px; color: #8c9087; font-size: .67rem; font-weight: 700; }
.process-step h3 { margin: 0 0 13px; padding-bottom: .12em; line-height: 1.24; }
.process-step p { max-width: 470px; margin: 0; color: var(--muted); font-size: .9rem; }

.testimonials { overflow: hidden; color: var(--white); background: #242921; }
.testimonials-wrap { display: grid; grid-template-columns: 26% 1fr; }
.quote-mark { margin-top: -52px; color: var(--accent); font-family: Georgia,serif; font-size: clamp(8rem,19vw,18rem); line-height: 1; }
.testimonial-copy { max-width: 850px; }
.testimonial-copy blockquote { margin: 60px 0 36px; color: rgba(255,255,255,.79); font-size: clamp(1.15rem,2.1vw,1.65rem); font-weight: 500; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 15px; }
.author-avatar { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--accent); font-size: .68rem; font-weight: 700; }
.testimonial-author strong, .testimonial-author span { display: block; }
.testimonial-author strong { font-size: .8rem; }
.testimonial-author div span { color: rgba(255,255,255,.48); font-size: .67rem; }
.placeholder-note { margin: 25px 0 0 60px; color: rgba(255,255,255,.32); font-size: .62rem; }

.contact { padding: 140px 0; color: var(--white); background: var(--ink); }
.contact-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(70px,10vw,150px); }
.contact-copy .section-label { margin-bottom: 85px; }
.contact-copy > p:not(.eyebrow):not(.contact-meta) { max-width: 475px; color: rgba(255,255,255,.58); }
.contact-email { display: inline-flex; align-items: center; gap: 13px; margin-top: 25px; padding-bottom: 4px; border-bottom: 1px solid var(--accent); color: var(--accent); font-family: var(--display); font-size: clamp(1rem,1.8vw,1.35rem); }
.contact-meta { margin-top: 18px; color: rgba(255,255,255,.35); font-size: .68rem; }
.contact-form { align-self: end; padding-top: 80px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: block; margin-bottom: 27px; }
.field > span { display: block; margin-bottom: 8px; color: rgba(255,255,255,.61); font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.32); border-radius: 0; outline: none; color: var(--white); background: transparent; font-size: .92rem; transition: border-color .18s ease; }
.field textarea { min-height: 100px; resize: vertical; }
.field select { color-scheme: dark; cursor: pointer; }
.field select option { color: var(--white); background: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.3); }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--accent); }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 27px; color: rgba(255,255,255,.48); font-size: .67rem; cursor: pointer; }
.consent input { width: 15px; height: 15px; margin-top: 3px; accent-color: var(--accent); }
.form-submit { width: 100%; cursor: pointer; }
.form-note, .form-status { margin: 10px 0 0; color: rgba(255,255,255,.4); font-size: .64rem; text-align: center; }
.form-status { min-height: 22px; color: var(--accent); }

.site-footer { color: var(--white); background: #090b09; }
.footer-top { min-height: 210px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 40px; }
.brand-footer .brand-name strong { color: var(--accent); }
.footer-top > p { margin: 0; color: rgba(255,255,255,.48); font-size: .83rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 30px; }
.footer-links a { font-size: .69rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--accent); }
.footer-bottom { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.33); font-size: .61rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-transform: uppercase; }

.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease,transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

@media (max-width:1060px) {
  .main-nav { gap: 16px; }
  .main-nav a { font-size: .61rem; }
  .nav-cta { display: none; }
  .hero-bottom { grid-template-columns: repeat(3,1fr); }
  .scroll-cue { display: none; }
  .service-copy { grid-template-columns: 1fr; gap: 9px; }
}
@media (max-width:800px) {
  :root { --header: 72px; }
  .container { width: min(calc(100% - 32px),var(--container)); }
  .section, .contact { padding: 92px 0; }
  h1 { font-size: clamp(3rem,13vw,5.5rem); }
  h2 { font-size: clamp(2.35rem,10vw,4rem); }
  .main-nav { position: fixed; top: 72px; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding: 40px 34px; color: var(--white); background: rgba(17,20,17,.98); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .2s ease; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { font-family: var(--display); font-size: clamp(1.8rem,8vw,3rem); letter-spacing: -.03em; text-transform: none; }
  .menu-toggle { display: block; }
  .site-header.is-scrolled .main-nav { color: var(--white); }
  .hero { min-height: 760px; height: 100svh; }
  .hero-media { background-position: 62% center; }
  .hero-overlay { background: linear-gradient(90deg,rgba(11,14,11,.91),rgba(11,14,11,.42)),linear-gradient(0deg,rgba(11,14,11,.7),transparent 55%); }
  .hero-content { padding-top: 50px; }
  .hero-bottom { grid-template-columns: repeat(3,1fr); }
  .hero-stat { min-height: 78px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
  .section-heading, .intro-grid { grid-template-columns: 1fr; gap: 45px; }
  .section-heading { margin-bottom: 48px; }
  .intro-text-grid { gap: 35px; }
  .about-image { height: 75vw; margin-right: 0; }
  .about-note { right: 18px; bottom: -50px; width: min(330px,70vw); min-height: 170px; }
  .service-item { grid-template-columns: 50px 80px 1fr auto; }
  .service-copy { display: block; }
  .service-copy h3 { margin-bottom: 12px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card, .project-card-large { min-height: 62vw; grid-row: auto; }
  .process-grid, .contact-grid { grid-template-columns: 1fr; gap: 70px; }
  .process-sticky { position: static; }
  .testimonials-wrap { grid-template-columns: 100px 1fr; }
  .contact-form { padding-top: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 55px 0; }
  .footer-links { grid-column: 1/-1; }
}
@media (max-width:560px) {
  .container { width: min(calc(100% - 24px),var(--container)); }
  .brand-name { display: none; }
  .nav-actions { gap: 10px; }
  .hero { min-height: 720px; }
  .hero-content { padding-bottom: 70px; }
  .hero h1 br { display: none; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 23px; }
  .hero-actions .button { width: 100%; }
  .hero-bottom { display: none; }
  .intro-text-grid { grid-template-columns: 1fr; }
  .about-image { height: 105vw; }
  .about-note { position: relative; right: auto; bottom: auto; width: calc(100% - 30px); margin: -55px 0 0 30px; }
  .service-item { min-height: auto; grid-template-columns: 48px 1fr auto; gap: 14px; padding: 28px 0; }
  .service-number { display: none; }
  .service-icon { width: 48px; height: 48px; }
  .service-icon svg { width: 25px; }
  .project-card, .project-card-large { min-height: 112vw; }
  .process-step { min-height: 170px; grid-template-columns: 42px 1fr; gap: 12px; }
  .testimonials-wrap { grid-template-columns: 1fr; }
  .quote-mark { height: 90px; margin: -25px 0 0; font-size: 9rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-email { font-size: .94rem; overflow-wrap: anywhere; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-links { grid-column: auto; }
  .footer-bottom { min-height: 120px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsywność i zgodność między przeglądarkami ---------- */
html {
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body { max-width: 100%; }
img { max-width: 100%; height: auto; }
svg { max-width: 100%; }

/* Fallback dla przeglądarek bez obsługi funkcji min() w szerokości. */
.container {
  width: calc(100% - 48px);
  max-width: var(--container);
  margin-right: auto;
  margin-left: auto;
}

.site-header.is-scrolled {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Stałe pole inicjałów zapobiega jego kurczeniu i ucinaniu tekstu. */
.testimonials { overflow: visible; }
.testimonials-wrap,
.testimonial-copy,
.testimonial-author > div { min-width: 0; }
.testimonial-author { max-width: 100%; }
.author-avatar {
  display: inline-flex;
  flex: 0 0 45px;
  width: 45px;
  min-width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  overflow: visible;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}
.testimonial-author > div { overflow-wrap: anywhere; }

.section-heading > *,
.intro-grid > *,
.service-item > *,
.service-copy > *,
.project-grid > *,
.process-grid > *,
.process-step > *,
.contact-grid > *,
.footer-top > * { min-width: 0; }

.language-button {
  min-width: 32px;
  min-height: 44px;
  touch-action: manipulation;
}
.button,
.menu-toggle,
.main-nav a { touch-action: manipulation; }

.main-nav { overflow-y: auto; }
.field input,
.field textarea,
.field select { max-width: 100%; }

/* 100vh jest fallbackiem dla starszych Safari; svh poprawia widok z paskiem adresu. */
.hero {
  height: auto;
  min-height: 800px;
  min-height: max(760px, 100vh);
  min-height: max(760px, 100svh);
}

@media (max-width: 800px) {
  .container { width: calc(100% - 32px); }
  .hero {
    height: auto;
    min-height: 760px;
    min-height: max(760px, 100vh);
    min-height: max(760px, 100svh);
  }
  .testimonial-copy { width: 100%; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 24px); }
  .hero {
    min-height: 720px;
    min-height: max(720px, 100vh);
    min-height: max(720px, 100svh);
  }
  .testimonial-author { align-items: flex-start; }
  .placeholder-note { overflow-wrap: anywhere; }
}

/* Najwęższe popularne telefony (320–359 px). */
@media (max-width: 359px) {
  .section,
  .contact { padding-block: 76px; }
  h1 { font-size: 2.65rem; }
  h2 { font-size: 2.1rem; }
  .button { gap: 12px; padding-inline: 16px; }
  .hero-eyebrow { gap: 8px; }
  .hero-eyebrow > span:first-child { width: 20px; flex: 0 0 20px; }
  .service-item { grid-template-columns: 44px minmax(0, 1fr); }
  .service-arrow { display: none; }
  .process-step { grid-template-columns: 34px minmax(0, 1fr); }
  .project-overlay { right: 16px; bottom: 16px; left: 16px; }
}

/* Niskie ekrany w orientacji poziomej. */
@media (max-width: 900px) and (max-height: 640px) and (orientation: landscape) {
  .hero {
    min-height: 640px;
    min-height: max(640px, 100vh);
    min-height: max(640px, 100svh);
  }
  .main-nav { justify-content: flex-start; padding-top: 56px; padding-bottom: 32px; }
}

/* Na urządzeniach dotykowych nie pozostawiamy efektów hover po tapnięciu. */
@media (hover: none) {
  .button:hover,
  .about-image:hover img,
  .project-card:hover img { transform: none; }
  .service-item:hover { padding-inline: 0; background: transparent; }
}

/* Firefox: inicjały są osobnym elementem flex, więc metryki fontu nie wychodzą poza kółko. */
.author-avatar { font-size: 0; }
.author-avatar::before {
  content: "AK";
  display: block;
  flex: none;
  font-size: .9rem;
  line-height: 1.5;
}

/* Końcowe nadpisania: wyższa specyficzność utrzymuje centrowanie inicjałów. */
.testimonial-author .author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Filtr na stałym nagłówku zmienia blok odniesienia position: fixed w części silników. */
@media (max-width: 800px) {
  .site-header.is-scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Kontakt: długi nagłówek nie może wchodzić na formularz. */
@media (min-width: 801px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(48px, 6vw, 90px);
  }
  .contact-copy h2 { font-size: clamp(2.5rem, 3.6vw, 3.5rem); }
}

@media (min-width: 801px) and (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: 70px; }
}
