/*
Theme Name: Rusch
Author: MTech
Author URI: https://mtechit.dev
Description: Lightweight block-editor theme for Serwis Rusch / Auto Lack Rusch.
Version: 0.9.15
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: rusch
*/

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: #fff; color: var(--wp--preset--color--body-text); font-family: var(--wp--preset--font-family--base); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--wp--preset--color--brand); }
.rusch-wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 14px; background: #fff; z-index: 1000; }

/* ---------- Top bar ---------- */
.rusch-topbar { background: var(--wp--preset--color--brand); color: #fff; font-size: 13px; }
.rusch-topbar .rusch-wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; min-height: 34px; }
.rusch-topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.rusch-topbar a:hover { text-decoration: underline; }
.rusch-topbar__contact, .rusch-langs { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; list-style: none; margin: 0; padding: 0; }
.rusch-langs img { vertical-align: -1px; margin-right: 5px; }
.rusch-topbar__contact li { display: flex; align-items: center; }
.rusch-social { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; transition: transform .15s, opacity .15s; }
.rusch-social svg { display: block; }
.rusch-social:hover, .rusch-social:focus-visible { transform: scale(1.15); opacity: .85; text-decoration: none; }
.rusch-langs .current-lang a { text-decoration: underline; }

/* ---------- Header and navigation ---------- */
.rusch-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.admin-bar .rusch-header { top: 32px; }
.rusch-header .rusch-wrap { width: min(1240px, 100% - 40px); display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.rusch-logo img { display: block; max-height: 44px; width: auto; }
.rusch-nav ul { list-style: none; margin: 0; padding: 0; }
.rusch-nav > ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 18px; }
.rusch-nav li { position: relative; }
.rusch-nav a { display: block; padding: 10px 0; color: #555; font-size: 13.5px; white-space: nowrap; font-weight: 600; text-decoration: none; }
.rusch-nav a:hover, .rusch-nav .current-menu-item > a, .rusch-nav .current-menu-ancestor > a { color: var(--wp--preset--color--brand); }
.rusch-nav .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: -2px; }
.rusch-nav .sub-menu { position: absolute; left: -16px; top: 100%; min-width: 230px; padding: 10px 0; background: #fff; border-top: 3px solid var(--wp--preset--color--brand); box-shadow: 0 6px 18px rgba(0,0,0,.12); display: none; }
.rusch-nav li:hover > .sub-menu, .rusch-nav li:focus-within > .sub-menu { display: block; }
.rusch-nav .sub-menu a { padding: 8px 20px; font-weight: 400; }
.rusch-nav .sub-menu a:hover { background: #f5f5f5; }
.rusch-burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.rusch-burger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--wp--preset--color--brand); }

/* Narrow desktops and landscape tablets: tighter header so the menu stays on one line */
@media (min-width: 981px) and (max-width: 1180px) {
	.rusch-header .rusch-wrap { width: min(1240px, 100% - 24px); gap: 14px; }
	.rusch-logo img { max-height: 34px; }
	.rusch-nav > ul { flex-wrap: nowrap; gap: 2px clamp(8px, 1vw, 14px); }
	.rusch-nav a { font-size: clamp(11.5px, 1.2vw, 13px); }
	.rusch-nav .menu-item-has-children > a::after { margin-left: 4px; }
}

@media (max-width: 980px) {
	.rusch-burger { display: block; }
	.rusch-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 110px); overflow: auto; background: #fff; border-top: 3px solid var(--wp--preset--color--brand); box-shadow: 0 8px 18px rgba(0,0,0,.12); }
	.rusch-nav.is-open { display: block; }
	.rusch-nav > ul { display: block; padding: 8px 20px 16px; }
	.rusch-nav a { padding: 10px 0; border-bottom: 1px solid #eee; }
	.rusch-nav .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 0 16px; border: 0; box-shadow: none; }
	.rusch-nav .sub-menu a { padding: 8px 0; }
	.rusch-nav .menu-item-has-children > a::after { display: none; }
}

