/* Offer, about and contact page layouts, built on site-refresh.css. */
.offer-page .page-hero,
.contact-page .page-hero {
    max-width: 1060px;
}

.offer-page .service-rows {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.4rem);
}

/* Każda usługa jako granatowa karta: zdjęcie i opis obok siebie, zdjęcie na przemian z lewej i z prawej. */
.offer-page .service-row,
.offer-page .service-row:nth-child(even) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: var(--navy);
    box-shadow: none;
    scroll-margin-top: 115px;
}

.offer-page .service-row:nth-child(even) .service-media {
    order: 2;
}

.offer-page .service-media {
    min-height: 410px;
    overflow: hidden;
    background: #e7eef3;
}

.offer-page .service-media img {
    transition: transform .5s ease;
}

.offer-page .service-row:hover .service-media img {
    transform: scale(1.035);
}

.offer-page .service-body {
    padding: clamp(2rem, 4vw, 4rem);
}

.offer-page .service-body h2 {
    max-width: 18ch;
    color: #fff;
    font-size: clamp(2rem, 3.3vw, 3rem);
    line-height: 1.17;
}

.offer-page .service-body p {
    color: #d8e8f3;
}

.offer-page .service-body .kicker,
.offer-page .service-body .svc-more a {
    color: #8ed4f5;
}

.offer-page .service-body .svc-more a {
    display: inline-flex;
    align-items: center;
    padding-bottom: .16rem;
    border-bottom: 1px solid currentColor;
}

.offer-page .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: clamp(1rem, 4vw, 4rem);
    align-items: end;
    margin-bottom: 2.3rem;
}

.offer-page .section-head > p {
    max-width: 540px;
    margin: 0;
}

.offer-page .card-grid .card p,
.about-page .card-grid .card p {
    max-width: 35ch;
}

.offer-page .offer-method {
    padding: clamp(2rem, 4vw, 3.5rem);
    border-radius: 8px;
    background: var(--tint-bg);
}

.offer-page .offer-method .card {
    border-color: #b9d3e3;
}

.about-page .page-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
    gap: clamp(2rem, 5vw, 5.5rem);
    align-items: center;
}

.about-page .page-hero img {
    height: 430px;
    aspect-ratio: auto;
    object-fit: cover;
}

.about-page .page-section .intro {
    max-width: 880px;
    font-size: 1.12rem;
}

.about-page .card-grid {
    margin-top: 2.25rem;
}

.about-page .about-approach {
    padding: clamp(2rem, 4vw, 3.5rem);
    border-radius: 8px;
    background: var(--tint-bg);
}

.about-page .about-approach .card {
    border-color: #b9d3e3;
}

.contact-page .contact-layout {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: clamp(1.2rem, 3vw, 2.3rem);
    align-items: stretch;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.contact-page .contact-card {
    padding: clamp(1.8rem, 3vw, 3rem);
    border: 0;
    border-radius: 8px;
    background: #0b426f;
    box-shadow: none;
}

.contact-page .contact-card:hover {
    box-shadow: none;
}

.contact-page .contact-list a[href^="mailto:"] {
    overflow-wrap: anywhere;
}

.contact-page .form-card {
    padding: clamp(1.8rem, 3vw, 3rem);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: none;
}

.contact-page .form-card:hover {
    box-shadow: none;
    transform: none;
}

.contact-page .form-card h2,
.contact-page .contact-card h2 {
    font-size: clamp(1.55rem, 2.1vw, 1.9rem);
}

.contact-page .form-card .form-group input,
.contact-page .form-card .form-group textarea,
.contact-page .form-card .consent-group {
    border-radius: 6px;
}

.contact-page .form-card .submit-btn {
    box-shadow: none;
}

.contact-page .form-card .submit-btn:hover {
    box-shadow: none;
}

.contact-page .map-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: none;
}

.contact-page .map-card:hover {
    box-shadow: none;
}

.contact-page .faq-list {
    max-width: 900px;
}

.contact-page .faq-row {
    border-bottom: 1px solid var(--line);
}

.contact-page .cta-bar .cta-contacts a {
    color: var(--ink);
}

.contact-page .cta-bar .cta-contacts i {
    color: var(--link);
}

@media (max-width: 800px) {
    .offer-page .service-row,
    .offer-page .service-row:nth-child(even) {
        grid-template-columns: minmax(0, 1fr);
    }

    .offer-page .service-row:nth-child(even) .service-media {
        order: 0;
    }

    .offer-page .service-media {
        min-height: 280px;
    }

    .offer-page .section-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-page .page-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-page .page-hero img {
        height: auto;
        max-height: 420px;
        aspect-ratio: 16 / 9;
    }

    .contact-page .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 620px) {
    .offer-page .service-media {
        min-height: 235px;
    }

    .offer-page .service-body {
        padding: 1.7rem;
    }

    .offer-page .offer-method,
    .about-page .about-approach {
        padding: 1.6rem;
    }

    .contact-page .contact-card,
    .contact-page .form-card {
        padding: 1.5rem;
    }

    .contact-page .map-card iframe {
        height: 310px;
    }
}

@media (max-width: 360px) {
    .contact-page .contact-list > div {
        grid-template-columns: minmax(0, 1fr);
        padding-top: .8rem;
        border-top: 1px solid rgba(255, 255, 255, .2);
    }

    .contact-page .contact-list .card-badge {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .offer-page .service-media img { transition: none; }
}
