/* =========================================================
   NSZZ „Solidarność” w Polkomtel — arkusz stylów
   Jeden plik, kolejność: zmienne → baza → komponenty → sekcje
   → responsywność → animacje.
   ========================================================= */

/* ---------- 1. ZMIENNE ---------- */
:root {
    --navy: #00283d;
    --navy-2: #0a3a54;
    --green: #39a86d;
    --green-dark: #00874d;
    --green-light: #57d692;
    --green-soft: #e9f7ef;
    --text: #00283d;
    --muted: #5d7684;
    --line: rgba(0, 40, 61, 0.09);
    --bg: #f4f7f9;
    --card: #ffffff;

    --radius-lg: 22px;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 12px 32px rgba(0, 40, 61, 0.08);
    --shadow-hover: 0 18px 40px rgba(0, 40, 61, 0.14);

    --container: 1280px;
    --nav-h: 96px;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --font-display: "Archivo Black", "Inter", Arial, sans-serif;
}

/* ---------- 2. BAZA ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

h1, h2, h3, p {
    margin: 0;
}

[hidden],
[data-draft] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: min(var(--container), 100% - 40px);
    margin-inline: auto;
}

.icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skip_link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--green);
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip_link:focus {
    top: 12px;
}

/* ---------- 3. KOMPONENTY ---------- */

/* Przyciski */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border: 2px solid transparent;
    border-radius: 12px;
    font: 700 16px/1 var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn .icon {
    font-size: 20px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn_primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 10px 22px rgba(57, 168, 109, 0.32);
}

.btn_primary:hover {
    background: var(--green-dark);
}

.btn_outline {
    background: #fff;
    border-color: var(--green);
    color: var(--green-dark);
}

.btn_outline:hover {
    background: var(--green-soft);
}

.btn_light {
    background: var(--green-light);
    color: var(--navy);
}

.btn_light:hover {
    background: #fff;
}

/* Karta */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px;
}

/* Nagłówek sekcji */
.section_head {
    margin-bottom: 22px;
}

.section_head h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.section_head p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.section_head::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    margin-top: 14px;
    border-radius: 4px;
    background: var(--green);
}

/* nagłówek sekcji z dodatkiem po prawej (np. rok przy świętach) */
.section_head_row {
    position: relative;
    padding-right: 110px;
}

.section_head_row > :last-child:not(div) {
    position: absolute;
    top: 2px;
    right: 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Lista linków (dokumenty, sekcja prawna, szybkie linki) */
.link_list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.link_item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.link_item:hover {
    border-color: rgba(57, 168, 109, 0.5);
    transform: translateX(3px);
    box-shadow: 0 8px 20px rgba(0, 40, 61, 0.07);
}

.link_icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 20px;
}

.link_text {
    flex: 1;
    min-width: 0;
}

.link_text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.link_text small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

.link_arrow {
    color: var(--green);
    font-size: 18px;
    transition: transform 0.2s ease;
}

.link_item:hover .link_arrow {
    transform: translateX(3px);
}

/* rozwijany element listy (np. numery telefonów) */
details.link_item {
    display: block;
    padding: 0;
}

details.link_item:hover {
    transform: none;
}

details.link_item > summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    list-style: none;
    cursor: pointer;
}

details.link_item > summary::-webkit-details-marker {
    display: none;
}

details.link_item[open] .link_arrow {
    transform: rotate(90deg);
}

.phone_list {
    margin: 0;
    padding: 0 16px 14px 70px;
    list-style: none;
    font-size: 14px;
}

.phone_list li + li {
    margin-top: 8px;
}

.phone_list span {
    display: block;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

.phone_list a {
    color: var(--green-dark);
    font-weight: 700;
    text-decoration: none;
}

.phone_list a:hover {
    text-decoration: underline;
}

/* ---------- 4. NAWIGACJA ---------- */
.site_header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site_header.scrolled {
    background: rgba(0, 40, 61, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 20, 31, 0.25);
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--nav-h);
}

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

