/* =====================================================================
   ile-stopni.pl — "Thermal Instrument" v2
   Odważny, redakcyjny redesign. Nakładka na Bootstrap 5 (ładowana PO).
   Dramatyczny ciemny hero + żywy gradient termiczny + jasny, czytelny content.
   ===================================================================== */

:root {
    /* baza */
    --paper:    #F6F1E9;   /* ciepły papier (content) */
    --paper-2:  #EFE7DA;
    --surface:  #FFFFFF;
    --ink:      #14111B;   /* prawie-czarny śliwkowy (hero/footer/tekst) */
    --ink-2:    #221C2E;
    --ink-soft: #5C5566;
    --line:     #E4DACA;
    --line-dark: rgba(255,255,255,.12);

    /* żywa skala termiczna */
    --hot:   #FF3D2E;
    --warm:  #FF8A1E;
    --amber: #FFC53D;
    --cool:  #18C2D8;
    --cold:  #2E7BF6;

    --thermal: linear-gradient(100deg, #FF3D2E 0%, #FF7A1E 28%, #FFC53D 50%, #18C2D8 78%, #2E7BF6 100%);
    --thermal-hot: linear-gradient(100deg, #FF3D2E, #FF8A1E);
    --thermal-cold: linear-gradient(100deg, #18C2D8, #2E7BF6);

    --r:    18px;
    --r-lg: 26px;
    --r-pill: 999px;

    --shadow:    0 10px 30px -12px rgba(20,17,27,.25);
    --shadow-lg: 0 30px 70px -24px rgba(20,17,27,.45);
    --glow:      0 18px 50px -14px rgba(255,61,46,.45);

    /* Bootstrap remap */
    --bs-body-color: #14111B;
    --bs-body-bg: #F6F1E9;
    --bs-border-color: #E4DACA;
    --bs-link-color: #C8451F;
    --bs-link-color-rgb: 200, 69, 31;
    --bs-link-hover-color: #9E3416;
    --bs-primary: #FF3D2E;
    --bs-primary-rgb: 255, 61, 46;
}

/* =====================================================================
   Baza / typografia
   ===================================================================== */
html { scroll-behavior: smooth; }

body {
    font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
    background: var(--paper);
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "Bricolage Grotesque", "Instrument Sans", sans-serif;
    font-weight: 700;
    letter-spacing: -.02em !important;   /* nadpisuje wymuszony przez zmodyfikowany bootstrap 3px */
    text-transform: none !important;     /* zmodyfikowany bootstrap.min.css wymusza UPPERCASE na nagłówkach */
    line-height: 1.12;
    color: var(--ink);
}

p { color: var(--ink); }
.text-muted, small.text-muted { color: var(--ink-soft) !important; }

/* zmodyfikowany bootstrap.min.css wymusza UPPERCASE na .navbar, .btn i th — neutralizujemy */
.navbar, .navbar .nav-link, .btn, .btn-convert, th, .dropdown-item, .breadcrumb {
    text-transform: none !important; letter-spacing: normal;
}

a { color: #C8451F; text-decoration: none; transition: color .18s ease; }
a:hover { color: #9E3416; }

code {
    font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
    color: var(--hot);
    background: rgba(255,61,46,.08);
    padding: .15em .5em;
    border-radius: .45rem;
    font-size: .9em;
}
.tnum { font-variant-numeric: tabular-nums; }

/* layout shell + sticky footer */
.page-shell { display: flex; flex-direction: column; min-height: 100vh; }
.page-shell > .content { flex: 1 0 auto; }

/* =====================================================================
   Navbar — solidny, sticky, z thermal kreską
   ===================================================================== */
.navbar.navbar {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(20,17,27,.82);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: .6rem 0;
}
.navbar.navbar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
    height: 3px; background: var(--thermal);
}
.navbar .navbar-brand img { width: 150px; height: auto; }
.navbar .nav-link {
    color: rgba(255,255,255,.82) !important; font-weight: 600; font-size: .98rem;
    padding: .45rem .95rem !important; border-radius: var(--r-pill);
    transition: background .18s, color .18s;
}
.navbar .nav-link:hover { color: #fff !important; background: rgba(255,255,255,.1); }
.navbar .nav-link.active { color: #fff !important; background: var(--thermal-hot); }
.navbar .navbar-toggler { border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: .35rem .55rem; }
.navbar .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255,61,46,.35); }
.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' d='M4 8h22M4 15h22M4 22h22'/%3E%3C/svg%3E");
}
.navbar .dropdown-menu {
    border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
    padding: .4rem; margin-top: .7rem; background: #fff;
}
.navbar .dropdown-item { border-radius: 10px; font-weight: 600; padding: .55rem .85rem; color: var(--ink); }
.navbar .dropdown-item:hover, .navbar .dropdown-item.active { background: rgba(255,61,46,.10); color: var(--hot); }

/* =====================================================================
   HERO — pełna szerokość, ciemny, dramatyczny
   ===================================================================== */
.hero-band {
    position: relative;
    background: var(--ink);
    color: #fff;
    overflow: hidden;
    margin-bottom: 3.5rem;
    isolation: isolate;
}
/* świecący gradientowy "blob" */
.hero-band::before {
    content: ""; position: absolute; z-index: -1;
    width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
    right: -12%; top: -28%;
    background: conic-gradient(from 140deg, #FF3D2E, #FF8A1E, #FFC53D, #18C2D8, #2E7BF6, #FF3D2E);
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    animation: spin 26s linear infinite;
}
/* delikatna siatka */
.hero-band::after {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(120% 90% at 30% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(120% 90% at 30% 0%, #000 30%, transparent 75%);
}
.hero-inner {
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
    color: #fff; background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    padding: .4rem .9rem; border-radius: var(--r-pill); margin-bottom: 1.4rem;
}
.hero-eyebrow .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--thermal); }
.hero-title {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.04; letter-spacing: -.03em; margin: 0 0 1.1rem;
}
.hero-title .grad {
    background: var(--thermal); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { color: rgba(255,255,255,.72); font-size: clamp(1.05rem, 1.7vw, 1.35rem); max-width: 46ch; margin: 0; }

/* gigantyczny duch "°" w tle */
.hero-ghost {
    position: absolute; right: 4%; bottom: -8%; z-index: -1;
    font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
    font-size: clamp(20rem, 40vw, 46rem); line-height: 1;
    color: rgba(255,255,255,.04);
    pointer-events: none; user-select: none;
}

/* =====================================================================
   KONWERTER w hero — szklany panel z wielkim wynikiem
   ===================================================================== */
.converter {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--r-lg);
    padding: 1.6rem;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg);
}
.converter .conv-label {
    font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255,255,255,.6); font-weight: 600; margin-bottom: .4rem;
}
.converter input[type="number"] {
    width: 100%;
    background: rgba(0,0,0,.22);
    border: 1.5px solid rgba(255,255,255,.16);
    border-radius: 14px;
    color: #fff;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    font-variant-numeric: tabular-nums;
    padding: .6rem .9rem;
    transition: border-color .18s, box-shadow .18s;
}
.converter input[type="number"]:focus {
    outline: none; border-color: var(--warm);
    box-shadow: 0 0 0 .25rem rgba(255,138,30,.25);
}
.converter input::placeholder { color: rgba(255,255,255,.35); }
.converter select {
    width: 100%;
    background: rgba(255,255,255,.06);
    border: 1.5px solid rgba(255,255,255,.16);
    color: #fff; border-radius: 12px; padding: .6rem .8rem; font-weight: 600;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .8rem center;
}
.converter select:focus { outline: none; border-color: var(--warm); box-shadow: 0 0 0 .25rem rgba(255,138,30,.25); }
.converter select option { color: #14111B; }
.converter .swap {
    width: 44px; height: 44px; flex: 0 0 44px;
    display: grid; place-items: center;
    border-radius: 50%; border: 1.5px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06); color: #fff; font-size: 1.05rem;
    cursor: pointer; transition: transform .25s, background .18s;
}
.converter .swap:hover { background: rgba(255,255,255,.14); transform: rotate(180deg); }
.btn-convert {
    width: 100%; border: none; border-radius: 14px;
    background: var(--thermal); background-size: 180% 180%; background-position: 0 50%;
    color: #fff; font-weight: 700; font-size: 1.05rem; padding: .85rem 1rem;
    box-shadow: var(--glow); transition: background-position .4s, transform .15s, box-shadow .2s;
}
.btn-convert:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 22px 60px -14px rgba(255,61,46,.6); }
.btn-convert:active { transform: translateY(0); }

/* wielki wynik */
.conv-result { margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px dashed rgba(255,255,255,.16); }
.conv-result .res-num {
    font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
    font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1;
    font-variant-numeric: tabular-nums;
    background: var(--thermal); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.conv-result .res-sub { color: rgba(255,255,255,.6); font-size: .95rem; margin-top: .4rem; }

/* =====================================================================
   Sekcje / nagłówki
   ===================================================================== */
.section { padding: 1rem 0 1.5rem; }
.section-head { margin-bottom: 1.8rem; }
.section-kicker {
    display: inline-block; font-weight: 700; font-size: .75rem; letter-spacing: .15em;
    text-transform: uppercase; color: var(--hot); margin-bottom: .5rem;
}
.section-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; }
.section-head .sub { color: var(--ink-soft); margin: .6rem 0 0; max-width: 56ch; }

/* =====================================================================
   Karty (Bootstrap) — odświeżone, ale używamy ich oszczędnie
   ===================================================================== */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-header {
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 1.2rem 1.4rem; color: var(--ink); position: relative;
}
.card-header::after {
    content: ""; position: absolute; left: 1.4rem; bottom: -1px;
    width: 58px; height: 3px; border-radius: 3px; background: var(--thermal);
}
.card-header.bg-primary, .card-header.bg-success, .card-header.bg-light {
    background: var(--surface) !important; color: var(--ink) !important;
}
.card-header.bg-primary .mb-0, .card-header.bg-success .mb-0 { color: var(--ink) !important; }
.card-header h2 { font-size: 1.2rem; }

/* widżety w sidebarze artykułu */
.aside-widget {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    padding: 1.2rem; margin-bottom: 1.4rem; box-shadow: var(--shadow);
}
.aside-cta {
    background: var(--ink); color: #fff; border: 1px solid var(--ink-2);
    border-radius: var(--r); padding: 1.4rem; margin-bottom: 1.4rem; position: relative; overflow: hidden;
}
.aside-cta::before {
    content: ""; position: absolute; right: -30%; top: -60%; width: 220px; height: 220px;
    background: var(--thermal); border-radius: 50%; filter: blur(50px); opacity: .5;
}
.aside-cta > * { position: relative; }
.aside-cta h4 { color: #fff; font-size: 1.15rem; margin: 0 0 .4rem; }
.aside-cta p { color: rgba(255,255,255,.72); font-size: .92rem; margin: 0 0 1rem; }
/* powiązane artykuły wewnątrz widżetu — bez podwójnych ramek */
.aside-widget .side-article { border: none; box-shadow: none; padding: .55rem 0; border-radius: 0; }
.aside-widget .side-article + .side-article { border-top: 1px solid var(--line); }
.aside-widget .side-article:hover { transform: translateX(3px); }
.aside-widget .side-article img { width: 64px; height: 64px; flex-basis: 64px; }
.card-body { padding: 1.4rem; }
.bg-light { background: var(--paper-2) !important; }

/* =====================================================================
   "Wzory" — ciemny panel, monospace
   ===================================================================== */
.formula-panel {
    background: var(--ink); color: #fff; border-radius: var(--r-lg);
    padding: 1.8rem; height: 100%;
    border: 1px solid var(--ink-2);
}
.formula-panel h3 { color: #fff; font-size: 1.25rem; margin-bottom: 1.2rem; }
.formula-row {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.10);
}
.formula-row:last-child { border-bottom: none; }
.formula-row .fl { color: rgba(255,255,255,.7); font-weight: 600; font-size: .95rem; }
.formula-row .fr {
    font-family: "JetBrains Mono", monospace; font-size: .98rem;
    color: var(--amber); white-space: nowrap;
}

/* =====================================================================
   Artykuły — redakcyjnie (1 wyróżniony + siatka)
   ===================================================================== */
.article-feature {
    position: relative; border-radius: var(--r-lg); overflow: hidden;
    min-height: 360px; display: flex; align-items: flex-end;
    box-shadow: var(--shadow); color: #fff; height: 100%;
    background: var(--ink-2);
}
.article-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-feature::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,8,14,.92) 0%, rgba(10,8,14,.45) 45%, transparent 80%);
}
.article-feature .af-body { position: relative; z-index: 1; padding: 2rem; }
.article-feature .af-tag {
    display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
    font-weight: 700; color: #fff; background: var(--thermal-hot);
    padding: .3rem .75rem; border-radius: var(--r-pill); margin-bottom: .8rem;
}
.article-feature h3 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0 0 .5rem; }
.article-feature p { color: rgba(255,255,255,.78); margin: 0; }
.article-feature a.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }

