/*
 * KK Poprawki – klasy wyglądu nagłówków.
 * Pozwalają zmienić poziom znacznika (np. H4 → H2, H2 → p) bez zmiany wyglądu.
 * Wartości skopiowane ze skali motywu Loquet (gt-style.min.css):
 *   h2 3.5rem / ≤1199 3rem / ≤991 1.875rem, line-height 1.2
 *   h3 3rem   / ≤1199 2.625rem / ≤991 1.5rem, line-height 1.2
 *   h4 2.25rem / ≤991 1.375rem, line-height 1.3
 *   h6 1.5rem  / ≤991 1.125rem, line-height 1.4
 * Selektor „.kk-jak-hX .elementor-heading-title” obsługuje klasę wpisaną
 * w zakładce Zaawansowane widżetu Nagłówek w Elementorze.
 */

.kk-jak-h2, .kk-jak-h2 .elementor-heading-title,
.kk-jak-h3, .kk-jak-h3 .elementor-heading-title,
.kk-jak-h4, .kk-jak-h4 .elementor-heading-title,
.kk-jak-h6, .kk-jak-h6 .elementor-heading-title {
	font-family: "Marcellus", serif;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
}

/* Rozmiar: zarówno dla zwykłych elementów, jak i widżetu Nagłówek Elementora. */
.kk-jak-h2, .kk-jak-h2 .elementor-heading-title { font-size: 3.5rem; }
.kk-jak-h3, .kk-jak-h3 .elementor-heading-title { font-size: 3rem; }
.kk-jak-h4, .kk-jak-h4 .elementor-heading-title { font-size: 2.25rem; }
.kk-jak-h6, .kk-jak-h6 .elementor-heading-title { font-size: 1.5rem; }

/* Interlinia tylko poza widżetem Nagłówek – Elementor ustawia tam własną
   (.elementor-heading-title), która nie zależy od poziomu znacznika. */
.kk-jak-h2:not(.elementor-widget) { line-height: 1.2; }
.kk-jak-h3:not(.elementor-widget) { line-height: 1.2; }
.kk-jak-h4:not(.elementor-widget) { line-height: 1.3; }
.kk-jak-h6:not(.elementor-widget) { line-height: 1.4; }

@media only screen and (max-width: 1199px) {
	.kk-jak-h2, .kk-jak-h2 .elementor-heading-title { font-size: 3rem; }
	.kk-jak-h3, .kk-jak-h3 .elementor-heading-title { font-size: 2.625rem; }
}

@media only screen and (max-width: 991px) {
	.kk-jak-h2, .kk-jak-h2 .elementor-heading-title { font-size: 1.875rem; }
	.kk-jak-h3, .kk-jak-h3 .elementor-heading-title { font-size: 1.5rem; }
	.kk-jak-h4, .kk-jak-h4 .elementor-heading-title { font-size: 1.375rem; }
	.kk-jak-h6, .kk-jak-h6 .elementor-heading-title { font-size: 1.125rem; }
}
