:root {
    --hg-cream: #f4f0e8;
    --hg-cream-soft: #f8f4ed;
    --hg-charcoal: #393e46;
    --hg-gold: #c6a145;
    --hg-gold-light: #f3dc6b;
    --hg-border: rgba(198, 161, 69, .45);
    --hg-shadow: 0 16px 28px rgba(28, 30, 35, .22);
}

.hg-mentoring {
    overflow: hidden;
    background: var(--hg-cream);
    color: #171717;
    font-family: "Raleway", Arial, sans-serif;
}

.hg-mentoring *,
.hg-mentoring *::before,
.hg-mentoring *::after { box-sizing: border-box; }

.hg-mentoring h1,
.hg-mentoring h2,
.hg-mentoring h3 {
    margin: 0 0 .38em;
    color: var(--hg-charcoal);
    font-family: "Forum", "Cormorant Garamond", Georgia, serif;
    font-weight: 400;
    line-height: 1.03;
}

.hg-mentoring h1 { font-size: clamp(2.05rem, 3.15vw, 4rem); }
.hg-mentoring h2 { font-size: clamp(2rem, 2.7vw, 3.55rem); }
.hg-mentoring h3 { font-size: clamp(1.45rem, 1.85vw, 2.2rem); }
.hg-mentoring p,
.hg-mentoring li { font-size: clamp(1rem, 1.12vw, 1.28rem); line-height: 1.08; }
.hg-mentoring p { margin: 0 0 1rem; }
.hg-mentoring ul,
.hg-mentoring ol { margin: .45rem 0 1.35rem; padding-left: 1.7rem; }
.hg-mentoring a { text-decoration: none; }

.hg-mentoring .hg-container {
    width: min(92vw, 1520px);
    margin-inline: auto;
}

.hg-section { padding: clamp(3.8rem, 7vw, 8.5rem) 0; }

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

.hg-intro { padding-top: clamp(1.8rem, 3.8vw, 4.2rem); }
.hg-intro__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(190px, 20vw, 320px);
    align-items: stretch;
    gap: clamp(1.5rem, 2.5vw, 3.2rem);
}
.hg-intro__copy { padding-left: clamp(0rem, 2vw, 2.8rem); }
.hg-intro__visual {
    align-self: stretch;
    margin-right: calc((100vw - min(92vw, 1520px)) / -2);
}
.hg-intro__visual img {
    width: 100%;
    height: 100%;
    min-height: 720px;
    display: block;
    object-fit: cover;
    object-position: left top;
}
.hg-ribbon { display: block; max-width: 100%; }
.hg-ribbon-top-wrap {
    position: relative;
    width: clamp(310px, 32vw, 600px);
    margin: 0 0 1rem -3.2rem;
}
.hg-ribbon--top { width: 100%; margin: 0; }
.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;
    pointer-events: none;
}
.hg-kicker {
    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;
    letter-spacing: .01em;
    margin-bottom: clamp(2rem, 4vw, 4.5rem) !important;
}
.hg-intro__help-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    margin: 1.2rem 0 2.2rem;
}

.hg-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 56px;
    padding: .9rem 1.65rem;
    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, #ffe978 50%, #d3aa32); color: var(--hg-charcoal); }
.hg-btn--shine::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -55%;
    width: 28%;
    height: 220%;
    background: rgba(255,255,255,.65);
    transform: rotate(22deg);
    filter: blur(5px);
    animation: hg-shine 3.8s ease-in-out infinite;
}
.hg-btn--gold:hover::after { opacity: 0; }
@keyframes hg-shine { 0%, 58% { left: -55%; } 78%, 100% { left: 135%; } }

.hg-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2.5rem, 6vw, 7rem); align-items: center; }
.hg-brain-wrap { display: grid; place-items: center; }
.hg-brain { width: min(100%, 650px); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.hg-brain:hover { transform: scale(1.055); }

.hg-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 7vw, 8rem); align-items: start; }
.hg-two-columns .hg-btn { margin-top: 1rem; }
.hg-question-btn {
    margin-top: clamp(2.2rem, 4vw, 4rem) !important;
    margin-left: clamp(2rem, 6vw, 8rem);
}

