/* Szablon PB Ciroko – Bootstrap 5, odwzorowanie dawnego wyglądu */
:root {
	--ck-red: #e2061f;
	--ck-red-dark: #9e0618;
	--ck-blue: #0e76ab;
	--ck-blue-dark: #01426a;
	--ck-ink: #2b2b2b;
	--ck-text: #3d3d3d;
	--ck-muted: #8a8a8a;
	--ck-line: #dadada;
	--ck-panel: #f2f2f2;
	--ck-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
	--bs-body-font-family: Arial, Helvetica, sans-serif;
	--bs-body-font-size: .9375rem;
	--bs-body-color: var(--ck-text);
	--bs-link-color: var(--ck-red);
	--bs-link-hover-color: var(--ck-red-dark);
	--bs-link-color-rgb: 226, 6, 31;
	--bs-link-hover-color-rgb: 158, 6, 24;
	--bs-primary: var(--ck-red);
	--bs-primary-rgb: 226, 6, 31;
}

body {
	background: #fff linear-gradient(#ececec, #fff 600px) no-repeat;
	line-height: 1.6;
}
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }
:focus-visible { outline: 3px solid var(--ck-blue); outline-offset: 2px; }

.site-wrap { max-width: 1005px; padding: 0 .75rem; }
@media (min-width: 1030px) { .site-wrap { padding: 0; } }

/* ------------------------------------------------ nagłówek */
.header-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 1.25rem; gap: .5rem; }
.site-logo img { width: 200px; height: auto; }
@media (min-width: 992px) { .site-logo img { width: 244px; } }
.navbar-toggler { border-color: var(--ck-line); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(226, 6, 31, .25); }

