/*
Theme Name: Tkaniny samochodowe
Author: INTER TAP
Description: Motyw witryny tkaninysamochodowe.pl.
Version: 1.2.5
Text Domain: tkaniny-samochodowe
*/

/* Paleta bazowa: Granat i biel */

:root {
    --blue: #12407e;
    --ink: #142435;
    --muted: #586879;
    --line: #d5dee8;
    --paper: #eef2f6;
    --accent: #416987;
    --on-blue: #e4eef9;
    --body-font: "DM Sans", Arial, sans-serif;
    --heading-font: "Khand", "Arial Narrow", sans-serif;
    --editorial-font: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font: 16px/1.8 var(--body-font);
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 20px;
}

h1, h2, h3, h4 {
    margin: 0 0 24px;
    line-height: 1.2;
}

h1 {
    font-family: var(--heading-font);
    font-weight: 500;
}

h2, h3 {
    font-family: var(--editorial-font);
    font-weight: 400;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid #3582e5;
    outline-offset: 5px;
}

::selection {
    background: #c8ddf7;
}

.site-container {
    width: calc(100% - 96px);
    max-width: 1344px;
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 100;
    padding: 12px 20px;
    color: #fff;
    background: var(--blue);
}

.skip-link:focus {
    top: 10px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
    border-bottom: 1px solid #edf0f3;
}

.admin-bar .site-header {
    top: 32px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 94px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    color: var(--blue);
}

.brand svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.brand-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.4;
}

.domain {
    color: var(--muted);
}

