:root {
    --asu-plum: #64164e;
    --asu-dark: #31162c;
    --asu-ink: #271d26;
    --asu-muted: #645661;
    --asu-line: #e6d9e2;
    --asu-paper: #faf7f8;
}

body { background: var(--asu-paper); }

body > header {
    position: relative;
    z-index: 4;
    background: rgb(255 255 255 / 84%);
    border-color: var(--asu-line);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.mast nav a { font-weight: 600; }

.hero {
    position: relative;
    isolation: isolate;
    grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
    padding-block: clamp(32px, 5vw, 68px);
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 12px 0 0;
    background: radial-gradient(ellipse at 87% 35%, #e8c9de 0%, transparent 62%);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.35vw, 5.4rem);
    line-height: 1.02;
    color: var(--asu-ink);
}

.hero .lead {
    max-width: 39ch;
    margin: 18px 0 22px;
    color: var(--asu-muted);
}

.hero .address {
    margin-top: 16px;
    font-style: normal;
    font-weight: 600;
}

.btn { border-radius: 9px; }

.portrait {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgb(255 255 255 / 75%);
    background: linear-gradient(145deg, #f8eef5, #e1bfd7);
    box-shadow: 0 18px 44px rgb(52 21 45 / 12%);
}

.portrait img {
    width: 100%;
    height: clamp(340px, 42vw, 550px);
    object-fit: contain;
    object-position: center bottom;
}

.portrait figcaption {
    position: absolute;
    inset: auto 12px 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 12px 15px;
    color: #fff;
    background: rgb(49 22 44 / 85%);
    border: 1px solid rgb(255 255 255 / 32%);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.office-hours {
    max-width: 560px;
    margin-top: 14px;
    padding: 14px 17px;
    color: var(--asu-ink);
    background: rgb(255 255 255 / 74%);
    border: 1px solid #fff;
    border-radius: 14px;
    box-shadow: 0 8px 26px rgb(52 21 45 / 7%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.office-hours h2 {
    margin: 0 0 8px;
    font: 700 1rem/1.35 system-ui, sans-serif;
    letter-spacing: normal;
}

.office-hours dl { margin: 0; }

.office-hours dl > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: baseline;
    gap: 4px 12px;
    padding: 6px 0;
    font-size: .94rem;
}

.office-hours dl > div + div { border-top: 1px solid var(--asu-line); }

.office-hours dd {
    margin: 0;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.section { padding-block: clamp(36px, 5.2vw, 68px); }

.section-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 24px;
}

.section-top a { color: var(--asu-plum); font-weight: 650; }

.offer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.offer-card {
    display: block;
    height: 100%;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--asu-line);
    border-radius: 14px;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.offer-card:hover,
.offer-card:focus-visible {
    border-color: var(--asu-plum);
    box-shadow: 0 8px 24px rgb(52 21 45 / 8%);
}

.offer-card h3 { color: var(--asu-plum); }
.offer-card p { margin: 6px 0 0; color: var(--asu-muted); }

.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.logo-grid li {
    min-width: 0;
    text-align: center;
    background: #fff;
    border: 1px solid var(--asu-line);
    border-radius: 14px;
}

.partner-logo {
    display: flex;
    width: 100%;
    height: 100px;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.partner-logo img {
    display: block;
    width: 100%;
    max-width: 148px;
    height: 52px;
    object-fit: contain;
    object-position: center;
}

.local-brand {
    display: block;
    padding: 10px;
    border-top: 1px solid var(--asu-line);
    color: var(--asu-plum);
}

#faq h2 { margin-bottom: 16px; }
#faq details { max-width: 74ch; }

.contact { background: var(--asu-dark); }
.contact .office-hours { margin-bottom: 14px; }

.map {
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 18px;
}

@media (max-width: 720px) {
    .hero { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .hero::before { background-position: center bottom; }
    .hero .actions .alt { display: none; }
    .hero .actions .btn { width: 100%; }
    .portrait img { height: 300px; }
    .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .partner-logo { height: 85px; padding: 14px; }
}

@media (max-width: 480px) {
    .offer-grid { grid-template-columns: minmax(0, 1fr); }
    .office-hours dl > div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .offer-card { transition: none; }
}
:root {
    --asu-font: "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
}

body { font-family: var(--asu-font); }

main :is(h1, h2, h3),
.office-hours h2 {
    font-family: var(--asu-font);
}

.hero h1, .inner h1 {
    font-size: clamp(2.35rem, 5.2vw, 4.85rem);
    font-weight: 720;
    line-height: 1.04;
    letter-spacing: -.055em;
}

main h2 {
    font-size: clamp(1.65rem, 3.45vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.038em;
}

.office-hours h2 {
    font-size: 1rem;
    letter-spacing: normal;
}

/* Znak wodny za treścią. */
.hero::before {
    background:
        radial-gradient(ellipse at 87% 35%, rgb(232 201 222 / 62%), transparent 62%);
}

.hero::after,
#oferta::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    background: url("/assets/tarcza-parasolka.png") center / contain no-repeat;
    opacity: .045;
}

.hero::after {
    width: clamp(135px, 22vw, 320px);
    aspect-ratio: 1.2;
    inset: auto auto 0 0;
    transform: translateX(-8%) rotate(-12deg);
}

#oferta {
    position: relative;
    isolation: isolate;
}

#oferta::before {
    width: clamp(100px, 15vw, 210px);
    aspect-ratio: 1.2;
    inset: 0 1rem auto auto;
    transform: rotate(12deg);
}

/* Zdjęcia biura. */
.office-gallery {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    padding-bottom: 20px;
}

.office-gallery figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #42273e;
}

.office-gallery-main {
    grid-column: 1 / 10;
    grid-row: 1;
}

.office-gallery-detail {
    grid-column: 8 / -1;
    grid-row: 1;
    transform: translateY(20px);
    border: 5px solid var(--asu-dark, #31162c);
    box-shadow: 0 12px 30px rgb(0 0 0 / 22%);
}

.office-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.office-gallery-main img {
    aspect-ratio: 16 / 8;
    object-fit: cover;
    object-position: center 45%;
}

.office-gallery figcaption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
    padding: 8px 13px;
    color: #fff;
    background: rgb(49 22 44 / 86%);
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 720px) {
    .office-gallery {
        grid-row: 3;
        grid-template-columns: 1fr;
        gap: 12px;
        padding-bottom: 0;
    }

    .office-gallery-main,
    .office-gallery-detail {
        grid-column: 1;
        grid-row: auto;
    }

    .office-gallery-detail {
        transform: none;
        border: 0;
    }

    .office-gallery-main img {
        aspect-ratio: auto;
    }
}
.office-gallery {
    --office-paper: #faf7f8;
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    min-height: clamp(320px, 42vw, 600px);
    padding: 0;
    overflow: hidden;
    background: var(--office-paper);
}

.office-gallery .office-gallery-main,
.office-gallery .office-gallery-detail {
    grid-column: auto;
    grid-row: 1;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.office-gallery img,
.office-gallery-main img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
}

/* Łagodne połączenie obu kadrów na komputerze. */
.office-gallery-detail {
    margin-left: -10% !important;
    mask-image: linear-gradient(to right, transparent, #000 18%);
}

/* Zdjęcia stopniowo znikają w jasnym tle. */
.office-gallery::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 30%,
        rgb(250 247 248 / 55%) 70%,
        var(--office-paper) 100%
    );
}

/* Delikatne znaki wodne w dolnej części przejścia. */
.office-gallery::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 57% 0 0;
    pointer-events: none;
    opacity: .065;
    background:
        url("/assets/tarcza-parasolka.png") 18% 83% /
            clamp(90px, 15vw, 215px) auto no-repeat,
        url("/assets/tarcza-parasolka.png") 82% 28% /
            clamp(70px, 11vw, 155px) auto no-repeat;
}

@media (max-width: 720px) {
    .office-gallery {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .office-gallery .office-gallery-main,
    .office-gallery .office-gallery-detail {
        grid-column: 1;
        grid-row: auto;
    }

    .office-gallery img {
        height: clamp(170px, 48vw, 290px);
    }

    .office-gallery .office-gallery-detail {
        margin-top: -28px;
        margin-left: 0 !important;
        mask-image: linear-gradient(to bottom, transparent, #000 34px);
    }

    .office-gallery::before {
        background: linear-gradient(to bottom, transparent 56%, var(--office-paper));
    }
}
.contact-with-photos {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #31162c;
}

.contact-with-photos > .wrap {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.office-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    pointer-events: none;
}

.office-backdrop img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.office-backdrop img + img {
    width: 116%;
    margin-left: -16%;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 19%);
    mask-image: linear-gradient(to right, transparent, #000 19%);
}

.office-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, transparent 50%, #31162c 100%),
        linear-gradient(to right, #31162c 0%, #31162ce8 32%, #31162c40 100%);
}

.contact-with-photos > .wrap::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto auto -1rem 0;
    width: min(185px, 40vw);
    aspect-ratio: 1.2;
    background: url("/assets/tarcza-parasolka.png") center / contain no-repeat;
    filter: brightness(0) invert(1);
    opacity: .07;
    pointer-events: none;
}

.contact-with-photos .office {
    background: rgb(49 22 44 / 84%);
    border-radius: 14px;
    backdrop-filter: blur(12px);
}

.contact-with-photos .office a {
    overflow-wrap: anywhere;
}

.contact-with-photos .map {
    min-width: 0;
}

@media (max-width: 720px) {
    .contact-with-photos > .wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .office-backdrop {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    }

    .office-backdrop img + img {
        width: 100%;
        height: 112%;
        margin: 0;
        transform: translateY(-10%);
        -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%);
        mask-image: linear-gradient(to bottom, transparent, #000 20%);
    }

    .office-backdrop::after {
        background: linear-gradient(
            to bottom, #31162ce6, #31162c66 55%, #31162c 100%
        );
    }

    .contact-with-photos .map iframe {
        height: clamp(230px, 68vw, 330px);
    }
}
.hero .portrait img {
    transform: scaleX(-1);
}
/* Nagłówek i nawigacja */
body > header.asu-header {
    position: sticky;
    top: 0;
    z-index: 4;
    background: rgb(255 250 253 / 90%);
    border-bottom: 1px solid #e6d9e2;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.asu-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    min-height: 72px;
    padding-block: 8px;
}

.asu-header__brand {
    min-width: 0;
    gap: 10px;
}

.asu-header__brand img {
    flex: none;
    object-fit: contain;
}

.asu-header__brand strong,
.asu-header__brand small {
    display: block;
    line-height: 1.25;
}

.asu-header__brand small {
    margin-top: 3px;
    color: #645661;
    font-size: .82rem;
}

.asu-header .asu-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    width: auto;
    padding: 4px;
    background: #f5ebf2;
    border: 1px solid #ebdce7;
    border-radius: 12px;
}

.asu-header .asu-menu a,
.asu-header .asu-menu-mobile nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 7px 13px;
    color: #392b36;
    font-size: .95rem;
    font-weight: 650;
    text-decoration: none;
    border-radius: 8px;
}

.asu-header nav a:hover,
.asu-header nav a[aria-current="page"],
.asu-header nav a.is-active {
    background: #fff;
    color: #64164e;
    box-shadow: inset 0 0 0 1px #e6d9e2;
}

.asu-menu-mobile {
    display: none;
    flex: none;
}

.asu-menu-mobile summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 7px 11px;
    color: #64164e;
    background: #f5ebf2;
    border: 1px solid #ebdce7;
    border-radius: 9px;
    font-size: .9rem;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.asu-menu-mobile summary::-webkit-details-marker {
    display: none;
}

.asu-menu-mobile__icon {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.asu-menu-mobile[open] .asu-menu-mobile__icon {
    transform: translateY(2px) rotate(225deg);
}

.asu-header .asu-menu-mobile nav {
    position: absolute;
    inset: calc(100% + 6px) 0 auto;
    display: grid;
    gap: 4px;
    width: auto;
    padding: 8px;
    background: #fffafd;
    border: 1px solid #e6d9e2;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgb(49 22 44 / 13%);
}

.asu-header .asu-menu-mobile:not([open]) nav {
    display: none;
}

/* Stopka */
.asu-footer {
    color: #392b36;
    background: #fbf7fa;
    border-top: 1px solid #e6d9e2;
}

.asu-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding-block: 24px;
}

.asu-footer__office address {
    margin-block: 4px;
    font-style: normal;
    color: #645661;
}

.asu-footer__office a {
    color: #64164e;
    font-weight: 650;
}

.asu-partnerqr {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    padding: 10px 14px;
    color: #392b36;
    background: #fff;
    border: 1px solid #e6d9e2;
    border-radius: 12px;
    text-decoration: none;
}

.asu-partnerqr:hover {
    background: #f5ebf2;
    border-color: #b886a7;
}

.asu-partnerqr img {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.asu-partnerqr small,
.asu-partnerqr strong {
    display: block;
    line-height: 1.35;
}

.asu-partnerqr small {
    color: #645661;
    font-size: .875rem;
}

.asu-footer .asu-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 18px;
    padding-block: 8px;
    border-top: 1px solid #e6d9e2;
    font-size: .875rem;
}

.asu-footer__legal a,
.asu-footer__legal button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.asu-footer__legal button[hidden] {
    display: none;
}

#tresc,
#oferta,
#faq,
#tel {
    scroll-margin-top: 86px;
}

@media (max-width: 760px) {
    .asu-header .asu-menu { display: none; }
    .asu-menu-mobile { display: block; }

    .asu-footer__main {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
}

@media (max-width: 360px) {
    .asu-header__brand img {
        width: 38px;
        height: 38px;
    }

    .asu-header__brand strong { font-size: .9rem; }
    .asu-header__brand small { font-size: .75rem; }
}