.brand img {
    width: 74px;
    height: 74px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.brand span {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
}

.brand small {
    display: block;
    color: var(--green-light);
    font-size: 16px;
    font-weight: 700;
}

.nav_menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav_menu a {
    position: relative;
    white-space: nowrap;
    padding: 8px 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav_menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.nav_menu a.current {
    color: var(--green-light);
}

.nav_menu a.current::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--green-light);
}

.nav_menu .employee_zone {
    margin-left: 6px;
    padding: 8px 14px;
    border: 1px solid var(--green);
    color: var(--green-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav_menu .employee_zone:hover {
    background: var(--green);
    color: #fff;
}

.nav_tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.plus_logo {
    display: block;
    line-height: 0;
}

.plus_logo img {
    width: 72px;
    height: auto;
}

.lang_switch {
    display: flex;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.lang_switch a {
    padding: 5px 11px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.lang_switch a[aria-current="true"] {
    background: var(--green);
}

.burger {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    position: relative;
}

.burger span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2.5px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 29px; }

.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- 5. HERO (zdjęcie na całą szerokość) ---------- */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--bg);
}

.hero_bg {
    position: absolute;
    inset: 0 0 0 30%;
    z-index: -2;
}

.hero_bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 40%;
}

/* przejście: biel pod tekstem → zdjęcie po prawej, dół wtapia się w tło strony */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(244, 247, 249, 0) 62%, var(--bg) 100%),
        linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0.92) 40%, rgba(255, 255, 255, 0.45) 55%, rgba(255, 255, 255, 0) 72%);
}

.hero_inner {
    display: flex;
    align-items: center;
    min-height: clamp(520px, 62vh, 640px);
    padding: 64px 0 132px;
}

.hero_content {
    max-width: 640px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 5.2vw, 68px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.01em;
}

.hero h1 span {
    display: block;
    color: var(--green);
}

.hero_lead {
    max-width: 480px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 18px;
}

.hero_buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero_since {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.hero_since .icon {
    color: var(--green);
    font-size: 20px;
}

/* ---------- 6. FILARY (pomoc prawna / reprezentacja / ...) ---------- */
.pillars {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: -72px;
}

.pillar {
    padding: 24px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.pillar_icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 26px;
}

.pillar h3 {
    font-size: 17px;
    font-weight: 800;
}

.pillar p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

/* ---------- 7. UKŁAD SEKCJI ---------- */
.section {
    padding-top: 28px;
}

.grid_2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.grid_3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

/* O nas */
.about {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
}

.about_text p {
    color: #24465a;
    font-size: 16.5px;
}

.about_text p + p {
    margin-top: 12px;
}

.about_points {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about_points li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-weight: 600;
    font-size: 15px;
}

.about_points .icon {
    margin-top: 2px;
    font-size: 20px;
    color: var(--green);
}

/* Układ: kolumna główna + sidebar */
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.layout_main {
    display: grid;
    gap: 28px;
    min-width: 0;
}

.layout_side {
    position: sticky;
    /* --side-top ustawia js: gdy sidebar jest wyższy niż ekran, przykleja się dolną krawędzią */
    top: var(--side-top, calc(var(--nav-h) + 20px));
    display: grid;
    gap: 20px;
}

.side_card {
    padding: 24px 22px;
}

/* węższe karty w kolumnie głównej */
.layout_main .grid_2 > .card {
    padding: 26px 24px;
}

.layout_main .grid_2 .section_head h2 {
    font-size: 22px;
}


.side_card .section_head h2 {
    font-size: 22px;
}

.side_card .tab {
    padding: 6px 12px;
    font-size: 12.5px;
}

/* lista komunikatów w sidebarze przewija się w środku, żeby sidebar zawsze mieścił się na ekranie */
#aktualnosci .panel_list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--green) transparent;
}

.side_card .comm_title {
    font-size: 14.5px;
}

.side_card .comm_body {
    font-size: 13.5px;
}

.side_card .news_empty {
    padding: 14px;
    font-size: 13px;
}

.side_card .news_empty .icon {
    font-size: 22px;
}

