/*
Theme Name: Drewno Górecki
Theme URI: https://www.drewnogorecki.pl/
Author: TOMDATA
Author URI: https://www.tomdata.pl/
Description: Lekki motyw dla Drewno Górecki – wycinka lasu, mulczerowanie, rekultywacja gruntów. Bez page buildera i jQuery.
Version: 1.9.1
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: drewnogorecki
*/

/* ---------- Fonty (Montserrat, lokalnie, bez Google Fonts) ---------- */
@font-face { font-family: "Montserrat"; src: url("assets/fonts/montserrat-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/montserrat-800.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- Zmienne ---------- */
:root {
	--dg-ink: #231710;
	--dg-body: #3f3028;
	--dg-muted: #6b574a;
	--dg-brown: #3e1f0d;
	--dg-brown-2: #6b3416;
	--dg-orange: #f2602b;      /* kolor marki – akcenty, duże elementy */
	--dg-orange-dark: #b9420f; /* przyciski z białym tekstem (kontrast AA) */
	--dg-wood: #f6c995;
	--dg-cream: #fbf7f1;
	--dg-line: #eadfcf;
	--dg-white: #fff;
	--dg-bg: #fff;            /* tło strony */
	--dg-card: #fff;          /* tło kart */
	--dg-header: rgba(255, 255, 255, .97);
	--dg-accent: #b9420f;     /* linki i akcenty tekstowe */
	--dg-line-strong: #d9c9b5;
	--dg-radius: 14px;
	--dg-shadow: 0 10px 30px -12px rgba(62, 31, 13, .25);
	--dg-wrap: 1180px;
	--dg-head: "Montserrat", system-ui, sans-serif;
	--dg-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Tryb ciemny ---------- */
html[data-theme="dark"] {
	color-scheme: dark;
	--dg-ink: #f6ece2;
	--dg-body: #e2d5c8;
	--dg-muted: #bba897;
	--dg-cream: #1e1510;
	--dg-line: #3b2b21;
	--dg-line-strong: #574032;
	--dg-bg: #150e0a;
	--dg-card: #231813;
	--dg-header: rgba(21, 14, 10, .96);
	--dg-accent: #f4935f;
	--dg-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
}
html[data-theme="dark"] .section--dark { background: #2a1509; }
html[data-theme="dark"] .btn--outline { border-color: var(--dg-accent); color: var(--dg-accent); }
html[data-theme="dark"] .btn--outline:hover { background: var(--dg-accent); color: #150e0a; }
html[data-theme="dark"] .site-footer { background: #0e0906; }
html[data-theme="dark"] .area__map circle[fill="#f6c995"] { opacity: .14; }
.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }

/* Przełącznik trybu */
.theme-toggle, .icon-btn { width: 44px; height: 44px; border: 1px solid var(--dg-line); border-radius: 50%; background: var(--dg-bg); color: var(--dg-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.theme-toggle:hover, .icon-btn:hover { border-color: var(--dg-accent); color: var(--dg-accent); }
.theme-toggle svg, .icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* „Ogranicz ruch” w systemie ustawia domyślnie data-motion="off" (skrypt w <head>); przełącznik może to zmienić. */
body { margin: 0; overflow-x: clip; font-family: var(--dg-text); font-size: 17px; line-height: 1.65; color: var(--dg-body); background: var(--dg-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dg-accent); text-underline-offset: 3px; }
a:hover { color: var(--dg-brown-2); }
h1, h2, h3, h4 { font-family: var(--dg-head); color: var(--dg-ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--dg-orange); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--dg-bg); color: var(--dg-ink); }

.wrap { width: min(var(--dg-wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--cream { background: var(--dg-cream); }
.section--dark { background: var(--dg-brown); color: #f3e6d8; }
.section--dark h2, .section--dark h3 { color: var(--dg-white); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.eyebrow { font-family: var(--dg-head); font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dg-accent); margin: 0 0 .7em; }
.section--dark .eyebrow { color: var(--dg-wood); }
.lead { font-size: 1.12rem; color: var(--dg-muted); }
.section--dark .lead { color: #e6d4c2; }

/* ---------- Przyciski ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-family: var(--dg-head); font-weight: 600; font-size: .98rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn--primary { background: var(--dg-orange-dark); color: var(--dg-white); }
.btn--primary:hover { background: var(--dg-brown-2); color: var(--dg-white); }
.btn--ghost { border-color: currentColor; color: var(--dg-white); }
.btn--ghost:hover { background: var(--dg-white); color: var(--dg-ink); border-color: var(--dg-white); }
.btn--outline { border-color: var(--dg-brown-2); color: var(--dg-brown-2); }
.btn--outline:hover { background: var(--dg-brown-2); color: var(--dg-white); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--dg-header); border-bottom: 1px solid var(--dg-line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.site-logo img { height: 46px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.nav a { display: block; padding: 10px 12px; font-family: var(--dg-head); font-weight: 600; font-size: .95rem; color: var(--dg-ink); text-decoration: none; border-radius: 8px; }
.nav a:hover, .nav .current-menu-item > a { color: var(--dg-accent); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { min-height: 44px; padding: 8px 18px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--dg-line); border-radius: 10px; background: var(--dg-bg); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--dg-ink); position: relative; transition: transform .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
	.nav-toggle { display: inline-flex; }
	.nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--dg-bg); border-bottom: 1px solid var(--dg-line); box-shadow: var(--dg-shadow); display: none; }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; gap: 0; }
	.nav a { padding: 14px 4px; border-bottom: 1px solid var(--dg-line); border-radius: 0; }
	.header-cta .btn__label { display: none; }
	.header-cta .btn { padding: 8px 12px; }
}
@media (max-width: 420px) { .site-logo img { height: 38px; } }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--dg-white); background: var(--dg-brown); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35, 20, 10, .88) 0%, rgba(35, 20, 10, .65) 45%, rgba(35, 20, 10, .2) 100%); }
.hero__inner { position: relative; z-index: 1; padding: clamp(80px, 13vw, 160px) 0 clamp(70px, 10vw, 130px); max-width: 680px; }
.hero h1 { color: var(--dg-white); margin-bottom: .45em; }
.hero .eyebrow { color: var(--dg-wood); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #f1e4d6; margin-bottom: 1.8em; }
@media (max-width: 700px) { .hero::after { background: linear-gradient(180deg, rgba(35, 20, 10, .55) 0%, rgba(35, 20, 10, .88) 70%); } }

/* ---------- Pasek atutów ---------- */
.facts { background: var(--dg-orange-dark); color: var(--dg-white); }
.facts ul { list-style: none; margin: 0 auto; padding: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.facts li { font-family: var(--dg-head); font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 10px; }
.facts svg { width: 22px; height: 22px; flex-shrink: 0; }
@media (max-width: 860px) { .facts ul { grid-template-columns: repeat(2, 1fr); } }

/* ---------- O firmie ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split__img img { border-radius: var(--dg-radius); box-shadow: var(--dg-shadow); width: 100%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Usługi ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: var(--dg-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--dg-shadow); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card__body { padding: 20px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--dg-muted); font-size: .97rem; flex: 1; }
.card__more { font-family: var(--dg-head); font-weight: 600; font-size: .92rem; text-decoration: none; }
.card__more::after { content: " →"; }
@media (max-width: 1060px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Proces ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.steps li { position: relative; padding: 28px 24px 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--dg-radius); counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--dg-head); font-weight: 800; font-size: 2.2rem; color: var(--dg-orange); line-height: 1; margin-bottom: 14px; }
.steps p { margin: 0; color: #e6d4c2; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Dlaczego my ---------- */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; list-style: none; margin: 0; padding: 0; }
.why li { display: flex; gap: 14px; }
.why svg { width: 26px; height: 26px; color: var(--dg-accent); flex-shrink: 0; margin-top: 2px; }
.why strong { display: block; font-family: var(--dg-head); color: var(--dg-ink); margin-bottom: 2px; }
.why p { margin: 0; color: var(--dg-muted); }
@media (max-width: 720px) { .why { grid-template-columns: 1fr; } }

/* ---------- Sprzęt ---------- */
.gear { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; margin: 0 0 28px; padding: 0; }
.gear figure { margin: 0; }
.gear img { border-radius: var(--dg-radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gear figcaption { font-family: var(--dg-head); font-weight: 600; color: var(--dg-ink); margin-top: 10px; }
@media (max-width: 860px) { .gear { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Obszar ---------- */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.chips { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--dg-card); border: 1px solid var(--dg-line); font-family: var(--dg-head); font-weight: 600; font-size: .92rem; color: var(--dg-ink); }
.area__map { color: var(--dg-ink); border-radius: var(--dg-radius); background: var(--dg-card); border: 1px solid var(--dg-line); padding: 18px; }
@media (max-width: 860px) { .area { grid-template-columns: 1fr; } }

/* ---------- Realizacje ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; margin: 0 0 30px; padding: 0; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.gallery-title { font-size: 1.35rem; margin: 40px 0 16px; }

/* Podgląd zdjęć */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 6, 4, .92); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 60px 20px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 8px; }
.lightbox figcaption { color: #e6d4c2; margin-top: 12px; font-size: .95rem; text-align: center; }
.lightbox__btn { position: fixed; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox figure { padding: 60px 8px 20px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; } }

/* Strona Sprzęt */
.machines { display: grid; gap: clamp(40px, 6vw, 70px); margin: 40px 0 20px; }
.machine { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 50px); align-items: start; }
.machine:nth-child(even) .machine__photos { order: 2; }
.machine__main img { border-radius: var(--dg-radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--dg-shadow); }
.machine__thumbs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.machine__thumbs img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.machine__text h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.machine__text h3 { font-size: 1rem; margin-top: 1.2em; }
.machine__uses { list-style: none; margin: 0; padding: 0; }
.machine__uses li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.machine__uses svg { width: 20px; height: 20px; color: var(--dg-accent); flex-shrink: 0; margin-top: 3px; }
.other-gear { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.other-gear li { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--dg-line); border-radius: var(--dg-radius); background: var(--dg-card); }
.other-gear svg { width: 26px; height: 26px; color: var(--dg-accent); flex-shrink: 0; }
.other-gear strong { display: block; font-family: var(--dg-head); color: var(--dg-ink); }
.other-gear span { color: var(--dg-muted); font-size: .95rem; }
@media (max-width: 860px) { .machine { grid-template-columns: 1fr; } .machine:nth-child(even) .machine__photos { order: 0; } .other-gear { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--dg-line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--dg-head); font-weight: 600; font-size: 1.05rem; color: var(--dg-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.6rem; color: var(--dg-accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--dg-muted); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 60px); }
.contact__list { list-style: none; margin: 0 0 24px; padding: 0; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.contact__list svg { width: 22px; height: 22px; color: var(--dg-wood); flex-shrink: 0; margin-top: 3px; }
.contact__list a { color: var(--dg-white); font-weight: 600; text-decoration: none; }
.contact__list a:hover { color: var(--dg-wood); }
.contact__list small { display: block; color: #cdb8a4; font-size: .85rem; }
.contact__form { align-self: start; background: var(--dg-card); color: var(--dg-body); border-radius: var(--dg-radius); padding: clamp(22px, 4vw, 36px); }
.contact__form h3 { margin-bottom: 1em; color: var(--dg-ink); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Formularz motywu */
.dg-form p { margin: 0 0 14px; }
.dg-form label { display: block; font-weight: 600; font-size: .92rem; color: var(--dg-ink); }
.dg-form input:not([type="checkbox"]), .dg-form select, .dg-form textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--dg-line-strong); border-radius: 10px; font: inherit; background: var(--dg-cream); color: var(--dg-ink); }
.dg-form textarea { min-height: 110px; resize: vertical; }
.dg-form input:focus, .dg-form select:focus, .dg-form textarea:focus { outline: 2px solid var(--dg-orange); border-color: var(--dg-orange); }
.dg-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.dg-form__check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--dg-muted); }
.dg-form__check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--dg-orange-dark); }
.dg-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dg-form .cf-turnstile { margin-bottom: 14px; }
.form-msg { padding: 12px 16px; border-radius: 10px; font-weight: 600; margin: 0 0 16px; }
.form-msg--ok { background: #e7f6ec; color: #11633a; }
.form-msg--err { background: #fdecea; color: #a8261b; }
html[data-theme="dark"] .form-msg--ok { background: #12301f; color: #8fe0b0; }
html[data-theme="dark"] .form-msg--err { background: #3a1512; color: #ffb4a8; }
@media (max-width: 520px) { .dg-form__row { grid-template-columns: 1fr; } }

/* Contact Form 7 */
.wpcf7-form p { margin: 0 0 14px; }
.wpcf7-form label { display: block; font-weight: 600; font-size: .92rem; color: var(--dg-ink); }
.wpcf7-form input:not([type="submit"]):not([type="checkbox"]), .wpcf7-form select, .wpcf7-form textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--dg-line-strong); border-radius: 10px; font: inherit; background: var(--dg-cream); color: var(--dg-ink); }
.wpcf7-form textarea { min-height: 120px; resize: vertical; }
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { outline: 2px solid var(--dg-orange); border-color: var(--dg-orange); }
.wpcf7-form input[type="submit"] { background: var(--dg-orange-dark); color: var(--dg-white); border: 0; border-radius: 999px; min-height: 48px; padding: 12px 28px; font-family: var(--dg-head); font-weight: 600; font-size: 1rem; cursor: pointer; }
.wpcf7-form input[type="submit"]:hover { background: var(--dg-brown-2); }
.wpcf7-not-valid-tip { color: #b42318; font-size: .85rem; }
.wpcf7 form .wpcf7-response-output { margin: 14px 0 0; border-radius: 10px; padding: 10px 14px; }

/* ---------- Podstrony ---------- */
.page-hero { position: relative; background: var(--dg-brown); color: var(--dg-white); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35, 20, 10, .9), rgba(35, 20, 10, .55)); }
.page-hero__inner { position: relative; z-index: 1; padding: clamp(60px, 9vw, 110px) 0 clamp(50px, 7vw, 80px); }
.page-hero h1 { color: var(--dg-white); max-width: 820px; margin: 0; }
.breadcrumbs { font-size: .9rem; margin-bottom: 14px; color: #e6d4c2; }
.breadcrumbs a { color: var(--dg-wood); }
.entry { max-width: 820px; }
.entry h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.entry h3 { margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .35em; }
.entry img, .entry .wp-block-image img { border-radius: 10px; }
.entry .wp-block-gallery { margin: 1.5em 0; }
.entry--wide { max-width: none; }
.cta-box { margin-top: 50px; padding: clamp(24px, 4vw, 40px); border-radius: var(--dg-radius); background: var(--dg-cream); border: 1px solid var(--dg-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-box h2 { margin: 0 0 .2em; font-size: 1.5rem; }
.cta-box p { margin: 0; color: var(--dg-muted); }

/* ---------- Stopka ---------- */
.site-footer { background: #24120a; color: #cdb8a4; padding: 60px 0 0; font-size: .95rem; }
.site-footer a { color: #f1e4d6; text-decoration: none; }
.site-footer a:hover { color: var(--dg-wood); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer__title { display: block; font-family: var(--dg-head); font-weight: 600; color: var(--dg-white); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__logo img { height: 50px; width: auto; margin-bottom: 14px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .88rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Strzałka „do góry” */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 50px; height: 50px; border-radius: 50%; background: var(--dg-orange-dark); color: var(--dg-white); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--dg-brown-2); color: var(--dg-white); }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 600px) { .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; } }

/* =========================================================
   Mikroanimacje – tylko transform / opacity (bez przesuwania układu).
   Wyłączone przy „ogranicz ruch” (reguła prefers-reduced-motion na górze).
   ========================================================= */
:root { --dg-ease: cubic-bezier(.2, .7, .2, 1); }

/* Przyciski: lekkie uniesienie, telefon „dzwoni” */
.btn { transition: background .2s, color .2s, border-color .2s, transform .2s var(--dg-ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform .3s var(--dg-ease); }
.btn:hover svg { animation: dg-ring .6s ease-in-out; }
@keyframes dg-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }

/* Menu: podkreślenie wysuwane od środka */
@media (min-width: 981px) {
	.nav a { position: relative; }
	.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--dg-accent); transform: scaleX(0); transition: transform .25s var(--dg-ease); }
	.nav a:hover::after, .nav .current-menu-item > a::after { transform: scaleX(1); }
}

/* Logo i przełącznik trybu */
.site-logo img { transition: transform .3s var(--dg-ease); }
.site-logo:hover img { transform: scale(1.03); }
.theme-toggle svg, .icon-btn svg { transition: transform .4s var(--dg-ease); }
.theme-toggle:hover svg, .icon-btn:hover svg { transform: rotate(25deg); }

/* Pasek atutów: ikony się przekręcają */
.facts svg { transition: transform .35s var(--dg-ease); }
.facts li:hover svg { transform: rotate(-12deg) scale(1.15); }

/* Karty usług: zdjęcie lekko się przybliża, strzałka przesuwa */
.card { transition: transform .25s var(--dg-ease), box-shadow .25s; }
.card > img { transition: transform .5s var(--dg-ease); }
.card:hover > img { transform: scale(1.05); }
.card__more::after { display: inline-block; transition: transform .25s var(--dg-ease); }
.card:hover .card__more::after { transform: translateX(4px); }

/* Proces: numer kroku podskakuje */
.steps li { transition: transform .25s var(--dg-ease), border-color .25s; }
.steps li::before { transition: transform .3s var(--dg-ease); }
.steps li:hover { transform: translateY(-4px); border-color: rgba(242, 96, 43, .55); }
.steps li:hover::before { transform: translateX(4px); }

/* Dlaczego my / sprzęt / pozostały sprzęt: ikony się przekręcają */
.why svg, .other-gear svg, .machine__uses svg, .contact__list svg { transition: transform .35s var(--dg-ease); }
.why li:hover svg, .other-gear li:hover svg { transform: rotate(-12deg) scale(1.12); }
.machine__uses li:hover svg, .contact__list li:hover svg { transform: scale(1.18); }
.other-gear li { transition: transform .25s var(--dg-ease), border-color .25s; }
.other-gear li:hover { transform: translateY(-3px); border-color: var(--dg-accent); }

/* Zdjęcia sprzętu i miniatury */
.gear figure, .machine__main, .machine__thumbs a { display: block; overflow: hidden; border-radius: var(--dg-radius); }
.machine__thumbs a { border-radius: 8px; }
.gear img, .machine__main img, .machine__thumbs img { transition: transform .5s var(--dg-ease); }
.gear figure:hover img, .machine__main:hover img, .machine__thumbs a:hover img { transform: scale(1.05); }

/* Miejscowości */
.chips li { transition: transform .2s var(--dg-ease), background .2s, color .2s, border-color .2s; }
.chips li:hover { transform: translateY(-2px); background: var(--dg-orange-dark); border-color: var(--dg-orange-dark); color: var(--dg-white); }

/* FAQ i strzałka do góry */
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--dg-accent); }
.to-top:hover { transform: translateY(-3px); }

/* Pojawianie się sekcji przy przewijaniu (tylko elementy poza ekranem – bez mignięcia i bez wpływu na LCP) */
.dg-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--dg-ease), transform .6s var(--dg-ease); }
.dg-reveal--left { transform: translateX(-48px); }
.dg-reveal--right { transform: translateX(48px); }
.dg-reveal--fade { transform: none; }
.dg-reveal.is-in { opacity: 1; transform: none; }

/* Przełącznik animacji */
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { transition: none !important; animation: none !important; }
/* Przy wyłączonych animacjach elementy nie ruszają się też po najechaniu (zostaje tylko zmiana koloru). */
html[data-motion="off"] .btn:hover, html[data-motion="off"] .btn:hover svg,
html[data-motion="off"] .site-logo:hover img,
html[data-motion="off"] .theme-toggle:hover svg, html[data-motion="off"] .icon-btn:hover svg,
html[data-motion="off"] .facts li:hover svg,
html[data-motion="off"] .card:hover, html[data-motion="off"] .card:hover > img, html[data-motion="off"] .card:hover .card__more::after,
html[data-motion="off"] .steps li:hover, html[data-motion="off"] .steps li:hover::before,
html[data-motion="off"] .why li:hover svg, html[data-motion="off"] .other-gear li:hover, html[data-motion="off"] .other-gear li:hover svg,
html[data-motion="off"] .machine__uses li:hover svg, html[data-motion="off"] .contact__list li:hover svg,
html[data-motion="off"] .gear figure:hover img, html[data-motion="off"] .machine__main:hover img, html[data-motion="off"] .machine__thumbs a:hover img,
html[data-motion="off"] .gallery a:hover img, html[data-motion="off"] .chips li:hover, html[data-motion="off"] .to-top:hover { transform: none !important; }
html[data-motion="off"] .card:hover { box-shadow: none; }
.motion-toggle .ico-still { display: none; }
html[data-motion="off"] .motion-toggle .ico-still { display: block; }
html[data-motion="off"] .motion-toggle .ico-motion { display: none; }
.nav__extra { display: none; }
@media (max-width: 980px) {
	.motion-toggle--head { display: none; }
	.nav__extra { display: block; padding: 4px 20px 20px; }
	.motion-toggle--menu { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 4px; border: 0; background: none; color: var(--dg-ink); font-family: var(--dg-head); font-weight: 600; font-size: .95rem; cursor: pointer; }
	.motion-toggle--menu svg { width: 20px; height: 20px; color: var(--dg-accent); }
}