.brand-tagline {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .08em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.primary-menu a {
    display: block;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current-page-ancestor > a {
    color: var(--blue);
}

.header-catalog {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.header-catalog:hover {
    color: var(--blue);
    border-color: var(--blue);
    background: #f2f5f8;
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

.site-main {
    padding-block: 60px;
}

.home-hero {
    max-width: 700px;
}

.home-hero > p:first-child {
    color: var(--accent);
    font-size: 13px;
    letter-spacing: .035em;
}

.home-hero h1 {
    margin-bottom: 32px;
    color: var(--blue);
    font-size: 114px;
    line-height: .98;
    letter-spacing: -.015em;
}

.home-hero h1 em {
    display: inline-block;
    margin-top: 7px;
    color: var(--ink);
    font-family: var(--editorial-font);
    font-size: 54px;
    font-weight: 400;
    line-height: 1.32;
    letter-spacing: -.055em;
}

.home-hero > p {
    max-width: 460px;
    color: var(--muted);
    font-size: 17px;
}

.home-hero h1 + p {
    color: var(--ink);
    font-size: 21px;
    font-weight: 500;
}

.home-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 23px;
    margin-top: 30px;
}

.home-actions a:first-child {
    padding: 15px 26px;
    border-radius: 32px;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.home-actions a:first-child:hover {
    background: #082d60;
}

.home-actions a:last-child {
    padding-bottom: 3px;
    border-bottom: 1px solid #b5c5d9;
    color: var(--blue);
    font-size: 14px;
}

.site-footer {
    padding-block: 24px;
    background: var(--paper);
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 1150px) {
    .site-container {
        width: calc(100% - 56px);
    }

    .header-inner,
    .site-nav {
        gap: 18px;
    }

    .primary-menu {
        gap: 16px;
        font-size: 13px;
    }

    .brand-name {
        font-size: 14px;
    }

    .brand-tagline {
        font-size: 9px;
    }

    .header-catalog {
        padding-inline: 12px;
        font-size: 12px;
    }
}

@media (max-width: 960px) {
    .header-inner {
        min-height: 82px;
        flex-wrap: wrap;
    }

    .site-nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding-block: 20px;
    }

    .primary-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        font-size: 15px;
    }

    .primary-menu a {
        padding-block: 12px;
    }

    .has-site-menu .menu-toggle {
        display: inline-flex;
    }

    .has-site-menu .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px 28px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 15px 25px #1424350a;
    }

    .has-site-menu .site-nav.is-open {
        display: flex;
    }

    .header-catalog {
        align-self: flex-start;
        font-size: 14px;
    }
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 680px) {
    .site-container {
        width: calc(100% - 36px);
    }

    .header-inner {
        min-height: 75px;
        gap: 12px;
    }

    .brand {
        gap: 9px;
    }

    .brand svg {
        width: 25px;
        height: 25px;
    }

    .brand-name {
        font-size: 13px;
    }

    .brand-tagline {
        font-size: 8px;
    }

    .menu-toggle {
        padding: 8px 11px;
        font-size: 13px;
    }

    .has-site-menu .site-nav {
        padding-inline: 18px;
    }

    .site-main {
        padding-block: 40px;
    }

    .home-hero h1 {
        font-size: 88px;
    }

    .home-hero h1 em {
        font-size: 44px;
    }
}

@media (max-width: 600px) {
    .admin-bar .site-header {
        top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
/* Pierwsza sekcja strony głównej */

.home-main {
    padding: 0;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 70px;
    max-width: 1344px;
    margin-top: 45px;
    margin-bottom: 20px;
}

.hero-copy {
    min-width: 0;
    padding-block: 30px;
}

.hero-copy .hero-eyebrow {
    margin-bottom: 27px;
    color: var(--accent);
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: .035em;
}

.hero-copy .hero-lead {
    margin-bottom: 14px;
    color: var(--ink);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.6;
}

.hero-copy .hero-intro {
    max-width: 420px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.9;
}

.home-hero .home-actions {
    margin-top: 0;
}

.hero-footnote {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 45px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.hero-footnote span + span::before {
    content: "·";
    margin-right: 20px;
    color: #a2aab1;
}

.hero-image-composition {
    position: relative;
    min-width: 0;
    padding-bottom: 28px;
}

.home-hero figure {
    margin: 0;
}

.hero-photo {
    position: relative;
    height: 610px;
    overflow: hidden;
    border-radius: 75px 22px 75px 22px;
    background: #e1e5e7;
}

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

.hero-photo::after {
    content: "";
    position: absolute;
    inset: 78% 0 0;
    background: linear-gradient(transparent, #11232e75);
    pointer-events: none;
}

.hero-photo figcaption {
    position: absolute;
    right: 35px;
    bottom: 34px;
    left: 35px;
    z-index: 1;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
    letter-spacing: .015em;
}

.floating-swatch {
    position: absolute;
    bottom: 0;
    left: -42px;
    width: 186px;
    padding: 8px 8px 13px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 35px #2837461c;
    transform: rotate(-5deg);
}

.floating-swatch img {
    width: 100%;
    height: 162px;
    border-radius: 14px;
    object-fit: cover;
}

.floating-swatch figcaption {
    padding-top: 9px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 1150px) {
    .home-hero {
        gap: 50px;
        margin-top: 35px;
    }

    .home-hero h1 {
        font-size: 104px;
    }

    .home-hero h1 em {
        font-size: 46px;
    }

    .hero-photo {
        height: 580px;
    }
}

@media (max-width: 960px) {
    .home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 35px;
    }

    .hero-copy {
        padding-block: 15px;
    }

    .home-hero h1 {
        font-size: 88px;
    }

    .home-hero h1 em {
        font-size: clamp(32px, 4.3vw, 41px);
    }

    .hero-copy .hero-lead {
        font-size: 19px;
    }

    .hero-copy .hero-intro {
        font-size: 16px;
        line-height: 1.85;
    }

    .home-hero .home-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .hero-photo {
        height: 555px;
        border-radius: 55px 18px 55px 18px;
    }

    .hero-photo figcaption {
        right: 25px;
        bottom: 25px;
        font-size: 13px;
    }

    .floating-swatch {
        left: -22px;
        width: 146px;
        border-radius: 17px;
    }

    .floating-swatch img {
        height: 120px;
    }

    .hero-footnote {
        gap: 6px 12px;
        margin-top: 30px;
        font-size: 11px;
    }

    .hero-footnote span + span::before {
        margin-right: 12px;
    }
}

@media (max-width: 680px) {
    .home-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 28px;
        margin-bottom: 0;
    }

    .hero-copy {
        padding: 10px 6px 0;
    }

    .hero-copy .hero-eyebrow {
        margin-bottom: 22px;
        font-size: 12px;
    }

    .home-hero h1 {
        margin-bottom: 25px;
        font-size: 88px;
    }

    .home-hero h1 em {
        margin-top: 10px;
        font-size: clamp(28px, 8.7vw, 48px);
        line-height: 1.2;
    }

    .home-hero .home-actions {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .hero-footnote {
        margin-top: 27px;
    }

    .hero-image-composition {
        padding-right: 12px;
        padding-bottom: 30px;
    }

    .hero-photo {
        height: 400px;
        border-radius: 45px 17px 45px 17px;
    }

    .hero-photo > img {
        object-position: 65% center;
    }

    .hero-photo figcaption {
        right: 22px;
        bottom: 27px;
        font-size: 12px;
    }

    .floating-swatch {
        right: 0;
        left: auto;
        width: 126px;
        transform: rotate(5deg);
    }

    .floating-swatch img {
        height: 97px;
    }

    .floating-swatch figcaption {
        padding-top: 7px;
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .home-hero h1 {
        font-size: 80px;
    }

    .hero-photo {
        height: 350px;
    }
}
/* Sekcja materiałów */

.material-editorial {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: center;
    gap: 100px;
    padding-top: 100px;
    padding-bottom: 120px;
}

.material-scene {
    position: relative;
    min-width: 0;
    padding-bottom: 100px;
}

.material-scene figure {
    margin: 0;
}

.sample-arrangement img {
    width: 100%;
    height: 460px;
    border-radius: 24px 75px 24px 75px;
    object-fit: cover;
    object-position: 72% center;
}

.sample-arrangement figcaption {
    max-width: 220px;
    padding: 14px 12px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.material-detail {
    position: absolute;
    right: -30px;
    bottom: 0;
    width: 280px;
    max-width: 65%;
    padding: 9px 9px 14px;
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 14px 35px #28374615;
    transform: rotate(4deg);
}

.material-detail img {
    width: 100%;
    height: 180px;
    border-radius: 14px;
    object-fit: cover;
}

.material-detail figcaption {
    padding-top: 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.material-editorial-copy {
    min-width: 0;
}

.material-eyebrow {
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .035em;
}

.material-editorial h2 {
    margin-bottom: 27px;
    font-size: clamp(36px, 3.7vw, 52px);
    line-height: 1.18;
    letter-spacing: -.035em;
}

.material-editorial h2 em {
    color: var(--blue);
}

.material-intro {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.9;
}

.material-topic-links {
    display: grid;
    gap: 21px;
    margin-block: 28px 30px;
}

.material-topic-links a {
    display: block;
    padding-left: 20px;
    border-left: 2px solid #dce5ee;
    transition: border-color .2s;
}

.material-topic-links a:hover {
    border-left-color: var(--blue);
}

.material-topic-links strong {
    display: block;
    color: var(--blue);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
}

.material-topic-links span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.textlink {
    display: inline-block;
    padding-bottom: 3px;
    border-bottom: 1px solid #b5c5d9;
    color: var(--blue);
    font-size: 14px;
    font-weight: 500;
}

.textlink:hover {
    color: #06295b;
}

@media (max-width: 1150px) {
    .material-editorial {
        gap: 70px;
    }

    .sample-arrangement img {
        height: 410px;
    }
}

@media (max-width: 960px) {
    .material-editorial {
        gap: 45px;
        padding-top: 75px;
        padding-bottom: 85px;
    }

    .material-editorial h2 {
        font-size: 37px;
    }

    .material-intro {
        font-size: 16px;
    }

    .sample-arrangement img {
        height: 450px;
    }

    .sample-arrangement figcaption {
        display: none;
    }

    .material-detail {
        right: -10px;
        width: 225px;
        max-width: 75%;
    }

    .material-detail img {
        height: 150px;
    }
}

@media (max-width: 680px) {
    .material-editorial {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 60px;
        padding-bottom: 70px;
    }

    .material-scene {
        padding-right: 14px;
        padding-bottom: 85px;
    }

    .sample-arrangement img {
        height: 310px;
        border-radius: 20px 45px 20px 45px;
    }

    .sample-arrangement figcaption {
        display: block;
        max-width: 35%;
        padding-left: 5px;
        font-size: 11px;
    }

    .material-detail {
        right: 0;
        width: 200px;
        max-width: 58%;
        padding: 7px 7px 10px;
        border-radius: 17px;
    }

    .material-detail img {
        height: 125px;
        border-radius: 12px;
    }

    .material-detail figcaption {
        font-size: 10px;
    }

    .material-editorial-copy {
        padding-inline: 6px;
    }

    .material-editorial h2 {
        font-size: 36px;
    }
}
/* Zdjęcia bez podpisów */

.hero-photo::after {
    display: none;
}

.floating-swatch {
    padding: 8px;
}

.material-detail {
    padding: 9px;
}

@media (max-width: 680px) {
    .material-detail {
        padding: 7px;
    }
}
/* Poradniki na stronie głównej */

.home-guides {
    background: var(--paper);
    border-radius: 65px 0 65px 0;
}

.home-guides-inner {
    padding-block: 90px;
}

.guides-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 48px;
}

.guides-eyebrow {
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .035em;
}

.guides-heading h2 {
    margin-bottom: 0;
    font-size: clamp(36px, 3.7vw, 52px);
    line-height: 1.18;
    letter-spacing: -.035em;
}

.guides-heading h2 em {
    color: var(--blue);
}

.guides-heading > .textlink {
    flex-shrink: 0;
}

.home-topic-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: 36px 50px;
}

.topic-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--ink);
}

.topic-photo {
    overflow: hidden;
    border-radius: 24px;
    background: #e6e9e9;
}

.topic-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.topic-card:hover .topic-photo img {
    transform: scale(1.035);
}

.topic-copy {
    padding: 25px 2px 5px;
}

.topic-category {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 12px;
    line-height: 1.6;
}

.topic-copy h3 {
    margin-bottom: 15px;
    font-family: var(--editorial-font);
    font-size: 29px;
    font-weight: 400;
    line-height: 1.22;
    letter-spacing: -.025em;
}

.topic-description {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
}

.card-read {
    display: inline-block;
    padding-bottom: 3px;
    border-bottom: 1px solid #b1c8e4;
    color: var(--blue);
    font-size: 14px;
    font-weight: 500;
}

.home-topic-grid > .topic-card:first-child {
    grid-row: 1 / 3;
}

.home-topic-grid > .topic-card:first-child .topic-photo {
    height: 470px;
    border-radius: 45px 20px 45px 20px;
}

.home-topic-grid > .topic-card:first-child .topic-copy {
    max-width: 490px;
    padding-top: 26px;
}

.home-topic-grid > .topic-card:first-child h3 {
    font-size: 35px;
}

.home-topic-grid > .topic-card:not(:first-child) {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
    align-items: center;
    gap: 26px;
}

.home-topic-grid > .topic-card:not(:first-child) .topic-photo {
    height: 100%;
    min-height: 280px;
}

.home-topic-grid > .topic-card:not(:first-child) .topic-copy {
    padding: 12px 0;
}

.home-topic-grid > .topic-card:not(:first-child) h3 {
    font-size: 28px;
}

.home-topic-grid > .topic-card:not(:first-child) .topic-description {
    font-size: 14px;
}

@media (max-width: 1150px) {
    .home-topic-grid {
        gap: 30px;
    }

    .home-topic-grid > .topic-card:first-child .topic-photo {
        height: 420px;
    }

    .home-topic-grid > .topic-card:not(:first-child) {
        gap: 20px;
    }

    .home-topic-grid > .topic-card:not(:first-child) h3 {
        font-size: 25px;
    }
}

@media (max-width: 960px) {
    .home-guides-inner {
        padding-block: 75px;
    }

    .home-topic-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-topic-grid > .topic-card:first-child {
        grid-row: auto;
    }

    .home-topic-grid > .topic-card:not(:first-child) {
        display: flex;
        gap: 0;
    }

    .home-topic-grid > .topic-card:last-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .home-topic-grid > .topic-card:first-child .topic-photo,
    .home-topic-grid > .topic-card:not(:first-child) .topic-photo {
        height: 300px;
        min-height: 0;
        border-radius: 25px;
    }

    .home-topic-grid > .topic-card:not(:first-child) .topic-copy {
        padding: 25px 2px 5px;
    }

    .home-topic-grid > .topic-card:first-child h3,
    .home-topic-grid > .topic-card:not(:first-child) h3 {
        font-size: 30px;
    }

    .home-topic-grid > .topic-card:not(:first-child) .topic-description {
        font-size: 16px;
    }
}

@media (max-width: 680px) {
    .home-guides {
        border-radius: 40px 0 40px 0;
    }

    .home-guides-inner {
        padding-block: 60px;
    }

    .guides-heading {
        display: block;
        margin-bottom: 35px;
    }

    .guides-heading h2 {
        font-size: 36px;
    }

    .guides-heading > .textlink {
        margin-top: 24px;
    }

    .home-topic-grid {
        grid-template-columns: 1fr;
        gap: 37px;
    }

    .home-topic-grid > .topic-card:first-child,
    .home-topic-grid > .topic-card:last-child {
        grid-column: auto;
        grid-row: auto;
        display: flex;
        gap: 0;
    }

    .home-topic-grid > .topic-card:first-child .topic-photo,
    .home-topic-grid > .topic-card:not(:first-child) .topic-photo {
        height: 270px;
    }

    .home-topic-grid > .topic-card:first-child .topic-copy,
    .home-topic-grid > .topic-card:not(:first-child) .topic-copy {
        max-width: none;
        padding: 23px 3px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .topic-photo img {
        transition: none;
    }

    .topic-card:hover .topic-photo img {
        transform: none;
    }
}
/* FAQ na stronie głównej */

.home-faq {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 90px;
    padding-block: 100px;
}

.home-faq-eyebrow {
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: .035em;
}

.home-faq-heading h2 {
    margin-bottom: 24px;
    font-family: var(--editorial-font);
    font-size: clamp(38px, 4vw, 49px);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -.03em;
}

.home-faq-intro {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.home-faq-list {
    min-width: 0;
}

.home-faq-list details {
    border-bottom: 1px solid #e3e7e9;
}

.home-faq-list summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-block: 26px;
    list-style: none;
    cursor: pointer;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
}

.home-faq-list summary::-webkit-details-marker {
    display: none;
}

.home-faq-list summary:hover {
    color: var(--blue);
}

.home-faq-plus {
    position: relative;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f4f8;
    color: var(--blue);
}

.home-faq-plus::before,
.home-faq-plus::after {
    content: "";
    position: absolute;
    top: 13px;
    left: 8px;
    right: 8px;
    height: 1.5px;
    background: currentColor;
}

.home-faq-plus::after {
    transform: rotate(90deg);
}

.home-faq-list details[open] .home-faq-plus::after {
    transform: none;
}

.home-faq-answer {
    padding-right: 52px;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
}

.home-faq-answer p {
    margin-bottom: 16px;
}

.home-faq-answer > :last-child {
    margin-bottom: 0;
}

.home-faq-answer a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Dolna sekcja kontaktowa */

.home-contact {
    position: relative;
    overflow: hidden;
    border-radius: 50px 50px 0 0;
    background: var(--blue);
    color: #fff;
}

.home-contact-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-contact-backdrop img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.home-contact-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #103970 12%,
        rgba(16, 57, 112, .94) 45%,
        rgba(16, 57, 112, .74) 100%
    );
}

.home-contact-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 75px;
    padding-block: 88px;
}

.home-contact-eyebrow {
    margin-bottom: 18px;
    color: var(--on-blue);
    font-size: 13px;
    letter-spacing: .035em;
}

.home-contact-copy h2 {
    margin-bottom: 24px;
    color: #fff;
    font-family: var(--editorial-font);
    font-size: 51px;
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -.03em;
}

.home-contact-copy h2 em {
    color: #fff;
}

.home-contact-intro {
    margin-bottom: 0;
    color: var(--on-blue);
    font-size: 17px;
    line-height: 1.8;
}

.home-contact-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    min-width: 0;
}

