/*
Theme Name: Teak Deck
Theme URI: https://teak-deck.pl
Author: NPROFIT
Author URI: https://nprofit.pl
Description: Autorski motyw dla TEAK-DECK - producenta teakowych pokladow jachtowych. Bialo-blekitna kolorystyka, klasyczny edytor tresci, automatyczne sekcjonowanie tresci, bez animacji.
Version: 1.2.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: teakdeck
Tags: business, custom-menu, custom-logo, translation-ready
*/

/* ==========================================================================
   1. Zmienne i reset
   ========================================================================== */

:root {
	--td-navy: #232a55;
	--td-navy-dark: #171d3d;
	--td-blue: #1ea2e0;
	--td-blue-dark: #1379ac;
	--td-ink: #1c2b36;
	--td-muted: #5b6b78;
	--td-tint: #f2f7fb;
	--td-line: #dde7ef;
	--td-white: #ffffff;

	--td-container: 1200px;
	--td-radius: 0px;
	--td-font: 'Jost', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--td-font);
	font-size: 17px;
	line-height: 1.75;
	color: var(--td-ink);
	background: var(--td-white);
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--td-blue-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:hover,
a:focus {
	color: var(--td-navy);
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	line-height: 1.18;
	color: var(--td-navy);
	margin: 0 0 .6em;
	letter-spacing: -.01em;
}

h1 { font-size: 3.25rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }

p:last-child,
ul:last-child,
ol:last-child { margin-bottom: 0; }

/* Widocznosc focusa - dostepnosc */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--td-blue);
	outline-offset: 2px;
}

.td-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--td-navy);
	color: #fff;
	padding: .75rem 1.25rem;
	z-index: 999;
}

.td-skip-link:focus {
	left: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ==========================================================================
   2. Uklad
   ========================================================================== */

.td-container {
	width: 100%;
	max-width: var(--td-container);
	margin-inline: auto;
	padding-inline: 24px;
}

.td-container--narrow {
	max-width: 860px;
}

/* ==========================================================================
   3. Przyciski
   ========================================================================== */

.td-btn {
	display: inline-block;
	padding: 14px 30px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: var(--td-radius);
	cursor: pointer;
	background: var(--td-blue);
	color: #fff;
}

.td-btn:hover,
.td-btn:focus {
	background: var(--td-blue-dark);
	color: #fff;
}

.td-btn--outline {
	background: transparent;
	border-color: var(--td-navy);
	color: var(--td-navy);
}

.td-btn--outline:hover,
.td-btn--outline:focus {
	background: var(--td-navy);
	color: #fff;
}

.td-btn--light {
	background: #fff;
	color: var(--td-navy);
}

.td-btn--light:hover,
.td-btn--light:focus {
	background: var(--td-tint);
	color: var(--td-navy);
}

/* ==========================================================================
   4. Naglowek
   ========================================================================== */

.td-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--td-line);
}

.td-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 84px;
}

.td-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	flex-shrink: 0;
}

.td-brand img {
	height: 46px;
	width: auto;
}

.td-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.td-brand__name {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--td-navy);
	letter-spacing: .02em;
}

.td-nav__list {
	display: flex;
	align-items: center;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.td-nav__list a {
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--td-navy);
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	display: block;
}

.td-nav__list a:hover,
.td-nav__list a:focus,
.td-nav__list .current-menu-item > a,
.td-nav__list .current_page_item > a {
	color: var(--td-blue-dark);
	border-bottom-color: var(--td-blue);
}

.td-header__cta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.td-header__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 1.02rem;
	color: var(--td-navy);
	text-decoration: none;
	white-space: nowrap;
}

.td-header__phone svg {
	width: 18px;
	height: 18px;
	fill: var(--td-blue);
	flex-shrink: 0;
}

.td-header__phone:hover {
	color: var(--td-blue-dark);
}

/* Przelacznik menu mobilnego */
.td-menu-toggle {
	display: none;
	width: 46px;
	height: 46px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--td-line);
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.td-menu-toggle span {
	display: block;
	position: relative;
	width: 22px;
	height: 2px;
	background: var(--td-navy);
}

.td-menu-toggle span::before,
.td-menu-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
	width: 22px;
	height: 2px;
	background: var(--td-navy);
}

.td-menu-toggle span::before { top: -7px; }
.td-menu-toggle span::after { top: 7px; }

/* ==========================================================================
   5. Hero
   ========================================================================== */