.main-nav ul.mod-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; width: 100%; }
.main-nav .mod-menu > li > a,
.main-nav .mod-menu > li > span {
	display: block; padding: .7rem 1rem; color: var(--ck-ink); text-decoration: none;
	font-family: Georgia, 'Times New Roman', serif; font-size: .82rem; border-bottom: 1px solid var(--ck-line);
}
.main-nav .mod-menu > li.current > a,
.main-nav .mod-menu > li.active > a,
.main-nav .mod-menu > li.alias-parent-active > a,
.main-nav .mod-menu > li > a:hover { background: var(--ck-red); color: #fff; }
.main-nav .mod-menu ul { display: none; }
@media (min-width: 992px) {
	.main-nav { flex-grow: 0; }
	.main-nav ul.mod-menu { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; background: var(--ck-panel); border-radius: 4px; }
	.main-nav .mod-menu > li > a, .main-nav .mod-menu > li > span { border-bottom: 0; padding: .7rem .6rem; border-radius: 3px; }
	.lang-de .main-nav .mod-menu > li > a, .lang-en .main-nav .mod-menu > li > a { padding: .7rem .45rem; font-size: .78rem; }
}

.header-sub { display: flex; justify-content: space-between; align-items: flex-start; margin-top: .75rem; }
.eu-logo { width: 72px; height: auto; }
@media (min-width: 992px) { .eu-logo { width: 100px; margin-right: 4px; } }

/* przełącznik języka */
.lang-switch ul { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0 0 0 .4rem; font-size: .75rem; }
.lang-switch li { display: flex; align-items: center; }
.lang-switch li + li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #c8c8c8; margin-right: 1.1rem; }
.lang-switch a { color: #555; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.lang-switch a:hover, .lang-switch .lang-active a { color: var(--ck-red); }
.lang-switch img { width: 16px; height: 16px; object-fit: cover; border-radius: 50%; }

/* hero */
.hero { position: relative; margin-top: .25rem; }
.hero-banner { display: flex; align-items: flex-end; overflow: hidden; }
@media (min-width: 992px) {
	.header-sub { position: relative; z-index: 2; margin-bottom: -98px; pointer-events: none; }
	.header-sub > * { pointer-events: auto; }
	.hero-banner .banner { margin-left: 140px; }
}
.hero-banner .banner { display: block; width: 100%; max-width: 865px; height: auto; margin-left: auto; }
.hero-banner .iso { position: absolute; left: 0; bottom: 8px; width: 100px; height: auto; z-index: 1; }
@media (max-width: 575.98px) { .hero-banner .iso { width: 64px; bottom: 4px; } }
.hero-slider .carousel { border-radius: 4px 4px 0 0; overflow: hidden; }

/* kafelki sekcji */
.tiles { margin-top: .5rem; }
.ciroko-tile {
	position: relative; display: block; aspect-ratio: 327 / 288; background: #ccc center / cover no-repeat;
	color: #fff; text-decoration: none; overflow: hidden;
}
.ciroko-tile span {
	position: absolute; left: 0; right: 0; top: 0; padding: .6rem .5rem; text-align: center;
	font-family: var(--ck-head); font-weight: 400; font-size: clamp(1.15rem, 2.4vw, 1.55rem); line-height: 1.1;
	color: #333; background: linear-gradient(rgba(255, 255, 255, .92), rgba(255, 255, 255, .75));
}
.ciroko-tile:hover span, .ciroko-tile:focus span { background: var(--ck-red); color: #fff; }
.ciroko-tile-szczecin { background-image: url(../images/nier_szczecin.jpg); }
.ciroko-tile-swinoujscie { background-image: url(../images/nier_swinoujscie.jpg); }
.ciroko-tile-uslugi { background-image: url(../images/pozostale_uslugi.jpg); }
@media (max-width: 767.98px) { .ciroko-tile { aspect-ratio: 16 / 7; } }

/* ------------------------------------------------ układ treści */
.site-body { margin-top: .25rem; }
.site-side { background: linear-gradient(90deg, #f7f7f7, #fff); }
@media (min-width: 992px) { .site-side { padding-right: 0; } }

.where-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--ck-panel); padding: 1rem 1.5rem; min-height: 60px; }
.where { margin: 0; font-size: .75rem; }
.where-icons { display: flex; gap: 1.5rem; margin: 0; }
.where-icons a { display: block; width: 18px; height: 18px; background: center / contain no-repeat; opacity: .55; }
.where-icons a:hover { opacity: 1; }
.ico-home { background-image: url(../images/legacy/home_ico.png); }
.ico-sitemap { background-image: url(../images/legacy/sitemap_ico.png); }
.ico-mail { background-image: url(../images/legacy/mail_ico.png); }

.content { padding: 1.5rem 1.5rem 2.5rem; }
@media (max-width: 575.98px) { .content { padding: 1.25rem .25rem 2rem; } .where-bar { padding: .75rem; } }
.content h1, .content .page-header h1, .content .page-header h2 {
	font-family: var(--ck-head); font-weight: 300; color: #444; letter-spacing: .01em;
}
.content .page-header h1, .content > .com-content-article .page-header h1, .content h1 { font-size: 2rem; margin: 0 0 1rem; }
.content h2 { font-size: 1.35rem; }
.content h3 { font-size: 1.1rem; }
.content p, .content li { max-width: 75ch; }
.content table p, .content table li { max-width: none; }
.content img { max-width: 100%; height: auto; }
.content .table-responsive { margin-bottom: 1rem; }

.com-content-article .item-image { max-width: 40%; }
.article-info dd, .article-info-term { margin: 0; }
.pagination { flex-wrap: wrap; gap: .25rem; justify-content: center; }
.pagination .page-link { color: var(--ck-ink); border: 0; }
.pagination .active > .page-link { background: transparent; color: var(--ck-ink); font-weight: 700; }

/* galeria */
.ciroko-gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ciroko-gallery a:focus-visible img { outline: 3px solid var(--ck-blue); }
#galleryModal .gallery-full { max-height: 85vh; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(0, 0, 0, .45); color: #fff; font-size: 2.5rem; line-height: 1; padding: .25rem .9rem; }
.gallery-nav.prev { left: 0; } .gallery-nav.next { right: 0; }

/* pola lokali */
.fields-container { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin: 1rem 0; }
.fields-container .field-entry { background: var(--ck-panel); padding: .6rem .8rem; border-left: 3px solid var(--ck-red); }
.fields-container .field-label { display: block; font-size: .75rem; color: var(--ck-muted); }
.fields-container .field-value { font-weight: 700; }

/* zwijane sekcje kontaktu */
.ciroko-details { border: 1px solid var(--ck-line); margin-bottom: .5rem; background: #fff; }
.ciroko-details summary { padding: .7rem 1rem; font-weight: 700; cursor: pointer; background: var(--ck-panel); }
.ciroko-details[open] summary { color: var(--ck-red); }
.ciroko-details > *:not(summary) { padding: 0 1rem; }
.ciroko-details > *:not(summary):first-of-type { padding-top: .75rem; }

/* formularz kontaktowy */
.contact-form .control-group { margin-bottom: 1rem; }
.contact-form label { font-weight: 700; font-size: .85rem; margin-bottom: .25rem; }
.contact-form .form-control, .contact-form .form-select { max-width: 32rem; }
.contact-form textarea.form-control { max-width: 40rem; }
.btn-primary { --bs-btn-bg: var(--ck-red); --bs-btn-border-color: var(--ck-red); --bs-btn-hover-bg: var(--ck-red-dark); --bs-btn-hover-border-color: var(--ck-red-dark); --bs-btn-active-bg: var(--ck-red-dark); }

/* ------------------------------------------------ menu boczne */
.side-menu { margin: 0 0 1.25rem; }
.side-menu .side-title, .side-menu > ul > li > .lvl-1 {
	display: block; font-family: var(--ck-head); font-weight: 300; font-size: 1.45rem; color: #fff; text-decoration: none;
	padding: .6rem 1.1rem; background: linear-gradient(var(--ck-red), var(--ck-red-dark)); border-radius: 3px;
}
.side-menu ul { list-style: none; margin: 0; padding: 0; }
.side-menu li a, .side-menu li span { display: block; text-decoration: none; color: var(--ck-ink); font-size: .78rem; }
.side-menu a.lvl-2, .side-menu span.lvl-2 {
	padding: .65rem .75rem .65rem 2.75rem; margin-left: 1rem; border-bottom: 1px solid #fff; background: linear-gradient(90deg, #f1f1f1, #fafafa); position: relative;
}
.side-menu a.lvl-2::before { content: '→'; position: absolute; left: 1rem; font-size: .7rem; }
.side-menu a.lvl-3, .side-menu a.lvl-4 { padding: .45rem .75rem .45rem 3.25rem; margin-left: 1rem; font-size: .74rem; background: #fff; border-bottom: 1px solid #f0f0f0; }
.side-menu a.lvl-4 { padding-left: 4rem; }
.side-menu li.current > a, .side-menu a:hover { color: var(--ck-red); }
.side-menu li > ul { display: none; }
.side-menu li.open > ul { display: block; }

/* menu nieruchomości – sekcje jako kolorowe belki */
.side-sections > li { margin-bottom: .35rem; }
.side-sections > li > a.lvl-1 { font-size: 1.35rem; background: linear-gradient(#1585bf, var(--ck-blue-dark)); }
.side-sections > li.open > a.lvl-1, .side-sections > li > a.lvl-1:hover { background: linear-gradient(var(--ck-red), var(--ck-red-dark)); color: #fff; }

/* blok siedziby firmy */
.site-side .moduletable, .site-side .mod-custom { padding: 0 .75rem 1rem; font-size: .78rem; }
.site-side h1 { font-family: var(--ck-head); font-weight: 300; font-size: 1.6rem; color: #555; margin: 1rem .25rem .5rem; }
.site-side iframe { width: 100%; border: 1px solid var(--ck-line); }
.site-side p { float: none !important; margin-left: .25rem !important; line-height: 1.55; }
.site-side .ratio { margin: .5rem .25rem 1rem !important; }

/* ------------------------------------------------ stopka */
.site-footer { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; align-items: center; background: var(--ck-panel); padding: 1.5rem; font-size: .72rem; color: var(--ck-muted); margin-bottom: 1rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ck-muted); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--ck-red); }
@media (max-width: 767.98px) { .site-footer { flex-direction: column; text-align: center; } }

/* ------------------------------------------------ cookies */
.cookie-notice { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--ck-line); padding: .75rem 1rem; text-align: center; font-size: .8rem; box-shadow: 0 -2px 12px rgba(0, 0, 0, .06); }
.cookie-notice p { margin: 0; }

@media (prefers-reduced-motion: reduce) { .carousel-item { transition: none; } }

/* slider – kwadratowe wskaźniki jak w dawnym szablonie */
.hero-slider .carousel-indicators { justify-content: flex-start; margin: 0 0 0 1.5rem; top: 1.5rem; bottom: auto; }
.hero-slider .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border: 0; margin: 0 3px; background: #333; opacity: 1; }
.hero-slider .carousel-indicators .active { background: var(--ck-red); }
.hero-slider .carousel-item img { aspect-ratio: 855 / 245; object-fit: cover; }

/* kontakt: działy jak dawne rozwijane belki ze strzałką */
.ciroko-details summary { list-style: none; position: relative; padding: 1.1rem 3.5rem 1.1rem 1rem; font-size: .8rem; text-transform: uppercase; }
.ciroko-details summary::-webkit-details-marker { display: none; }
.ciroko-details summary::after {
	content: '›'; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%;
	background: radial-gradient(circle at 40% 35%, #ff4a5c, var(--ck-red-dark)); color: #fff; font-size: 1.4rem; line-height: 27px; text-align: center; transition: transform .2s;
}
.ciroko-details[open] summary::after { transform: translateY(-50%) rotate(90deg); }
.contact-form .controls textarea { min-height: 9.5rem; }
.contact-miscinfo { margin-top: 2rem; }
.contact-miscinfo h1 { font-family: var(--ck-head); font-weight: 300; font-size: 1.8rem; margin-top: 2rem; }

/* lista aktualności – tytuł, data, miniatura z zajawką, "więcej" */
.blog-item { padding: 0; }
.news-item { border-bottom: 1px solid #ececec; padding: 1.1rem 0 .9rem; display: flow-root; }
.news-item .item-title { font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: .9rem; line-height: 1.35; margin: 0 0 .45rem;
	padding-left: 2.25rem; background: url(../images/legacy/kalendarz.jpg) left 1px no-repeat; }
.news-item .item-title a { color: var(--ck-ink); text-decoration: none; }
.news-item .item-title a:hover { color: var(--ck-red); }
.news-date { font-size: .72rem; color: var(--ck-muted); margin: 0 0 .75rem; padding-left: 2.25rem; background: url(../images/legacy/zegar.jpg) .6rem center no-repeat; }
.news-body { display: flex; gap: 1.25rem; align-items: flex-start; }
.news-thumb { flex: 0 0 98px; }
.news-thumb img { width: 98px; height: 98px; object-fit: cover; display: block; }
.news-text { font-size: .82rem; }
.news-text p { margin: 0 0 .5rem; }
.readmore { clear: both; text-align: right; margin: 0; }
.readmore .btn { background: none; border: 0; padding: .25rem 0; color: var(--ck-ink); font-weight: 700; font-size: .8rem; }
.readmore .btn::after { content: '›'; display: inline-block; width: 16px; height: 16px; margin-left: .75rem; line-height: 14px; text-align: center; color: var(--ck-red); background: #eee; border: 1px solid var(--ck-line); border-radius: 2px; }
.readmore .btn:hover { color: var(--ck-red); }
.com-content-article .article-info { display: none; }
.com-content-article .item-image { float: left; margin: 0 1.25rem .75rem 0; }
.com-content-article .item-image img { max-width: 98px; }
@media (max-width: 575.98px) { .news-thumb { flex-basis: 72px; } .news-thumb img { width: 72px; height: 72px; } }

/* ------------------------------------------------ treści przeniesione z Drupala: sztywne szerokości -> elastyczne */
.content div[style*="width"], .content p[style*="width"], .content span[style*="width"] { max-width: 100% !important; }
.content img[width] { height: auto; }
.content iframe { max-width: 100%; }
.content .lang_pl, .content .lang_en, .content .lang_de { display: block; }
.lang-pl .content .lang_en, .lang-pl .content .lang_de, .lang-en .content .lang_pl, .lang-en .content .lang_de, .lang-de .content .lang_pl, .lang-de .content .lang_en { display: none; }

/* boksy ofert (#con_wrap) */
.content #con_wrap {
	width: auto !important; height: auto !important; float: none !important; clear: both;
	display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 1rem;
	background: #fafafa; border: 1px solid #ebebeb; border-radius: 5px; margin: 0 0 1rem !important; padding: 0 0 1rem !important;
}
.content #con_wrap > br { display: none; }
.content #con_wrap #img { width: auto !important; height: auto !important; float: none !important; flex: 0 0 auto; padding: .75rem 0 0 .75rem !important; }
.content #con_wrap #img img { margin: 0 !important; width: 230px; max-width: 100%; border-radius: 3px; }
.content #con_wrap #top {
	width: auto !important; height: auto !important; float: none !important; flex: 1 1 18rem; min-width: 0;
	background: url(../images/legacy/flowin.jpg) 0 10px no-repeat !important; padding: 1.1rem 1rem .75rem 1.75rem !important; margin: 0 !important;
}
.content #con_wrap #left_con, .content #con_wrap #right_con { width: auto !important; height: auto !important; float: none !important; margin: 0 0 .4rem !important; line-height: 1.5 !important; }
.content #con_wrap #left_con p, .content #con_wrap #right_con p { margin: 0 0 .25rem; }
.content #con_wrap #left_con p:empty, .content #con_wrap p:has(> br:only-child) { display: none; }
.content #con_wrap #opis_info { width: auto !important; height: auto !important; float: none !important; flex: 1 1 100%; margin: .25rem 1.75rem .5rem !important; }
.content #con_wrap #more { float: none !important; margin: 0 1rem 0 auto !important; align-self: flex-end; }
.content #con_wrap #more a { float: none !important; display: inline-block; }
.content #con_wrap #more img { width: 99px; height: auto; }
@media (max-width: 575.98px) { .content #con_wrap #img { flex-basis: 100%; padding: .75rem .75rem 0 !important; } .content #con_wrap #img img { width: 100%; } }

/* telefon: znak ISO pod banerem nie zasłania hasła, niższe kafelki */
@media (max-width: 575.98px) {
	.hero-banner .iso { display: none; }
	.ciroko-tile { aspect-ratio: 16 / 6; }
	.ciroko-tile span { font-size: 1.05rem; padding: .45rem; }
	.tiles .row { --bs-gutter-y: .35rem; }
}