.home-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 999px;
    background: #fff;
    color: var(--blue);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.home-contact-button:hover {
    background: #eaf0f7;
}

.home-contact-phone {
    display: inline-block;
    color: #fff;
    font-family: var(--heading-font);
    font-size: 36px;
    line-height: 1.3;
    white-space: nowrap;
}

.home-contact-phone:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.home-contact-hours {
    margin: 0;
    color: var(--on-blue);
    font-size: 14px;
    line-height: 1.7;
}

.home-contact a:focus-visible {
    outline-color: #fff;
}

@media (max-width: 960px) {
    .home-faq {
        gap: 40px;
        padding-block: 75px;
    }

    .home-contact-inner {
        gap: 40px;
        padding-block: 70px;
    }

    .home-contact-copy h2 {
        font-size: 43px;
    }

    .home-contact-phone {
        font-size: 32px;
    }
}

@media (max-width: 680px) {
    .home-faq {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-block: 60px;
    }

    .home-faq-intro br {
        display: none;
    }

    .home-faq-list summary {
        gap: 18px;
        padding-block: 23px;
        font-size: 16px;
    }

    .home-faq-answer {
        padding-right: 0;
    }

    .home-contact {
        border-radius: 35px 35px 0 0;
    }

    .home-contact-backdrop::after {
        background: linear-gradient(
            90deg,
            rgba(16, 57, 112, .96),
            rgba(16, 57, 112, .85)
        );
    }

    .home-contact-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-block: 60px;
    }

    .home-contact-copy h2 {
        font-size: 38px;
    }

    .home-contact-intro {
        font-size: 16px;
    }

    .home-contact-actions {
        gap: 20px;
    }

    .home-contact-phone {
        font-size: 36px;
    }
}
/* Stopka */