/* ---------- Content ---------- */
.rusch-main { flex: 1 0 auto; }
.admin-bar { min-height: calc(100vh - 32px); }
.rusch-main > .rusch-entry > * { margin-block: 0; }
.rusch-entry--plain { width: min(1080px, 100% - 40px); margin: 48px auto; }
.rusch-entry h1, .rusch-entry h2, .rusch-entry h3, .rusch-entry h4 { color: #333; line-height: 1.25; font-weight: 500; margin: 0 0 .6em; }
.rusch-entry h1 { font-size: clamp(28px, 4vw, 40px); }
.rusch-entry h2 { font-size: clamp(22px, 3vw, 28px); }
.rusch-entry h3 { font-size: 20px; }
.rusch-entry h4 { font-size: 17px; }
.rusch-entry p { margin: 0 0 1em; }
.rusch-entry .has-text-color :is(h1, h2, h3, h4, a:not(.wp-block-button__link)) { color: inherit; }

/* Section = full-width group */
.rusch-section { padding: 54px 20px; }
.rusch-section > * { max-width: 1080px; margin-inline: auto; }
.rusch-section > .wp-block-columns { gap: 40px 5.5%; }
.rusch-section .wp-block-columns { margin-block: 0; }
/* Gap between section children (doubled class to beat the columns rule above) */
.rusch-section.rusch-section > * + * { margin-top: 36px; }
/* A column holding only an image centres vertically against the text next to it */
.rusch-section .wp-block-column:has(> .wp-block-image:only-child) { align-self: center; }
.rusch-section .wp-block-column > .wp-block-image:only-child { margin: 0; text-align: center; }
.rusch-center { text-align: center; }
/* Short page header (e.g. Contact) */
.rusch-section--head { padding: 44px 20px 30px; text-align: center; }
.rusch-section--head > * + * { margin-top: 6px !important; }
.rusch-section--head h1 { margin-bottom: 0; }

/* Hero / slider */
.rusch-slider { position: relative; }
.rusch-hero.wp-block-cover { min-height: clamp(280px, 46vw, 520px); padding: 40px 20px; text-align: center; }
.rusch-hero .wp-block-cover__inner-container { max-width: 900px; }
.rusch-hero :is(h1, h2) { color: inherit; font-size: clamp(26px, 4.4vw, 46px); font-weight: 500; margin-bottom: .4em; }
.rusch-hero.is-light :is(h1, h2, p) { color: #1d1d1d; text-shadow: 0 0 2px #fff, 0 0 10px #fff, 0 0 22px #fff, 0 0 34px #fff; }
.rusch-hero.is-light :is(h1, h2) { display: inline-block; padding: .12em .55em; border-radius: 4px; background: rgba(255,255,255,.8); font-weight: 600; text-shadow: none; }
.rusch-hero:not(.is-light) :is(h1, h2, p) { text-shadow: 0 0 3px #000; }
.rusch-hero p { font-size: clamp(15px, 1.8vw, 18px); }
.rusch-hero .wp-block-buttons, .rusch-center .wp-block-buttons { justify-content: center; }
.rusch-hero .wp-block-image { text-align: center; }
/* Later slides are hidden from first paint, not only once the script starts, to avoid layout shift */
.rusch-slider:not(.is-js) > .wp-block-cover ~ .wp-block-cover { display: none; }
.rusch-slider.is-js > .wp-block-cover:not(.is-active) { display: none; }
.rusch-slider__nav { position: absolute; top: 50%; z-index: 5; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.rusch-slider__nav:hover { background: rgba(0,0,0,.6); }
.rusch-slider__nav--prev { left: 14px; }
.rusch-slider__nav--next { right: 14px; }

/* Buttons */
.wp-block-button__link { border: 2px solid currentColor; border-radius: 3px; background: transparent; color: var(--wp--preset--color--brand); padding: 8px 22px; font-size: 18px; font-weight: 500; transition: background .2s; }
.wp-block-button__link:hover { background: rgba(0,0,0,.06); }
.has-text-color .wp-block-button__link, .wp-block-cover .wp-block-button__link { color: inherit; }
.has-text-color .wp-block-button__link:hover, .wp-block-cover .wp-block-button__link:hover { background: rgba(255,255,255,.2); }

/* Tile with a heading */
.rusch-blurb { margin-bottom: 26px; }
.rusch-blurb h3, .rusch-blurb h4 { margin-bottom: .35em; font-size: 18px; }
.rusch-blurb h3 a, .rusch-blurb h4 a { text-decoration: none; }
.rusch-blurb h3 a:hover, .rusch-blurb h4 a:hover { text-decoration: underline; }
.rusch-blurb--lead > :is(h3, h4)::before { content: ""; display: block; width: 38px; height: 3px; margin-bottom: 12px; background: var(--wp--preset--color--brand); }
.has-text-color .rusch-blurb--lead > :is(h3, h4)::before { background: currentColor; opacity: .6; }
.rusch-center .rusch-blurb--lead > :is(h3, h4)::before, .rusch-blurb--lead.rusch-center > :is(h3, h4)::before { margin-inline: auto; }
/* Tile with a check mark in a circle on the left */
.rusch-blurb--check { position: relative; padding-left: 48px; }
.rusch-blurb--check::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid currentColor; border-radius: 50%; color: var(--wp--preset--color--brand); font-size: 16px; line-height: 1; }
.has-text-color .rusch-blurb--check::before { color: inherit; }

/* Check list */
ul.rusch-check { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.rusch-check li { position: relative; padding: 0 0 12px 34px; font-weight: 600; }
ul.rusch-check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--wp--preset--color--brand); font-size: 20px; line-height: 1.3; }
.has-text-color ul.rusch-check li::before { color: inherit; }

/* Counters */
.rusch-counter { text-align: center; }
.rusch-counter__number { white-space: nowrap; font-size: clamp(34px, 4.6vw, 60px); font-weight: 300; line-height: 1.1; margin-bottom: .15em !important; }
.rusch-counter p:last-child { font-size: 15px; font-weight: 600; }

/* Text box */
.rusch-box { padding: 28px 30px; border-radius: 4px; background: #f5f5f5; }
.has-text-color .rusch-box { background: rgba(255,255,255,.14); }
.rusch-box > :last-child { margin-bottom: 0; }

/* Partner card (logo, name, description) */
.rusch-box--partner { text-align: center; }
.rusch-box--partner .wp-block-image { margin: 0 auto 14px; }
.rusch-box--partner .wp-block-image img { max-height: 90px; width: auto; border-radius: 0; }
.rusch-box--partner h3 a { text-decoration: none; }

/* Contact form */
.rusch-form { max-width: 640px; }
.rusch-form p { margin: 0 0 16px; }
.rusch-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.rusch-form input[type="text"], .rusch-form input[type="email"], .rusch-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #c9c9c9; border-radius: 3px; background: #fff; color: #333; font: inherit; }
.rusch-form input:focus, .rusch-form textarea:focus { outline: 2px solid var(--wp--preset--color--brand); outline-offset: 1px; border-color: transparent; }
.rusch-form button { cursor: pointer; font-family: inherit; }
.rusch-form__privacy { font-size: 14px; color: #555; }
.rusch-form__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rusch-form__notice { padding: 12px 16px; border-radius: 3px; background: #eef6ee; color: #1e5a25; font-weight: 600; }
.rusch-form__notice--invalid, .rusch-form__notice--limit, .rusch-form__notice--fail { background: #fbecec; color: #8a1c1c; }

/* Directions (link to Google Maps) */
.rusch-map-section { margin: 0; }
.rusch-directions { display: grid; align-content: center; justify-items: center; height: 100%; padding: 40px 16px; background: linear-gradient(135deg, #eef1f4, #dfe5ea); text-align: center; }
.rusch-directions p { margin: 0 0 8px; }
.rusch-directions .rusch-directions__actions { margin: 14px 0 0; }

/* Call to action */
.rusch-cta { text-align: center; }
.rusch-cta .wp-block-buttons { justify-content: center; margin-top: 18px; }

/* Galleries and projects */
.rusch-case { scroll-margin-top: 96px; }
.rusch-case > h2 { margin-bottom: 12px; }
.rusch-case > .wp-block-gallery { margin-top: 22px; }
/* Projects alternate white and light by position, whatever colour the block itself carries. */
@supports selector(:nth-child(1 of .rusch-case)) {
	.rusch-case:nth-child(odd of .rusch-case) { background-color: transparent !important; }
	.rusch-case:nth-child(even of .rusch-case) { background-color: var(--wp--preset--color--light) !important; }
}
/* Galleries without a set column count: four or more photos go four in a row. */
@media (min-width: 600px) {
	.wp-block-gallery.has-nested-images.rusch-shots.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(n+4),
	.wp-block-gallery.has-nested-images.rusch-shots.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(n+4) ~ figure.wp-block-image:not(#individual-image) { width: calc(25% - var(--wp--style--unstable-gallery-gap, 16px) * .75); }
}
.rusch-shots img { cursor: zoom-in; }
.rusch-shots img:focus-visible { outline: 3px solid var(--wp--preset--color--brand); outline-offset: 2px; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 2px; }
.rusch-portfolio { padding: 44px 0 0; }
.rusch-portfolio > :is(h1, h2) { text-align: center; margin-bottom: 28px; padding-inline: 20px; }
.rusch-portfolio > p { max-width: 760px; margin: -8px auto 32px; padding-inline: 20px; text-align: center; }
.rusch-portfolio .wp-block-post-template { gap: 0; max-width: none; margin: 0; padding: 0; list-style: none; }
.rusch-portfolio .wp-block-post { position: relative; margin: 0; overflow: hidden; }
.rusch-portfolio .wp-block-post-featured-image { margin: 0; }
.rusch-portfolio .wp-block-post-featured-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.rusch-portfolio .wp-block-post:hover img { transform: scale(1.05); }
.rusch-portfolio .wp-block-post-title { position: absolute; inset: auto 0 0 0; margin: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 15px; text-align: center; }
.rusch-portfolio .wp-block-post-title a { color: #fff; text-decoration: none; }

/* Project lightbox, styled like the core gallery lightbox */
.rusch-portfolio .wp-block-post a { cursor: zoom-in; }
.rusch-noscroll { overflow: hidden; }
.rusch-lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: #fff; color: #000; overflow: hidden; }
.rusch-lightbox[open] { display: grid; place-items: center; animation: rusch-lightbox-in .25s ease-out; }
.rusch-lightbox::backdrop { background: #fff; }
@keyframes rusch-lightbox-in { from { background: rgba(255,255,255,0); } to { background: #fff; } }
.rusch-lightbox figure { display: grid; place-items: center; align-content: center; gap: 14px; width: 100%; height: 100%; margin: 0; padding: 72px 80px 40px; cursor: zoom-out; }
.rusch-lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 130px); cursor: default; transform-origin: center; }
.rusch-lightbox button { position: fixed; z-index: 2; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; background: none; color: #000; fill: #000; cursor: pointer; }
.rusch-lightbox button:hover, .rusch-lightbox button:focus-visible { opacity: .6; }
.rusch-lightbox__close { top: 16px; right: 16px; width: 40px; height: 40px; }
.rusch-lightbox .rusch-lightbox__nav { top: 50%; width: 44px; height: 44px; margin-top: -22px; }
.rusch-lightbox__nav--prev { left: 16px; }
.rusch-lightbox__nav--next { right: 16px; }
.rusch-lightbox button[hidden] { display: none; }
@media (max-width: 600px) { .rusch-lightbox figure { padding: 64px 12px 72px; } .rusch-lightbox .rusch-lightbox__nav { top: auto; bottom: 16px; margin: 0; } }

/* Plain pages / posts / single project */
.rusch-pagehead { padding: 44px 0 0; }
.rusch-single-thumb img { display: block; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.rusch-footer { background: #222; color: #aaa; font-size: 14px; }
.rusch-footer .rusch-wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 20px; }
.rusch-footer a { color: #ddd; }

/* ========== Buttons, cards, steps, footer, mobile call bar ========== */

/* ---------- Buttons: filled (primary) and outline (secondary) ---------- */
.wp-block-button__link { border: 2px solid var(--wp--preset--color--brand); border-radius: 6px; background: var(--wp--preset--color--brand); color: #fff; padding: 11px 26px; font-size: 16px; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background .2s, color .2s, transform .15s, box-shadow .2s; }
.wp-block-button__link:hover, .wp-block-button__link:focus-visible { background: #7d1a19; border-color: #7d1a19; color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--brand); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--brand); color: #fff; }
/* on dark backgrounds and images: white button, white outline */
.has-text-color .wp-block-button__link, .wp-block-cover:not(.is-light) .wp-block-button__link { border-color: #fff; background: #fff; color: var(--wp--preset--color--brand); }
.has-text-color .wp-block-button__link:hover, .wp-block-cover:not(.is-light) .wp-block-button__link:hover { border-color: #fff; background: #f1f1f1; color: #7d1a19; }
.has-text-color .wp-block-button.is-style-outline .wp-block-button__link, .wp-block-cover:not(.is-light) .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #fff; }
.has-text-color .wp-block-button.is-style-outline .wp-block-button__link:hover, .wp-block-cover:not(.is-light) .wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.16); color: #fff; }
.wp-block-buttons { gap: 12px; }

/* ---------- Header: phone button ---------- */
.rusch-header__cta { display: none; flex-direction: column; align-items: center; flex: none; padding: 7px 16px; border-radius: 6px; background: var(--wp--preset--color--brand); color: #fff; line-height: 1.2; text-decoration: none; transition: background .2s; }
.rusch-header__cta:hover { background: #7d1a19; }
.rusch-header__cta-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.rusch-header__cta-number { font-size: 15px; font-weight: 700; white-space: nowrap; }
@media (min-width: 1181px) { .rusch-header__cta { display: inline-flex; } }

/* ---------- Section typography ---------- */
.rusch-entry h2 { font-weight: 600; letter-spacing: -.01em; }
.rusch-entry h3 { font-weight: 600; }
.rusch-lead { max-width: 760px; margin-inline: auto; text-align: center; }
.rusch-lead h2 { margin-bottom: .45em; font-size: clamp(24px, 3.2vw, 34px); }
.rusch-lead h2::after { content: ""; display: block; width: 56px; height: 3px; margin: 14px auto 0; border-radius: 2px; background: var(--wp--preset--color--brand); }
.has-text-color .rusch-lead h2::after { background: currentColor; opacity: .55; }
.rusch-lead p { font-size: 17px; }
.rusch-eyebrow { margin: 0 0 6px !important; color: var(--wp--preset--color--brand); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Home hero ---------- */
.rusch-hero--main.wp-block-cover { min-height: clamp(420px, 62vh, 640px); text-align: left; }
.rusch-hero--main .wp-block-cover__inner-container { width: 100%; max-width: 1080px; }
.rusch-hero--main .wp-block-cover__inner-container > * { max-width: 720px; }
.rusch-hero--main :is(h1, h2) { font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.rusch-hero--main p { font-size: clamp(16px, 1.7vw, 19px); text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.rusch-hero--main .wp-block-buttons { justify-content: flex-start; margin-top: 22px; }
.rusch-hero--main .wp-block-cover__image-background { object-position: center 60%; }

/* on phones the hero paragraph clamps to 5 lines so the buttons stay above the fold */
@media (max-width: 600px) { .rusch-hero--main.wp-block-cover { min-height: 0; padding-block: 34px; } .rusch-hero--main p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; } }

.rusch-entry :is(ul, ol) + :is(h2, h3) { margin-top: 1.5em; }
.rusch-links { margin-top: 28px; }

/* ---------- Google rating line ---------- */
.rusch-rating { margin: 16px 0 0; font-size: 15px; line-height: 1.4; }
.rusch-rating a { color: inherit; text-decoration: none; }
.rusch-rating a:hover .rusch-rating__count, .rusch-rating a:focus-visible .rusch-rating__count { text-decoration: underline; }
.rusch-rating__star { color: #f5b301; font-size: 1.15em; }
.rusch-hero--main .rusch-rating { margin-top: 22px; font-size: 16px; }
.rusch-ratings .rusch-rating { margin-bottom: 0; }
.rusch-ratings .rusch-rating--yanosik { margin-top: 6px; }
.rusch-ratings .rusch-rating--yanosik a { opacity: .9; }
.rusch-ratings .rusch-rating--yanosik .rusch-rating__label { text-decoration: underline; text-underline-offset: 3px; }
.rusch-ratings .rusch-rating--yanosik a:hover, .rusch-ratings .rusch-rating--yanosik a:focus-visible { opacity: 1; }

/* ---------- Trust bar under the hero ---------- */
.rusch-trustbar { padding: 0 20px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
ul.rusch-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 1080px; margin: 0 auto; padding: 0; list-style: none; }
ul.rusch-trust li { position: relative; padding: 18px 12px 18px 34px; color: #333; font-size: 15px; font-weight: 600; line-height: 1.35; }
ul.rusch-trust li::before { content: "✓"; position: absolute; left: 8px; top: 17px; color: var(--wp--preset--color--brand); font-weight: 700; }
@media (max-width: 780px) { ul.rusch-trust { grid-template-columns: repeat(2, 1fr); } ul.rusch-trust li { padding-block: 12px; font-size: 14px; } ul.rusch-trust li::before { top: 11px; } }

/* ---------- Service cards ---------- */
.rusch-card { display: flex; flex-direction: column; height: 100%; padding: 0 26px 26px; overflow: hidden; border: 1px solid #e6e6e6; border-radius: 10px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.05); transition: transform .2s, box-shadow .2s; }
.rusch-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.rusch-card > .wp-block-image:first-child { margin: 0 -26px 22px; }
.rusch-card > .wp-block-image:first-child img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.rusch-card > :is(h2, h3) { margin-bottom: 10px; font-size: 22px; }
.rusch-card > p { margin-bottom: 14px; }
.rusch-card > ul.rusch-check { margin-bottom: 8px; }
.rusch-card > ul.rusch-check li { padding-bottom: 8px; font-weight: 400; }
.rusch-card > .wp-block-buttons { margin-top: auto; padding-top: 10px; }
.rusch-section .wp-block-columns.rusch-cards { align-items: stretch; gap: 28px; }
.rusch-cards > .wp-block-column { display: flex; }
.rusch-cards > .wp-block-column > .rusch-card { width: 100%; }

/* two card sections in a row: smaller gap between them */
.rusch-section:has(> .rusch-cards) + .rusch-section:has(> .rusch-cards) { padding-top: 6px; }

/* ---------- Damage report: call or form ---------- */
.rusch-section--choice { padding-top: 10px; padding-bottom: 0; }
.rusch-card--choice { padding-top: 24px; border-top: 4px solid var(--wp--preset--color--brand); }
.rusch-card--choice:hover { transform: none; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.rusch-card--choice > .wp-block-buttons { padding-top: 4px; }
.rusch-card > p.rusch-choice__note { margin: 12px 0 0; color: #666; font-size: 14px; }
#formularz { scroll-margin-top: 110px; }
.rusch-box--claim { margin-bottom: 34px; border-left: 4px solid var(--wp--preset--color--brand); }
.rusch-box--claim p { margin-bottom: 12px; }

/* ---------- Steps (ordered list as tiles) ---------- */
ol.rusch-steps { counter-reset: krok; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
ol.rusch-steps li { counter-increment: krok; position: relative; padding: 62px 20px 22px; border-radius: 10px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); font-size: 15px; line-height: 1.6; }
ol.rusch-steps li::before { content: counter(krok); position: absolute; left: 20px; top: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--wp--preset--color--brand); color: #fff; font-weight: 700; }
@media (max-width: 980px) { ol.rusch-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { ol.rusch-steps { grid-template-columns: 1fr; } }

/* ---------- Before and after ---------- */
.rusch-compare .wp-block-image { margin: 0; }
.rusch-compare .wp-block-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.rusch-compare figcaption { margin-top: 8px; color: inherit; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.rusch-section .wp-block-columns.rusch-compare { gap: 18px; }
@media (max-width: 781px) { .rusch-section .wp-block-columns.rusch-compare { display: grid; grid-template-columns: 1fr 1fr; } }

/* ---------- Counters and highlights on dark ---------- */
.rusch-counter__number { font-weight: 700; letter-spacing: -.02em; }
.rusch-portfolio-more { padding: 26px 20px 40px; text-align: center; }
.rusch-portfolio-more .wp-block-buttons { justify-content: center; }

/* ---------- Footer columns ---------- */
.rusch-footer { background: #1a1d23; color: #b8bcc4; font-size: 15px; line-height: 1.7; }
.rusch-footer .rusch-footer__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; align-items: start; padding-block: 52px 40px; }
.rusch-footer p { margin: 0 0 12px; }
.rusch-footer a { color: #e6e8ec; text-decoration: none; }
.rusch-footer a:hover { color: #fff; text-decoration: underline; }
.rusch-footer__name { color: #fff; font-size: 20px; font-weight: 700; }
.rusch-footer__title { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rusch-footer__menu { margin: 0; padding: 0; list-style: none; }
.rusch-footer__menu li { margin-bottom: 6px; }
.rusch-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.rusch-footer__bottom .rusch-wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-block: 16px; }
.rusch-footer__credit a, .rusch-footer__privacy { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) { .rusch-footer .rusch-footer__cols { grid-template-columns: 1fr 1fr; padding-block: 40px 28px; } }
@media (max-width: 520px) { .rusch-footer .rusch-footer__cols { grid-template-columns: 1fr; } }

/* ---------- Back-to-top button ---------- */
.rusch-top { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--wp--preset--color--brand); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25); cursor: pointer; transition: background-color .15s, transform .15s; }
.rusch-top[hidden] { display: none; }
.rusch-top:hover, .rusch-top:focus-visible { background: var(--wp--preset--color--wine); transform: translateY(-2px); }
.rusch-top:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 780px) { .rusch-top { right: 14px; bottom: 68px; } }
@media print { .rusch-top { display: none; } }

/* ---------- Call help (in-app browsers) ---------- */
.rusch-callhelp { position: fixed; left: 12px; right: 12px; bottom: 70px; z-index: 95; max-width: 460px; margin-inline: auto; padding: 18px 18px 16px; border-radius: 12px; background: #fff; color: #1d1d1f; box-shadow: 0 6px 30px rgba(0,0,0,.35); }
.rusch-callhelp[hidden] { display: none; }
.rusch-callhelp p { margin: 0; }
.rusch-callhelp__title { font-size: 16px; font-weight: 700; }
.rusch-callhelp__number { margin-top: 8px !important; font-size: 26px; font-weight: 700; letter-spacing: .01em; color: var(--wp--preset--color--brand); -webkit-user-select: all; user-select: all; }
.rusch-callhelp__hint { margin-top: 8px !important; font-size: 14px; line-height: 1.45; }
.rusch-callhelp__actions { display: flex; gap: 10px; margin-top: 14px; }
.rusch-callhelp__actions button { flex: 1; min-height: 44px; padding: 10px 12px; border-radius: 8px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.rusch-callhelp__copy { border: 0; background: var(--wp--preset--color--brand); color: #fff; }
.rusch-callhelp__close { border: 1px solid #c9c9cf; background: #fff; color: #1d1d1f; }
@media print { .rusch-callhelp { display: none; } }

/* ---------- Mobile call bar ---------- */
.rusch-callbar { display: none; }
@media (max-width: 780px) {
	.rusch-callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -2px 12px rgba(0,0,0,.18); }
	.rusch-callbar a { padding: 15px 10px; font-size: 16px; font-weight: 700; text-align: center; text-decoration: none; }
	.rusch-callbar__call { background: var(--wp--preset--color--brand); color: #fff; }
	.rusch-callbar__write { background: #fff; color: var(--wp--preset--color--brand); }
	body { padding-bottom: 54px; }
}
