:root {
  --red: #d71920;
  --red-dark: #a90e14;
  --ink: #15171a;
  --muted: #636870;
  --line: #e4e6e9;
  --surface: #f5f6f7;
  --white: #fff;
  --shadow: 0 18px 55px rgba(15, 18, 22, .12);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--white); color: var(--ink); font-family: Ubuntu, Arial, sans-serif; font-size: 16px; line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.clear { display: none; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 1000; padding: .8rem 1rem; background: #fff; color: #111; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

#menu-kontener { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.14); background: rgba(15,17,20,.82); backdrop-filter: blur(16px); transition: background .3s, box-shadow .3s; }
#menu-kontener.is-scrolled { background: rgba(15,17,20,.96); box-shadow: 0 8px 28px rgba(0,0,0,.2); }
#menu { width: min(var(--container), calc(100% - 40px)); min-height: 74px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { flex: 0 0 auto; }
.logo a { display: block; width: 66px; height: 48px; background: url(../grafika/logo-autobrama.svg) center/contain no-repeat; }
#menu ul { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
#menu li { color: #fff; }
#menu li a { display: block; padding: .65rem .75rem; border-radius: 999px; color: #fff; font-family: "Roboto Condensed", Arial, sans-serif; font-size: .95rem; text-decoration: none; transition: color .2s, background .2s; }
#menu li a:hover, #menu li a.aktywne { background: rgba(255,255,255,.1); color: #ff5b60; }
#menu li a.pl, #menu li a.ru { padding-inline: .35rem; font-weight: 700; }
#menu li a.google-plus { display: none; }

.hero { position: relative; min-height: 760px; height: 100svh; overflow: hidden; isolation: isolate; background: #111; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,9,11,.9) 0%, rgba(7,9,11,.58) 46%, rgba(7,9,11,.16) 80%), linear-gradient(0deg, rgba(7,9,11,.45), transparent 40%); }
.hero-slides, .hero-slide { position: absolute; inset: 0; z-index: -2; }
.hero-slide { opacity: 0; transform: scale(1.06); background-position: center; background-size: cover; transition: opacity 1.1s ease, transform 6.5s ease; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-slide--1 { background-image: url(../grafika/slider-1.jpg); background-position: center; }
.hero-slide--2 { background-image: url(../grafika/slider-2.jpg); background-position: center; }
.hero-slide--3 { background-image: url(../grafika/visual.jpg); background-position: center bottom; }
.hero-content { position: relative; top: auto; left: auto; width: min(var(--container), calc(100% - 40px)); height: 100%; min-height: 760px; margin: auto; padding-top: clamp(150px, 24vh, 240px); }
.hero-kicker { margin: 0 0 1.2rem; color: #ff777b; font-size: .82rem; font-weight: 700; letter-spacing: .2em; }
.hero .haslo { max-width: 810px; height: auto; margin: 0; padding: 0; color: #fff; font-family: "Roboto Condensed", Arial, sans-serif; font-size: clamp(3.6rem, 7vw, 6.5rem); font-weight: 300; line-height: .94; letter-spacing: -.045em; text-align: left; }
.hero-lead { max-width: 650px; margin: 1.8rem 0 0; color: rgba(255,255,255,.82); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: .75rem 1.4rem; border: 1px solid transparent; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: #fff; box-shadow: 0 12px 30px rgba(215,25,32,.28); }
.button-primary:hover { background: #ed292f; }
.button-ghost { border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.08); color: #fff; backdrop-filter: blur(8px); }
.button-ghost:hover { background: rgba(255,255,255,.16); }
.hero-controls { position: absolute; left: 50%; bottom: 38px; width: min(var(--container), calc(100% - 40px)); transform: translateX(-50%); display: flex; align-items: center; gap: .85rem; }
.hero-arrow { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(0,0,0,.25); color: #fff; cursor: pointer; font-size: 1.8rem; line-height: 1; transition: background .2s, border-color .2s; }
.hero-arrow:hover { border-color: #fff; background: rgba(255,255,255,.14); }
.hero-dots { display: flex; gap: .45rem; }
.hero-dot { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 9px; background: rgba(255,255,255,.35); cursor: pointer; transition: width .3s, background .3s; }
.hero-dot.is-active { width: 52px; background: var(--red); }
.hero-progress { position: absolute; inset: auto 0 0; height: 3px; background: rgba(255,255,255,.15); }
.hero-progress span { display: block; width: 0; height: 100%; background: var(--red); }
.hero-progress span.is-running { animation: progress 6s linear forwards; }
@keyframes progress { to { width: 100%; } }

#onas, #oferta, #gwarancja, #realizacje, #kontakt, #polityka-plikow-cookies { scroll-margin-top: 74px; }
.kontener, #producenci .rzad { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.naglowek1 { min-height: 300px; display: grid; place-content: center; position: relative; isolation: isolate; overflow: hidden; background-position: center; background-size: cover; }
.naglowek1::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(15,17,20,.86), rgba(15,17,20,.42)); }
.n-oferta { background-image: url(../grafika/n-oferta.jpg); }
.n-gwarancja { background-image: url(../grafika/n-gwarancja.jpg); }
.n-realizacje { background-image: url(../grafika/n-realizacje.jpg); }
.n-kontakt { background-image: url(../grafika/n-kontakt.jpg); }
.naglowek1 h1 { width: auto; height: auto; margin: 0; padding: 0 1rem; color: #fff; font-family: "Roboto Condensed", Arial, sans-serif; font-size: clamp(2.5rem, 5vw, 4.6rem); font-weight: 300; line-height: 1; text-align: center; letter-spacing: -.035em; }
.podkreslenie { width: 88px; margin: 1.4rem auto 0; border-bottom: 4px solid var(--red); }
#onas > .naglowek1 { min-height: auto; padding: 7rem 0 1rem; background: #fff; }
#onas > .naglowek1::before { display: none; }
#onas > .naglowek1 h1 { color: var(--ink); }
#onas .kontener, #gwarancja .kontener, #kontakt .kontener { margin-block: 4rem; }
#onas .kontener, #gwarancja .kontener { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
#onas .lewa, #onas .prawa, #gwarancja .lewa, #gwarancja .prawa { float: none; width: auto; }
#onas .lewa p, #gwarancja .lewa p { margin: 0 0 1.15rem; color: #444950; }
#onas .prawa { display: grid; gap: 1rem; margin: 0; }
.ile-lat, .ile-realizacji { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ile-lat .lata, .ile-realizacji .realizacje { color: var(--red); font-family: "Roboto Condensed", Arial, sans-serif; font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 300; line-height: 1; text-align: center; }
.ile-lat p, .ile-realizacji p { margin: .5rem 0 0; font-weight: 700; text-align: center; }
.separator { display: none; }
.naglowek2 { padding: 1.5rem 20px; background: var(--surface); }
.naglowek2 h2 { max-width: var(--container); margin: auto; color: #484d54; font-family: "Roboto Condensed", Arial, sans-serif; font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 300; line-height: 1.2; text-align: center; }

#producenci { padding: 3rem 0 5rem; background: var(--surface); }
#producenci .rzad { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1rem; }
#producenci .producent { position: relative; flex: 0 0 128px; width: 128px; height: 108px; overflow: hidden; border: 1px solid #e2e4e7; border-radius: 16px; background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
#producenci .producent:hover { z-index: 2; transform: translateY(-6px); border-color: rgba(215,25,32,.35); box-shadow: 0 14px 35px rgba(20,22,25,.12); }
#producenci .producent .linia1, #producenci .producent .linia2 { display: none; }
#producenci .producent a { display: block; width: 100%; height: 100%; }
#producenci .producent img { position: absolute; inset: 0; width: 128px; height: 108px; object-fit: contain; transition: opacity .35s, transform .35s; }
#producenci .producent img.logo1 { opacity: 1; }
#producenci .producent img.logo2 { opacity: 0; transform: scale(.96); }
#producenci .producent:hover img.logo1, #producenci .producent:focus-within img.logo1 { opacity: 0; }
#producenci .producent:hover img.logo2, #producenci .producent:focus-within img.logo2 { opacity: 1; transform: scale(1); }

#oferta .kontener { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-block: 4rem 6rem; }
#oferta .clear { display: none; }
.usluga { float: none; width: auto; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 28px rgba(15,18,22,.06); transition: transform .3s, box-shadow .3s; }
.usluga:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.usluga .zdjecie { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #ddd; }
.usluga .zdjecie::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.18), transparent 50%); }
.usluga .zdjecie img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.usluga:hover .zdjecie img { transform: scale(1.06); }
.usluga h3 { width: auto; margin: 0; padding: 1.35rem 1.35rem .65rem; color: var(--ink); font-family: "Roboto Condensed", Arial, sans-serif; font-size: 1.45rem; font-weight: 400; line-height: 1.2; }
.usluga .opis { padding: 0 1.35rem 1.5rem; color: var(--muted); }
.usluga .opis p { margin: .75rem 0 0; }
.usluga .opis ul { margin: .75rem 0 0; padding: 0; list-style: none; }
.usluga .opis li { position: relative; margin: .35rem 0; padding-left: 1rem; }
.usluga .opis li::before { content: ""; position: absolute; top: .72em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.usluga .opis ul ul { padding-left: .4rem; font-size: .92rem; }

#gwarancja .prawa { padding: 2rem; border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: var(--shadow); }
ul.serwis { margin: 0; padding: 0; list-style: none; }
ul.serwis li { position: relative; padding: .75rem 0 .75rem 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
ul.serwis li::before { content: "✓"; position: absolute; left: 0; color: #ff5b60; font-weight: 700; }

#realizacje .kontener { margin-block: 4rem 6rem; }
.klienci { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.klienci li { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--muted); transition: border-color .2s, transform .2s; }
.klienci li:hover { transform: translateY(-3px); border-color: rgba(215,25,32,.45); }
.klienci span { color: var(--ink); font-weight: 700; }

.map-wrap { position: relative; height: 480px; background: #ddd; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.95); transition: filter .4s; }
.map-wrap:hover iframe { filter: grayscale(.15); }
.map-open { position: absolute; right: max(20px, calc((100% - var(--container))/2)); bottom: 20px; padding: .8rem 1.1rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; box-shadow: var(--shadow); }
#kontakt .kontener { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.35fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
#dane-adresowe { padding: 2rem; border-radius: var(--radius); background: var(--surface); }
#dane-adresowe p { margin: 0 0 1.25rem; }
#dane-adresowe .adres, #dane-adresowe .telefon, #dane-adresowe .email { position: relative; display: flex; min-height: 42px; padding-left: 56px; align-items: center; }
#dane-adresowe .adres::before, #dane-adresowe .telefon::before, #dane-adresowe .email::before { content: ""; position: absolute; left: 0; top: 50%; width: 36px; height: 36px; transform: translateY(-50%); background-position: center; background-repeat: no-repeat; background-size: contain; }
#dane-adresowe .adres::before { background-image: url(../grafika/ikonka-adres.svg); }
#dane-adresowe .telefon::before { background-image: url(../grafika/ikonka-telefon.svg); }
#dane-adresowe .email::before { background-image: url(../grafika/ikonka-email.svg); }
#dane-adresowe .email .email-reveal, #dane-adresowe .email .email-address { display: inline-flex; min-height: 42px; align-items: center; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; }
#dane-adresowe .email .email-reveal { cursor: pointer; text-decoration: underline; text-decoration-color: rgba(215,25,32,.45); text-underline-offset: 4px; }
#dane-adresowe .email .email-reveal:hover, #dane-adresowe .email .email-address:hover { color: var(--red); }
#dane-adresowe a { font-weight: 700; text-decoration: none; }
#formularz-kontener, #formularz { width: 100%; }
#formularz fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; padding: 0; border: 0; }
#formularz .pole-lewa, #formularz .pole-prawa { width: 100%; }
#formularz .pole { grid-column: 1 / -1; }
#formularz label { display: block; margin: 0 0 .35rem; font-size: .9rem; font-weight: 700; }
#formularz input, #formularz textarea { width: 100%; border: 1px solid #d9dce0; border-radius: 12px; background: #fff; color: var(--ink); }
#formularz input { height: 52px; padding: 0 .9rem; }
#formularz textarea { min-height: 150px; padding: .8rem .9rem; resize: vertical; }
#formularz input:focus, #formularz textarea:focus { border-color: var(--red); outline: 3px solid rgba(215,25,32,.12); }
#formularz button.wyslij { grid-column: 2; justify-self: end; min-width: 160px; min-height: 50px; padding: .7rem 1.2rem; border: 0; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
#formularz button.wyslij:hover { background: var(--red-dark); transform: translateY(-2px); }
#formularz button:disabled { opacity: .6; cursor: wait; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.form-status { grid-column: 1 / -1; min-height: 1.5rem; margin: 0; }
.form-status.success { color: #176b32; }
.form-status.error { color: #a40000; }

#stopka { padding: 2rem 0; background: var(--ink); color: rgba(255,255,255,.7); }
#stopka .kontener { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin: 0 auto; }
#stopka a { color: #fff; text-decoration: none; }
#polityka-plikow-cookies { padding: 4rem 0; background: #fff; }
#polityka-plikow-cookies[hidden] { display: none; }
#polityka-plikow-cookies .lista { max-width: 900px; margin: auto; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  #menu { min-height: 68px; }
  #menu ul { gap: 0; }
  #menu li a { padding-inline: .45rem; font-size: .86rem; }
  #oferta .kontener { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .klienci { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  #menu-kontener { position: absolute; }
  #menu { flex-direction: column; gap: .4rem; padding: .75rem 0; }
  #menu ul { justify-content: center; flex-wrap: wrap; }
  #menu li a { min-height: 38px; display: grid; place-items: center; }
  .hero, .hero-content { min-height: 760px; }
  .hero-content { padding-top: 210px; }
  .hero::after { background: linear-gradient(90deg, rgba(7,9,11,.86), rgba(7,9,11,.35)); }
  #onas .kontener, #gwarancja .kontener, #kontakt .kontener { grid-template-columns: 1fr; }
  #formularz fieldset { grid-template-columns: 1fr; }
  #formularz .pole, #formularz button.wyslij, .form-status { grid-column: 1; }
  #formularz button.wyslij { justify-self: stretch; }
  .map-wrap { height: 380px; }
}

@media (max-width: 560px) {
  #menu li:nth-last-child(-n+3) { display: none; }
  .hero .haslo { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-controls { bottom: 24px; }
  #oferta .kontener, .klienci { grid-template-columns: 1fr; }
  .naglowek1 { min-height: 240px; }
  .map-open { right: 16px; left: 16px; text-align: center; }
  #stopka .kontener { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
