/* =========================================================
   POLISH EXPORT CLUSTER — main.css
   Shared styles used by EVERY page:
   1. Design tokens (colours, sizes, shadows)
   2. Reset & base
   3. Layout helpers (container, sections, section headings)
   4. Buttons, badges, tags, form fields
   5. Header + mobile menu
   6. Shared components (cards, breadcrumbs, pagination)
   7. "Join" call-to-action band
   8. Footer
   9. Responsive rules for shared parts
   Page-specific styles live in their own file (home.css, blog.css …)
   ========================================================= */


/* ---------- 1. DESIGN TOKENS ---------- */
:root {
    /* Colours */
    --navy: #002457;          /* headings, primary buttons */
    --navy-hover: #073b78;
    --blue: #0753a5;          /* accents, underline, join band */
    --blue-bright: #1765b3;   /* links, small accents */
    --text: #0b2344;          /* body text */
    --text-soft: #425976;     /* hero descriptions */
    --muted: #66758a;         /* card descriptions */
    --muted-light: #8491a3;   /* dates, meta info */
    --line: #e1e8f0;          /* card borders */
    --line-soft: #edf1f6;     /* dividers inside cards */
    --hero: #f0f5fb;          /* page hero background */
    --surface: #f3f7fc;       /* light section background */
    --tint: #edf5ff;          /* badge / chip background */
    --green: #11734b;         /* "Export Cluster will attend" */
    --green-tint: #eaf6ef;
    --white: #fff;

    /* Typography */
    --font: "Inter", Arial, sans-serif;
    --fs-xs: 11px;    /* badges, labels */
    --fs-sm: 12px;    /* meta, tags, small links */
    --fs-base: 14px;  /* default text */
    --fs-md: 15px;    /* lead text, small card titles */
    --fs-lg: 17px;    /* card titles */
    --fs-h3: 20px;
    --fs-h2: clamp(24px, 3vw, 28px);       /* section titles */
    --fs-h1: clamp(34px, 5vw, 48px);       /* page titles */
    --fs-h1-detail: clamp(28px, 4vw, 40px);/* article / company name */

    /* Shape */
    --radius: 12px;
    --radius-sm: 7px;
    --shadow-sm: 0 4px 16px rgba(0, 36, 87, .07);
    --shadow-md: 0 14px 35px rgba(0, 36, 87, .12);
    --transition: 180ms ease;

    /* Layout */
    --container: 1000px;
    --gutter: 40px;           /* total side space (20px each side) */
    --header-h: 70px;
}


/* ---------- 2. RESET & BASE ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    color: var(--text);
    background: var(--white);
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--navy);
    font-weight: 800;
    line-height: 1.2;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 3px solid rgba(23, 101, 179, .35);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* SVG icons (sprite is at the bottom of every page) */
.icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -3px;
}

.icon-lg {
    width: 20px;
    height: 20px;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}


/* ---------- 3. LAYOUT ---------- */
.container {
    width: min(100% - var(--gutter), var(--container));
    margin-inline: auto;
}

/* Vertical rhythm for page sections */
.section {
    padding: 55px 0;
}

.section-tight {
    padding: 35px 0;
}

.section-surface {
    background: var(--surface);
}

/* Card grids: 4 / 3 columns (become 2 on tablet, 1 on mobile) */
.grid-4,
.grid-3 {
    display: grid;
    gap: 16px;
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Light hero band used at the top of inner pages */
.page-hero {
    padding: 50px 0 32px;
    background: var(--hero);
}

.page-hero h1 {
    font-size: var(--fs-h1);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.page-hero-lead {
    max-width: 650px;
    margin-top: 15px;
    color: var(--text-soft);
    font-size: var(--fs-md);
    line-height: 1.65;
}

/* Section title row: "Title ........ See all →" */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-title {
    font-size: var(--fs-h2);
    letter-spacing: -.02em;
}

.section-subtitle {
    margin-top: 6px;
    color: var(--muted);
    font-size: var(--fs-base);
}

.link-more {
    flex: 0 0 auto;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    transition: color var(--transition);
}

.link-more:hover {
    color: var(--blue-bright);
}


/* ---------- 4. BUTTONS, BADGES, TAGS, FIELDS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition),
                background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 36, 87, .16);
}

.btn-sm {
    min-height: 36px;
    padding: 0 15px;
}

.btn-lg {
    min-height: 46px;
    padding: 0 24px;
    font-size: 14px;
}

/* Navy filled */
.btn-primary {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--navy-hover);
    border-color: var(--navy-hover);
}

/* White with navy border */
.btn-outline {
    background: var(--white);
    border-color: var(--navy);
    color: var(--navy);
}

.btn-outline:hover {
    background: #f4f7fb;
}

/* For dark / blue backgrounds */
.btn-light {
    background: var(--white);
    border-color: var(--white);
    color: var(--navy);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .8);
    color: var(--white);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
}