.td-hero {
	position: relative;
	background: var(--td-navy) center/cover no-repeat;
	color: #fff;
}

.td-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(23, 29, 61, .92) 0%, rgba(23, 29, 61, .78) 45%, rgba(23, 29, 61, .35) 100%);
}

.td-hero__inner {
	position: relative;
	z-index: 1;
	padding-block: 110px 120px;
	max-width: 760px;
}

.td-hero__eyebrow {
	display: inline-block;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #8fd4f5;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--td-blue);
}

.td-hero h1 {
	color: #fff;
	margin-bottom: .5em;
}

.td-hero__lead {
	font-size: 1.2rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, .92);
	margin-bottom: 2rem;
}

.td-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.td-hero__actions .td-btn--outline {
	border-color: rgba(255, 255, 255, .75);
	color: #fff;
}

.td-hero__actions .td-btn--outline:hover,
.td-hero__actions .td-btn--outline:focus {
	background: #fff;
	color: var(--td-navy);
}

/* ==========================================================================
   6. Pasek atutow
   ========================================================================== */

.td-usp {
	background: var(--td-tint);
	border-bottom: 1px solid var(--td-line);
}

.td-usp__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	padding-block: 48px;
}

.td-usp__item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.td-usp__icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid var(--td-line);
}

.td-usp__icon svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: var(--td-blue);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.td-usp__title {
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--td-navy);
	margin: 0 0 4px;
	line-height: 1.35;
}

.td-usp__text {
	font-size: .92rem;
	line-height: 1.6;
	color: var(--td-muted);
	margin: 0;
}

/* ==========================================================================
   7. Sekcje tresci (automatyczne z edytora klasycznego)
   ========================================================================== */

.td-section {
	padding-block: 84px;
	background: #fff;
}

.td-section--alt {
	background: var(--td-tint);
}

.td-section__inner {
	max-width: 900px;
}

.td-section h2 {
	margin-bottom: .7em;
	position: relative;
	padding-top: 22px;
}

.td-section h2::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 56px;
	height: 4px;
	background: var(--td-blue);
}

.td-section p {
	color: #35485a;
}

/* Sekcja pelnej szerokosci - np. z galeria */
.td-section--wide .td-section__inner {
	max-width: 100%;
}

.td-section--wide .td-gallery__nav {
	display: flex;
	gap: 10px;
	margin-bottom: 24px;
}

/* Sekcja z obrazkiem - uklad dwukolumnowy, naprzemienny */
.td-section--media .td-section__inner {
	max-width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}

.td-section--media .td-section__media img {
	width: 100%;
	height: 470px;
	object-fit: cover;
	background: var(--td-tint);
}

/* Co druga sekcja ze zdjeciem ma je po lewej stronie. Klase nadaje motyw,
   licząc wyłącznie sekcje ze zdjęciem - patrz td_section_content(). */
.td-section--media-flip .td-section__media {
	order: -1;
}

/* W ukladzie dwukolumnowym lista atutow ma za malo miejsca na dwie kolumny. */
.td-section--media ul {
	grid-template-columns: 1fr;
}

/* Lista atutow jako siatka z ptaszkami */
.td-section ul {
	list-style: none;
	margin: 1.5em 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px 32px;
}

.td-section ul li {
	position: relative;
	padding-left: 34px;
	line-height: 1.55;
	color: #35485a;
}

.td-section ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .35em;
	width: 20px;
	height: 20px;
	background: var(--td-blue);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center/contain;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center/contain;
}

/* ==========================================================================
   7a. Etapy realizacji - shortcode [td_proces]
   ========================================================================== */

.td-section--steps .td-section__inner {
	max-width: 100%;
}

.td-steps {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin: 2.4rem 0 0;
	padding: 0;
	counter-reset: none;
}

.td-steps__item {
	background: #fff;
	border: 1px solid var(--td-line);
	border-top: 4px solid var(--td-blue);
	padding: 28px 26px 30px;
}

/* Na przygaszonym tle karty sa biale, na bialym - przygaszone. */
.td-section:not(.td-section--alt) .td-steps__item {
	background: var(--td-tint);
}

.td-steps__num {
	display: block;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	color: var(--td-blue);
	margin-bottom: 14px;
}

.td-steps__title {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--td-navy);
	margin: 0 0 .5em;
	line-height: 1.35;
	padding-top: 0;
}

.td-steps__title::before {
	display: none;
}