.site-footer {
    padding: 42px 0 24px;
    background: #fff;
    color: var(--muted);
    font-size: 14px;
}

.site-footer .footer-top {
    display: grid;
    grid-template-columns: auto minmax(170px, 1fr) auto;
    align-items: start;
    gap: 34px;
    padding-bottom: 30px;
}

.site-footer .footer-brand {
    display: inline-block;
    color: var(--blue);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: -.025em;
    white-space: nowrap;
}

.site-footer .footer-brand span {
    color: var(--muted);
}

.site-footer .footer-description {
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
}

.site-footer .footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer .footer-menu li {
    margin: 0;
    padding: 0;
}

.site-footer .footer-menu a {
    display: inline-block;
    font-size: 14px;
    line-height: 1.8;
}

.site-footer .footer-menu a:hover,
.site-footer .footer-bottom a:hover {
    color: var(--blue);
}

.site-footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px 24px;
    padding-top: 21px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    line-height: 1.8;
}

.site-footer .footer-bottom > a:last-child {
    color: var(--blue);
}

@media (max-width: 960px) {
    .site-footer .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .site-footer .footer-navigation {
        grid-column: 1 / -1;
    }

    .site-footer .footer-menu {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .site-footer {
        padding-block: 34px 24px;
    }

    .site-footer .footer-top {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 26px;
    }

    .site-footer .footer-navigation {
        grid-column: auto;
    }

    .site-footer .footer-menu {
        gap: 10px 22px;
    }

    .site-footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
/* Kompendium — nagłówek */

.guide-hub-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-block: 31px 19px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.guide-hub-breadcrumbs a:hover {
    color: var(--blue);
}

.guide-hub-breadcrumbs > span[aria-hidden] {
    color: #94a5b5;
}

.guide-hub-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    gap: 90px;
    padding-block: 32px 66px;
}

.guide-hub-eyebrow {
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: .035em;
}

.guide-hub-heading h1 {
    margin-bottom: 27px;
    font-family: var(--editorial-font);
    font-size: 62px;
    font-weight: 400;
    line-height: 1.17;
    letter-spacing: -.035em;
}

.guide-hub-heading h1 em {
    color: var(--blue);
}

.guide-hub-intro {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.guide-hub-heading-photo {
    width: 100%;
    max-width: 420px;
    justify-self: end;
    overflow: hidden;
    border-radius: 50px 18px 50px 18px;
    background: var(--paper);
}

.guide-hub-heading-photo img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Kompendium — karty poradników */

.guide-hub-topics {
    padding-bottom: 100px;
}

.guide-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px 40px;
}

.guide-hub-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.guide-hub-card-photo {
    overflow: hidden;
    aspect-ratio: 1.7;
    border-radius: 45px 18px 45px 18px;
    background: var(--paper);
}

.guide-hub-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-hub-card-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 24px 3px 0;
}