/* Small category label: RYNKI, EKSPORT … */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 5px;
    background: var(--tint);
    color: var(--blue-bright);
    font-size: var(--fs-xs);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Grey keyword tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 5px;
    background: #eef3f8;
    color: #526987;
    font-size: var(--fs-sm);
    transition: background-color var(--transition), color var(--transition);
}

a.tag:hover {
    background: var(--tint);
    color: var(--blue-bright);
}

/* Rounded pills */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: #4c6584;
    font-size: 13px;
}

/* Meta line: date · read time · location */
.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    color: var(--muted-light);
    font-size: var(--fs-sm);
}

.meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Text input, select, textarea */
.field {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d9e3ee;
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font-size: var(--fs-base);
    transition: border-color var(--transition), box-shadow var(--transition);
}

textarea.field {
    height: auto;
    min-height: 120px;
    padding: 12px 14px;
    resize: vertical;
}

select.field {
    appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23002457' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.field::placeholder {
    color: #8a96a8;
}

.field:focus {
    outline: none;
    border-color: #7ca6d4;
    box-shadow: 0 0 0 4px rgba(23, 101, 179, .10);
}

.field-label {
    display: block;
    margin-bottom: 6px;
    color: #4c6584;
    font-size: 13px;
    font-weight: 600;
}

.field-label b {
    color: #d64545;
}

/* Search bar: icon + input + button */
.search-bar {
    display: flex;
    gap: 10px;
}

.search-input {
    position: relative;
    flex: 1;
}

.search-input .icon {
    position: absolute;
    top: 50%;
    left: 15px;
    color: #8a96a8;
    transform: translateY(-50%);
}

.search-input .field {
    height: 50px;
    padding-left: 42px;
}

.search-bar .btn {
    min-height: 50px;
    min-width: 115px;
    font-size: 14px;
}


/* ---------- 5. HEADER ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(228, 234, 242, .9);
    backdrop-filter: blur(14px);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    width: auto;
    height: 42px;
}

.main-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.main-nav > a {
    position: relative;
    padding: 9px 10px;
    color: #344c6b;
    font-size: 13px;
    font-weight: 600;
    transition: color var(--transition);
}

.main-nav > a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 3px;
    height: 2px;
    border-radius: 99px;
    background: var(--blue);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.main-nav > a:hover,
.main-nav > a.is-active {
    color: var(--navy);
}

.main-nav > a:hover::after,
.main-nav > a.is-active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
}

/* Mobile menu: a hidden checkbox + a label styled as the ☰ button.
   No JavaScript needed. */
.menu-toggle,
.menu-button,
.main-nav .nav-mobile-actions {
    display: none;
}


/* ---------- 6. SHARED COMPONENTS ---------- */

/* Base card: white box with border, shadow and lift on hover */
.card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #cbd9ea;
    box-shadow: var(--shadow-md);
}

/* Image at the top of a card (zooms slightly on hover) */
.card-media {
    overflow: hidden;
    background: #dfe8f2;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.card:hover .card-media img {
    transform: scale(1.04);
}

/* "→" arrow that slides right when its card is hovered */
.arrow {
    display: inline-block;
    transition: transform var(--transition);
}

.card:hover .arrow {
    transform: translateX(4px);
}

/* Article card (blog list, related articles, …) */
.article-card {
    display: flex;
    flex-direction: column;
}

.article-card .card-media {
    height: 170px;
}

.article-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px;
}

.article-card h3 {
    font-size: var(--fs-lg);
    line-height: 1.3;
}

.article-card h3 a:hover {
    color: var(--blue-bright);
}

.article-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.article-card .meta {
    margin-top: auto;
}

.read-link {
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    transition: color var(--transition);
}

.read-link:hover {
    color: var(--blue-bright);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted-light);
    font-size: var(--fs-sm);
}

.breadcrumbs a {
    transition: color var(--transition);
}

