/* =========================================================
   HISTORIA FIRMY
   Mobile first
   Typografia zgodna z pozostałymi podstronami
   ========================================================= */

/* =========================================================
   WSPÓLNA TYPOGRAFIA PODSTRON
   ========================================================= */


/* =========================================================
   BREADCRUMBS
   ========================================================= */


/* =========================================================
   ZDJĘCIA
   ========================================================= */

.history-photo {
    display: block;
    width: 100%;
    height: auto;
}

.history-photo--portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-hero__photo:empty,
.history-story__photo:empty,
.history-editorial__photo:empty,
.history-family__photo:empty,
.history-change__photo:empty,
.history-care__photo:empty {
    display: none;
}


/* =========================================================
   HERO
   ========================================================= */

.history-hero {
    position: relative;
    padding: 22px 0 0;
    border-bottom: 1px solid rgba(15, 51, 43, .1);
}

.history-hero__copy {
    padding-bottom: 34px;
}

.history-hero h1 {
    max-width: 11ch;
    margin: 0;
    font-size: clamp(39px, 11vw, 50px);
    line-height: 1.025;
    letter-spacing: -.032em;
}

.history-hero__lead,
.history-hero__intro {
  max-width:52ch;
}

.history-hero__intro {
    margin: 14px 0 0;
}
.history-hero__photo {
    position: relative;
    width: 100vw;
    height: 390px;
    margin: 0 0 0 calc(50% - 50vw);
    overflow: hidden;
    background: var(--color-surface);
}

.history-photo--hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   NASZA HISTORIA
   ========================================================= */

.history-story {
    padding: 72px 0 68px;
}

.history-story__grid {
    display: grid;
    gap: 38px;
}

.history-story__content h2 {
    max-width: 11ch;
}

.history-story__content > .lead-copy {
    max-width: 38ch;
    margin: 22px 0 0;
}

.history-story__content > p:not(.service-eyebrow):not(.lead-copy) {
    max-width: 52ch;
    margin: 18px 0 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.65;
}

.history-story__photo {
    margin: 0;
    overflow: hidden;
    background: var(--color-surface);
    border-radius: var(--radius-md);
}

