/*
Theme Name: SRM3
Theme URI:
Description: Odswiezony motyw SRM Wroclaw - kierunek wizualny 6 (instytucjonalny, granat + sygnalowa czerwien). Zachowuje pelna logike motywu srm2 (CPT, role, formularze, AJAX, CSV).
Author: Krzysiek Drozdz (WPmagus.pl) / redesign 2026
Author URI: http://wpmagus.pl/
Version: 3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags:
Text Domain: srm
*/

/* =Design tokens
-------------------------------------------------------------- */
:root {
    --srm-navy: #16182B;
    --srm-navy-2: #101124;
    --srm-navy-3: #0B0C1C;
    --srm-red: #D6001C;
    --srm-red-dark: #A80016;
    --srm-red-tint: #F0B4BC;
    --srm-bg: #F4F4F5;
    --srm-line: #E5E5EA;
    --srm-text: #16182B;
    --srm-muted: #55565F;
    --srm-faint: #888A94;
    --srm-white: #FFFFFF;
    --srm-font-head: 'Libre Franklin', 'Inter', system-ui, sans-serif;
    --srm-font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --srm-maxw: 1160px;
    --srm-radius: 4px;
    --srm-shadow: 0 8px 28px rgba(22, 24, 43, .10);
}

/* =Reset & base
-------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--srm-bg);
    color: var(--srm-text);
    font-family: var(--srm-font-body);
    font-size: 16px;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--srm-red); text-decoration: none; }
a:hover, a:focus { color: var(--srm-red-dark); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--srm-font-head); line-height: 1.2; color: var(--srm-navy); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 12px; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

.sr-only, .screen-reader-text {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 1000;
    background: var(--srm-navy); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* =Layout
-------------------------------------------------------------- */
.container { max-width: var(--srm-maxw); margin: 0 auto; padding: 0 24px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding: 40px 0; }
.layout-full { padding: 40px 0; }
@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; gap: 28px; }
}

