/* Pakiet strony strazak-gliwice.pl – baner powitalny. */

.sg-hero {
    position: relative; overflow: hidden; color: #fff; display: flex; align-items: center;
    background: var(--kolor-granat, #14213d);
}
.sg-hero--srednia { min-height: 460px; }
.sg-hero--duza { min-height: min(640px, 82vh); }
.sg-hero--ekran { min-height: calc(100vh - 130px); }
.sg-hero__tlo { position: absolute; inset: 0; }
.sg-hero__tlo picture, .sg-hero__obraz { width: 100%; height: 100%; object-fit: cover; object-position: var(--sg-hero-pozycja, center); display: block; }
.sg-hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(11, 20, 38, .94) 0%, rgba(11, 20, 38, .82) 38%, rgba(11, 20, 38, .35) 70%, rgba(11, 20, 38, .15) 100%),
        linear-gradient(0deg, rgba(11, 20, 38, .55) 0%, transparent 35%);
}
.sg-hero__kontener { position: relative; z-index: 1; padding-top: 70px; padding-bottom: 70px; }
.sg-hero__tresc { max-width: 620px; }
.sg-hero__nad {
    display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--kolor-zloto-jasne, #d8b25a);
    text-transform: uppercase; letter-spacing: .18em; font-size: .82rem; font-weight: 700;
}
.sg-hero__nad::before { content: ''; width: 34px; height: 2px; background: currentColor; }
.sg-hero__tytul { color: #fff !important; font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.08; margin: 0 0 18px; }
.sg-hero__opis { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #e4e8ef; margin: 0 0 28px; max-width: 540px; }
.sg-hero__przyciski { display: flex; flex-wrap: wrap; gap: 12px; }
.sg-hero .tkw-przycisk--obrys { border-color: rgba(255, 255, 255, .8); color: #fff; }
.sg-hero .tkw-przycisk--obrys:hover { background: #fff; color: var(--kolor-granat, #14213d); }
.sg-hero__florian {
    display: inline-flex; align-items: center; gap: 10px; margin: 30px 0 0; padding: 10px 16px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(216, 178, 90, .45); font-size: .95rem; color: #fff;
    font-family: var(--font-naglowki, serif); font-style: italic;
}
.sg-hero__krzyz { color: var(--kolor-zloto-jasne, #d8b25a); font-style: normal; }

/* Delikatne przybliżanie zdjęcia (motyw: Animacje → efekt Ken Burns) */
@media (prefers-reduced-motion: no-preference) {
    .sg-animacje-hero .sg-hero__obraz { animation: sg-kenburns 26s ease-out both; transform-origin: 70% 50%; }
    .sg-animacje .sg-hero__tresc > * { animation: sg-wejscie .9s cubic-bezier(.2, .6, .2, 1) both; }
    .sg-animacje .sg-hero__tresc > *:nth-child(2) { animation-delay: .08s; }
    .sg-animacje .sg-hero__tresc > *:nth-child(3) { animation-delay: .16s; }
    .sg-animacje .sg-hero__tresc > *:nth-child(4) { animation-delay: .24s; }
    .sg-animacje .sg-hero__tresc > *:nth-child(5) { animation-delay: .32s; }
}
@keyframes sg-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes sg-wejscie { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.dc-bez-animacji .sg-hero__obraz, .dc-bez-animacji .sg-hero__tresc > * { animation: none !important; }

@media (max-width: 760px) {
    .sg-hero--duza, .sg-hero--ekran { min-height: 560px; }
    .sg-hero::after { background: linear-gradient(0deg, rgba(11, 20, 38, .96) 0%, rgba(11, 20, 38, .82) 55%, rgba(11, 20, 38, .45) 100%); }
    .sg-hero { align-items: flex-end; }
    .sg-hero__kontener { padding-top: 120px; padding-bottom: 44px; }
    .sg-hero__florian { border-radius: 12px; }
}
