/* Hidden Growth — Odsłonięcie — Miesiąc 2 */
.hg-m2 {
    --hg-bg: #f4f0e8;
    --hg-ink: #393e46;
    --hg-text: #15171a;
    --hg-gold: #c6a145;
    --hg-gold-light: #f3dc6b;
    --hg-dark: #393e46;
    --hg-m2-inner: min(92vw, 1680px);
    --hg-m2-reading: min(78vw, 1320px);
    --hg-m2-text-inset: clamp(78px, 6vw, 126px);
    overflow: hidden;
    background: var(--hg-bg);
    color: var(--hg-ink);
}

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

.hg-m2__top {
    position: relative;
    z-index: 0;
    width: 100%;
    background: var(--hg-bg);
}

.hg-m2__top-image {
    display: block;
    width: 100%;
    height: auto;
}

.hg-m2__shell {
    width: var(--hg-m2-inner);
    margin-inline: auto;
    padding-inline: 0;
}

.hg-m2__content {
    width: var(--hg-m2-reading);
    margin-inline: auto;
    padding-inline: 0;
}

.hg-m2__intro {
    padding: clamp(28px, 4vw, 62px) 0 clamp(18px, 2vw, 34px);
}

.hg-m2__ribbon-wrap {
    position: relative;
    width: clamp(390px, 43vw, 680px);
    margin-left: 0;
}

.hg-m2__ribbon {
    display: block;
    width: 100%;
    height: auto;
}

.hg-m2__ribbon-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 10% 2px 8%;
    color: var(--hg-ink);
    font-family: "Forum", Georgia, serif;
    font-size: clamp(23px, 2.25vw, 38px);
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

.hg-m2__eyebrow {
    margin: 10px 0 clamp(38px, 4vw, 58px);
    color: var(--hg-gold);
    font-family: "Forum", Georgia, serif;
    font-size: clamp(18px, 1.55vw, 25px);
    letter-spacing: .01em;
}

.hg-m2 h1,
.hg-m2 h2 {
    margin: 0;
    color: var(--hg-ink);
    font-family: "Forum", "Cormorant Garamond", Georgia, serif;
    font-weight: 400;
    line-height: 1.08;
}

.hg-m2 h1 {
    margin-bottom: 18px;
    font-size: clamp(34px, 3vw, 50px);
}

.hg-m2 h2 {
    margin-bottom: 14px;
    font-size: clamp(31px, 2.55vw, 44px);
}

.hg-m2 p,
.hg-m2 li {
    color: var(--hg-text);
    font-family: "Raleway", Arial, sans-serif;
    font-size: clamp(15px, 1.23vw, 19px);
    line-height: 1.16;
}

.hg-m2 p {
    margin: 0 0 16px;
}

.hg-m2 ul {
    margin: 0 0 20px;
    padding-left: 27px;
}

.hg-m2 li {
    margin: 1px 0;
}

.hg-m2__intro-grid {
    width: calc(100% - var(--hg-m2-text-inset));
    margin-left: var(--hg-m2-text-inset);
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(280px, 27vw, 410px);
    align-items: stretch;
    gap: clamp(28px, 4.8vw, 76px);
}

.hg-m2__intro-copy {
    min-width: 0;
}

.hg-m2__copy-block--audience {
    margin-top: clamp(52px, 6vw, 90px);
}

.hg-m2__price-copy {
    margin-top: 22px !important;
}

.hg-m2__order-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: -52px;
    padding-right: clamp(0px, 2vw, 32px);
}

.hg-m2-order {
    position: relative;
    display: grid;
    width: min(100%, 330px);
    min-height: 88px;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 2px solid var(--hg-gold);
    border-radius: 12px;
    color: var(--hg-gold-light);
    background: var(--hg-dark);
    box-shadow: 0 14px 20px rgba(34, 38, 44, .28);
    font-family: "Forum", Georgia, serif;
    text-decoration: none;
    transition: transform .28s ease, color .28s ease, background .28s ease, box-shadow .28s ease;
}

.hg-m2-order::before,
.hg-btn::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset: -30% auto -30% -55%;
    width: 34%;
    transform: skewX(-22deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.58), transparent);
    transition: left .72s ease;
}