/* =Topbar (kontakt + logowanie + szukaj)
-------------------------------------------------------------- */
.topbar {
    background: var(--srm-navy);
    color: #8B8EA3;
    font-size: 13px;
}
.topbar .container { display: flex; align-items: center; gap: 22px; min-height: 36px; }
.topbar a { color: #C9CCDD; }
.topbar a:hover { color: #fff; }
.topbar .topbar-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.topbar .search-container form { display: flex; margin: 0; }
.topbar input[name="s"] {
    background: var(--srm-navy-2); border: 1px solid #2A2D47; color: #fff;
    font-size: 12.5px; padding: 4px 10px; width: 140px; border-radius: 3px;
}
.topbar input[name="s"]:focus { outline: 2px solid var(--srm-red); outline-offset: 1px; }
.topbar .search-toggle {
    background: none; border: 0; color: #C9CCDD; cursor: pointer; font-size: 13px; padding: 4px 6px;
}
@media (max-width: 700px) {
    .topbar .topbar-phones { display: none; }
}

/* =Header (logo + nawigacja glowna)
-------------------------------------------------------------- */
.site-header { background: #fff; border-bottom: 3px solid var(--srm-red); }
.site-header .container {
    display: flex; align-items: center; gap: 36px; min-height: 78px;
}
.site-branding { flex-shrink: 0; }
.site-branding a { display: block; }
.site-branding img { height: 48px; width: auto; display: block; }
#site-title { margin: 0; font-size: 0; } /* nazwa czytana przez czytniki, logo wizualnie */

.primary-nav { margin-left: 8px; }
.primary-nav ul.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav ul.menu li { position: relative; }
.primary-nav ul.menu > li > a {
    display: block; padding: 26px 13px; font-size: 14.5px; font-weight: 500;
    color: var(--srm-muted); text-decoration: none;
}
.primary-nav ul.menu > li > a:hover,
.primary-nav ul.menu > li.current-menu-item > a,
.primary-nav ul.menu > li.current-menu-ancestor > a {
    color: var(--srm-navy); font-weight: 600; text-decoration: none;
    box-shadow: inset 0 -2px 0 var(--srm-red);
}
/* podmenu */
.primary-nav ul.menu li ul {
    display: none; position: absolute; left: 0; top: 100%; z-index: 200;
    min-width: 260px; background: #fff; list-style: none; margin: 0; padding: 6px 0;
    box-shadow: var(--srm-shadow); border-top: 2px solid var(--srm-red);
}
.primary-nav ul.menu li:hover > ul,
.primary-nav ul.menu li:focus-within > ul,
.primary-nav ul.menu li ul.show { display: block; }
.primary-nav ul.menu li ul li a {
    display: block; padding: 9px 18px; font-size: 14px; color: var(--srm-text); white-space: normal;
}
.primary-nav ul.menu li ul li a:hover { background: var(--srm-bg); color: var(--srm-red); text-decoration: none; }

.header-cta { margin-left: auto; display: flex; gap: 10px; flex-shrink: 0; }
.btn {
    display: inline-block; font-weight: 600; font-size: 14px; line-height: 1.2;
    padding: 11px 22px; border-radius: var(--srm-radius); border: 2px solid transparent;
    cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-red { background: var(--srm-red); color: #fff; }
.btn-red:hover, .btn-red:focus { background: var(--srm-red-dark); color: #fff; }
.btn-dark { background: var(--srm-navy); color: #fff; }
.btn-dark:hover, .btn-dark:focus { background: var(--srm-navy-2); color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover, .btn-outline-light:focus { background: rgba(255, 255, 255, .12); color: #fff; }

/* hamburger */
#menu-toggle {
    display: none; background: none; border: 0; font-size: 26px; line-height: 1;
    color: var(--srm-navy); cursor: pointer; padding: 8px 10px; margin-left: auto;
}
@media (max-width: 1020px) {
    .site-header .container { flex-wrap: wrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
    #menu-toggle { display: block; }
    .primary-nav { order: 3; flex-basis: 100%; margin-left: 0; display: none; }
    .primary-nav.menu-open { display: block; }
    .primary-nav ul.menu { flex-direction: column; gap: 0; }
    .primary-nav ul.menu > li > a { padding: 12px 6px; box-shadow: none; border-bottom: 1px solid var(--srm-line); }
    .primary-nav ul.menu li ul { position: static; box-shadow: none; border: 0; padding-left: 16px; display: none; }
    .primary-nav ul.menu li.submenu-open > ul { display: block; }
    .header-cta { display: none; }
}

/* =Hero ze sliderem
-------------------------------------------------------------- */
.hero { position: relative; background: var(--srm-navy); overflow: hidden; }
.hero .slides { position: relative; }
.hero .slide { display: none; position: relative; min-height: 420px; }
.hero .slide.active { display: block; }
.hero .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .slide::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(22, 24, 43, .92) 0%, rgba(22, 24, 43, .55) 55%, rgba(22, 24, 43, .15) 100%);
}
.hero .slide > a { position: absolute; inset: 0; z-index: 2; }
.hero-caption {
    position: relative; z-index: 3; max-width: 680px;
    padding: 64px 24px 76px;
}
.hero-kicker {
    color: var(--srm-red-tint); font-size: 12.5px; letter-spacing: .22em;
    text-transform: uppercase; font-weight: 600; margin: 0 0 14px;
}
.hero-title {
    color: #fff; font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 0 0 16px;
}
.hero-lead { color: #C9CCDD; font-size: 17px; margin: 0 0 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn { font-size: 15px; padding: 14px 28px; }
.hero-dots { position: absolute; right: 32px; bottom: 24px; display: flex; gap: 8px; z-index: 4; }
.hero-dots button {
    width: 26px; height: 4px; border: 0; padding: 0; cursor: pointer;
    background: rgba(255, 255, 255, .4);
}
.hero-dots button.active { background: var(--srm-red); }
@media (max-width: 700px) {
    .hero .slide { min-height: 340px; }
    .hero-caption { padding: 40px 20px 60px; }
    .hero-actions .btn { width: 100%; }
}

/* =Kafelki CTA (slider-overlay menu)
-------------------------------------------------------------- */
.cta-tiles {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; box-shadow: var(--srm-shadow);
    margin: -34px auto 0; position: relative; z-index: 5;
    max-width: calc(var(--srm-maxw) - 48px);
}
.cta-tiles ul { display: contents; list-style: none; margin: 0; padding: 0; }
.cta-tiles li { border-right: 1px solid var(--srm-line); }
.cta-tiles li:last-child { border-right: 0; }
.cta-tiles a {
    display: block; padding: 26px 28px; color: var(--srm-text); text-decoration: none; height: 100%;
}
.cta-tiles a:hover { background: var(--srm-bg); text-decoration: none; }
.cta-tiles a span {
    display: block; font-family: var(--srm-font-head); font-weight: 800; font-size: 17px;
    color: var(--srm-navy); margin-bottom: 6px;
}
.cta-tiles a:hover span { color: var(--srm-red); }
.cta-tiles a { font-size: 13.5px; color: var(--srm-muted); }
@media (max-width: 900px) {
    .cta-tiles { grid-template-columns: 1fr 1fr; }
    .cta-tiles li { border-bottom: 1px solid var(--srm-line); }
}
@media (max-width: 520px) {
    .cta-tiles { grid-template-columns: 1fr; }
}

/* =Tresc: wpisy, strony
-------------------------------------------------------------- */
.section-title {
    font-size: 26px; font-weight: 800; margin: 0 0 22px;
}
.entries .entry {
    background: #fff; padding: 22px 26px; margin-bottom: 14px;
    border-left: 3px solid transparent;
}
.entries .entry:hover { border-left-color: var(--srm-red); }
.entry-title { font-size: 19px; font-weight: 700; margin: 0 0 6px; line-height: 1.35; }
.entry-title a { color: var(--srm-text); }
.entry-title a:hover { color: var(--srm-red); text-decoration: none; }
.entry-meta { font-size: 12.5px; color: var(--srm-faint); letter-spacing: .06em; margin: 0 0 8px; }
.entry-meta a { color: var(--srm-red); font-weight: 600; }
.entry-content { font-size: 15px; color: #3A3B45; }
.entry-content img.alignleft { float: left; margin: 4px 18px 10px 0; }
.entry-content img.alignright { float: right; margin: 4px 0 10px 18px; }

/* karta wpisu z data (aktualnosci) */
.entry-with-date { display: grid; grid-template-columns: 84px 1fr; gap: 18px; }
.entry-date-badge {
    text-align: center; border-right: 1px solid var(--srm-line); padding-right: 16px;
}
.entry-date-badge .d { font-family: var(--srm-font-head); font-size: 28px; font-weight: 800; color: var(--srm-navy); display: block; }
.entry-date-badge .m { font-size: 11px; letter-spacing: .14em; color: var(--srm-faint); text-transform: uppercase; display: block; }

/* paginacja (wp-pagenavi) */
.wp-pagenavi { display: flex; gap: 6px; justify-content: center; margin: 24px 0; font-size: 14px; }
.wp-pagenavi a, .wp-pagenavi span.current, .wp-pagenavi span.extend {
    padding: 7px 13px; background: #fff; border: 1px solid var(--srm-line); color: var(--srm-text); text-decoration: none;
}
.wp-pagenavi span.current { background: var(--srm-navy); color: #fff; border-color: var(--srm-navy); font-weight: 600; }
.wp-pagenavi a:hover { border-color: var(--srm-red); color: var(--srm-red); }

/* =Sidebar + kalendarz
-------------------------------------------------------------- */
#sidebar .widget, .widget-container { margin-bottom: 22px; }
.widget-title, #sidebar h3 {
    font-family: var(--srm-font-head); font-size: 13px; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; color: var(--srm-navy);
}
#sidebar .widget-container { background: #fff; border: 1px solid var(--srm-line); padding: 20px; font-size: 14px; }
#sidebar .widget-container ul { margin: 0; padding: 0; list-style: none; }
#sidebar .widget-container ul li { padding: 7px 0; border-top: 1px solid var(--srm-line); }
#sidebar .widget-container ul li:first-child { border-top: 0; }
#sidebar .widget-container a { color: var(--srm-text); }
#sidebar .widget-container a:hover { color: var(--srm-red); }

/* kalendarz szkolen */
.calendar-widget { background: var(--srm-navy); color: #fff; padding: 20px; }
.calendar-widget .widget-title, .calendar-widget h3 { color: #fff; }
.calendar { position: relative; }
.calendar-nav {
    position: absolute; top: 0; color: var(--srm-red-tint); font-weight: 700;
    padding: 2px 8px; text-decoration: none; z-index: 2;
}
.calendar-prev { right: 34px; }
.calendar-next { right: 4px; }
.calendar h3 { font-size: 14px; font-weight: 700; margin: 0 0 10px; color: #fff; text-transform: capitalize; }
table.calendar { font-size: 12.5px; }
table.calendar th { color: #8B8EA3; font-weight: 600; padding: 4px 2px; text-align: center; }
table.calendar td { padding: 3px 2px; text-align: center; }
table.calendar td span { display: inline-block; width: 26px; line-height: 26px; color: #C9CCDD; }
table.calendar td.other-month span { color: #4A4D68; }
table.calendar td a.event-link {
    display: inline-block; width: 26px; line-height: 26px; border-radius: 50%;
    background: var(--srm-red); color: #fff; font-weight: 600;
}
table.calendar td a.event-link:hover { background: #fff; color: var(--srm-red); text-decoration: none; }
.calendar-container { position: relative; }
.calendar-container .top-layer {
    position: absolute; inset: 0; background: rgba(22, 24, 43, .55);
}
.event-tooltip {
    position: absolute; z-index: 50; background: #fff; color: var(--srm-text);
    font-size: 12.5px; padding: 8px 12px; box-shadow: var(--srm-shadow); max-width: 220px;
    border-left: 3px solid var(--srm-red); pointer-events: none;
}

/* =Formularze
-------------------------------------------------------------- */
form table { width: 100%; }
form table td { padding: 6px 10px 6px 0; vertical-align: top; }
form label { font-size: 14px; font-weight: 500; }
.req { color: var(--srm-red); }
input[type="text"], input[type="email"], input[type="search"], input[type="password"], textarea, select {
    border: 1px solid #D6D6DE; border-radius: 3px; padding: 9px 12px; font-size: 14px;
    background: #fff; width: 100%; max-width: 420px; color: var(--srm-text);
}
textarea { min-height: 90px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--srm-red); outline-offset: 0; border-color: var(--srm-red); }
input[type="submit"], button[type="submit"] {
    background: var(--srm-red); color: #fff; border: 0; border-radius: var(--srm-radius);
    font-weight: 600; font-size: 14px; padding: 11px 24px; cursor: pointer;
}
input[type="submit"]:hover { background: var(--srm-red-dark); }
.form-message { font-size: 13px; margin: 4px 0 0; }
.form-error { color: var(--srm-red); }
.form-ok, .srm-message-ok {
    background: #E9F5EC; border-left: 3px solid #2E7D46; color: #1F5B31;
    padding: 12px 16px; font-size: 14px; margin-bottom: 16px;
}

/* =Wydarzenia / szkolenia
-------------------------------------------------------------- */
.event-meta {
    background: var(--srm-navy); color: #C9CCDD; padding: 20px 22px; margin-bottom: 18px;
}
.event-meta ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.event-meta li { padding: 6px 0; border-top: 1px solid #2A2D47; }
.event-meta li:first-child { border-top: 0; }
.event-meta strong { color: #fff; }
.event-meta a { color: var(--srm-red-tint); font-weight: 600; }
.event-meta a:hover { color: #fff; }
ol.event-participants { list-style: none; margin: 0; padding: 0; counter-reset: participant; }
ol.event-participants li {
    background: #fff; border: 1px solid var(--srm-line); padding: 10px 16px; margin-bottom: 8px;
    counter-increment: participant; font-size: 14.5px;
}
ol.event-participants li::before {
    content: counter(participant) '. '; font-weight: 700; color: var(--srm-red);
}
ol.event-participants li.cancelled { opacity: .55; }
ol.event-participants li a { font-size: 12.5px; margin-left: 8px; }
table.srm-event-participants th { width: 220px; background: var(--srm-bg); font-size: 13px; }
table.srm-event-participants td { font-size: 13.5px; }

/* =Katalog rzeczoznawcow
-------------------------------------------------------------- */
.experts-letter-nav {
    list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px;
}
.experts-letter-nav li a {
    display: block; padding: 6px 11px; background: #fff; border: 1px solid var(--srm-line);
    font-size: 13.5px; color: var(--srm-text); text-transform: uppercase; text-decoration: none;
}
.experts-letter-nav li a:hover { border-color: var(--srm-red); color: var(--srm-red); }
.experts-letter-nav li.current-letter a {
    background: var(--srm-navy); border-color: var(--srm-navy); color: #fff; font-weight: 700;
}
.experts-filter-form { display: flex; gap: 8px; margin-bottom: 22px; }
.experts-filter-form input[name="q"] { max-width: 320px; }
.entry.expert { display: flex; gap: 20px; align-items: flex-start; }
.entry.expert img, .expert-thumbnail-placeholder {
    width: 96px; height: 110px; object-fit: cover; flex-shrink: 0;
    background: var(--srm-navy); display: block;
}
.entry.expert ul.meta { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13.5px; color: var(--srm-muted); }

/* profil rzeczoznawcy */
.expert-profile-head { display: flex; gap: 26px; align-items: flex-start; background: #fff; padding: 26px 30px; margin-bottom: 16px; }
.expert-profile-head img { width: 140px; height: 160px; object-fit: cover; }
.entry-license { font-size: 14px; color: var(--srm-muted); margin: 4px 0 0; }
.expert-profile-body { background: #fff; padding: 26px 30px; }
.expert-profile-body dl { display: grid; grid-template-columns: 140px 1fr; gap: 4px 12px; font-size: 14.5px; }
.expert-profile-body dt { font-weight: 600; color: var(--srm-muted); }
.expert-profile-body dd { margin: 0; }
table.expert-completed-trainings { font-size: 14px; margin: 12px 0; }
table.expert-completed-trainings th { background: var(--srm-navy); color: #fff; font-size: 12.5px; letter-spacing: .06em; }
table.expert-completed-trainings td { border-bottom: 1px solid var(--srm-line); }
.maps iframe { display: block; border: 0; }

/* =Stopka
-------------------------------------------------------------- */
.site-footer { background: var(--srm-navy-2); color: #8B8EA3; margin-top: 48px; }
.site-footer .footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0 28px;
    font-size: 13.5px;
}
.site-footer img.footer-logo { height: 40px; margin-bottom: 14px; display: block; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer .widget-container ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget-container li { margin-bottom: 7px; }
.site-footer a { color: #C9CCDD; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
    background: var(--srm-navy-3); color: #6B6E85; font-size: 12.5px; padding: 14px 0;
}
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 900px) {
    .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .site-footer .footer-grid { grid-template-columns: 1fr; }
}

/* =Logowanie WP
-------------------------------------------------------------- */
body.login div#login h1 a {
    background-image: url(images/logo-black.png);
    background-size: 124px 73px;
    padding-bottom: 30px;
}

/* =Lightbox (zamiennik fancybox dla galerii)
-------------------------------------------------------------- */
.srm-lightbox {
    position: fixed; inset: 0; z-index: 999; background: rgba(11, 12, 28, .9);
    display: flex; align-items: center; justify-content: center; padding: 30px;
}
.srm-lightbox img { max-width: 92vw; max-height: 88vh; box-shadow: 0 12px 50px rgba(0, 0, 0, .5); }
.srm-lightbox .lb-close {
    position: absolute; top: 18px; right: 24px; background: none; border: 0;
    color: #fff; font-size: 34px; cursor: pointer; line-height: 1;
}
.srm-lightbox .lb-prev, .srm-lightbox .lb-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: none; border: 0; color: #fff; font-size: 42px; cursor: pointer; padding: 12px;
}
.srm-lightbox .lb-prev { left: 10px; }
.srm-lightbox .lb-next { right: 10px; }

/* =Pomocnicze
-------------------------------------------------------------- */
.clearfix::after { content: ''; display: table; clear: both; }
.alignleft { float: left; margin: 4px 18px 10px 0; }
.alignright { float: right; margin: 4px 0 10px 18px; }
.aligncenter { display: block; margin: 12px auto; }
.wp-caption { max-width: 100%; font-size: 13px; color: var(--srm-faint); }
.wp-caption-text { padding: 6px 0; }
.gallery { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.gallery-item { margin: 0; }
.breadcrumbs { font-size: 12.5px; color: var(--srm-faint); margin-bottom: 14px; }

/* W3TC / kompatybilnosc ze starymi klasami uzywanymi przez pluginy */
.entry .more-link { font-weight: 600; }

/* =Formularz zapisu na szkolenie (siatka)
-------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; max-width: 760px; }
.form-field label { display: block; margin-bottom: 4px; }
.form-field input, .form-field textarea { max-width: none; }
.form-field-wide { grid-column: 1 / -1; }
.form-consent .form-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.form-consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.form-rodo-clause { color: var(--srm-muted); margin: 8px 0 0; }
@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
}
.srm-event-participant-actions { display: inline-flex; gap: 8px; margin-left: 10px; }
.srm-event-participant-actions input[type="submit"] { padding: 4px 12px; font-size: 12px; }
.participant-details { margin-top: 10px; }
.participant-details table { background: #fff; border: 1px solid var(--srm-line); }

/* =Mapa zgoda (click-to-load)
-------------------------------------------------------------- */
.map-consent-placeholder {
    background: var(--srm-bg); border: 1px dashed #B9BBC6; padding: 36px 24px;
    text-align: center; font-size: 14px; color: var(--srm-muted);
}
.map-consent-placeholder p { margin: 0 0 14px; }

/* =Banner cookies
-------------------------------------------------------------- */
.srm-cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    background: var(--srm-navy); color: #C9CCDD; box-shadow: 0 -8px 30px rgba(0, 0, 0, .35);
}
.srm-cookie-inner {
    max-width: var(--srm-maxw); margin: 0 auto; padding: 18px 24px;
    display: flex; gap: 24px; align-items: center; font-size: 13.5px;
}
.srm-cookie-inner p { margin: 0; flex: 1; }
.srm-cookie-inner a { color: #fff; text-decoration: underline; }
.srm-cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.srm-cookie-actions .btn { padding: 10px 18px; font-size: 13.5px; white-space: nowrap; }
@media (max-width: 700px) {
    .srm-cookie-inner { flex-direction: column; align-items: stretch; gap: 12px; }
    .srm-cookie-actions { flex-direction: column; }
}

/* =Menu secondary w topbarze (logowanie + szukaj)
-------------------------------------------------------------- */
.topbar-right ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 18px; }
.topbar-right ul li { display: flex; align-items: center; }

/* =Widget tekstowy w stopce
-------------------------------------------------------------- */
.footer-widget .widget-title, .footer-widget h3 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.footer-widget .textwidget { font-size: 13.5px; }

/* =Fixy po wdrozeniu (2026-08-21)
-------------------------------------------------------------- */
/* submenu przy prawej krawedzi - bez poziomego scrolla */
.primary-nav ul.menu > li:nth-last-child(-n+3) > ul { left: auto; right: 0; }
html, body { overflow-x: hidden; }

/* hero kompaktowe na podstronach */
.hero.compact .slide { min-height: 150px; }
.hero.compact .slide::after {
    background: linear-gradient(90deg, rgba(22, 24, 43, .75) 0%, rgba(22, 24, 43, .35) 60%, rgba(22, 24, 43, .15) 100%);
}
@media (max-width: 700px) {
    .hero.compact .slide { min-height: 110px; }
}

/* przycisk szukania w topbarze */
.topbar .search-toggle { color: #C9CCDD; }
.topbar .search-toggle:hover { color: #fff; }

/* fix: kalendarz - pelne pokrycie kolorow na granatowym tle */
.calendar-widget .calendar, .calendar-widget .calendar td { color: #C9CCDD; }
.calendar-widget table.calendar td.other-month { color: #4A4D68; }
.calendar-widget table.calendar th { color: #8B8EA3; }
.calendar-widget .calendar-nav { color: var(--srm-red-tint); }
.calendar-widget .calendar-nav:hover { color: #fff; text-decoration: none; }

/* fix: responsywnosc paska naglowka - CTA nie wypadaja poza obraz */
@media (max-width: 1320px) {
    .primary-nav ul.menu > li > a { padding: 26px 9px; font-size: 14px; }
    .site-header .container { gap: 20px; }
}
@media (max-width: 1180px) {
    .header-cta { display: none; } /* linki sa na hero i w stopce */
}
@media (min-width: 1181px) and (max-width: 1320px) {
    .header-cta .btn { padding: 10px 14px; font-size: 13px; }
}
/* menu mobilne ponizej 1180px */
@media (max-width: 1180px) {
    .site-header .container { flex-wrap: wrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
    #menu-toggle { display: block; }
    .primary-nav { order: 3; flex-basis: 100%; margin-left: 0; display: none; }
    .primary-nav.menu-open { display: block; }
    .primary-nav ul.menu { flex-direction: column; gap: 0; }
    .primary-nav ul.menu > li > a { padding: 12px 6px; box-shadow: none; border-bottom: 1px solid var(--srm-line); }
    .primary-nav ul.menu li ul { position: static; box-shadow: none; border: 0; padding-left: 16px; display: none; }
    .primary-nav ul.menu li.submenu-open > ul { display: block; }
}