.td-steps__text {
	font-size: .94rem;
	line-height: 1.65;
	color: var(--td-muted);
	margin: 0;
}

/* ==========================================================================
   8. FAQ
   ========================================================================== */

.td-faq {
	display: grid;
	gap: 18px;
	margin-top: 2rem;
}

.td-faq__item {
	background: #fff;
	border: 1px solid var(--td-line);
	border-left: 4px solid var(--td-blue);
}

/* Karty odcinaja sie od tla niezaleznie od tego, ktora sekcja z rzedu wypadl
   FAQ - dzieki temu tlo sekcji moze alternowac swobodnie. */
.td-section:not(.td-section--alt) .td-faq__item {
	background: var(--td-tint);
}

/* Pasek z pytaniem - element klikalny. Bez przejsc i zsuwania: klient nie
   chce animacji, wiec karta otwiera sie natychmiast. */
.td-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 26px;
	cursor: pointer;
	list-style: none;
}

/* Domyslny trojkacik przegladarki - zastepujemy go wlasnym znakiem +/-. */
.td-faq__q::-webkit-details-marker {
	display: none;
}

.td-faq__q h3 {
	font-size: 1.12rem;
	font-weight: 600;
	color: var(--td-navy);
	margin: 0;
	line-height: 1.4;
	padding-top: 0;
}

.td-faq__q h3::before {
	display: none;
}

.td-faq__q:hover h3 {
	color: var(--td-blue-dark);
}

.td-faq__q::after {
	content: "";
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background: var(--td-blue);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/></svg>") no-repeat center/contain;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/></svg>") no-repeat center/contain;
}

.td-faq__item[open] .td-faq__q::after {
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12h14' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/></svg>") no-repeat center/contain;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12h14' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/></svg>") no-repeat center/contain;
}

.td-faq__a {
	color: #35485a;
	padding: 0 26px 24px;
}

.td-faq__a p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   9. Galeria / slider realizacji
   ========================================================================== */

.td-gallery {
	padding-block: 84px;
	background: #fff;
}

.td-gallery__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 36px;
}

.td-gallery__head h2 {
	margin: 0;
	padding-top: 22px;
	position: relative;
}

.td-gallery__head h2::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 56px;
	height: 4px;
	background: var(--td-blue);
}

.td-gallery__nav {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.td-slider__btn {
	width: 48px;
	height: 48px;
	padding: 0;
	background: #fff;
	border: 1px solid var(--td-line);
	color: var(--td-navy);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.td-slider__btn:hover {
	background: var(--td-navy);
	border-color: var(--td-navy);
	color: #fff;
}

.td-slider__btn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.td-slider {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: 12px;
}

.td-slider__item {
	flex: 0 0 auto;
	width: min(420px, 78vw);
	scroll-snap-align: start;
	margin: 0;
}

.td-slider__item img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	background: var(--td-tint);
}

.td-slider__item figcaption {
	font-size: .88rem;
	color: var(--td-muted);
	padding-top: 8px;
}

/* Galeria WordPressa renderowana jako slider */
.td-gallery-wrap {
	margin-block: 2.5rem;
}

/* ==========================================================================
   10. Pasek CTA
   ========================================================================== */

.td-cta {
	background: var(--td-navy);
	color: #fff;
	padding-block: 68px;
}

.td-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}

.td-cta h2 {
	color: #fff;
	margin: 0 0 .35em;
	font-size: 1.95rem;
}

.td-cta p {
	margin: 0;
	color: rgba(255, 255, 255, .85);
	max-width: 620px;
}

.td-cta__actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	flex-shrink: 0;
}

.td-cta__actions .td-btn--outline {
	border-color: rgba(255, 255, 255, .75);
	color: #fff;
}

.td-cta__actions .td-btn--outline:hover,
.td-cta__actions .td-btn--outline:focus {
	background: #fff;
	color: var(--td-navy);
}

/* ==========================================================================
   11. Naglowek podstrony
   ========================================================================== */

.td-pagehead {
	background: var(--td-navy);
	color: #fff;
	padding-block: 66px;
}

.td-pagehead h1 {
	color: #fff;
	margin: 0;
	font-size: 2.6rem;
}

.td-pagehead__crumbs {
	font-size: .85rem;
	color: rgba(255, 255, 255, .7);
	margin-bottom: 12px;
}

.td-pagehead__crumbs a {
	color: rgba(255, 255, 255, .9);
	text-decoration: none;
}

