:root {
    --navy: #0b4f46;
    --navy2: #12665a;
    --gold: #b08a54;
    --gold2: #d2b88a;
    --cream: #f4f1ea;
    --paper: #ffffff;
    --text: #28332f;
    --muted: #68736f;
    --line: #ddd7cc;
    --shadow: 0 20px 50px rgba(7, 59, 53, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--paper);
    line-height: 1.65;
}

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

a:hover {
    text-decoration: none;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}

.skip-link {
    position: fixed;
    left: 12px;
    top: -60px;
    z-index: 9999;
    background: #ffffff;
    padding: 10px;
}

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

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 25px rgba(7, 59, 53, 0.05);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    padding: 6px;
    background: #ffffff;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.12;
}

.brand-copy strong,
.brand-copy small {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--navy);
    font-weight: 700;
}

.brand-copy strong {
    font-size: 21px;
}

.brand-copy small {
    font-size: 18px;
    letter-spacing: 0;
}

.main-nav {
    display: flex;
    gap: 29px;
    align-items: center;
}

.main-nav a {
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    padding: 33px 0 28px;
    border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold);
    border-color: var(--gold);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    padding: 9px 13px;
}

/* HERO */

.hero {
    background:
            linear-gradient(
                    110deg,
                    rgba(7, 59, 53, 0.98),
                    rgba(11, 79, 70, 0.92)
            ),
            radial-gradient(
                    circle at 80% 20%,
                    rgba(210, 184, 138, 0.22),
                    transparent 36%
            );
    color: #ffffff;
    padding: 105px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.75fr;
    gap: 75px;
    align-items: center;
}

.hero h1,
.page-hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.12;
    margin: 12px 0 24px;
}

.hero h1 {
    font-size: 58px;
    max-width: 780px;
}

.hero p {
    font-size: 19px;
    color: #e5e8ed;
    max-width: 700px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    font-weight: 800;
    color: var(--gold);
}

.eyebrow.light {
    color: var(--gold2);
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 34px;
}

/* BUTTONS */

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 13px 22px;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.button:hover {
    background: #8d6a3d;
    border-color: #8d6a3d;
}

.button-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.65);
}

.button-outline:hover {
    background: #ffffff;
    color: var(--navy);
    border-color: #ffffff;
}

.button-light {
    background: #ffffff;
    color: var(--navy);
    border-color: #ffffff;
}

.button.full {
    width: 100%;
    text-align: center;
}

/* GODZINY / KARTA KANCELARII */

.office-card {
    background: #ffffff;
    color: var(--text);
    padding: 36px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--gold);
}

.office-card-title {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 14px;
}

.office-card strong {
    font-family: Georgia, serif;
    color: var(--navy);
    font-size: 25px;
}

.office-card p {
    color: var(--muted);
    margin: 3px 0;
}

.office-card hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 24px 0;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.office-card small {
    display: block;
    color: var(--muted);
    margin-top: 18px;
}

/* SEKCJE */

.section {
    padding: 88px 0;
}

.section-muted {
    background: var(--cream);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.section h2,
.cta-section h2 {
    font-family: Georgia, serif;
    color: var(--navy);
    font-weight: 400;
    font-size: 39px;
    line-height: 1.2;
    margin: 10px 0 16px;
}

.section-heading p {
    color: var(--muted);
    font-size: 18px;
}

/* USŁUGI */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    border: 1px solid var(--line);
    padding: 31px;
    min-height: 270px;
    background: #ffffff;
    transition: 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--gold2);
}

.service-card > span,
.fee-list article > span {
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 15px;
}

.service-card h3 {
    font-family: Georgia, serif;
    color: var(--navy);
    font-size: 24px;
    font-weight: 400;
    margin: 25px 0 12px;
}

.service-card p {
    margin: 0;
    color: var(--muted);
}

/* PROCES */

.split {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.process-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: item;
}