.hg-m2-order__price,
.hg-m2-order__action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    font-size: clamp(17px, 1.22vw, 20px);
    line-height: 1;
}

.hg-m2-order__price {
    border-right: 1px solid rgba(243,220,107,.42);
}

.hg-m2-order__action {
    gap: 10px;
    text-transform: uppercase;
}

.hg-m2-order__cart {
    font-size: 1.05em;
}

.hg-m2__side-visual {
    align-self: stretch;
    margin: 0 calc((100vw - var(--hg-m2-inner)) / -2) 0 0;
    overflow: hidden;
}

.hg-m2__side-visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hg-m2__wide-copy {
    padding: clamp(38px, 4.5vw, 70px) 0 clamp(46px, 5vw, 76px);
}

.hg-m2__details {
    padding: clamp(26px, 3vw, 46px) 0 clamp(48px, 5vw, 78px);
}

.hg-m2__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(45px, 8vw, 130px);
}

.hg-m2__organisation {
    display: grid;
    grid-template-columns: minmax(0, 720px) clamp(145px, 12vw, 205px);
    justify-content: start;
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
    margin-top: clamp(42px, 5vw, 74px);
}

.hg-m2__organisation-copy {
    min-width: 0;
    width: auto;
}

.hg-m2__battery {
    position: static;
    display: block;
    width: 100%;
    max-width: 205px;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.hg-m2__final {
    padding: clamp(44px, 5vw, 76px) 0 clamp(70px, 7vw, 108px);
}

.hg-m2__final-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
    align-items: center;
    gap: clamp(36px, 7vw, 110px);
}

.hg-m2__final-copy .hg-btn {
    margin: 12px 0 28px clamp(70px, 8vw, 140px);
}

.hg-m2__final-note {
    margin-bottom: 0 !important;
}

.hg-m2__contact-banner {
    position: relative;
}

.hg-m2__contact-banner img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}

.hg-m2__contact-text {
    position: absolute;
    z-index: 2;
    top: 40%;
    left: 10.5%;
    display: flex;
    width: 54%;
    flex-direction: column;
    color: #111317;
    font-family: "Raleway", Arial, sans-serif;
    font-size: clamp(13px, 1.02vw, 17px);
    line-height: 1.08;
    pointer-events: none;
}

.hg-m2__contact-text span:nth-child(2) {
    margin-top: .95em;
}

.hg-m2__contact-text a {
    margin-top: .05em;
    color: #111317;
    font-size: 1.02em;
    font-weight: 700;
    line-height: 1.05;
    text-decoration: none;
    white-space: nowrap;
    pointer-events: auto;
}

.hg-btn {
    position: relative;
    display: inline-flex;
    min-width: clamp(245px, 22vw, 350px);
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    padding: 15px 30px;
    border: 2px solid var(--hg-gold);
    border-radius: 12px;
    font-family: "Forum", Georgia, serif;
    font-size: clamp(17px, 1.25vw, 20px);
    letter-spacing: .02em;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .28s ease, color .28s ease, background .28s ease, box-shadow .28s ease;
}

.hg-btn--dark {
    color: var(--hg-gold-light);
    background: var(--hg-dark);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15), inset 0 -7px 14px rgba(13,17,22,.18), 0 14px 17px rgba(34,38,44,.28);
}

.hg-m2-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}