.guide-hub-card-category {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: .035em;
}

.guide-hub-card h2 {
    margin-bottom: 18px;
    font-family: var(--editorial-font);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.guide-hub-card-description {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.guide-hub-card-read {
    display: inline-block;
    margin-top: auto;
    padding-bottom: 3px;
    border-bottom: 1px solid #b1c8e4;
    color: var(--blue);
    font-size: 14px;
    font-weight: 500;
}

.guide-hub-card:hover h2 {
    color: var(--blue);
}

.guide-hub-card:hover .guide-hub-card-read {
    border-bottom-color: var(--blue);
}

/* Większa karta pierwszego poradnika */

.guide-hub-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    overflow: hidden;
    border-radius: 45px 20px 45px 20px;
    background: var(--paper);
}

.guide-hub-card--featured .guide-hub-card-photo {
    aspect-ratio: auto;
    min-height: 400px;
    border-radius: 0;
}

.guide-hub-card--featured .guide-hub-card-copy {
    justify-content: center;
    padding: 45px 50px;
}

.guide-hub-card--featured h2 {
    font-size: 40px;
    line-height: 1.2;
}

.guide-hub-card--featured .guide-hub-card-read {
    margin-top: 4px;
}

@media (max-width: 960px) {
    .guide-hub-heading {
        gap: 40px;
    }

    .guide-hub-heading h1 {
        font-size: 50px;
    }

    .guide-hub-grid {
        gap: 40px 28px;
    }

    .guide-hub-card--featured .guide-hub-card-copy {
        padding: 32px;
    }

    .guide-hub-card--featured h2 {
        font-size: 34px;
    }
}

@media (max-width: 680px) {
    .guide-hub-breadcrumbs {
        gap: 8px;
        padding-block: 23px 12px;
        font-size: 11px;
    }

    .guide-hub-heading {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-block: 25px 42px;
    }

    .guide-hub-heading h1 {
        margin-bottom: 24px;
        font-size: 43px;
        line-height: 1.2;
    }

    .guide-hub-intro {
        font-size: 16px;
    }

    .guide-hub-heading-photo {
        max-width: none;
        border-radius: 35px 16px 35px 16px;
    }

    .guide-hub-heading-photo img {
        height: 240px;
    }

    .guide-hub-topics {
        padding-bottom: 65px;
    }

    .guide-hub-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .guide-hub-card-photo {
        aspect-ratio: 1.35;
        border-radius: 35px 16px 35px 16px;
    }

    .guide-hub-card--featured {
        grid-column: auto;
        display: flex;
        border-radius: 27px;
    }

    .guide-hub-card--featured .guide-hub-card-photo {
        flex: 0 0 auto;
        min-height: 0;
        height: 260px;
        aspect-ratio: auto;
    }

    .guide-hub-card--featured .guide-hub-card-copy {
        padding: 28px 25px;
    }

    .guide-hub-card--featured h2 {
        font-size: 32px;
    }
}
/* Poradnik — otwarcie */

.guide-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 70px;
    padding-block: 23px 65px;
}

.guide-eyebrow {
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: .035em;
}

.guide-heading h1 {
    margin-bottom: 25px;
    font-family: var(--editorial-font);
    font-size: 52px;
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -.035em;
    overflow-wrap: break-word;
}

.guide-lead {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.9;
}

.guide-byline {
    display: block;
    margin-top: 25px;
    color: #87919a;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.guide-heading-photo {
    overflow: hidden;
    border-radius: 55px 20px 55px 20px;
    background: var(--paper);
}

.guide-heading-photo img {
    display: block;
    width: 100%;
    height: 425px;
    object-fit: cover;
}

/* Poradnik — spis treści i tekst */

.guide-reading-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 75px;
    padding-top: 12px;
}

.guide-sidebar {
    position: sticky;
    top: 130px;
    align-self: start;
    padding: 27px;
    border-radius: 20px;
    background: var(--paper);
}

.admin-bar .guide-sidebar {
    top: 150px;
}

.guide-sidebar-label {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: .035em;
}

.guide-sidebar nav {
    display: flex;
    flex-direction: column;
}

.guide-sidebar nav a {
    padding-block: 13px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.6;
}

.guide-sidebar nav a:hover {
    color: var(--blue);
}

.guide-all {
    display: inline-block;
    margin-top: 22px;
    padding-bottom: 3px;
    border-bottom: 1px solid #b1c8e4;
    color: var(--blue);
    font-size: 13px;
    line-height: 1.5;
}

.guide-content {
    min-width: 0;
    padding-right: 35px;
}

.guide-content h2 {
    margin-bottom: 25px;
    scroll-margin-top: 30px;
    font-family: var(--editorial-font);
    font-size: 34px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.admin-bar .guide-content h2 {
    scroll-margin-top: 60px;
}

.guide-content p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.95;
}

.guide-content a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.guide-content .guide-chapter {
    margin-bottom: 39px;
    padding-bottom: 39px;
    border-bottom: 1px solid #e6e9ea;
}

.guide-content .guide-chapter > :last-child {
    margin-bottom: 0;
}