.td-pagehead__crumbs a:hover {
	color: #fff;
	text-decoration: underline;
}

/* ==========================================================================
   12. Kontakt
   ========================================================================== */

.td-contact {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 60px;
	align-items: start;
}

.td-contact__card {
	background: var(--td-tint);
	border: 1px solid var(--td-line);
	padding: 34px;
}

.td-contact__row {
	display: flex;
	gap: 14px;
	padding-block: 16px;
	border-bottom: 1px solid var(--td-line);
	align-items: flex-start;
}

.td-contact__row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.td-contact__row:first-child {
	padding-top: 0;
}

.td-contact__row svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 4px;
	fill: none;
	stroke: var(--td-blue);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.td-contact__label {
	display: block;
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--td-muted);
	margin-bottom: 2px;
}

.td-contact__value {
	font-size: 1.02rem;
	color: var(--td-navy);
	font-weight: 500;
	line-height: 1.5;
}

.td-contact__value a {
	color: var(--td-navy);
	text-decoration: none;
}

.td-contact__value a:hover {
	color: var(--td-blue-dark);
	text-decoration: underline;
}

/* Contact Form 7 */
.wpcf7 {
	margin: 0;
}

.wpcf7 label {
	display: block;
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--td-navy);
	margin-bottom: 24px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	margin-top: 7px;
	padding: 13px 15px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	color: var(--td-ink);
	background: #fff;
	border: 1px solid var(--td-line);
	border-radius: 0;
}

.wpcf7 textarea {
	min-height: 150px;
	resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
	border-color: var(--td-blue);
	outline: none;
	box-shadow: 0 0 0 3px rgba(30, 162, 224, .15);
}

.wpcf7 input[type="submit"] {
	display: inline-block;
	padding: 14px 34px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background: var(--td-blue);
	border: 2px solid var(--td-blue);
	border-radius: 0;
	cursor: pointer;
	width: auto;
	margin-top: 0;
}

.wpcf7 input[type="submit"]:hover {
	background: var(--td-blue-dark);
	border-color: var(--td-blue-dark);
}

.wpcf7-not-valid-tip {
	font-size: .85rem;
	font-weight: 500;
	letter-spacing: normal;
	text-transform: none;
	color: #c0392b;
	margin-top: 5px;
}

.wpcf7 form .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 14px 18px;
	border-width: 1px;
	border-radius: 0;
	font-size: .95rem;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: #2e7d32;
	background: #edf7ed;
	color: #1e5620;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
	border-color: #c0392b;
	background: #fdeceb;
	color: #8c261b;
}

.td-form-consent label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: .82rem;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	color: var(--td-muted);
	line-height: 1.55;
}

.td-form-consent input[type="checkbox"] {
	margin-top: 4px;
	flex-shrink: 0;
}

.td-form-consent .wpcf7-list-item {
	margin: 0;
}

/* ==========================================================================
   13. Stopka
   ========================================================================== */

.td-footer {
	background: var(--td-navy-dark);
	color: rgba(255, 255, 255, .8);
	padding-top: 64px;
	font-size: .95rem;
}

.td-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 52px;
}

.td-footer h3 {
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 20px;
}

.td-footer p {
	margin-bottom: .8em;
	line-height: 1.7;
}

.td-footer a {
	color: rgba(255, 255, 255, .85);
	text-decoration: none;
}

.td-footer a:hover,
.td-footer a:focus {
	color: #fff;
	text-decoration: underline;
}

.td-footer__logo {
	height: 62px;
	width: auto;
	margin-bottom: 20px;
}

.td-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.td-footer__list li {
	margin-bottom: 10px;
}

.td-footer__meta {
	font-size: .85rem;
	color: rgba(255, 255, 255, .55);
	line-height: 1.8;
}

.td-footer__social {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

.td-footer__social svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.td-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .12);
	padding-block: 22px;
	display: flex;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	font-size: .85rem;
	color: rgba(255, 255, 255, .55);
}

/* ==========================================================================
   14. Mobilny pasek kontaktowy
   ========================================================================== */