.breadcrumbs a:hover {
    color: var(--blue-bright);
}

.breadcrumbs [aria-current] {
    color: var(--text-soft);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    color: #385476;
    font-size: 13px;
    font-weight: 600;
}

.pagination a {
    border: 1px solid #dce5ef;
    background: var(--white);
    transition: transform var(--transition), border-color var(--transition), color var(--transition);
}

.pagination a:hover {
    transform: translateY(-1px);
    border-color: #9fbce1;
    color: var(--blue-bright);
}

.pagination a[aria-current] {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

/* Check-mark list (✓ in a circle) */
.check-list {
    display: grid;
    gap: 10px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}


/* ---------- LONG TEXT (.prose) ----------
   Articles, legal pages — any HTML from the editor/database:
   p, h2, h3, ul, ol, blockquote, a */
.prose {
    max-width: 740px;
    color: #3d5573;
    font-size: 16px;
    line-height: 1.75;
}

.prose > * + * {
    margin-top: 18px;
}

.prose .lead {
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.7;
}

.prose h2 {
    margin-top: 38px;
    font-size: 24px;
    letter-spacing: -.015em;
}

.prose h3 {
    margin-top: 28px;
    font-size: 19px;
}

.prose h2 + *,
.prose h3 + * {
    margin-top: 10px;
}

.prose a {
    color: var(--blue-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Bullet lists inside the article get the round ✓ marks */
.prose ul {
    display: grid;
    gap: 10px;
}

.prose ul li {
    position: relative;
    padding-left: 32px;
}

.prose ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.prose ol {
    padding-left: 22px;
}

.prose blockquote {
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--blue);
    color: var(--navy);
    font-size: 18px;
    font-style: italic;
}

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

    .prose .lead {
        font-size: 16px;
    }

    .prose h2 {
        font-size: 21px;
    }
}

/* "Export Cluster will attend" — green label */
.badge-attend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: var(--green);
    color: var(--white);
    font-size: var(--fs-xs);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.badge-attend .icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Company logos: text placeholder OR a real <img> */
.company-logo img,
.profile-logo img,
.related-logo img {
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
}


/* ---------- 7. JOIN CALL-TO-ACTION BAND ---------- */
.join-cta {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    background: var(--blue) url("../img/world-bg.png") center / cover no-repeat;
    color: var(--white);
}

.join-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 45, 100, .45);
    pointer-events: none;
}

.join-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
}

.join-copy {
    max-width: 550px;
}

.join-copy h2 {
    margin-bottom: 15px;
    color: var(--white);
    font-size: clamp(28px, 4vw, 34px);
    line-height: 1.1;
}

.join-copy p {
    color: rgba(255, 255, 255, .9);
    font-size: 16px;
    line-height: 1.6;
}

.join-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.join-actions .btn {
    min-height: 46px;
    padding: 0 25px;
    font-size: 14px;
}

.join-benefits {
    min-width: 300px;
}

.join-benefits li {
    color: var(--white);
    font-size: var(--fs-base);
    font-weight: 500;
}

.join-benefits.check-list li::before {
    background: var(--white);
    color: var(--blue);
}


/* ---------- 8. FOOTER ---------- */
.site-footer {
    padding: 45px 0 20px;
    background: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 35px;
}

.footer-logo img {
    width: auto;
    height: 56px;
}

.footer-brand p {
    margin: 12px 0 18px;
    color: var(--muted);
    font-size: 13px;
}

.socials {
    display: flex;
    gap: 8px;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: #e8eef6;
    color: var(--navy);
    font-size: 12px;
    font-weight: 750;
    transition: transform var(--transition), background-color var(--transition);
}

.socials a:hover {
    transform: translateY(-2px);
    background: #dbe6f2;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-column h3 {
    margin-bottom: 5px;
    font-size: var(--fs-base);
}

.footer-column a {
    color: var(--muted);
    font-size: 13px;
    transition: color var(--transition);
}

.footer-column a:hover {
    color: var(--navy);
}

.footer-bottom {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #e5eaf0;
    color: var(--muted);
    font-size: var(--fs-sm);
    text-align: right;
}


/* ---------- 9. RESPONSIVE (shared parts) ---------- */