.guide-content .guide-note {
    margin-top: 28px;
    padding: 23px 28px;
    border-left: 2px solid var(--accent);
    border-radius: 0 16px 16px 0;
    background: var(--paper);
}

.guide-content .guide-note p {
    font-size: 16px;
    line-height: 1.8;
}

.guide-content .guide-note .guide-note-label {
    margin-bottom: 12px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.guide-content .guide-note > :last-child {
    margin-bottom: 0;
}

.guide-content .wp-block-image {
    margin: 28px 0 0;
}

.guide-content .wp-block-image img {
    display: block;
    width: 100%;
    height: 355px;
    object-fit: cover;
    border-radius: 24px;
}

.guide-content .guide-references p {
    margin-bottom: 12px;
    font-size: 14px;
}

.guide-content .guide-references .guide-reference-label {
    color: var(--accent);
    font-size: 12px;
}

/* Pozostałe poradniki */

.guide-related {
    padding-block: 100px;
}

.guide-related-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 35px;
}

.guide-related-heading h2 {
    margin: 0;
    font-family: var(--editorial-font);
    font-size: 43px;
    font-weight: 400;
    line-height: 1.2;
}

.guide-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 45px;
}

.guide-related-grid .guide-hub-card {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
    align-items: center;
    gap: 27px;
}

.guide-related-grid .guide-hub-card-photo {
    height: 100%;
    min-height: 295px;
    aspect-ratio: auto;
}

.guide-related-grid .guide-hub-card-copy {
    padding: 12px 0;
}

.guide-related-grid h3 {
    margin-bottom: 18px;
    font-family: var(--editorial-font);
    font-size: 29px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.guide-related-grid .guide-hub-card:hover h3 {
    color: var(--blue);
}

@media (max-width: 960px) {
    .guide-heading {
        gap: 30px;
        padding-bottom: 50px;
    }

    .guide-heading h1 {
        font-size: 38px;
    }

    .guide-heading-photo img {
        height: 400px;
    }

    .guide-reading-layout {
        grid-template-columns: 185px minmax(0, 1fr);
        gap: 35px;
    }

    .guide-sidebar {
        padding: 20px 17px;
    }

    .guide-content {
        padding-right: 0;
    }

    .guide-content h2 {
        font-size: 30px;
    }

    .guide-content .wp-block-image img {
        height: 290px;
    }

    .guide-related-grid .guide-hub-card {
        display: flex;
        align-items: stretch;
        gap: 0;
    }

    .guide-related-grid .guide-hub-card-photo {
        flex: 0 0 auto;
        height: 245px;
        min-height: 0;
    }

    .guide-related-grid .guide-hub-card-copy {
        padding-top: 25px;
    }
}

@media (max-width: 680px) {
    .guide-heading {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-block: 23px 38px;
    }

    .guide-heading h1 {
        font-size: clamp(30px, 8.6vw, 42px);
        line-height: 1.22;
    }

    .guide-lead {
        font-size: 16px;
    }

    .guide-heading-photo {
        border-radius: 35px 15px 35px 15px;
    }

    .guide-heading-photo img {
        height: 295px;
    }

    .guide-reading-layout {
        display: block;
        padding-top: 0;
    }

    .guide-sidebar {
        position: static;
        margin-bottom: 36px;
        padding: 24px;
        border-radius: 22px;
    }

    .guide-content {
        padding-inline: 5px;
    }

    .guide-content h2 {
        font-size: 29px;
        line-height: 1.3;
    }

    .guide-content p {
        font-size: 16px;
    }

    .guide-content .guide-chapter {
        margin-bottom: 32px;
        padding-bottom: 32px;
    }

    .guide-content .guide-note {
        padding: 22px;
    }

    .guide-content .wp-block-image img {
        height: 255px;
        border-radius: 19px;
    }

    .guide-related {
        padding-block: 65px;
    }

    .guide-related-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .guide-related-heading h2 {
        font-size: 38px;
    }

    .guide-related-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .guide-related-grid .guide-hub-card-photo {
        height: 270px;
    }
}
/* Warianty laminacji w treści poradnika */

.guide-content .guide-variants {
    gap: 30px;
    margin-block: 0 25px;
}

.guide-content .guide-variants h3 {
    margin-bottom: 12px;
    font-family: var(--editorial-font);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
}

.guide-content .guide-variants p {
    margin-bottom: 0;
}
/* Kontakt — otwarcie */

.contact-page-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 90px;
    padding-block: 32px 66px;
}

.contact-page-eyebrow {
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: .035em;
}

.contact-page-heading h1 {
    margin-bottom: 27px;
    font-family: var(--editorial-font);
    font-size: 59px;
    font-weight: 400;
    line-height: 1.17;
    letter-spacing: -.035em;
}

.contact-page-heading h1 em {
    color: var(--blue);
}

