@charset "UTF-8";
*, *::before, *::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

@-webkit-viewport {
  width: device-width;
}
@-moz-viewport {
  width: device-width;
}
@-ms-viewport {
  width: device-width;
}
@-o-viewport {
  width: device-width;
}
@viewport {
  width: device-width;
}
html {
  font-size: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}

audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

[hidden],
template {
  display: none;
}

a {
  background: transparent;
  text-decoration: none;
}

a:active,
a:hover {
  outline: 0;
}

abbr[title] {
  border-bottom: 1px dotted;
}

b,
strong {
  font-weight: bold;
}

dfn {
  font-style: italic;
}

mark {
  background: #ff0;
  color: #000;
}

sub,
sup {
  font-size: 0.75rem;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

img {
  width: auto\9 ;
  height: auto;
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
  border: 0;
  -ms-interpolation-mode: bicubic;
}

iframe,
svg {
  max-width: 100%;
}

svg:not(:root) {
  overflow: hidden;
}

figure {
  margin: 1em 40px;
}

hr {
  height: 0;
}

pre {
  overflow: auto;
}

code,
kbd,
pre,
samp {
  font-family: inherit;
  font-size: 1rem;
}

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

button {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
html input[type=button],
input[type=reset],
input[type=submit] {
  -webkit-appearance: button;
  cursor: pointer;
}

button[disabled],
html input[disabled] {
  cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input {
  line-height: normal;
}

input[type=checkbox],
input[type=radio] {
  padding: 0;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  height: auto;
}

input[type=search] {
  -webkit-appearance: textfield;
}

input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

legend {
  border: 0;
  padding: 0;
}

textarea {
  overflow: auto;
}

optgroup {
  font-weight: bold;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
}

tr, td, th {
  vertical-align: middle;
}

th, td {
  padding: 0.425rem;
}

th {
  text-align: left;
}

.g-container {
  width: 75em;
  margin: 0 auto;
  padding: 0;
}
@media only all and (min-width: 60em) and (max-width: 74.938em) {
  .g-container {
    width: 60em;
  }
}
@media only all and (min-width: 48em) and (max-width: 59.938em) {
  .g-container {
    width: 48em;
  }
}
@media only all and (min-width: 30.063em) and (max-width: 47.938em) {
  .g-container {
    width: 30em;
  }
}
@media only all and (max-width: 30em) {
  .g-container {
    width: 100%;
  }
}

.g-grid {
  display: -webkit-box;
  display: -moz-box;
  display: box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-flow: row wrap;
  -moz-flex-flow: row wrap;
  flex-flow: row wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.g-grid.nowrap {
  -webkit-flex-flow: row;
  -moz-flex-flow: row;
  flex-flow: row;
}

.g-block {
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  box-flex: 1;
  -webkit-flex: 1;
  -moz-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
@media only all and (max-width: 47.938em) {
  .g-block {
    -webkit-box-flex: 0;
    -moz-box-flex: 0;
    box-flex: 0;
    -webkit-flex: 0 100%;
    -moz-flex: 0 100%;
    -ms-flex: 0 100%;
    flex: 0 100%;
  }
}

.g-content {
  margin: 0.625rem;
  padding: 0.938rem;
}

@media only all and (max-width: 47.938em) {
  body [class*=size-] {
    -webkit-box-flex: 0;
    -moz-box-flex: 0;
    box-flex: 0;
    -webkit-flex: 0 100%;
    -moz-flex: 0 100%;
    -ms-flex: 0 100%;
    flex: 0 100%;
  }
}

.size-1-2 {
  -webkit-box-flex: 0;
  -moz-box-flex: 0;
  box-flex: 0;
  -webkit-flex: 0 50%;
  -moz-flex: 0 50%;
  -ms-flex: 0 50%;
  flex: 0 50%;
}

.size-1-3 {
  -webkit-box-flex: 0;
  -moz-box-flex: 0;
  box-flex: 0;
  -webkit-flex: 0 33.3333333333%;
  -moz-flex: 0 33.3333333333%;
  -ms-flex: 0 33.3333333333%;
  flex: 0 33.3333333333%;
}

.size-1-4 {
  -webkit-box-flex: 0;
  -moz-box-flex: 0;
  box-flex: 0;
  -webkit-flex: 0 25%;
  -moz-flex: 0 25%;
  -ms-flex: 0 25%;
  flex: 0 25%;
}

.size-1-5 {
  -webkit-box-flex: 0;
  -moz-box-flex: 0;
  box-flex: 0;
  -webkit-flex: 0 20%;
  -moz-flex: 0 20%;
  -ms-flex: 0 20%;
  flex: 0 20%;
}

.size-1-6 {
  -webkit-box-flex: 0;
  -moz-box-flex: 0;
  box-flex: 0;
  -webkit-flex: 0 16.6666666667%;
  -moz-flex: 0 16.6666666667%;
  -ms-flex: 0 16.6666666667%;
  flex: 0 16.6666666667%;
}

.size-1-7 {
  -webkit-box-flex: 0;
  -moz-box-flex: 0;
  box-flex: 0;
  -webkit-flex: 0 14.2857142857%;
  -moz-flex: 0 14.2857142857%;
  -ms-flex: 0 14.2857142857%;
  flex: 0 14.2857142857%;
}

.size-1-8 {
  -webkit-box-flex: 0;
  -moz-box-flex: 0;
  box-flex: 0;
  -webkit-flex: 0 12.5%;
  -moz-flex: 0 12.5%;
  -ms-flex: 0 12.5%;
  flex: 0 12.5%;
}

.size-1-9 {
  -webkit-box-flex: 0;
  -moz-box-flex: 0;
  box-flex: 0;
  -webkit-flex: 0 11.1111111111%;
  -moz-flex: 0 11.1111111111%;
  -ms-flex: 0 11.1111111111%;
  flex: 0 11.1111111111%;
}

.size-1-10 {
  -webkit-box-flex: 0;
  -moz-box-flex: 0;
  box-flex: 0;
  -webkit-flex: 0 10%;
  -moz-flex: 0 10%;
  -ms-flex: 0 10%;
  flex: 0 10%;
}

.size-1-11 {
  -webkit-box-flex: 0;
  -moz-box-flex: 0;
  box-flex: 0;
  -webkit-flex: 0 9.0909090909%;
  -moz-flex: 0 9.0909090909%;
  -ms-flex: 0 9.0909090909%;
  flex: 0 9.0909090909%;
}

.size-1-12 {
  -webkit-box-flex: 0;
  -moz-box-flex: 0;
  box-flex: 0;
  -webkit-flex: 0 8.3333333333%;
  -moz-flex: 0 8.3333333333%;
  -ms-flex: 0 8.3333333333%;
  flex: 0 8.3333333333%;
}

@media only all and (max-width: 47.938em) {
  @supports not (flex-wrap: wrap) {
    .g-grid {
      display: block;
      -webkit-box-lines: inherit;
      -moz-box-lines: inherit;
      box-lines: inherit;
      -webkit-flex-wrap: inherit;
      -moz-flex-wrap: inherit;
      -ms-flex-wrap: inherit;
      flex-wrap: inherit;
    }
    .g-block {
      display: block;
      -webkit-box-flex: inherit;
      -moz-box-flex: inherit;
      box-flex: inherit;
      -webkit-flex: inherit;
      -moz-flex: inherit;
      -ms-flex: inherit;
      flex: inherit;
    }
  }
}
.first-block {
  -webkit-box-ordinal-group: 0;
  -webkit-order: -1;
  -ms-flex-order: -1;
  order: -1;
}

.last-block {
  -webkit-box-ordinal-group: 2;
  -webkit-order: 1;
  -ms-flex-order: 1;
  order: 1;
}

.fixed-blocks {
  -webkit-flex-flow: row wrap;
  -moz-flex-flow: row wrap;
  flex-flow: row wrap;
}
.fixed-blocks .g-block {
  -webkit-box-flex: inherit;
  -moz-box-flex: inherit;
  box-flex: inherit;
  -webkit-flex: inherit;
  -moz-flex: inherit;
  -ms-flex: inherit;
  flex: inherit;
  width: 0.25;
}
@media only all and (min-width: 60em) and (max-width: 74.938em) {
  .fixed-blocks .g-block {
    width: 0.3333333333;
  }
}
@media only all and (min-width: 48em) and (max-width: 59.938em) {
  .fixed-blocks .g-block {
    width: 0.5;
  }
}
@media only all and (max-width: 47.938em) {
  .fixed-blocks .g-block {
    width: 100%;
  }
}

@supports not (flex-wrap: wrap) {
  .fixed-blocks {
    display: block;
    -webkit-flex-flow: inherit;
    -moz-flex-flow: inherit;
    flex-flow: inherit;
  }
}
body {
  font-size: 1rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0.85rem 0 1.7rem 0;
  text-rendering: optimizeLegibility;
}

h1 {
  font-size: 3.2rem;
}

h2 {
  font-size: -0.6rem;
}

h3 {
  font-size: -0.5rem;
}

h4 {
  font-size: 1.75rem;
}

h5 {
  font-size: 1.35rem;
}

h6 {
  font-size: 0.85rem;
}

p {
  margin: 1.7rem 0;
}

ul, ol, dl {
  margin-top: 1.7rem;
  margin-bottom: 1.7rem;
}
ul ul, ul ol, ul dl, ol ul, ol ol, ol dl, dl ul, dl ol, dl dl {
  margin-top: 0;
  margin-bottom: 0;
}

ul, dl {
  margin-left: 1.7rem;
  padding: 0;
}

ol {
  padding-left: 1.7rem;
}

blockquote {
  margin: 1.7rem 0;
  padding-left: 0.85rem;
}

cite {
  display: block;
  font-size: 0.875rem;
}
cite:before {
  content: "— ";
}

pre {
  margin: 1.7rem 0;
  padding: 0.938rem;
}

code {
  vertical-align: bottom;
}

small {
  font-size: 0.875rem;
}

hr {
  border-left: none;
  border-right: none;
  border-top: none;
  margin: 1.7rem 0;
}

fieldset {
  border: 0;
  padding: 0.938rem;
  margin: 0 0 1.7rem 0;
}

input,
label,
select {
  display: block;
}

label {
  margin-bottom: 0.425rem;
}
label.required:after {
  content: "*";
}
label abbr {
  display: none;
}

textarea, input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], input[type=color], input[type=date], input[type=datetime], input[type=datetime-local], input[type=month], input[type=time], input[type=week], select[multiple=multiple] {
  -webkit-transition: border-color;
  -moz-transition: border-color;
  transition: border-color;
  border-radius: 0;
  margin-bottom: 0.85rem;
  padding: 0.425rem 0.425rem;
}
textarea:focus, input[type=email]:focus, input[type=number]:focus, input[type=password]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=text]:focus, input[type=url]:focus, input[type=color]:focus, input[type=date]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=month]:focus, input[type=time]:focus, input[type=week]:focus, select[multiple=multiple]:focus {
  outline: none;
}

textarea {
  resize: vertical;
}

input[type=checkbox], input[type=radio] {
  display: inline;
  margin-right: 0.425rem;
}

input[type=file] {
  width: 100%;
}

select {
  width: auto;
  max-width: 100%;
  margin-bottom: 1.7rem;
}

button,
input[type=submit] {
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  white-space: nowrap;
  border: inherit;
}
/* =========================================
   🔥 FIX TYPOGRAFII (KLUCZOWE!)
========================================= */

.article-content h2 {
  font-size: 2rem !important;
  line-height: 1.3;
  position: relative;
}

.article-content h3 {
  font-size: 1.6rem !important;
  line-height: 1.4;
  position: relative;
}


/* =========================================
   🔥 SCROLL OFFSET (ważne!)
========================================= */

.article-content h2,
.article-content h3 {
  scroll-margin-top: 120px;
}


/* =========================================
   🔥 TOC PREMIUM (lekko poprawiony)
========================================= */

.toc {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 20px;
  margin: 30px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.toc::before {
  content: "Spis treści";
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: #666;
  margin-bottom: 15px;
}

.toc ul,
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 6px;
}

.toc a {
  display: block;
  font-size: 14px;
  color: #333;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.toc a:hover {
  background: rgba(64,112,99,0.08);
  color: #407063;
}

.toc a.active {
  background: rgba(64,112,99,0.15);
  color: #407063;
  font-weight: 600;
}


/* =========================================
   🔥 PRAWDZIWY HIGHLIGHT SEKCJI (FIX)
========================================= */

/* anchor (działa przy kliknięciu) */
.article-content h2:target,
.article-content h3:target {
  background: rgba(64,112,99,0.18);
  border-radius: 6px;
  padding: 6px 10px;
  transition: all 0.3s ease;
}

/* JS highlight (ważniejsze niż :target) */
.article-content h2.highlighted,
.article-content h3.highlighted {
  background: rgba(64,112,99,0.25);
  border-radius: 6px;
  padding: 6px 10px;
  transition: all 0.4s ease;
}
:target {
  background: #fff8e1;
  padding: 15px;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.image-block--premium {
    margin: 3rem 0;
    text-align: center;
}

.image-block--premium img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    max-width: 100%;
    height: auto;
}

.image-block--premium figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.6;
}
/* ===== HERO / BLOG HEADER ===== */

.blog-header-image {
  position: relative;

  height: 50vh;              /* 🔥 możesz zmienić na 60vh / 70vh */
  min-height: 350px;
  max-height: 700px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
}

/* ===== OVERLAY (nie zasłania tekstu) ===== */

.blog-header-image::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    rgba(15, 23, 42, 0.75),
    rgba(15, 23, 42, 0.35)
  );

  z-index: 1; /* 🔥 niżej niż tekst */
}

/* ===== CONTENT (tekst nad overlayem) ===== */

.blog-header-image h1,
.blog-header-image h2,
.blog-header-image .hero-content {
  position: relative;
  z-index: 2; /* 🔥 ponad overlay */
  color: #fff;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}

/* ===== TYPOGRAFIA ===== */

.blog-header-image h1 {
  font-size: 42px;
  margin-bottom: 10px;

  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); /* 🔥 czytelność */
}

.blog-header-image h2 {
  font-size: 22px;
  opacity: 0.9;

  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* ===== OPCJONALNY WRAPPER ===== */

.hero-content {
  position: relative;
  z-index: 2;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {
  .blog-header-image {
    height: 45vh;
    min-height: 280px;
}