.td-mobilebar {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99;
	background: var(--td-navy);
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.td-mobilebar a {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 9px 4px;
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
}

.td-mobilebar a + a {
	border-left: 1px solid rgba(255, 255, 255, .12);
}

.td-mobilebar svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: #8fd4f5;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ==========================================================================
   15. Tresc ogolna / wpis
   ========================================================================== */

.td-entry {
	padding-block: 72px;
}

.td-entry img {
	height: auto;
}

.td-entry .alignleft {
	float: left;
	margin: 0 1.8em 1.2em 0;
}

.td-entry .alignright {
	float: right;
	margin: 0 0 1.2em 1.8em;
}

.td-entry .aligncenter {
	margin-inline: auto;
}

.td-entry blockquote {
	margin: 1.8em 0;
	padding: 4px 0 4px 26px;
	border-left: 4px solid var(--td-blue);
	font-size: 1.1rem;
	color: var(--td-navy);
}

.td-entry table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5em;
}

.td-entry th,
.td-entry td {
	border: 1px solid var(--td-line);
	padding: 10px 14px;
	text-align: left;
}

.td-entry th {
	background: var(--td-tint);
	color: var(--td-navy);
}

.td-map {
	margin-top: 2.5rem;
	line-height: 0;
}

.td-map iframe {
	width: 100%;
	height: 420px;
	border: 0;
	display: block;
}

/* ==========================================================================
   16. RWD
   ========================================================================== */

@media (max-width: 1080px) {
	h1 { font-size: 2.7rem; }
	h2 { font-size: 1.95rem; }

	.td-usp__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px;
	}

	.td-contact {
		grid-template-columns: 1fr;
		gap: 44px;
	}

	.td-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 36px;
	}

	.td-steps {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 900px) {
	.td-menu-toggle {
		display: flex;
	}

	.td-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--td-line);
		box-shadow: 0 14px 26px rgba(23, 29, 61, .09);
	}

	.td-nav.is-open {
		display: block;
	}

	.td-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 24px 20px;
	}

	.td-nav__list li {
		border-bottom: 1px solid var(--td-line);
	}

	.td-nav__list li:last-child {
		border-bottom: 0;
	}

	.td-nav__list a {
		padding: 14px 0;
		border-bottom: 0;
	}

	.td-header__phone span {
		display: none;
	}

	.td-section--media .td-section__inner {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	/* Na waskim ekranie zdjecie zawsze nad tekstem - naprzemiennosc nie ma
	   sensu w jednej kolumnie. */
	.td-section--media .td-section__media {
		order: -1;
	}

	.td-section--media .td-section__media img {
		height: 340px;
	}
}

@media (max-width: 768px) {
	body {
		font-size: 16px;
	}

	h1 { font-size: 2.15rem; }
	h2 { font-size: 1.65rem; }
	h3 { font-size: 1.2rem; }

	.td-container {
		padding-inline: 18px;
	}

	.td-hero__inner {
		padding-block: 68px 74px;
	}

	.td-hero__lead {
		font-size: 1.05rem;
	}

	.td-hero__actions .td-btn,
	.td-cta__actions .td-btn {
		flex: 1 1 100%;
	}

	.td-section,
	.td-gallery {
		padding-block: 54px;
	}

	/* Dwie kolumny atutow sa na telefonie za waskie - tekst sie lamie po slowie. */
	.td-usp__grid {
		grid-template-columns: 1fr;
		gap: 22px;
		padding-block: 34px;
	}

	.td-section ul {
		grid-template-columns: 1fr;
	}

	.td-steps {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-top: 1.8rem;
	}

	.td-steps__item {
		padding: 22px;
	}

	.td-section--media .td-section__media img {
		height: 250px;
	}

	.td-cta {
		padding-block: 48px;
	}

	.td-cta__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 26px;
	}

	.td-gallery__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
	}

	.td-slider__item img {
		height: 230px;
	}

	.td-pagehead {
		padding-block: 44px;
	}

	.td-pagehead h1 {
		font-size: 1.95rem;
	}

	.td-contact__card {
		padding: 22px;
	}

	.td-faq__q {
		padding: 18px 20px;
		gap: 14px;
	}

	.td-faq__a {
		padding: 0 20px 20px;
	}

	.td-mobilebar {
		display: flex;
	}

	body {
		padding-bottom: 58px;
	}

	.td-footer__grid {
		grid-template-columns: 1fr;
		gap: 32px;
		padding-bottom: 36px;
	}

	.td-footer__bottom {
		flex-direction: column;
		gap: 8px;
	}

	.td-entry .alignleft,
	.td-entry .alignright {
		float: none;
		margin: 0 0 1.4em;
	}
}