.article-card { height: 100%; display: flex; flex-direction: column; border-radius: var(--r); }
.article-card .card-img-top, .article-card img.card-img-top, .article-thumbnail {
    height: 190px; width: 100%; object-fit: cover; border-radius: 0;
}
.article-card .card-title, .article-content h3 { font-size: 1.15rem; line-height: 1.22; }
.article-content h3 a { color: var(--ink) !important; }
.article-content h3 a:hover { color: var(--hot) !important; }
.article-meta { color: var(--ink-soft); font-size: .85rem; }
.read-more { font-weight: 700; color: var(--hot); }
.read-more:hover { color: var(--warm); }

/* boczna lista artykułów obok wyróżnionego */
.side-article {
    display: flex; gap: 1rem; align-items: center;
    padding: .85rem; border-radius: 14px; border: 1px solid var(--line);
    background: var(--surface); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.side-article:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: rgba(255,61,46,.35); }
.side-article img { width: 78px; height: 78px; flex: 0 0 78px; object-fit: cover; border-radius: 10px; }
.side-article .sa-body { min-width: 0; }
.side-article .sa-date { font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.side-article h4 { font-size: 1.02rem; line-height: 1.25; margin: .2rem 0 0; color: var(--ink); }
.side-article:hover h4 { color: var(--hot); }

/* =====================================================================
   STRONA ARTYKUŁU — layout redakcyjny
   ===================================================================== */
/* lekki, kompaktowy nagłówek artykułu (na jasnym tle) */
.article-head { padding: 1.8rem 0 1.4rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.article-head .breadcrumb { margin-bottom: 1rem; }
.a-tag {
    display: inline-block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
    font-weight: 700; color: var(--hot); background: rgba(255,61,46,.10);
    padding: .3rem .7rem; border-radius: var(--r-pill); margin-bottom: .8rem;
}
.article-head h1 {
    color: var(--ink); font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    line-height: 1.18; max-width: 34ch; margin: 0 0 1.2rem;
}
.article-byline { display: flex; align-items: center; gap: .8rem; color: var(--ink-soft); flex-wrap: wrap; }
.article-byline .av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.article-byline .by-name { color: var(--ink); font-weight: 700; font-family: "Bricolage Grotesque", sans-serif; }
.article-byline .by-meta { font-size: .88rem; }
.article-byline .by-meta i { color: var(--hot); }

/* zdjęcie wiodące — umiarkowane */
.article-lead-img {
    width: 100%; border-radius: var(--r); overflow: hidden;
    margin: 0 0 2rem; box-shadow: 0 6px 18px -10px rgba(20,17,27,.25);
    border: 1px solid var(--line);
}
.article-lead-img img { width: 100%; height: clamp(200px, 28vw, 300px); object-fit: cover; display: block; }

/* treść artykułu — typografia */
.article-body { font-size: 1.04rem; line-height: 1.7; color: #2b2636; max-width: 68ch; }
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.25rem; }
/* sprzątanie po WordPressie: nagłówki bywają z <br><br> (robią pustą przerwę),
   a w treści trafiają się puste akapity */
.article-body :is(h1, h2, h3, h4, h5, h6) br { display: none; }
.article-body p:empty, .article-body p > br:only-child { display: none; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4 {
    color: var(--ink); letter-spacing: -.02em; line-height: 1.2;
    text-transform: none; text-decoration: none;
}
.article-body h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin: 2.2rem 0 .8rem; padding-left: .9rem; position: relative; }
.article-body h2::before {
    content: ""; position: absolute; left: 0; top: .18em; bottom: .18em;
    width: 5px; border-radius: 5px; background: var(--thermal);
}
.article-body h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 1.9rem 0 .7rem; }
.article-body a { color: var(--hot); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 600; }
.article-body a:hover { color: var(--warm); }
.article-body img { max-width: 100%; height: auto; border-radius: 14px; margin: 1.6rem 0; box-shadow: var(--shadow); }
.article-body ul, .article-body ol { margin: 0 0 1.3rem 1.2rem; padding: 0; }
.article-body li { margin-bottom: .55rem; }
.article-body li::marker { color: var(--hot); font-weight: 700; }
.article-body blockquote {
    border-left: 4px solid var(--hot); background: var(--paper-2);
    margin: 1.6rem 0; padding: 1rem 1.4rem; border-radius: 0 14px 14px 0;
    font-size: 1.18rem; font-style: italic; color: var(--ink);
}
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body hr { border: none; height: 1px; background: var(--line); margin: 2rem 0; }

/* sidebar */
.article-aside { position: sticky; top: 92px; }
.aside-title { font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hot); margin-bottom: 1rem; }