.hg-packages { padding-top: clamp(2rem, 4vw, 5rem); }
.hg-packages__title { margin-bottom: clamp(2rem, 3.5vw, 4.2rem) !important; }
.hg-package {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
    gap: clamp(3rem, 7vw, 8rem);
    align-items: center;
    padding: clamp(1rem, 2.5vw, 2.5rem) 0 clamp(5rem, 9vw, 10rem);
}
.hg-ribbon--package { width: clamp(420px, 47vw, 650px); margin-bottom: 1.1rem; }
.hg-package__subtitle { margin-top: -.2rem; }
.hg-package__purchase { display: grid; place-items: center; }
.hg-buy {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%, 320px);
    border-radius: 12px;
    filter: drop-shadow(12px 18px 12px rgba(36,36,36,.25));
}
.hg-buy__price,
.hg-buy__action {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: .85rem 1rem;
    border-radius: 12px;
    transition: background .3s ease, color .3s ease;
}
.hg-buy__price {
    background: linear-gradient(105deg, #d3aa32, #ffe978 50%, #d3aa32);
    color: var(--hg-charcoal);
    font-size: 1.12rem;
}
.hg-buy__action {
    margin-top: -4px;
    background: var(--hg-charcoal);
    color: var(--hg-gold-light);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1rem;
    gap: .8rem;
}
.hg-buy:hover .hg-buy__price { background: var(--hg-charcoal); color: var(--hg-gold-light); }
.hg-buy:hover .hg-buy__action { background: linear-gradient(105deg, #d3aa32, #ffe978 50%, #d3aa32); color: var(--hg-charcoal); }
.hg-buy__tag {
    position: absolute;
    width: 142px;
    right: -95px;
    bottom: -74px;
    z-index: 3;
    filter: drop-shadow(5px 9px 8px rgba(40,40,40,.24));
    transform-origin: 13% 40%;
    transition: transform .55s cubic-bezier(.18,.8,.2,1);
}
.hg-buy:hover .hg-buy__tag { transform: rotate(10deg); }

.hg-cooperation {
    background:
        radial-gradient(circle at 18% 20%, rgba(255,255,255,.48), transparent 33%),
        linear-gradient(100deg, #d4bf7b 0%, #efe5ba 46%, #d7bf79 100%);
}
.hg-grid-2--cooperation { align-items: center; }
.hg-ribbon--rules { width: min(100%, 600px); margin: 0 auto 1.2rem; }

.hg-final {
    position: relative;
    padding-bottom: clamp(5rem, 10vw, 11rem);
}
.hg-final::after {
    content: "";
    position: absolute;
    right: -3vw;
    bottom: -1rem;
    width: min(38vw, 620px);
    height: 180px;
    background: url('../images/mentoring/top_banner.png') right bottom / 900px auto no-repeat;
    opacity: .48;
    pointer-events: none;
}
.hg-final__top { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(3rem, 7vw, 8rem); align-items: start; }
.hg-final__buttons { display: flex; flex-direction: column; align-items: center; gap: 2.4rem; padding-top: 1rem; }
.hg-final__buttons-row { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 2.2rem; width: 100%; }
.hg-final__buttons .hg-btn { width: 100%; }
.hg-final__message { margin-top: clamp(3rem, 6vw, 7rem); max-width: 1280px; }

.hg-reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s ease; }
.hg-reveal.is-visible { opacity: 1; transform: none; }
.hg-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
    .hg-intro__content { grid-template-columns: minmax(0, 1fr) clamp(180px, 22vw, 280px); }
    .hg-intro__visual img { min-height: 660px; }
    .hg-package { grid-template-columns: 1fr 300px; }
    .hg-buy__tag { right: -58px; }
}

@media (max-width: 850px) {
    .hg-section { padding: 4rem 0; }
    .hg-mentoring .hg-container { width: min(91vw, 760px); }
    .hg-intro__content,
    .hg-split,
    .hg-grid-2,
    .hg-package,
    .hg-final__top { grid-template-columns: 1fr; }
    .hg-intro__visual { margin: 1rem -4.5vw 0 18vw; }
    .hg-intro__visual img { min-height: 560px; max-height: 820px; object-fit: cover; object-position: center top; }
    .hg-ribbon-top-wrap { margin-left: -1.8rem; }
    .hg-question-btn { margin-left: 0; }
    .hg-intro__help-row { grid-template-columns: 1fr; align-items: start; }
    .hg-intro__help-row .hg-btn { justify-self: start; }
    .hg-package { gap: 1.5rem; padding-bottom: 7rem; }
    .hg-package__purchase { padding-right: 3rem; }
    .hg-buy__tag { right: -58px; }
    .hg-final__buttons-row { grid-template-columns: 1fr; gap: 1.25rem; }
    .hg-final__buttons { align-items: stretch; }
}

@media (max-width: 560px) {
    .hg-mentoring__top { height: 155px; }
    .hg-mentoring__top-banner { object-position: 48% top; }
    .hg-mentoring h1 { font-size: 2.25rem; }
    .hg-mentoring h2 { font-size: 2.1rem; }
    .hg-mentoring p,
    .hg-mentoring li { font-size: 1rem; line-height: 1.12; }
    .hg-ribbon-top-wrap { width: 330px; margin-left: -2.9rem; }
    .hg-ribbon--package { width: 100%; }
    .hg-intro__visual { margin-left: 7vw; }
    .hg-intro__visual img { min-height: 500px; }
    .hg-btn { min-width: 0; width: 100%; }
    .hg-package__purchase { padding-right: 2rem; }
    .hg-buy { width: 255px; }
    .hg-buy__tag { width: 112px; right: -47px; bottom: -59px; }
}

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

/* Poprawka 02 */
.hg-intro__copy {
    padding-left: 0;
}
.hg-ribbon-top-wrap,
.hg-kicker {
    margin-left: clamp(-4.6rem, -4vw, -2.4rem);
}
.hg-kicker {
    width: calc(100% + clamp(2.4rem, 4vw, 4.6rem));
}
.hg-intro__visual {
    margin-right: calc(50% - 50vw);
}
.hg-about {
    padding-top: clamp(1.5rem, 2.5vw, 3rem);
    padding-bottom: clamp(2.2rem, 4vw, 4.5rem);
}
.hg-two-columns {
    padding-top: clamp(2rem, 3vw, 3.8rem);
    padding-bottom: clamp(2rem, 3.8vw, 4.8rem);
}
.hg-packages {
    padding-top: clamp(1.2rem, 2.2vw, 2.6rem);
    padding-bottom: clamp(1.2rem, 2vw, 2.4rem);
}
.hg-packages__title {
    margin-bottom: .45rem !important;
}
.hg-package {
    padding-top: .25rem;
    padding-bottom: clamp(2.2rem, 4vw, 4.8rem);
}
.hg-package + .hg-package {
    padding-top: clamp(.4rem, 1vw, 1rem);
}
.hg-ribbon-label-wrap {
    position: relative;
    width: fit-content;
    max-width: 100%;
}
.hg-ribbon-label-wrap--package {
    margin-bottom: .7rem;
}
.hg-ribbon-label-wrap--rules {
    margin: 0 auto 1rem;
}
.hg-ribbon-label-wrap .hg-ribbon {
    margin-bottom: 0;
}
.hg-ribbon-label {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 88%;
    text-align: center;
    color: var(--hg-charcoal);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.05rem, 1.45vw, 1.55rem);
    font-weight: 700;
    line-height: 1.15;
    pointer-events: none;
}
.hg-buy {
    overflow: visible;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--hg-charcoal);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--hg-gold-light);
    transition: transform .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
}
.hg-buy::after {
    z-index: 1;
}
.hg-buy__price,
.hg-buy__action {
    position: relative;
    z-index: 2;
    margin: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
}
.hg-buy__price {
    min-height: 50px;
    padding-bottom: .3rem;
    font-size: 1.16rem;
}
.hg-buy__action {
    min-height: 52px;
    padding-top: .3rem;
    border-top: 1px solid rgba(243,220,107,.38);
}
.hg-buy:hover {
    background: linear-gradient(105deg, #d3aa32 0%, #ffe978 48%, #d3aa32 100%);
    color: var(--hg-charcoal);
    box-shadow: 12px 18px 24px rgba(36,36,36,.24);
    transform: translateY(-3px);
}
.hg-buy:hover .hg-buy__price,
.hg-buy:hover .hg-buy__action {
    background: transparent;
    color: inherit;
}
.hg-cooperation {
    margin-top: 0;
    padding-top: clamp(2rem, 3.2vw, 4rem);
    padding-bottom: clamp(2rem, 3.2vw, 4rem);
    background:
        radial-gradient(circle at 75% 20%, rgba(255,255,255,.32), transparent 36%),
        linear-gradient(90deg, #b99b47 0%, #d9c783 45%, #eee3bd 100%);
}
.hg-final {
    padding-top: clamp(2rem, 3vw, 4rem);
}
.hg-final::after {
    content: none;
    display: none;
}

@media (max-width: 850px) {
    .hg-ribbon-top-wrap,
    .hg-kicker {
        margin-left: clamp(-2.2rem, -4vw, -1rem);
    }
    .hg-intro__visual {
        margin-right: calc(50% - 50vw);
    }
}
.hg-intro__visual {
    width: calc(100% + (50vw - 50%));
}
@media (max-width: 850px) {
    .hg-intro__visual {
        width: auto;
    }
}

/* POPRAWKA 03 — pojedyncze przyciski pakietów i mniejsza grafika Mentoring */
@media (min-width: 851px) {
    .hg-intro__content {
        grid-template-columns: minmax(0, 1fr) clamp(105px, 10vw, 160px);
        gap: clamp(1.25rem, 2vw, 2.4rem);
    }

    .hg-intro__visual {
        align-self: start;
        justify-self: end;
        width: clamp(105px, 10vw, 160px);
        margin-right: calc((100vw - min(92vw, 1520px)) / -2);
    }

    .hg-intro__visual img {
        width: 100%;
        height: auto;
        min-height: 0;
        object-fit: contain;
        object-position: right top;
    }
}

/* Jeden pełny przycisk: cena i ZAMÓW na tej samej powierzchni. */
.hg-buy {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 360px);
    min-height: 74px;
    padding: 0 1.3rem;
    border-radius: 12px;
    overflow: visible;
}

.hg-buy__price,
.hg-buy__action {
    min-height: auto;
    padding: .9rem .45rem;
    border: 0;
    background: transparent;
    color: inherit;
}

.hg-buy__price {
    font-size: 1.12rem;
    white-space: nowrap;
}

.hg-buy__action {
    margin: 0;
    font-size: 1rem;
    white-space: nowrap;
}

/* Delikatny pobłysk, bez widocznego białego prostokąta. */
.hg-buy.hg-btn--shine::after {
    top: 0;
    left: -38%;
    width: 24%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,.04) 20%,
        rgba(255,255,255,.28) 50%,
        rgba(255,255,255,.04) 80%,
        transparent 100%
    );
    filter: blur(8px);
    transform: skewX(-22deg);
    opacity: .75;
    animation: hg-buy-shine 4.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hg-buy-shine {
    0%, 62% { left: -38%; opacity: 0; }
    68% { opacity: .75; }
    88% { left: 116%; opacity: .55; }
    100% { left: 116%; opacity: 0; }
}

.hg-buy:hover::after { opacity: 0; }

@media (max-width: 850px) {
    .hg-buy {
        width: min(100%, 340px);
        min-height: 68px;
        padding-inline: 1rem;
    }
}

/* POPRAWKA 04 — większa grafika Mentoring i dokładne doklejenie do prawej krawędzi ekranu */
@media (min-width: 851px) {
    .hg-intro {
        position: relative;
        overflow: visible;
    }

    .hg-intro__content {
        position: relative;
        grid-template-columns: minmax(0, 1fr) clamp(280px, 23vw, 390px);
        gap: clamp(1.5rem, 2.4vw, 3rem);
    }

    .hg-intro__visual {
        position: absolute;
        top: 0;
        right: calc(50% - 50vw);
        width: clamp(280px, 23vw, 390px);
        margin: 0;
        justify-self: auto;
        align-self: auto;
    }

    .hg-intro__visual img {
        width: 100%;
        height: auto;
        min-height: 0;
        display: block;
        object-fit: contain;
        object-position: right top;
    }
}

/* POPRAWKA 05 — sekcja „Czym jest Mentoring Hidden Growth?” o jedną linię wyżej */
.hg-about {
    padding-top: clamp(.35rem, .8vw, .9rem);
}