.hg-m2-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (hover: hover) and (pointer: fine) {
    .hg-m2-order:hover,
    .hg-btn:hover {
        color: #30343b;
        background: linear-gradient(100deg, #b88e20 0%, #f7e172 42%, #c59726 100%);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -6px 12px rgba(107,73,4,.13), 0 7px 10px rgba(34,38,44,.22);
        transform: translateY(4px);
    }

    .hg-m2-order:hover::before,
    .hg-btn:hover::before {
        left: 125%;
    }

    .hg-m2__contact-banner:hover img {
        transform: scale(1.025);
    }
}

.hg-m2-order:focus-visible,
.hg-btn:focus-visible,
.hg-m2__contact-text a:focus-visible {
    outline: 3px solid rgba(198,161,69,.48);
    outline-offset: 4px;
}

@media (max-width: 1050px) {
    .hg-m2__intro-grid {
        grid-template-columns: minmax(0, 1fr) minmax(270px, 35vw);
        gap: 34px;
    }

    .hg-m2__order-wrap {
        margin-top: 16px;
        justify-content: flex-start;
    }

    .hg-m2__side-visual {
        margin-right: -24px;
    }

}

@media (max-width: 820px) {
    .hg-m2__shell,
    .hg-m2__content {
        width: calc(100% - 48px);
        padding-inline: 0;
    }

    .hg-m2__intro-grid {
        width: 100%;
        margin-left: 0;
    }

    .hg-m2__ribbon-wrap {
        width: min(92vw, 630px);
        margin-left: 0;
    }

    .hg-m2__intro-grid {
        grid-template-columns: 1fr;
    }

    .hg-m2__side-visual {
        width: calc(100% + 24px);
        height: min(92vw, 760px);
        margin: 20px -24px 0 0;
    }

    .hg-m2__side-visual img {
        object-position: center 28%;
    }

    .hg-m2__columns,
    .hg-m2__final-grid {
        grid-template-columns: 1fr;
    }

    .hg-m2__organisation {
        grid-template-columns: minmax(0, 1fr) minmax(130px, 190px);
        gap: 18px;
    }

    .hg-m2__battery {
        max-width: 190px;
    }

    .hg-m2__final-copy .hg-btn {
        margin-left: 0;
    }

    .hg-m2__contact-banner {
        width: min(100%, 520px);
        margin-inline: auto;
    }
}

@media (max-width: 540px) {
    .hg-m2__shell,
    .hg-m2__content {
        width: calc(100% - 40px);
        padding-inline: 0;
    }

    .hg-m2__intro {
        padding-top: 24px;
    }

    .hg-m2__ribbon-wrap {
        width: 100%;
        margin-left: 0;
    }

    .hg-m2__ribbon-text {
        padding-left: 9%;
        padding-right: 12%;
        font-size: clamp(18px, 5.7vw, 27px);
        white-space: normal;
    }

    .hg-m2 h1 {
        font-size: 38px;
    }

    .hg-m2 h2 {
        font-size: 35px;
    }

    .hg-m2 p,
    .hg-m2 li {
        font-size: 16px;
        line-height: 1.28;
    }

    .hg-m2__copy-block--audience {
        margin-top: 48px;
    }

    .hg-m2-order,
    .hg-btn {
        width: 100%;
        min-width: 0;
    }

    .hg-m2-order {
        min-height: 78px;
    }

    .hg-m2__side-visual {
        width: calc(100% + 20px);
        height: 135vw;
        margin: 20px -20px 0 0;
    }

    .hg-m2__columns {
        gap: 42px;
    }

    .hg-m2__organisation {
        grid-template-columns: 1fr;
    }

    .hg-m2__battery {
        width: min(52vw, 180px);
        justify-self: center;
    }

    .hg-m2__contact-text {
        top: 39%;
        left: 10%;
        width: 56%;
        font-size: clamp(10px, 3.15vw, 14px);
    }
}

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

    .hg-m2-order,
    .hg-m2-order::before,
    .hg-btn,
    .hg-btn::before,
    .hg-m2__contact-banner img {
        transition: none;
    }
}

/* 21.07.2026 — korekta szerokości, proporcji grafiki i CTA */
.hg-m2__shell,
.hg-m2__content {
    width: 100%;
    max-width: none;
    padding-inline: clamp(28px, 4.2vw, 86px);
}

/* Podpis bezpośrednio pod banerem ma zawsze pozostać złoty. */
.hg-m2 p.hg-m2__eyebrow {
    color: var(--hg-gold) !important;
}

.hg-m2__intro-grid {
    grid-template-columns: minmax(0, 1fr) clamp(260px, 25vw, 390px);
    gap: clamp(34px, 4vw, 72px);
}

.hg-m2__side-visual {
    width: 100%;
    max-width: 390px;
    justify-self: end;
    margin-right: calc(-1 * clamp(28px, 4.2vw, 86px));
}

.hg-m2__side-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hg-m2__order-wrap {
    justify-content: flex-end;
    margin-top: -42px;
    padding-right: clamp(0px, 1.5vw, 24px);
}

/* Jeden szeroki przycisk: ZAMÓW + koszyk + cena, bez podziału na dwa kafle. */
.hg-m2-order {
    display: inline-flex;
    width: min(100%, 430px);
    min-height: 62px;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.2vw, 20px);
    padding: 14px clamp(24px, 2.6vw, 42px);
}