@media (max-width: 991px) {
    .article-aside { position: static; margin-top: 2.5rem; }
    .article-body { max-width: none; }
}

/* =====================================================================
   Bloki informacyjne — numerowane, bez "stosu kart"
   ===================================================================== */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.info-block {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    padding: 1.6rem; position: relative; box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
}
.info-block:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.info-block .ib-num {
    font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.15rem;
    width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 12px;
    background: var(--thermal); color: #fff; margin-bottom: 1rem;
}
.info-block .ib-tag {
    display: inline-block; font-family: "JetBrains Mono", monospace; font-weight: 700;
    font-size: .82rem; letter-spacing: .02em; color: #fff;
    background: var(--thermal); padding: .35rem .8rem; border-radius: var(--r-pill);
    margin-bottom: 1rem;
}
.info-block h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.info-block p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* =====================================================================
   Popularne przeliczniki — chipy zamiast list
   ===================================================================== */
.chip-cloud { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
    display: inline-flex; align-items: center; gap: .35rem;
    background: var(--surface); border: 1.5px solid var(--line);
    border-radius: var(--r-pill); padding: .5rem 1rem; font-weight: 600; font-size: .92rem;
    color: var(--ink); transition: all .18s; font-variant-numeric: tabular-nums;
}
.chip:hover { border-color: var(--hot); color: var(--hot); background: rgba(255,61,46,.06); transform: translateY(-2px); }
.chip-col-title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; margin-bottom: .9rem; }