.history-story__photo img {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================================
   OŚ CZASU
   ========================================================= */

.history-timeline {
    margin-top: 52px;
    border-top: 1px solid var(--color-border);
}

.history-timeline__item {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 16px;
    align-items: baseline;
    padding: 22px 0;
    border-bottom: 1px solid var(--color-border);
}

.history-timeline__item strong {
    color: var(--color-gold);
    font-family: Lora, Georgia, serif;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 400;
}

.history-timeline__item span {
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.55;
}


/* =========================================================
   DOŚWIADCZENIE
   ========================================================= */

.history-experience {
    padding: 64px 0;
    background: var(--color-white);
}

.history-editorial {
    display: grid;
    gap: 38px;
}

.history-editorial__photo {
    margin: 0;
    overflow: hidden;
    background: var(--color-surface);
    border-radius: var(--radius-md);
}

.history-editorial__photo img {
    display: block;
    width: 100%;
    height: auto;
}

.history-editorial__copy h2 {
    max-width: 12ch;
}

.history-editorial__copy > .lead-copy {
    max-width: 39ch;
    margin: 22px 0 0;
}

.history-editorial__copy > p:not(.service-eyebrow):not(.lead-copy) {
    max-width: 52ch;
    margin: 18px 0 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.65;
}


/* =========================================================
   RODZINNA FIRMA
   ========================================================= */

.history-family {
    padding: 70px 0 74px;
}

.history-family__grid {
    display: grid;
    gap: 38px;
}

.history-family__copy h2 {
    max-width: 12ch;
}

.history-family__copy > .lead-copy {
    max-width: 38ch;
    margin: 22px 0 0;
}

.history-family__copy > p:not(.service-eyebrow):not(.lead-copy) {
    max-width: 52ch;
    margin: 18px 0 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.65;
}

.history-family__photo {
    width: 84%;
    margin: 0 0 0 auto;
    overflow: hidden;
    background: var(--color-surface);
    border-radius: var(--radius-md);
}

.history-family__photo img {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================================
   ZMIENIAJĄ SIĘ CZASY
   ========================================================= */

.history-change {
    position: relative;
    padding: 64px 0 0;
    background: var(--color-green);
    color: var(--color-white);
}

.history-change h2 {
    max-width: 11ch;
    color: var(--color-white);
}

.history-change__photo {
    width: 100vw;
    height: 390px;
    margin: 38px 0 0 calc(50% - 50vw);
    overflow: hidden;
    background: #173f36;
}

.history-change__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.history-change__copy {
    padding-top: 38px;
    padding-bottom: 58px;
}

.history-change__copy > p {
    max-width: 48ch;
    margin: 0 0 18px;
    color: rgba(255, 254, 250, .79);
    font-size: 15px;
    line-height: 1.65;
}

.history-change__copy .history-change__statement {
    max-width: 42ch;
    margin: 30px 0 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 254, 250, .2);
    color: rgba(255, 254, 250, .92);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
}


/* =========================================================
   DBAŁOŚĆ O OSOBĘ ZMARŁĄ
   ========================================================= */

.history-care {
    padding: 70px 0 74px;
}

.history-care__grid {
    display: grid;
    gap: 38px;
}

.history-care__photo {
    width: 84%;
    margin: 0;
    overflow: hidden;
    background: var(--color-surface);
    border-radius: var(--radius-md);
}

.history-care__photo img {
    display: block;
    width: 100%;
    height: auto;
}

.history-care__copy h2 {
    max-width: 11ch;
}

.history-care__copy > .lead-copy {
    max-width: 39ch;
    margin: 22px 0 0;
}

.history-care__copy > p:not(.service-eyebrow):not(.lead-copy) {
    max-width: 52ch;
    margin: 18px 0 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.65;
}


/* =========================================================
   HISTORIA FIRMY W FOTOGRAFII
   ========================================================= */

.history-gallery {
    padding: 70px 0 74px;
    background: var(--color-surface);
}

.history-gallery__heading {
    margin-bottom: 40px;
}

.history-gallery__heading h2 {
    max-width: 12ch;
}

.history-gallery__heading .lead-copy {
    max-width: 43ch;
    margin: 22px 0 0;
    color: var(--color-muted);
}

.history-gallery__grid {
    display: grid;
    gap: 20px;
}

.history-gallery__item {
    margin: 0;
    overflow: hidden;
    background: var(--color-white);
}

.history-gallery__item img {
    display: block;
    width: 100%;
    height: auto;
}

.history-gallery__item--portrait {
    width: 82%;
}

.history-gallery__item--standard {
    width: 92%;
}

.history-gallery__item:nth-child(even).history-gallery__item--portrait,
.history-gallery__item:nth-child(odd).history-gallery__item--standard {
    margin-left: auto;
}


/* =========================================================
   DOSTĘPNOŚĆ 24/7
   ========================================================= */

.history-availability {
    padding: 70px 0 74px;
}

.history-availability__grid {
    display: grid;
    gap: 30px;
}

.history-availability h2 {
    max-width: 11ch;
}

.history-availability__content > p {
    max-width: 48ch;
    margin: 0 0 18px;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.65;
}

.history-phone {
    display: grid;
    width: fit-content;
    gap: 4px;
    margin-top: 28px;
    color: var(--color-green);
    font-family: Lora, Georgia, serif;
    font-size: 31px;
    line-height: 1.15;
    font-weight: 400;
    text-decoration: none;
}

.history-phone span {
    font-family: Manrope, Arial, sans-serif;
    color: var(--color-gold);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}


/* =========================================================
   LOKALIZACJE
   ========================================================= */

.history-locations {
    padding: 64px 0;
    background: var(--color-white);
}

.history-locations__heading h2 {
    max-width: 11ch;
}

.history-locations__heading > p:not(.service-eyebrow) {
    max-width: 48ch;
    margin: 22px 0 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.65;
}

.history-locations__grid {
    display: grid;
    margin-top: 38px;
    border-top: 1px solid var(--color-border);
}

.history-location {
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
}

.history-location h3 {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.25;
}

.history-location address {
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.65;
    font-style: normal;
}


/* =========================================================
   CTA KOŃCOWE
   ========================================================= */


.history-contact h2 {
    max-width: 12ch;
    color: #FFFEFA;
}

.history-contact p:not(.service-eyebrow) {
    max-width: 40ch;
    margin: 20px 0 0;
    color: rgba(255, 254, 250, .78);
    font-size: 15px;
    line-height: 1.65;
}


/* Główny przycisk telefonu */


/* WhatsApp — widoczny na ciemnozielonym tle */


/* =========================================================
   FOCUS
   ========================================================= */


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 768px) {

    /* HERO */

    .history-hero {
        padding: 34px 0 74px;
    }

    .history-hero__copy {
        padding-bottom: 46px;
    }

    .history-hero h1 {
        max-width: 11ch;
        font-size: 50px;
    }

    .history-hero__lead,
.history-hero__intro {
  max-width:52ch;
}

    .history-hero__photo {
        width: auto;
        height: 540px;
        margin: 0;
        border-radius: 0 0 0 56px;
    }


    /* NASZA HISTORIA */

    .history-story {
        padding: 88px 0;
    }

    .history-story__grid {
        grid-template-columns:
            minmax(0, .82fr)
            minmax(320px, 1fr);
        align-items: center;
        gap: 64px;
    }

    .history-story__photo {
        min-height: 500px;
    }

    .history-story__photo img {
        width: 100%;
        height: 100%;
        min-height: 500px;
        object-fit: cover;
    }


    /* OŚ CZASU */

    .history-timeline {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        margin-top: 72px;
        border-bottom: 1px solid var(--color-border);
    }

    .history-timeline__item {
        display: block;
        padding: 26px 28px;
        border-bottom: 0;
        border-right: 1px solid var(--color-border);
    }

    .history-timeline__item:first-child {
        padding-left: 0;
    }

    .history-timeline__item:last-child {
        border-right: 0;
    }

    .history-timeline__item strong,
    .history-timeline__item span {
        display: block;
    }

    .history-timeline__item strong {
        margin-bottom: 10px;
        font-size: 27px;
    }


    /* DOŚWIADCZENIE */

    .history-experience {
        padding: 88px 0;
    }

    .history-editorial {
        grid-template-columns:
            minmax(0, .92fr)
            minmax(0, 1fr);
        align-items: center;
        gap: 64px;
    }


    /* RODZINNA FIRMA */

    .history-family {
        padding: 90px 0;
    }

    .history-family__grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(280px, .72fr);
        align-items: center;
        gap: 72px;
    }

    .history-family__photo {
        width: 100%;
        height: 560px;
    }

    .history-family__photo img {
        height: 100%;
        object-fit: cover;
    }


    /* ZMIENIAJĄ SIĘ CZASY */

    .history-change {
        padding-top: 82px;
    }

    .history-change__photo {
        width: auto;
        height: 540px;
        margin: 48px -20px 0 0;
    }

    .history-change__copy {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 54px;
        padding-top: 46px;
        padding-bottom: 72px;
    }

    .history-change__copy > p {
        margin: 0;
    }

    .history-change__copy .history-change__statement {
        grid-column: 1 / -1;
        max-width: 38ch;
        margin-top: 12px;
    }


    /* DBAŁOŚĆ */

    .history-care {
        padding: 90px 0;
    }

    .history-care__grid {
        grid-template-columns:
            minmax(280px, .72fr)
            minmax(0, 1fr);
        align-items: center;
        gap: 72px;
    }

    .history-care__photo {
        width: 100%;
        height: 560px;
    }

    .history-care__photo img {
        height: 100%;
        object-fit: cover;
    }


    /* GALERIA */

    .history-gallery {
        padding: 90px 0;
    }

    .history-gallery__heading {
        margin-bottom: 52px;
    }

    .history-gallery__grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 24px;
        align-items: start;
    }

    .history-gallery__item,
    .history-gallery__item--portrait,
    .history-gallery__item--standard {
        width: auto;
        margin-left: 0;
    }

    .history-gallery__item:nth-child(1) {
        grid-column: 1 / span 8;
    }

    .history-gallery__item:nth-child(2) {
        grid-column: 9 / span 4;
        margin-top: 64px;
    }

    .history-gallery__item:nth-child(3) {
        grid-column: 2 / span 5;
    }

    .history-gallery__item:nth-child(4) {
        grid-column: 7 / span 6;
        margin-top: 32px;
    }

    .history-gallery__item:nth-child(5) {
        grid-column: 1 / span 4;
        margin-top: 54px;
    }

    .history-gallery__item:nth-child(6) {
        grid-column: 5 / span 8;
    }

    .history-gallery__item:nth-child(7) {
        grid-column: 1 / span 7;
    }

    .history-gallery__item:nth-child(8) {
        grid-column: 8 / span 5;
        margin-top: 56px;
    }

    .history-gallery__item:nth-child(9) {
        grid-column: 3 / span 8;
    }


    /* DOSTĘPNOŚĆ */

    .history-availability {
        padding: 90px 0;
    }

    .history-availability__grid {
        grid-template-columns:
            minmax(0, .8fr)
            minmax(0, 1.2fr);
        gap: 76px;
    }


    /* LOKALIZACJE */

    .history-locations {
        padding: 82px 0;
    }

    .history-locations__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .history-location {
        padding: 28px 32px;
        border-right: 1px solid var(--color-border);
    }

    .history-location:first-child {
        padding-left: 0;
    }

    .history-location:last-child {
        border-right: 0;
    }


    /* CTA */

    

    

    
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1200px) {

    /* TYPOGRAFIA */
/* HERO */

    .history-hero {
        padding: 46px 0 92px;
    }

    .history-hero__copy {
        max-width: 760px;
        padding-bottom: 58px;
    }

    .history-hero h1 {
        max-width: 11.2ch;
        font-size: 60px;
        line-height: 1.02;
    }

   .history-hero__lead,
.history-hero__intro {
  max-width:52ch;
}

    .history-hero__photo {
        height: 650px;
        border-radius: 0 0 0 78px;
    }


    /* NASZA HISTORIA */

    .history-story__grid {
        grid-template-columns:
            minmax(0, .82fr)
            minmax(500px, 1.18fr);
        gap: 106px;
    }

    .history-story__photo {
        margin-right: -80px;
    }


    /* DOŚWIADCZENIE */

    .history-editorial {
        grid-template-columns:
            minmax(520px, 1.08fr)
            minmax(0, .92fr);
        gap: 106px;
    }

    .history-editorial__photo {
        margin-left: -80px;
    }


    /* RODZINNA FIRMA */

    .history-family__grid {
        grid-template-columns:
            minmax(0, 1fr)
            420px;
        gap: 120px;
    }

    .history-family__photo {
        height: 640px;
    }


    /* ZMIENIAJĄ SIĘ CZASY */

    .history-change {
        padding-top: 98px;
    }

    .history-change__heading {
        max-width: 1280px;
    }

    .history-change__photo {
        height: 620px;
        margin-top: 58px;
        margin-right: -80px;
    }

    .history-change__copy {
        max-width: 1040px;
        padding-top: 54px;
        padding-bottom: 88px;
    }


    /* DBAŁOŚĆ */

    .history-care__grid {
        grid-template-columns:
            420px
            minmax(0, 1fr);
        gap: 120px;
    }

    .history-care__photo {
        height: 640px;
    }


    /* GALERIA */

    .history-gallery__heading {
        margin-bottom: 64px;
    }

    .history-gallery__grid {
        gap: 30px;
    }


    /* DOSTĘPNOŚĆ */

    .history-availability__grid {
        gap: 120px;
    }


    /* CTA */

    
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    
}