.hg-m2-order__action,
.hg-m2-order__price {
    display: inline-flex;
    padding: 0;
    border: 0;
    font-size: clamp(18px, 1.35vw, 22px);
    line-height: 1;
}

.hg-m2-order__cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(20px, 1.5vw, 25px);
    line-height: 1;
}

.hg-m2__columns {
    gap: clamp(54px, 7vw, 130px);
}

@media (max-width: 1050px) {
    .hg-m2__intro-grid {
        grid-template-columns: minmax(0, 1fr) clamp(235px, 28vw, 330px);
    }

    .hg-m2__side-visual {
        max-width: 330px;
        margin-right: -24px;
    }
}

@media (max-width: 820px) {
    .hg-m2__shell,
    .hg-m2__content {
        width: calc(100% - 48px);
        padding-inline: 0;
    }

    .hg-m2__intro-grid {
        width: 100%;
        margin-left: 0;
    }

    .hg-m2__side-visual {
        width: calc(100% + 48px);
        max-width: none;
        height: min(92vw, 760px);
        margin: 20px -24px 0;
    }

    .hg-m2__order-wrap {
        justify-content: center;
        margin-top: 20px;
        padding-right: 0;
    }
}

@media (max-width: 540px) {
    .hg-m2__shell,
    .hg-m2__content {
        padding-inline: 20px;
    }

    .hg-m2-order {
        width: 100%;
        min-height: 60px;
        padding-inline: 18px;
    }
}


/* 21.07.2026 — korekta odsunięcia treści, organizacji i dolnego CTA */
@media (min-width: 821px) {
    /* Treść przesunięta 1,5 raza dalej od lewej krawędzi; prawa strona pozostaje szeroka. */
    .hg-m2__shell,
    .hg-m2__content {
        padding-left: clamp(42px, 6.3vw, 129px);
        padding-right: clamp(28px, 4.2vw, 86px);
    }

    /* Baner zachowuje wspólną linię z całą treścią strony. */
    .hg-m2__ribbon-wrap {
        margin-left: 0;
    }

    /* Ludzik z baterią jest mniejszy i stoi bezpośrednio obok tekstu. */
    .hg-m2__organisation {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: clamp(24px, 3vw, 52px);
        min-height: 0;
    }

    .hg-m2__organisation-copy {
        width: auto;
        max-width: none;
    }

    .hg-m2__battery {
        position: static;
        width: clamp(150px, 14vw, 220px);
        align-self: center;
        justify-self: start;
        transform: none;
    }

    /* Dolny przycisk należy do lewego bloku i jest wyśrodkowany względem jego szerokości. */
    .hg-m2__final-copy .hg-btn {
        display: flex;
        width: max-content;
        margin: 18px auto 28px;
    }

    /* Dolny baner z mózgiem przesunięty wyraźniej w lewo. */
    .hg-m2__contact-banner {
        transform: translateX(clamp(-110px, -6vw, -70px));
    }
}

@media (max-width: 820px) {
    .hg-m2__shell,
    .hg-m2__content {
        width: 100%;
        padding-left: 30px;
        padding-right: 24px;
    }

    .hg-m2__organisation {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 22px;
        min-height: 0;
        padding-bottom: 0;
    }

    .hg-m2__organisation-copy {
        width: auto;
    }

    .hg-m2__battery {
        position: static;
        width: clamp(120px, 25vw, 180px);
        transform: none;
    }

    .hg-m2__final-copy .hg-btn {
        display: flex;
        width: max-content;
        margin: 18px auto 28px;
    }

    .hg-m2__contact-banner {
        transform: translateX(-24px);
    }
}

@media (max-width: 540px) {
    .hg-m2__shell,
    .hg-m2__content {
        padding-left: 24px;
        padding-right: 20px;
    }

    .hg-m2__organisation {
        grid-template-columns: 1fr;
    }

    .hg-m2__battery {
        width: min(48vw, 165px);
        justify-self: center;
    }

    .hg-m2__final-copy .hg-btn {
        width: 100%;
    }

    .hg-m2__contact-banner {
        transform: none;
    }
}