.process-list li {
    position: relative;
    padding: 0 0 28px 60px;
    border-bottom: 1px solid #d7cebf;
    margin-bottom: 28px;
}

.process-list li::before {
    counter-increment: item;
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: bold;
}

.process-list b,
.process-list span {
    display: block;
}

.process-list b {
    color: var(--navy);
    font-size: 18px;
}

.process-list span {
    color: var(--muted);
}

/* CTA */

.cta-section {
    padding: 0 0 88px;
}

.cta-box {
    background: var(--navy);
    color: #ffffff;
    padding: 48px 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta-box h2 {
    color: #ffffff;
    margin-bottom: 0;
    max-width: 680px;
}

/* NAGŁÓWEK PODSTRONY */

.page-hero {
    background: var(--cream);
    padding: 75px 0;
    border-bottom: 1px solid var(--line);
}

.page-hero.compact {
    padding: 55px 0;
}

.page-hero h1 {
    font-size: 50px;
    color: var(--navy);
}

.page-hero p {
    max-width: 760px;
    font-size: 18px;
    color: var(--muted);
}

/* KONTAKT */

.contact-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 55px;
}

.contact-details {
    display: grid;
    gap: 17px;
}

.info-card {
    border: 1px solid var(--line);
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.info-card > span {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    color: var(--gold);
    font-weight: 800;
}

.info-card strong {
    color: var(--navy);
    font-size: 18px;
    margin: 6px 0;
}

.info-card a {
    color: var(--gold);
    font-weight: 700;
}

.info-card small {
    color: var(--muted);
}

/* FORMULARZ */

.contact-form {
    background: var(--cream);
    padding: 38px;
}

.contact-form h2 {
    margin-top: 0;
}

.contact-form > label,
.form-row label {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
    gap: 7px;
    margin-bottom: 17px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid #cfc5b5;
    background: #ffffff;
    padding: 13px 14px;
    font: inherit;
    color: var(--text);
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(176, 138, 84, 0.14);
}

.checkbox {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    font-weight: 400 !important;
}

.checkbox input {
    width: auto;
    margin-top: 5px;
}

.checkbox a {
    color: var(--gold);
    font-weight: 700;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.form-message {
    padding: 14px;
    margin-bottom: 18px;
    font-weight: 700;
}

.form-message.success {
    background: #e1f4e7;
    color: #24673a;
}

.form-message.error {
    background: #fbe3e3;
    color: #8e2f2f;
}

/* OPŁATY */

.narrow {
    max-width: 900px;
}

.notice {
    border-left: 4px solid var(--gold);
    background: var(--cream);
    padding: 25px 28px;
    margin-bottom: 48px;
}

.notice strong {
    color: var(--navy);
    font-size: 18px;
}

.notice p {
    margin: 4px 0 0;
}

.fee-list {
    display: grid;
    gap: 0;
    padding: 18px 34px;

    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(221, 215, 204, 0.9);
    box-shadow: 0 14px 35px rgba(7, 59, 53, 0.1);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.fee-list article {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 25px;
    padding: 28px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(221, 215, 204, 0.95);
    box-shadow: none;
}

.fee-list article:last-child {
    border-bottom: 0;
}

.fee-list h2 {
    font-size: 28px;
    margin: 0 0 7px;
}

.fee-list p {
    color: #46534f;
    margin: 0;
}

body.subpage .fee-list h2 {
    color: var(--navy);
}

body.subpage .fee-list article > span {
    color: var(--gold);
    font-weight: 700;
}

.legal-note {
    margin-top: 48px;
    border: 1px solid var(--line);
    padding: 30px;
}

.legal-note h2 {
    font-size: 28px;
}

/* MAPA */

.map-layout {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr;
    gap: 35px;
}

.map-card {
    min-height: 550px;
    background: var(--cream);
    position: relative;
    border: 1px solid var(--line);
}

.map-card iframe {
    border: 0;
    width: 100%;
    height: 550px;
    display: block;
}

.map-consent {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 35px;
}

.map-icon {
    font-size: 48px;
    color: var(--gold);
}

.map-consent h2 {
    font-size: 32px;
}

.route-card {
    border: 1px solid var(--line);
    padding: 34px;
    align-self: start;
}

.route-card h2 {
    font-size: 31px;
}

.route-info {
    border-top: 1px solid var(--line);
    padding-top: 22px;
    margin-top: 25px;
}

.route-info h3 {
    font-family: Georgia, serif;
    color: var(--navy);
    font-size: 21px;
    font-weight: 400;
    margin: 0 0 7px;
}

.route-info p {
    color: var(--muted);
}

/* POLITYKA PRYWATNOŚCI */

.policy-content {
    max-width: 850px;
}

.policy-content h2 {
    font-size: 28px;
    margin-top: 42px;
}

/* STOPKA */

.site-footer {
    background: #073b35;
    color: #dce7e3;
    padding: 48px 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 45px;
}

.site-footer strong {
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 19px;
}

.site-footer p {
    margin: 6px 0;
}

.site-footer a {
    color: #d7c19a;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-links button {
    border: 0;
    background: none;
    color: #d7c19a;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 35px;
    padding-top: 20px;
    font-size: 13px;
    color: #9aaba5;
}

/* TŁO PODSTRON */

body.subpage {
    background: var(--cream);
}

body.subpage main {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: transparent;
}

body.subpage main::before {
    content: "";
    position: absolute;
    inset: -30px;
    z-index: -2;
    background-image: url("./images/subpage-background.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.06);
}

body.subpage .page-hero {
    position: relative;
    background: rgba(244, 241, 234, 0.82);
    border-bottom: 1px solid rgba(221, 215, 204, 0.85);
}

body.subpage .section {
    position: relative;
    background: transparent;
}

body.subpage .cta-section {
    position: relative;
    background: transparent;
}

body.subpage .info-card,
body.subpage .contact-form,
body.subpage .notice,
body.subpage .legal-note,
body.subpage .map-card,
body.subpage .route-card,
body.subpage .policy-content {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 40px rgba(7, 59, 53, 0.1);
}

body.subpage .policy-content {
    padding: 42px 48px;
    border: 1px solid rgba(221, 215, 204, 0.9);
}

/* RESPONSYWNOŚĆ */

@media (max-width: 900px) {
    .hero-grid,
    .split,
    .contact-grid,
    .map-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 75px 0;
    }

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

    .office-card {
        max-width: 550px;
    }

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

    .main-nav {
        display: none;
        position: absolute;
        top: 88px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--line);
        padding: 10px 20px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 13px 0;
        border-bottom: 1px solid var(--line);
    }

    .nav-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-box {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    body.subpage main::before {
        filter: blur(4px);
        transform: scale(1.1);
    }

    body.subpage .policy-content {
        padding: 28px 22px;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .header-inner {
        min-height: 76px;
    }

    .brand-mark {
        width: 50px;
        height: 50px;
        padding: 5px;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .brand-copy small {
        max-width: none;
        font-size: 16px;
    }

    .main-nav {
        top: 76px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 17px;
    }

    .service-grid,
    .form-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 65px 0;
    }

    .section h2,
    .cta-section h2 {
        font-size: 32px;
    }

    .service-card {
        min-height: auto;
    }

    .contact-form {
        padding: 25px;
    }

    .cta-box {
        padding: 35px 27px;
    }

    .hours-row {
        flex-direction: column;
        gap: 0;
    }

    .fee-list {
        padding: 10px 20px;
    }

    .fee-list article {
        grid-template-columns: 36px 1fr;
        gap: 16px;
        padding: 24px 0;
    }

    .map-card,
    .map-card iframe {
        min-height: 420px;
        height: 420px;
    }
}