/* ==========================================================================
   17. Druk
   ========================================================================== */

@media print {
	.td-header,
	.td-mobilebar,
	.td-cta,
	.td-gallery__nav {
		display: none !important;
	}

	body {
		font-size: 12pt;
		padding-bottom: 0;
	}
}



.td-brand__text{
	dispalay:none !important;
}

/* ==========================================================================
   Blog - lista wpisow i pojedynczy wpis
   ========================================================================== */

.td-postmeta {
	margin: 14px 0 0;
	font-size: .9rem;
	color: rgba(255, 255, 255, .75);
}

.td-postmeta a {
	color: rgba(255, 255, 255, .9);
	text-decoration: none;
}

.td-postmeta a:hover {
	color: #fff;
	text-decoration: underline;
}

.td-tags {
	margin-top: 34px;
	padding-top: 20px;
	border-top: 1px solid var(--td-line);
	font-size: .9rem;
	color: var(--td-muted);
}

.td-tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 5px 12px;
	background: var(--td-tint);
	border-radius: 999px;
	color: var(--td-ink);
	text-decoration: none;
}

.td-tags a:hover {
	background: var(--td-blue);
	color: #fff;
}

/* Lista wpisow */

.td-bloglist {
	padding-block: 70px;
	background: var(--td-tint);
}

.td-bloglist__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.td-card {
	display: flex;
	flex-direction: column;
	background: var(--td-white);
	border: 1px solid var(--td-line);
	border-radius: 6px;
	overflow: hidden;
}

.td-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--td-tint);
}

.td-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.td-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px;
}

.td-card__meta {
	margin: 0 0 10px;
	font-size: .82rem;
	color: var(--td-muted);
}

.td-card__title {
	margin: 0 0 12px;
	font-size: 1.25rem;
	line-height: 1.35;
}

.td-card__title a {
	color: var(--td-navy);
	text-decoration: none;
}

.td-card__title a:hover {
	color: var(--td-blue);
}

.td-card__excerpt {
	margin: 0 0 18px;
	color: var(--td-muted);
	font-size: .95rem;
}

.td-card__more {
	margin-top: auto;
	align-self: flex-start;
	font-weight: 600;
	color: var(--td-blue-dark);
	text-decoration: none;
}

.td-card__more:hover {
	text-decoration: underline;
}

/* Paginacja */

.td-bloglist .navigation.pagination {
	margin-top: 44px;
}

.td-bloglist .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.td-bloglist .page-numbers {
	display: inline-block;
	min-width: 42px;
	padding: 9px 14px;
	background: var(--td-white);
	border: 1px solid var(--td-line);
	border-radius: 4px;
	text-align: center;
	color: var(--td-ink);
	text-decoration: none;
}

.td-bloglist .page-numbers:hover {
	border-color: var(--td-blue);
	color: var(--td-blue-dark);
}

.td-bloglist .page-numbers.current {
	background: var(--td-navy);
	border-color: var(--td-navy);
	color: #fff;
}

/* Nawigacja miedzy wpisami */

.td-postnav {
	padding-block: 0 70px;
}

.td-postnav__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	padding-top: 30px;
	border-top: 1px solid var(--td-line);
}

.td-postnav__link {
	display: block;
	padding: 18px 22px;
	background: var(--td-tint);
	border-radius: 6px;
	text-decoration: none;
}

.td-postnav__link:hover {
	background: var(--td-line);
}

.td-postnav__link--next {
	grid-column: 2;
	text-align: right;
}

.td-postnav__label {
	display: block;
	font-size: .8rem;
	color: var(--td-muted);
	margin-bottom: 4px;
}

.td-postnav__title {
	display: block;
	font-weight: 600;
	color: var(--td-navy);
}

@media (max-width: 900px) {

	.td-bloglist__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {

	.td-bloglist {
		padding-block: 46px;
	}

	.td-bloglist__grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.td-postnav__inner {
		grid-template-columns: 1fr;
	}

	.td-postnav__link--next {
		grid-column: 1;
		text-align: left;
	}
}

/* ==========================================================================
   Zdjecie wiodace nad trescia (podstrony i wpisy)
   ========================================================================== */

.td-pagehero {
	width: 100%;
	max-width: 860px;
	margin: 40px auto 0;
	padding-inline: 24px;
}

.td-pagehero img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

@media (max-width: 768px) {

	.td-pagehero {
		margin-top: 26px;
	}
}