/* 21.07.2026 — wyrównanie osi tekstu i położenia grafiki baterii */
@media (min-width: 821px) {
    /* Te sekcje zaczynają się dokładnie w tej samej osi co „Ten etap jest dla Ciebie, jeśli”. */
    .hg-m2__organisation,
    .hg-m2__final-grid {
        width: calc(100% - var(--hg-m2-text-inset));
        margin-left: var(--hg-m2-text-inset);
    }

    /* Tekst organizacji pozostaje zwarty, a bateria siedzi zaraz za nim — lekko na prawo od środka. */
    .hg-m2__organisation {
        grid-template-columns: minmax(0, 720px) clamp(174px, 14.4vw, 246px);
        justify-content: start;
        align-items: center;
        gap: clamp(12px, 1.6vw, 26px);
    }

    .hg-m2__battery {
        width: 120%;
        max-width: 246px;
        justify-self: start;
        transform: translateX(clamp(-18px, -1.1vw, -8px));
        transform-origin: center;
    }

    /* Sekcja końcowa zachowuje wspólną lewą linię tekstu. */
    .hg-m2__final-grid {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
    }
}

@media (max-width: 1100px) and (min-width: 821px) {
    .hg-m2__organisation {
        grid-template-columns: minmax(0, 1fr) clamp(165px, 19vw, 220px);
    }

    .hg-m2__battery {
        max-width: 220px;
    }
}

/* 05.08.2026 — poprawka „ciasnoty” w pierwszej sekcji na małych laptopach i tabletach.
   Zamiast utrzymywać dwie wąskie kolumny, tekst zajmuje pełną szerokość,
   a pionowa grafika przechodzi pod całą część opisową. */
@media (max-width: 1180px) {
    .hg-m2__intro-grid {
        width: 100%;
        margin-left: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(34px, 5vw, 58px);
    }

    .hg-m2__intro-copy {
        width: 100%;
        max-width: none;
    }

    .hg-m2__side-visual {
        width: min(100%, 760px);
        max-width: 760px;
        height: clamp(520px, 72vw, 820px);
        justify-self: center;
        margin: 0 auto;
        border-radius: 2px;
    }

    .hg-m2__side-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 24%;
    }

    .hg-m2__order-wrap {
        justify-content: flex-start;
        margin-top: 20px;
        padding-right: 0;
    }
}

@media (max-width: 820px) {
    .hg-m2__side-visual {
        width: 100%;
        max-width: 680px;
        height: clamp(500px, 112vw, 760px);
        margin: 4px auto 0;
    }
}

@media (max-width: 540px) {
    .hg-m2__side-visual {
        width: 100%;
        height: clamp(460px, 132vw, 680px);
        margin-inline: auto;
    }
}


/* 06.08.2026 — telefon/tablet: grafika nie może ściskać tekstu.
   Na mniejszych ekranach wersja boczna jest całkowicie wyłączona,
   a osobna wersja grafiki pojawia się między dwoma blokami tekstu. */
.hg-m2__mobile-visual {
    display: none;
    margin: 0;
}

@media (max-width: 1180px) {
    .hg-m2__intro-grid {
        display: block;
        width: 100%;
        margin-left: 0;
    }

    .hg-m2__intro-copy,
    .hg-m2__copy-block {
        display: block;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .hg-m2__side-visual {
        display: none;
    }

    .hg-m2__mobile-visual {
        display: block;
        width: min(100%, 760px);
        height: clamp(480px, 72vw, 820px);
        margin: clamp(38px, 6vw, 64px) auto;
        overflow: hidden;
    }

    .hg-m2__mobile-visual img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 24%;
    }

    .hg-m2__copy-block--audience {
        margin-top: 0;
    }

    .hg-m2__intro-copy p,
    .hg-m2__intro-copy li,
    .hg-m2__intro-copy h1,
    .hg-m2__intro-copy h2 {
        max-width: 100%;
        overflow-wrap: normal;
        word-break: normal;
    }
}

@media (max-width: 540px) {
    .hg-m2__intro-grid,
    .hg-m2__intro-copy,
    .hg-m2__copy-block {
        width: 100%;
        min-width: 0;
    }

    .hg-m2__mobile-visual {
        width: 100%;
        height: clamp(430px, 132vw, 650px);
        margin: 36px auto 42px;
    }
}