/* Tablet */
@media (max-width: 900px) {
    :root {
        --gutter: 32px;
    }

    .main-nav > a {
        padding-inline: 7px;
        font-size: 12px;
    }

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .join-inner {
        gap: 40px;
    }

    .join-benefits {
        min-width: 260px;
    }

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

/* Mobile */
@media (max-width: 680px) {
    :root {
        --gutter: 28px;
        --header-h: 64px;
    }

    .section {
        padding: 42px 0;
    }

    .page-hero {
        padding: 38px 0 26px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* Header: logo + ☰ button, menu drops down */
    .brand img {
        height: 38px;
    }

    .header-actions {
        display: none;
    }

    .menu-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        cursor: pointer;
    }

    .menu-button span {
        width: 19px;
        height: 2px;
        border-radius: 99px;
        background: var(--navy);
        transition: transform var(--transition), opacity var(--transition);
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--white);
        box-shadow: var(--shadow-md);
    }

    .main-nav > a {
        padding: 12px;
        border-radius: var(--radius-sm);
        font-size: var(--fs-base);
    }

    .main-nav > a:hover,
    .main-nav > a.is-active {
        background: var(--surface);
    }

    .main-nav > a::after {
        display: none;
    }

    .main-nav .nav-mobile-actions {
        display: flex;
        gap: 8px;
        margin-top: 6px;
        padding-top: 10px;
        border-top: 1px solid var(--line-soft);
    }

    .main-nav .nav-mobile-actions .btn {
        flex: 1;
        padding: 0;
        font-size: 13px;
    }

    .menu-toggle:checked ~ .main-nav {
        display: flex;
    }

    .menu-toggle:checked ~ .menu-button span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle:checked ~ .menu-button span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .menu-button span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar .btn {
        width: 100%;
    }

    .join-cta {
        padding: 45px 0;
    }

    .join-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .join-benefits {
        min-width: 0;
    }

    .join-actions {
        width: 100%;
    }

    .join-actions .btn {
        flex: 1 1 200px;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        text-align: left;
    }
}

/* Small phones */
@media (max-width: 420px) {
    :root {
        --gutter: 24px;
    }

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

    .pagination {
        gap: 3px;
    }

    .pagination a,
    .pagination span {
        width: 32px;
        height: 32px;
    }
}

/* Respect "reduce motion" system setting */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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


/* =========================================================
   10. DYNAMIC PARTS (added for the PHP version)
   ========================================================= */

/* PL | EN language switch */
.lang-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
}

.lang-switch a {
    padding: 4px 8px;
    border-radius: 5px;
    color: var(--muted);
    font-size: var(--fs-sm);
    font-weight: 700;
}

.lang-switch a:hover {
    color: var(--navy);
}

.lang-switch a.is-active {
    background: var(--navy);
    color: var(--white);
}

.header-actions {
    align-items: center;
}

/* Form messages */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: 1.5;
}

.alert-success {
    border: 1px solid #bfe3cf;
    background: var(--green-tint);
    color: var(--green);
}

.alert-error {
    border: 1px solid #f2c4c4;
    background: #fdf1f1;
    color: #b42318;
}

.field.is-invalid {
    border-color: #e5484d;
}

.field-error {
    display: block;
    margin-top: 5px;
    color: #b42318;
    font-size: var(--fs-sm);
    font-weight: 600;
}

.form-note {
    color: var(--muted-light);
    font-size: var(--fs-sm);
}

.form-note a {
    color: var(--blue-bright);
    text-decoration: underline;
}

/* Honeypot — invisible spam trap (see app/security.php) */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* "Nothing found" box */
.empty-state {
    padding: 50px 20px;
    border: 1px dashed #c9d8e8;
    border-radius: var(--radius);
    text-align: center;
}

.empty-state h2 {
    margin-bottom: 8px;
    font-size: var(--fs-h3);
}

.empty-state p {
    margin-bottom: 18px;
    color: var(--muted);
}

/* Company initials when there is no logo */
.logo-initials {
    color: var(--navy);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.badge-muted {
    background: #eef1f5;
    color: var(--muted);
}

/* 404 */
.not-found {
    padding: 90px 0;
    text-align: center;
}

.not-found h1 {
    font-size: var(--fs-h1-detail);
}

.not-found .page-hero-lead {
    margin-inline: auto;
}

.not-found .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}

.not-found-code {
    color: var(--blue-bright);
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
}

@media (max-width: 680px) {
    .main-nav .nav-mobile-actions .lang-switch {
        flex: 0 0 auto;
    }
}
