:root {
    --hg-cream: #f4f0e8;
    --hg-charcoal: #393e46;
    --hg-gold: #c6a145;
    --hg-gold-light: #f3dc6b;
    --hg-shadow: 12px 14px 16px rgba(36, 36, 36, .28);
}

.hg-spolecznosc {
    overflow-x: clip;
    background: var(--hg-cream);
    color: #111;
    font-family: "Raleway", Arial, sans-serif;
}
.hg-spolecznosc * { box-sizing: border-box; }
.hg-spolecznosc h1,
.hg-spolecznosc h2,
.hg-spolecznosc h3 {
    margin: 0 0 .65rem;
    color: var(--hg-charcoal);
    font-family: "Forum", "Cormorant Garamond", Georgia, serif;
    font-weight: 400;
    line-height: 1.03;
}
.hg-spolecznosc h2 { font-size: clamp(2rem, 2.7vw, 3.55rem); }
.hg-spolecznosc p,
.hg-spolecznosc li { font-size: clamp(1rem, 1.12vw, 1.28rem); line-height: 1.08; }
.hg-spolecznosc p { margin: 0 0 1rem; }
.hg-spolecznosc ul,
.hg-spolecznosc ol { margin: .45rem 0 1.35rem; padding-left: 1.7rem; }
.hg-spolecznosc a { text-decoration: none; }

.hg-spolecznosc .hg-container { width: min(92vw, 1520px); margin-inline: auto; }
.hg-section { padding: clamp(2.2rem, 4.7vw, 6rem) 0; }

.hg-spolecznosc__top {
    height: clamp(180px, 20vw, 400px);
    overflow: hidden;
}
.hg-spolecznosc__top-banner {
    width: 100%; height: 100%; display: block;
    object-fit: cover; object-position: center top;
}

.hg-intro { position: relative; padding-top: clamp(1.5rem, 3vw, 3.5rem); overflow: visible; }
.hg-intro__content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(300px, 25vw, 430px);
    gap: clamp(1.5rem, 2.5vw, 3rem);
    align-items: start;
}
.hg-intro__copy { min-width: 0; }
.hg-intro__visual {
    position: absolute;
    top: 6.2rem;
    right: calc(50% - 50vw);
    width: clamp(300px, 25vw, 430px);
    margin: 0;
}
.hg-intro__visual img {
    width: 100%; height: auto; display: block;
    object-fit: contain; object-position: right top;
}

.hg-ribbon-top-wrap {
    position: relative;
    width: clamp(320px, 32vw, 600px);
    margin: 0 0 .65rem -3.2rem;
}
.hg-ribbon { display: block; max-width: 100%; }
.hg-ribbon--top { width: 100%; }
.hg-ribbon-top-label {
    position: absolute; left: 14%; top: 50%; transform: translateY(-50%);
    color: var(--hg-charcoal);
    font-family: "Forum", Georgia, serif;
    font-size: clamp(1.45rem, 2vw, 2.45rem);
    line-height: 1; white-space: nowrap;
}
.hg-kicker {
    margin-left: -3.2rem !important;
    margin-bottom: clamp(2rem, 3.6vw, 4rem) !important;
    color: var(--hg-gold);
    font-family: "Forum", Georgia, serif;
    font-size: clamp(1.25rem, 1.85vw, 2.1rem) !important;
    line-height: 1.35 !important;
    text-transform: uppercase;
}
.hg-intro__copy > h2:first-of-type { margin-top: clamp(3.2rem, 5vw, 6rem); }
.hg-centered-lines {
    display: flex; flex-direction: column; align-items: center;
    margin: .8rem 0 1.2rem;
    text-align: center;
    font-size: clamp(1rem, 1.12vw, 1.28rem);
    line-height: 1.08;
}

.hg-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(3rem, 7vw, 8rem);
    align-items: start;
}
.hg-content-grid { padding-top: clamp(.5rem, 1.3vw, 1.6rem); }
.hg-final { padding-top: clamp(1rem, 2vw, 2.5rem); padding-bottom: clamp(4rem, 7vw, 8rem); }
.hg-final__buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.6rem;
}

.hg-btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 56px; padding: .9rem 1.4rem;
    border: 1px solid var(--hg-charcoal); border-radius: 12px;
    overflow: hidden;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: .95rem; line-height: 1.2; text-align: center;
    box-shadow: var(--hg-shadow);
    transition: transform .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
}
.hg-btn:hover { transform: translateY(-3px); }
.hg-btn--gold {
    background: linear-gradient(105deg, #d3aa32 0%, #ffe978 48%, #d3aa32 100%);
    color: var(--hg-charcoal);
}
.hg-btn--gold:hover { background: var(--hg-charcoal); color: var(--hg-gold-light); }
.hg-btn--dark { background: var(--hg-charcoal); color: var(--hg-gold-light); }
.hg-btn--dark:hover {
    background: linear-gradient(105deg, #d3aa32 0%, #ffe978 48%, #d3aa32 100%);
    color: var(--hg-charcoal);
}
.hg-btn--shine::after {
    content: "";
    position: absolute;
    top: -70%; left: -48%;
    width: 22%; height: 240%;
    border-radius: 50%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
    filter: blur(8px);
    transform: rotate(22deg);
    opacity: 0;
    animation: hg-community-shine 4.8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes hg-community-shine {
    0%, 62% { left: -48%; opacity: 0; }
    68% { opacity: .75; }
    88% { left: 130%; opacity: .45; }
    100% { left: 130%; opacity: 0; }
}
.hg-btn:hover::after { opacity: 0; }

.hg-reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.hg-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
    .hg-intro__content { grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 350px); }
    .hg-intro__visual { width: clamp(260px, 24vw, 350px); }
}

@media (max-width: 850px) {
    .hg-spolecznosc .hg-container { width: min(91vw, 760px); }
    .hg-section { padding: 3.5rem 0; }
    .hg-intro__content,
    .hg-grid-2 { grid-template-columns: 1fr; }
    .hg-intro__visual {
        position: relative; top: auto; right: auto;
        width: auto; margin: 1.5rem calc(50% - 50vw) 0 18vw;
    }
    .hg-ribbon-top-wrap,
    .hg-kicker { margin-left: clamp(-2.2rem, -4vw, -1rem) !important; }
    .hg-intro__copy > h2:first-of-type { margin-top: 3rem; }
    .hg-final__buttons { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .hg-spolecznosc__top { height: 155px; }
    .hg-spolecznosc__top-banner { object-position: 48% top; }
    .hg-spolecznosc h2 { font-size: 2.1rem; }
    .hg-spolecznosc p,
    .hg-spolecznosc li { font-size: 1rem; line-height: 1.12; }
    .hg-ribbon-top-wrap { width: 350px; margin-left: -3rem !important; }
    .hg-intro__visual { margin-left: 4vw; }
    .hg-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .hg-reveal { opacity: 1; transform: none; transition: none; }
    .hg-btn--shine::after { animation: none; }
    .hg-btn { transition: none; }
}