/* dni wolne w sidebarze — wersja kompaktowa */
.side_card .section_head_row {
    padding-right: 0;
}

.side_card .section_head_row > :last-child:not(div) {
    position: static;
    display: inline-block;
    margin-top: 10px;
}

.side_card .next_holiday {
    gap: 12px;
    padding: 14px;
}

.side_card .next_holiday_days {
    min-width: 54px;
}

.side_card .next_holiday_days strong {
    font-size: 22px;
}

.side_card .next_holiday p {
    font-size: 15px;
}

.side_card .next_holiday time {
    font-size: 13px;
}

.side_card .holiday {
    padding: 8px 0;
}

.side_card .holiday_name {
    font-size: 14px;
}

.side_card .holiday_date {
    font-size: 12.5px;
}

.side_card .holiday_tag {
    padding: 3px 8px;
    font-size: 11px;
}

.side_card .holiday_note {
    font-size: 12px;
}

.question_card {
    background: linear-gradient(135deg, var(--navy) 0%, #003d58 100%);
    color: #fff;
}

.question_card h2 {
    font-size: 19px;
    font-weight: 800;
}

.question_card p {
    margin: 6px 0 14px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.question_card .person_contact {
    color: #fff;
}

.question_card .person_contact .icon {
    color: var(--green-light);
}

.question_card .btn {
    width: 100%;
    margin-top: 16px;
    padding: 12px 18px;
    font-size: 15px;
}

.link_list_2col,
.board_grid.board_grid_2 {
    grid-template-columns: 1fr 1fr;
}

/* Władze */
.board_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.person {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.person:hover {
    border-color: rgba(57, 168, 109, 0.45);
    box-shadow: 0 8px 20px rgba(0, 40, 61, 0.06);
}

.avatar {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    background: var(--green-soft);
    color: var(--green-dark);
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--green-soft);
}

.person_info {
    min-width: 0;
}

.person h3 {
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.25;
}

.person_role {
    display: inline-block;
    margin: 3px 0 8px;
    color: var(--green-dark);
    font-size: 12.5px;
    font-weight: 700;
}

.person_contact {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.person_contact + .person_contact {
    margin-top: 4px;
}

.person_contact .icon {
    color: var(--green);
    font-size: 15px;
}

a.person_contact:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

.person_contact.muted {
    color: var(--muted);
    word-break: normal;
}

/* Aktualności */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.tab {
    padding: 8px 16px;
    border: 1px solid rgba(57, 168, 109, 0.35);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font: 700 13.5px/1.2 var(--font);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab:hover {
    border-color: var(--green);
    color: var(--green-dark);
}

.tab[aria-selected="true"] {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
}

/* Aktualności: karta sama jest ramką — panel bez obramowania */
#aktualnosci .panel {
    padding: 0;
    border: 0;
}

.panel_head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.panel_head h3 {
    color: var(--green-dark);
    font-size: 20px;
    font-weight: 800;
}

.panel_head span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}


.news_empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--muted);
    font-size: 14px;
}

.news_empty .icon {
    flex-shrink: 0;
    color: var(--green);
    font-size: 26px;
}

.news_empty strong {
    display: block;
    color: var(--text);
    font-size: 15px;
}

