/*
Theme Name: El-Bud
Author: MOAGO
Description: Motyw strony El-Bud – ogrodzenia, bramy i furtki z Nowej Soli.
Version: 1.0.2
Requires PHP: 8.0
Text Domain: elbud
*/

@font-face { font-family: "Archivo"; font-weight: 500 900; font-stretch: 100% 125%; font-display: swap; src: url(fonty/archivo-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-weight: 500 900; font-stretch: 100% 125%; font-display: swap; src: url(fonty/archivo.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 400 700; font-display: swap; src: url(fonty/sourcesans-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 400 700; font-display: swap; src: url(fonty/sourcesans.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--eb-grafit: #1f2326;
	--eb-grafit-2: #2c3135;
	--eb-beton: #eceae5;
	--eb-beton-jasny: #f6f5f2;
	--eb-cynk: #8a9096;
	--eb-rdza: #c2531f;
	--eb-rdza-ciemna: #9c3f14;
	--eb-tekst: #262a2d;
	--eb-szer: 1200px;
	--eb-naglowki: "Archivo", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--eb-beton-jasny); color: var(--eb-tekst); font: 400 1.0625rem/1.65 "Source Sans 3", system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--eb-naglowki); font-stretch: 112%; line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--eb-rdza-ciemna); }

.eb-gora { position: sticky; top: 0; z-index: 20; background: var(--eb-grafit); color: #fff; }
.eb-gora-in { max-width: var(--eb-szer); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.eb-logo { font-family: var(--eb-naglowki); font-stretch: 125%; font-weight: 900; font-size: 1.6rem; letter-spacing: .04em; color: #fff; text-decoration: none; line-height: 1; margin: 0; }
.eb-logo span { display: block; font-family: "Source Sans 3", sans-serif; font-stretch: 100%; font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--eb-cynk); margin-top: 4px; }
.eb-menu { display: flex; gap: 4px; }
.eb-menu a { color: #fff; text-decoration: none; font-weight: 600; padding: 8px 14px; border-bottom: 3px solid transparent; }
.eb-menu a:hover { border-color: var(--eb-cynk); }
.eb-menu a[aria-current="page"] { border-color: var(--eb-rdza); }
.eb-menu-btn { display: none; background: none; border: 2px solid #fff; color: #fff; font: 600 .95rem "Source Sans 3", sans-serif; padding: 6px 14px; cursor: pointer; }

.eb-znacznik { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--eb-rdza); margin-bottom: 14px; }
.eb-btn { display: inline-block; background: var(--eb-rdza); color: #fff; font: 700 1rem "Source Sans 3", sans-serif; padding: 14px 28px; border: 0; text-decoration: none; cursor: default; }
a.eb-btn, button.eb-btn { cursor: pointer; transition: background .2s; }
a.eb-btn:hover, button.eb-btn:hover { background: var(--eb-rdza-ciemna); }
.eb-btn-pelny { display: block; text-align: center; }

.eb-start { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; background: var(--eb-grafit); color: #fff; overflow: hidden; }
.eb-start-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.eb-start::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31, 35, 38, .8), rgba(31, 35, 38, .15) 70%); }
.eb-start-tekst { position: relative; z-index: 1;max-width: var(--eb-szer); width: 100%; margin: 0 auto; padding: 120px 20px 70px; }
.eb-start-tekst h1 { max-width: 15ch; }
.eb-start-lead { font-size: 1.25rem; max-width: 34ch; margin-bottom: 28px; }
.eb-start .eb-znacznik { color: #fff; background: var(--eb-rdza); padding: 4px 10px; }

.eb-pas { background: var(--eb-grafit-2); color: #e7e7e5; }
.eb-pas p { max-width: 860px; margin: 0 auto; padding: 36px 20px; font-size: 1.2rem; }

.eb-sekcja { max-width: var(--eb-szer); margin: 0 auto; padding: 80px 20px; }
.eb-sekcja-ciemna { max-width: none; background: var(--eb-grafit); color: #f0f0ee; padding-left: max(20px, calc((100% - var(--eb-szer)) / 2 + 20px)); padding-right: max(20px, calc((100% - var(--eb-szer)) / 2 + 20px)); }
.eb-naglowek { max-width: 640px; margin-bottom: 36px; }
.eb-naglowek p { font-size: 1.1rem; color: inherit; opacity: .85; }

.eb-atuty-uklad, .eb-dwa, .eb-pomiar, .eb-kontakt { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.eb-atuty-foto, .eb-dwa-foto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.eb-atuty-lista { list-style: none; counter-reset: eb-licz; margin: 0; padding: 0; }
.eb-atuty-lista li { counter-increment: eb-licz; position: relative; padding: 0 0 26px 64px; margin-bottom: 26px; border-bottom: 1px solid #d7d4cd; }
.eb-atuty-lista li:last-child { border-bottom: 0; margin-bottom: 0; }
.eb-atuty-lista li::before { content: counter(eb-licz, decimal-leading-zero); position: absolute; left: 0; top: -4px; font: 800 1.9rem var(--eb-naglowki); font-stretch: 125%; color: var(--eb-rdza); }

.eb-zakres { padding-top: 0; }
.eb-zakres-lista { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 0; background: #d7d4cd; border: 2px solid #d7d4cd; }
.eb-zakres-lista div { background: var(--eb-beton-jasny); padding: 22px; }
.eb-zakres-lista dt { font: 700 1.05rem var(--eb-naglowki); font-stretch: 112%; margin-bottom: 6px; }
.eb-zakres-lista dd { margin: 0; color: #5a6066; font-size: .98rem; }

.eb-kafle { display: grid; gap: 24px; }
.eb-kafle-4 { grid-template-columns: repeat(4, 1fr); }
.eb-kafle-3 { grid-template-columns: repeat(3, 1fr); }
.eb-kafle-2 { grid-template-columns: repeat(2, 1fr); }
.eb-kafel img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 16px; }
.eb-kafel-szeroki img { aspect-ratio: 3 / 2; }
.eb-kafel h3 { margin-bottom: .3em; }
.eb-kafel p { margin: 0; opacity: .85; }

.eb-wyprzedaz { background: var(--eb-rdza); color: #fff; }
.eb-wyprzedaz div { max-width: var(--eb-szer); margin: 0 auto; padding: 44px 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; }
.eb-wyprzedaz h2 { margin: 0; }
.eb-wyprzedaz p { margin: 0; font-size: 1.2rem; }

.eb-o-firmie { max-width: 860px; }

.eb-tytul-strony { background: var(--eb-beton); border-bottom: 4px solid var(--eb-grafit); padding: 64px max(20px, calc((100% - var(--eb-szer)) / 2 + 20px)) 48px; }
.eb-tytul-strony h1 { max-width: 22ch; margin: 0; }
.eb-tytul-strony .eb-akapit-duzy { margin-top: 20px; }
.eb-akapit-duzy { font-size: 1.2rem; max-width: 760px; }

.eb-pomiar { grid-template-columns: 3fr 2fr; }
.eb-pomiar-lead { font-size: 1.25rem; font-weight: 600; }
.eb-pomiar-karta { background: #fff; border-top: 6px solid var(--eb-rdza); padding: 0 0 28px; box-shadow: 0 1px 0 #d7d4cd; position: sticky; top: 100px; }
.eb-pomiar-karta img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 22px; }
.eb-pomiar-karta > :not(img) { margin-left: 26px; margin-right: 26px; }
.eb-cena { font-size: 1.15rem; }
.eb-cena strong { font: 800 2rem var(--eb-naglowki); font-stretch: 112%; color: var(--eb-rdza); }
.eb-drobne { font-size: .92rem; color: #5a6066; }
.eb-lista { padding-left: 1.2em; }
.eb-lista li { margin-bottom: .55em; }
.eb-lista li::marker { color: var(--eb-rdza); }

.eb-bramy-wstep { padding-top: 0; }
.eb-trzy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 36px; }
.eb-trzy > div { border-top: 3px solid var(--eb-grafit); padding-top: 18px; }
.eb-dwa h2 { font-size: 1.5rem; }
.eb-dwa p + h2 { margin-top: 1.4em; }

.eb-faq { max-width: 860px; }
.eb-faq details { border-bottom: 1px solid #d7d4cd; }
.eb-faq summary { cursor: pointer; list-style: none; font: 700 1.1rem var(--eb-naglowki); padding: 20px 40px 20px 0; position: relative; }
.eb-faq summary::-webkit-details-marker { display: none; }
.eb-faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.6rem; color: var(--eb-rdza); }
.eb-faq details[open] summary::after { content: "–"; }
.eb-faq details p { padding-bottom: 12px; }

.eb-firma { line-height: 1.8; }
.eb-formularz { display: grid; gap: 18px; background: #fff; padding: 32px; border-top: 6px solid var(--eb-grafit); }
.eb-formularz label { display: grid; gap: 6px; font-weight: 600; }
.eb-formularz input[type="text"], .eb-formularz textarea { font: inherit; padding: 12px; border: 1px solid #bfbcb5; background: var(--eb-beton-jasny); width: 100%; }
.eb-formularz input:focus, .eb-formularz textarea:focus { outline: 2px solid var(--eb-rdza); outline-offset: 0; }
.eb-formularz .eb-zgoda { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; }
.eb-zgoda input { margin-top: 5px; }
.eb-formularz .eb-btn { justify-self: start; }
.eb-formularz-info { background: var(--eb-beton); padding: 12px 16px; margin: 0; }

.eb-dokument { max-width: 900px; }
.eb-dokument h2 { font-size: 1.35rem; margin-top: 1.8em; }
.eb-dokument ol, .eb-dokument ul { padding-left: 1.5em; }
.eb-dokument li { margin-bottom: .45em; }
.eb-dokument li > ol, .eb-dokument li > ul { margin-top: .45em; }
.eb-dok-tytul { font: 800 1.15rem var(--eb-naglowki); }
.eb-brak { background: #ffe08a; padding: 0 4px; }

.eb-stopka { background: var(--eb-grafit); color: #cfd1d2; margin-top: 0; }
.eb-stopka-in { max-width: var(--eb-szer); margin: 0 auto; padding: 56px 20px 32px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.eb-logo-jasne { margin-bottom: 18px; }
.eb-stopka-motto { max-width: 36ch; font-size: .98rem; }
.eb-stopka-menu { display: grid; gap: 8px; align-content: start; }
.eb-stopka-menu a { color: #fff; text-decoration: none; }
.eb-stopka-menu a:hover { color: var(--eb-rdza); }
.eb-stopka .eb-firma { font-size: .95rem; }
.eb-stopka-prawa { max-width: var(--eb-szer); margin: 0 auto; padding: 18px 20px 28px; border-top: 1px solid #3a4045; font-size: .85rem; color: var(--eb-cynk); }

@media (max-width: 960px) {
	.eb-kafle-4, .eb-zakres-lista { grid-template-columns: repeat(2, 1fr); }
	.eb-kafle-3, .eb-trzy { grid-template-columns: 1fr 1fr; }
	.eb-atuty-uklad, .eb-dwa, .eb-pomiar, .eb-kontakt, .eb-stopka-in { grid-template-columns: 1fr; gap: 36px; }
	.eb-atuty-foto, .eb-dwa-foto { aspect-ratio: 3 / 2; }
	.eb-pomiar-karta { position: static; }
}
@media (max-width: 760px) {
	.eb-menu-btn { display: block; }
	.eb-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--eb-grafit); flex-direction: column; padding: 8px 20px 20px; }
	.eb-menu-otwarte .eb-menu { display: flex; }
	.eb-menu a { border-bottom: 1px solid #3a4045; border-left: 3px solid transparent; padding: 12px; }
	.eb-menu a[aria-current="page"] { border-left-color: var(--eb-rdza); border-bottom-color: #3a4045; }
	.eb-sekcja { padding-top: 56px; padding-bottom: 56px; }
	.eb-kafle-3, .eb-kafle-2, .eb-trzy { grid-template-columns: 1fr; }
	.eb-kafle-4, .eb-zakres-lista { grid-template-columns: 1fr; }
	.eb-kafel img { aspect-ratio: 3 / 2; }
	.eb-start-tekst { padding-top: 160px; padding-bottom: 48px; }
	.eb-formularz { padding: 22px; }
}
