/* Podstrona: Wykończenia pod klucz (Gotowe Mieszkanie) */

.gm {
    --gm-black: #000;
    --gm-text: #111;
    --gm-line: #d9d9d9;
    --gm-font: 'Figtree', sans-serif;
    --gm-font-heading: 'MuseoModerno', sans-serif;

    font-family: var(--gm-font);
    color: var(--gm-text);
}

.gm *,
.gm *::before,
.gm *::after {
    box-sizing: border-box;
}

.gm img {
    display: block;
    max-width: 100%;
    height: auto;
}

.gm-container {
    width: 100%;
    max-width: 1252px;
    margin: 0 auto;
    padding: 0 16px;
}

.gm-section {
    padding: 4.5rem 0;
}

/* Typography */
.gm-title {
    margin: 0 0 1.5rem;
    font-family: var(--gm-font-heading);
    font-style: normal;
    font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: .02em;
    text-transform: none;
    color: var(--gm-black);
}

.gm-title--center {
    text-align: center;
}

.gm-title span {
    font-size: .58em;
    font-weight: 300;
    letter-spacing: .03em;
}

.gm-text p {
    margin: 0 0 1.4rem;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: .03em;
}

.gm-text p:last-child {
    margin-bottom: 0;
}

.gm-text strong {
    font-weight: 600;
}

/* Hero */
.gm-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(360px, 45vw, 644px);
    padding: 3rem 16px;
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
}

.gm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .3);
}

.gm-hero__inner {
    position: relative;
}

.gm-hero__title {
    margin: 0 0 1.5rem;
    font-family: var(--gm-font-heading);
    font-style: normal;
    font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: none;
    color: #fff;
}

.gm-hero__subtitle {
    margin: 0;
    font-size: clamp(1.1rem, .8rem + 1.2vw, 2rem);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.gm-hero__subtitle span {
    margin: 0 .6em;
    font-weight: 300;
}

/* Intro */
.gm-intro {
    padding-top: 4rem;
}

.gm-intro__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.gm-intro__logos img {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

/* Benefits */
.gm-benefits .gm-title {
    margin-bottom: 3.5rem;
}

.gm-benefits__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.gm-benefits__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: .03em;
    text-align: center;
}

.gm-benefits__item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.gm-benefits__item span {
    max-width: 150px;
}

/* Split (image + content) */
.gm-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.gm-split__media img {
    width: 100%;
    aspect-ratio: 592 / 349;
    object-fit: cover;
}

.gm-split__content {
    max-width: 560px;
}

.gm-split__content .gm-text {
    max-width: 500px;
}

.gm-video {
    position: relative;
    display: block;
}

.gm-address {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 2rem 0 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .03em;
}

.gm-address svg {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

.gm-address svg * {
    fill: none;
    stroke: currentColor;
}

/* Buttons & links */
.gm-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 3.4rem;
    margin-top: 2rem;
}

.gm-buttons--center {
    justify-content: center;
    margin-top: 3.5rem;
}

.gm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 244px;
    min-height: 54px;
    padding: .75rem 2rem;
    border: 1px solid var(--gm-black);
    background: var(--gm-black);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .03em;
    color: #fff;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

.gm-btn:hover,
.gm-btn:focus-visible {
    background: #fff;
    color: var(--gm-black);
}

.gm-link {
    display: inline-flex;
    gap: .35rem;
    padding: 0 .3rem .35rem;
    border-bottom: 1px solid var(--gm-black);
    font-size: .9rem;
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gm-black);
    text-decoration: none;
}

.gm-link:hover {
    color: var(--gm-black);
    opacity: .65;
}

/* Packages */
.gm-heading {
    margin-bottom: 3.5rem;
    text-align: center;
}

.gm-heading .gm-title {
    margin-bottom: .6rem;
}

.gm-heading__lead {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.gm-packages__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem 1.25rem;
}

.gm-package {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.gm-package img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.gm-package__name {
    margin: 1.5rem 0 .6rem;
    font-family: var(--gm-font-heading);
    font-style: normal;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--gm-black);
}

.gm-package__text {
    flex-grow: 1;
    max-width: 220px;
    margin: 0 0 2.5rem;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: .03em;
}

/* Realizations */
.gm-realizations .gm-title {
    margin-bottom: 3rem;
}

.gm-realizations__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.4rem;
}

.gm-realizations__item {
    display: block;
    overflow: hidden;
}

.gm-realizations__item img {
    width: 100%;
    aspect-ratio: 590 / 429;
    object-fit: cover;
    transition: transform .5s;
}

.gm-realizations__item:hover img {
    transform: scale(1.04);
}

/* Locations */
.gm-locations {
    padding-bottom: 6rem;
}

.gm-locations__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.gm-locations__map img {
    width: 100%;
    max-width: 432px;
    margin: 0 auto;
}

.gm-locations__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gm-locations__list li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .25rem 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--gm-line);
    align-items: baseline;
}

.gm-locations__city {
    grid-column: 1 / -1;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.gm-locations__address,
.gm-locations__phone {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: .03em;
    color: var(--gm-text);
    text-decoration: none;
}

.gm-locations__phone:hover {
    color: var(--gm-text);
    text-decoration: underline;
}

/* Breakpoints */
@media (min-width: 576px) {
    .gm-benefits__list {
        grid-template-columns: repeat(3, 1fr);
    }

    .gm-packages__grid,
    .gm-realizations__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .gm-locations__list li {
        grid-template-columns: 170px 1fr auto;
    }

    .gm-locations__city {
        grid-column: auto;
    }
}

@media (min-width: 992px) {
    .gm-section {
        padding: 5.5rem 0;
    }

    .gm-intro__grid {
        grid-template-columns: 7fr 5fr;
        gap: 4rem;
    }

    .gm-benefits__list {
        grid-template-columns: repeat(6, 1fr);
    }

    .gm-split {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .gm-split--reverse .gm-split__media {
        order: 2;
    }

    .gm-packages__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .gm-locations__grid {
        grid-template-columns: 5fr 7fr;
        gap: 4rem;
    }
}

@media (max-width: 575.98px) {
    .gm-buttons .gm-btn {
        width: 100%;
        min-width: 0;
    }
}