/* =====================================================================
   Formularze (kontakt, inne) + przyciski globalne
   ===================================================================== */
.form-label { font-weight: 600; margin-bottom: .4rem; }
.form-control, .form-select {
    border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .9rem;
    background: #fff; color: var(--ink); transition: border-color .18s, box-shadow .18s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--hot); box-shadow: 0 0 0 .22rem rgba(255,61,46,.16); outline: none;
}
.btn { border-radius: 12px; font-weight: 700; padding: .65rem 1.4rem; transition: transform .15s, box-shadow .2s, background-position .4s; }
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--thermal); background-size: 180% 180%; background-position: 0 50%;
    border: none; color: #fff; box-shadow: var(--glow);
}
.btn-primary:hover, .btn-primary:focus { background: var(--thermal); background-size: 180% 180%; background-position: 100% 50%; color: #fff; transform: translateY(-2px); }
.btn-outline-primary { border: 1.5px solid rgba(255,61,46,.4); color: var(--hot); background: transparent; }
.btn-outline-primary:hover, .btn-outline-primary:focus { background: rgba(255,61,46,.08); border-color: var(--hot); color: var(--hot); }

/* =====================================================================
   Breadcrumb / alerty
   ===================================================================== */
.breadcrumb { background: transparent; font-size: .9rem; padding-top: .25rem; }
.breadcrumb-item a { color: var(--ink-soft); font-weight: 600; }
.breadcrumb-item a:hover { color: var(--hot); }
.breadcrumb-item.active { color: var(--ink); }
.breadcrumb-item + .breadcrumb-item::before { color: #c9bdac; }

.alert { border-radius: 14px; border: 1px solid transparent; }
.alert-success { background: rgba(24,194,216,.12); border-color: rgba(24,194,216,.3); color: #0a6b7a; }
.alert-success .alert-heading { color: #0a6b7a; }
.alert-info { background: rgba(255,138,30,.12); border-color: rgba(255,138,30,.3); color: #9a5410; }

/* siatka przeliczników (category.blade) -> chipy */
.temperature-grid { display: flex !important; flex-wrap: wrap; gap: .6rem; grid-template-columns: none !important; }
.temperature-item {
    background: var(--surface) !important; border: 1.5px solid var(--line) !important;
    border-radius: var(--r-pill) !important; padding: .5rem 1rem !important;
    transition: all .18s !important;
}
.temperature-item:hover { background: rgba(255,61,46,.06) !important; border-color: var(--hot) !important; transform: translateY(-2px) !important; box-shadow: none !important; }
.temperature-item a { color: var(--ink) !important; font-weight: 600 !important; }
.temperature-item a:hover { color: var(--hot) !important; }

/* =====================================================================
   Footer
   ===================================================================== */
footer.site-footer {
    flex-shrink: 0; margin-top: 4.5rem; background: var(--ink); color: #b8b0c4;
    padding: 3rem 0 2rem; position: relative;
}
footer.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--thermal); }
footer.site-footer a { color: #efe9f2; font-weight: 600; }
footer.site-footer a:hover { color: var(--amber); }
footer.site-footer .footer-brand { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.3rem; color: #fff; }
footer.site-footer small { color: #8a8198 !important; }

/* =====================================================================
   Motion
   ===================================================================== */
@keyframes reveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.reveal { opacity: 0; animation: reveal .7s cubic-bezier(.2,.7,.3,1) forwards; }
.reveal.d1 { animation-delay: .1s; } .reveal.d2 { animation-delay: .22s; }
.reveal.d3 { animation-delay: .34s; } .reveal.d4 { animation-delay: .46s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Responsywność
   ===================================================================== */
@media (max-width: 991px) {
    .hero-band { margin-bottom: 2.5rem; }
    .converter { margin-top: 2rem; }
}
@media (max-width: 768px) {
    body { font-size: 1rem; }
    .hero-ghost { display: none; }
    .formula-panel, .article-feature { border-radius: var(--r); }
}