.holiday_year {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

/* — najbliższe święto */
.next_holiday {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
}

.next_holiday_days {
    display: grid;
    place-items: center;
    min-width: 64px;
    padding: 8px 6px;
    border-radius: 12px;
    background: rgba(87, 214, 146, 0.16);
    color: var(--green-light);
    text-align: center;
    line-height: 1;
}

.next_holiday_days strong {
    font-size: 26px;
    font-weight: 800;
}

.next_holiday_days span {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.next_holiday small {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.next_holiday p {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.next_holiday time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* — lista świąt */
.holiday {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.holiday:last-child {
    border-bottom: 0;
}

.holiday_name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.holiday_date {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
}

.holiday_tag {
    flex-shrink: 0;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff4e0;
    color: #9a5b00;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.holiday_tag.sunday {
    background: var(--bg);
    color: var(--muted);
}

.holiday_note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12.5px;
}

.holiday_loading {
    padding: 10px 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.holiday_source {
    margin-top: 10px;
    color: #8aa0ac;
    font-size: 11.5px;
    font-weight: 600;
}

/* — komunikaty */
.comm_item {
    border-bottom: 1px solid var(--line);
}

.comm_item:last-child {
    border-bottom: 0;
}

.comm_item summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    padding: 12px 30px 12px 0;
    list-style: none;
    cursor: pointer;
}

.comm_item summary::-webkit-details-marker {
    display: none;
}

.comm_item summary::after {
    content: "+";
    position: absolute;
    top: 10px;
    right: 4px;
    color: var(--green);
    font-size: 20px;
    font-weight: 800;
}

.comm_item[open] summary::after {
    content: "−";
}

.comm_title {
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.3;
}

.comm_item summary:hover .comm_title {
    color: var(--green-dark);
}

.comm_date {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.comm_body {
    max-width: 820px;
    padding-bottom: 14px;
    font-size: 14.5px;
    line-height: 1.6;
}

.comm_body p,
.comm_body ul {
    margin: 0 0 8px;
}

.comm_signature {
    font-weight: 700;
}

/* ---------- 8. DOŁĄCZ ---------- */
.join {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 44px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--navy) 0%, #003d58 100%);
    color: #fff;
}

.join::before {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(87, 214, 146, 0.22), transparent 70%);
    pointer-events: none;
}

.join h2 {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.15;
}

.join_lead {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
}

.join .btn {
    margin-top: 24px;
}

.steps {
    position: relative;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--green);
    font-weight: 800;
}

.steps strong {
    display: block;
    font-size: 15.5px;
}

.steps span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

/* ---------- 9. STOPKA ---------- */
.site_footer {
    margin-top: 64px;
    padding-top: 56px;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.82);
}

.footer_grid {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer_col h3 {
    margin-bottom: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.footer_col p {
    font-size: 14.5px;
}

.footer_col p + p {
    margin-top: 10px;
}

.footer_list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14.5px;
}

.footer_list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer_list .icon {
    margin-top: 3px;
    color: var(--green-light);
    font-size: 17px;
}

.footer_list a {
    text-decoration: none;
    word-break: break-word;
}

.footer_list a:hover {
    color: var(--green-light);
    text-decoration: underline;
}

.copy_btn {
    margin-left: 4px;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font: 600 11.5px/1.6 var(--font);
    cursor: pointer;
    vertical-align: middle;
}

.copy_btn:hover {
    border-color: var(--green-light);
    color: var(--green-light);
}

.copy_btn.copied {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.map_btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid rgba(87, 214, 146, 0.5);
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.map_btn .icon {
    color: var(--green-light);
    font-size: 18px;
}

.map_btn:hover {
    background: rgba(87, 214, 146, 0.12);
}

.footer_bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 44px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Przycisk „do góry” */
.to_top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: var(--green);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 10px 24px rgba(0, 40, 61, 0.25);
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}

.to_top.visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.to_top:hover {
    background: var(--green-dark);
}

/* ---------- 10. RESPONSYWNOŚĆ ---------- */
@media (max-width: 1319px) {
    :root {
        --nav-h: 72px;
    }

    .brand img {
        width: 58px;
        height: 58px;
    }

    .burger {
        display: block;
    }

    .nav_tools {
        margin-left: auto;
    }

    .nav_menu {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
        padding: 12px 20px 24px;
        background: var(--navy);
        box-shadow: 0 20px 30px rgba(0, 20, 31, 0.35);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .nav_menu.open {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .nav_menu a {
        padding: 13px 14px;
        font-size: 16px;
    }

    .nav_menu a.current::after {
        display: none;
    }

    .nav_menu a.current {
        background: rgba(87, 214, 146, 0.1);
    }

    .nav_menu .employee_zone {
        margin: 10px 0 0;
        justify-content: center;
    }

}

@media (max-width: 1060px) {
    .hero_bg {
        left: 0;
    }

    .hero::before {
        background:
            linear-gradient(180deg, rgba(244, 247, 249, 0) 62%, var(--bg) 100%),
            linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.35) 100%);
    }

    .hero_inner {
        min-height: 0;
        padding: 56px 0 120px;
    }

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

    .grid_2,
    .about {
        grid-template-columns: 1fr;
    }

    /* sidebar ląduje zaraz pod „O nas” */
    .layout {
        grid-template-columns: 1fr;
    }

    .layout_main {
        display: contents;
    }

    .layout_about { order: 1; }
    .layout_side { order: 2; position: static; grid-template-columns: 1fr 1fr; align-items: start; }
    .layout_board { order: 3; }
    .layout_docs { order: 4; }
    .layout_links { order: 5; }

    .question_card {
        grid-column: 1 / -1;
    }

    .board_grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid_3 {
        grid-template-columns: 1fr 1fr;
    }

    .grid_3 > :last-child {
        grid-column: 1 / -1;
    }

    .join {
        grid-template-columns: 1fr;
    }

    .footer_grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 15px;
    }

    .container {
        width: min(var(--container), 100% - 28px);
    }

    .nav {
        gap: 10px;
    }

    .brand {
        gap: 10px;
    }

    .brand img {
        width: 52px;
        height: 52px;
        border-radius: 13px;
    }

    .brand span {
        font-size: 15px;
    }

    .brand small {
        font-size: 13px;
    }

    .nav_tools {
        gap: 8px;
    }

    .lang_switch a {
        padding: 5px 9px;
    }

    .burger {
        width: 44px;
        height: 44px;
    }

    .plus_logo {
        display: none;
    }

    .card {
        padding: 22px 18px;
    }

    .section_head_row {
        padding-right: 0;
    }

    .section_head_row > :last-child:not(div) {
        position: static;
        display: inline-block;
        margin-top: 10px;
    }

    .hero_inner {
        padding: 36px 0 100px;
    }

    .hero_lead {
        font-size: 16.5px;
    }

    .hero_buttons .btn {
        flex: 1 1 100%;
    }

    .hero::before {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.86) 60%, var(--bg) 100%);
    }

    .pillars {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pillar {
        display: flex;
        gap: 16px;
        padding: 18px;
    }

    .pillar_icon {
        margin: 0;
        width: 46px;
        height: 46px;
        flex-shrink: 0;
    }

    .board_grid,
    .board_grid.board_grid_2,
    .grid_3,
    .layout_side,
    .link_list_2col {
        grid-template-columns: 1fr;
    }

    .join {
        padding: 28px 20px;
        border-radius: 22px;
    }

    .join .btn {
        width: 100%;
    }

    .footer_grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer_bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ---------- 11. ANIMACJE ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--delay, 0s);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (max-width: 374px) {
    .brand span {
        font-size: 14px;
    }

    .brand small {
        font-size: 12px;
    }
}

@media (max-width: 359px) {
    /* samo logo zawiera nazwę — napis obok nie jest niezbędny */
    .brand span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* „mignięcie” sekcji po kliknięciu w menu */
.flash {
    animation: flash 1.8s ease;
}

@keyframes flash {
    0%, 35% { box-shadow: 0 0 0 4px rgba(57, 168, 109, 0.55), var(--shadow); }
    100% { box-shadow: 0 0 0 4px rgba(57, 168, 109, 0), var(--shadow); }
}

/* stopka jest ciemna i na całą szerokość — obwódka od środka */
.site_footer.flash {
    animation-name: flash_inset;
}

@keyframes flash_inset {
    0%, 35% { box-shadow: inset 0 0 0 4px rgba(87, 214, 146, 0.6); }
    100% { box-shadow: inset 0 0 0 4px rgba(87, 214, 146, 0); }
}

/* ---------- 12. DRUK ---------- */
@media print {
    .site_header,
    .to_top,
    .hero_bg,
    .tabs {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .card,
    .pillar {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