.contact-page-intro {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.contact-page-note {
    padding: 35px 38px;
    border-radius: 28px;
    background: var(--paper);
}

.contact-page-note > p:not(.contact-page-eyebrow) {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.contact-page-note .contact-page-eyebrow {
    font-size: 12px;
}

/* Kontakt — dane na niebieskim tle */

.contact-details-section .home-contact-intro {
    margin-bottom: 28px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

.contact-details-label {
    margin-bottom: 12px;
    color: var(--on-blue);
    font-size: 12px;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.contact-details .home-contact-phone {
    margin-bottom: 10px;
    font-size: 38px;
}

.contact-details-email {
    display: block;
    width: fit-content;
    max-width: 100%;
    border-bottom: 1px solid var(--on-blue);
    color: #fff;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.contact-details .home-contact-hours {
    margin-top: 10px;
}

.contact-details address {
    margin-bottom: 12px;
    color: var(--on-blue);
    font-size: 16px;
    font-style: normal;
    line-height: 1.8;
}

.contact-details-map {
    display: inline-block;
    border-bottom: 1px solid var(--on-blue);
    color: #fff;
    font-size: 14px;
}

.contact-details-email:hover,
.contact-details-map:hover {
    border-bottom-color: #fff;
}

/* Kontakt — dojazd i przygotowanie do wizyty */

.contact-page-visit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 100px;
    padding-block: 100px;
}

.contact-page-visit h2 {
    margin-bottom: 24px;
    font-family: var(--editorial-font);
    font-size: 43px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.contact-page-visit-address {
    margin-bottom: 24px;
    padding-left: 18px;
    border-left: 3px solid var(--blue);
    color: var(--ink);
    font-size: 22px;
    font-weight: 500;
    font-style: normal;
    line-height: 1.65;
}

.contact-page-map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.contact-page-map-button:hover {
    background: #06295b;
}

.contact-page-visit-note {
    padding: 35px 38px;
    border-radius: 28px;
    background: var(--paper);
}

.contact-page-visit-note h3 {
    margin-bottom: 17px;
    font-family: var(--editorial-font);
    font-size: 31px;
    font-weight: 400;
    line-height: 1.3;
}

.contact-page-visit-note p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
}

@media (max-width: 960px) {
    .contact-page-heading {
        gap: 35px;
        padding-bottom: 50px;
    }

    .contact-page-heading h1 {
        font-size: 43px;
    }

    .contact-page-note,
    .contact-page-visit-note {
        padding: 27px;
    }

    .contact-page-visit {
        gap: 35px;
        padding-block: 75px;
    }

    .contact-details .home-contact-phone {
        font-size: 34px;
    }
}

@media (max-width: 680px) {
    .contact-page-heading {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-block: 25px 42px;
    }

    .contact-page-heading h1 {
        font-size: 41px;
        line-height: 1.2;
    }

    .contact-page-intro {
        font-size: 16px;
    }

    .contact-page-note,
    .contact-page-visit-note {
        border-radius: 23px;
    }

    .contact-details {
        gap: 28px;
    }

    .contact-details .home-contact-phone {
        font-size: 38px;
    }

    .contact-page-visit {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-block: 65px;
    }

    .contact-page-visit h2 {
        font-size: 38px;
    }
}
/* Mała mapa na stronie Kontakt */

.contact-map-preview {
    width: 100%;
    max-width: 520px;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
}

.contact-map-preview iframe {
    display: block;
    width: 100%;
    height: 240px;
    border: 0;
}

.contact-map-open {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    color: var(--blue);
    font-size: 13px;
    line-height: 1.6;
}

.contact-map-open:hover {
    background: #edf2f7;
}

@media (max-width: 680px) {
    .contact-map-preview {
        border-radius: 20px;
    }

    .contact-map-preview iframe {
        height: 220px;
    }
}

/* Ostatni akapit w informacjach przed wizytą */

.contact-page-visit-note > :last-child {
    margin-bottom: 0;
}

/* Logo — wersja na jasne i ciemne tło. */
.brand--with-logo {
    display: block;
    width: 224px;
    max-width: calc(100% - 100px);
    min-width: 0;
    flex-shrink: 1;
}

.brand--with-logo .brand-copy {
    display: block;
}

.site-logo {
    display: block;
    width: 100%;
    max-width: 100%;
}

.site-logo--header {
    height: 52px;
}

.site-logo--footer {
    width: 210px;
    height: 44px;
}

.site-logo .site-logo-image {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.site-logo .site-logo-image--on-light {
    display: block;
}

.site-logo .site-logo-image--on-dark {
    display: none;
}

html[data-theme="dark"] .site-logo .site-logo-image--on-light {
    display: none;
}

html[data-theme="dark"] .site-logo .site-logo-image--on-dark {
    display: block;
}

@media (max-width: 680px) {
    .brand--with-logo {
        width: 180px;
    }

    .site-logo--header {
        height: 42px;
    }
}

/* Przełącznik i paleta trybu ciemnego. */
:root {
    color-scheme: light;
    --surface: #fff;
    --surface-hover: #f2f5f8;
    --button-bg: #12407e;
    --button-hover: #082d60;
    --button-text: #fff;
    --contact-bg: #12407e;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --blue: #91bdff;
    --ink: #e9eff7;
    --muted: #b6c4d5;
    --line: #30425a;
    --paper: #16263b;
    --accent: #adc6e9;
    --surface: #0d1828;
    --surface-hover: #1b2e46;
    --button-bg: #91bdff;
    --button-hover: #b9d4ff;
    --button-text: #112239;
}

body,
.site-header,
.site-footer,
.menu-toggle {
    background: var(--surface);
}

.header-inner > .site-nav {
    margin-left: auto;
}

.header-inner > .brand {
    min-width: 0;
    flex-shrink: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--blue);
    background: var(--surface);
    cursor: pointer;
}

.theme-toggle[hidden] {
    display: none;
}

.theme-toggle:hover {
    border-color: var(--blue);
    background: var(--surface-hover);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle .theme-toggle-sun,
html[data-theme="dark"] .theme-toggle .theme-toggle-moon {
    display: none;
}

html[data-theme="dark"] .theme-toggle .theme-toggle-sun {
    display: block;
}

.home-actions a:first-child,
.skip-link,
.contact-page-map-button {
    color: var(--button-text);
    background: var(--button-bg);
}

.home-actions a:first-child:hover {
    background: var(--button-hover);
}

/* Kontakt zachowuje nasycony granat i białe napisy w obu trybach. */
.home-contact {
    background: var(--contact-bg);
}

.home-contact-button {
    color: #12407e;
}

html[data-theme="dark"] .site-header {
    border-bottom-color: var(--line);
}

html[data-theme="dark"] .header-catalog:hover,
html[data-theme="dark"] .contact-map-open:hover {
    background: var(--surface-hover);
}

html[data-theme="dark"] .textlink:hover {
    color: var(--button-hover);
}

html[data-theme="dark"] .contact-page-map-button:hover {
    background: var(--button-hover);
}

html[data-theme="dark"] .floating-swatch,
html[data-theme="dark"] .material-detail,
html[data-theme="dark"] .hero-photo,
html[data-theme="dark"] .topic-photo,
html[data-theme="dark"] .home-faq-plus {
    background: var(--paper);
}

html[data-theme="dark"] .floating-swatch,
html[data-theme="dark"] .material-detail {
    box-shadow: 0 14px 35px #00000040;
}

html[data-theme="dark"] .home-faq-list details,
html[data-theme="dark"] .guide-content .guide-chapter,
html[data-theme="dark"] .textlink,
html[data-theme="dark"] .home-actions a:last-child,
html[data-theme="dark"] .card-read,
html[data-theme="dark"] .guide-hub-card-read,
html[data-theme="dark"] .guide-all {
    border-bottom-color: var(--line);
}

html[data-theme="dark"] .guide-byline,
html[data-theme="dark"] .hero-footnote span + span::before,
html[data-theme="dark"] .guide-hub-breadcrumbs > span[aria-hidden] {
    color: var(--muted);
}

html[data-theme="dark"] ::selection {
    color: var(--ink);
    background: #304d74;
}

/* Zewnętrzna mapa zachowuje kolory i czytelność oznaczeń. */
.contact-map-preview iframe {
    color-scheme: light;
}

@media (max-width: 960px) {
    .header-inner > .site-nav {
        order: 3;
        margin-left: 0;
    }

    .header-actions {
        margin-left: auto;
    }

    .has-site-menu .site-nav {
        background: var(--surface);
    }

    html[data-theme="dark"].has-site-menu .site-nav {
        box-shadow: 0 15px 25px #00000040;
    }
}

@media (max-width: 680px) {
    .header-inner {
        gap: 8px;
    }

    .header-actions {
        gap: 8px;
    }

    .brand--with-logo {
        max-width: calc(100% - 150px);
    }
}

@media (max-width: 380px) {
    .menu-toggle {
        padding-inline: 10px;
        gap: 6px;
    }

    .brand-tagline {
        font-size: 8px;
        letter-spacing: .02em;
    }
}

/* Przełącznik PL / EN: kolory korzystają z aktywnego trybu witryny. */
.mobile-language-switcher {
    display: none;
}

.language-switcher {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 24px;
}

.language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 36px;
    padding: 5px 7px;
    border-radius: 20px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.language-switcher a:hover,
.language-switcher a[aria-current="true"] {
    background: var(--paper);
    color: var(--blue);
}

.language-switcher a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.language-switcher .language-flag {
    display: block;
    flex-shrink: 0;
    width: 28px;
    height: 18px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px #00000026;
}

@media (max-width: 960px) {
    .header-inner > .language-switcher {
        display: none;
    }

    .mobile-language-switcher {
        display: flex;
        padding-top: 16px;
        border-top: 1px solid var(--line);
    }

    .mobile-language-switcher .language-switcher a {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Strona 404: ta sama typografia i paleta co na pozostałych stronach. */
.error-page {
    padding-block: clamp(40px, 5vw, 76px);
}

.error-page-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(36px, 6vw, 88px);
}

.error-page-copy {
    min-width: 0;
    padding-block: 10px;
}

.error-page-eyebrow {
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.error-page-title {
    margin-bottom: 26px;
    font-size: clamp(64px, 6.6vw, 96px);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.error-page-title em {
    color: var(--blue);
    font-family: var(--editorial-font);
    font-size: .64em;
    font-weight: 400;
    line-height: 1.3;
}

.error-page-intro {
    max-width: 490px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.error-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 26px;
}

.error-page-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    max-width: 100%;
    padding: 12px 22px;
    border-radius: 5px;
    color: var(--button-text);
    background: var(--button-bg);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.error-page-home:hover {
    background: var(--button-hover);
}

.error-page-hub {
    padding-block: 7px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.error-page-hub:hover,
.error-page-help a:hover {
    color: var(--blue);
    border-bottom-color: currentColor;
}

.error-page-help {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.error-page-help p {
    margin-bottom: 5px;
    color: var(--muted);
}

.error-page-help a {
    padding-bottom: 3px;
    border-bottom: 1px solid var(--line);
    color: var(--blue);
    font-weight: 600;
}

.error-page-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 460px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 75px 22px 75px 22px;
    color: #fff;
    background-color: #12407e;
    background-image: repeating-linear-gradient(35deg, transparent 0 5px, #ffffff06 5px 6px),
        linear-gradient(145deg, #25568d, #0a2c5b);
}

.error-page-art::before {
    content: "";
    position: absolute;
    inset: 20px;
    z-index: -1;
    border: 1px dashed #ffffff4d;
    border-radius: 57px 8px 57px 8px;
}

.error-page-number {
    position: relative;
    z-index: 1;
    padding-right: .04em;
    font-family: var(--heading-font);
    font-size: clamp(220px, 25vw, 360px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.04em;
}

.error-page-stitch {
    position: absolute;
    width: 120%;
    height: 200px;
    z-index: -1;
    border-top: 1px solid #ffffff33;
    border-bottom: 1px dashed #ffffff33;
    border-radius: 50%;
    transform: rotate(-24deg);
}

.error-page-stitch-one {
    top: -110px;
    left: -110px;
}

.error-page-stitch-two {
    right: -110px;
    bottom: -110px;
}

@media (max-width: 960px) {
    .error-page-inner {
        gap: 32px;
    }

    .error-page-title {
        font-size: 72px;
    }

    .error-page-art {
        min-height: 410px;
    }

    .error-page-number {
        font-size: clamp(180px, 28vw, 260px);
    }
}

@media (max-width: 680px) {
    .error-page-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .error-page-copy {
        padding-block: 0;
    }

    .error-page-title {
        font-size: clamp(54px, 12vw, 72px);
    }

    .error-page-intro {
        font-size: 16px;
    }

    .error-page-actions {
        gap: 18px 24px;
    }

    .error-page-help {
        margin-top: 28px;
    }

    .error-page-art {
        min-height: 220px;
        border-radius: 42px 16px 42px 16px;
    }

    .error-page-art::before {
        inset: 14px;
        border-radius: 30px 5px 30px 5px;
    }

    .error-page-number {
        font-size: 190px;
    }
}
