body {
    margin: 0;
    font-family: Verdana, Arial, sans-serif;
    color: #222;
    background: #f8f8f8;
    line-height: 1.6;
}

/* HERO */
.hero {
    height: 100vh;
    background: url('https://kpmk.blob.core.windows.net/pictures/background6.jpg') center/cover no-repeat;
    background-position-x: -164vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    text-align: center;
    background: linear-gradient( rgba(255, 250, 240, 0.5) 1%, rgba(255, 250, 240, 0.9) 13%, rgba(255, 250, 240, 1) 47%, rgba(255, 250, 240, 0.4) 70%);
    padding-top: 40px;
    padding-bottom: 40px;
    color: #fff;
}


.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.7);
}

.cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #4CAF50;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

    .cta-btn:hover {
        background: #3b9c41;
    }

/* LOGO */
:root {
    --bg: rgba(255, 250, 240, 0.1); /* jasne tło */
    --text: rgba(20,20,20,0.9); /* ciemny grafit */
}



.logo-wrap {
    font-family: "Cormorant Garamond", Times, serif;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--text);
    width: 100%;
    max-width: 370px; /* zamiast sztywnego 370px */
    margin: auto;
}

.logo {
    text-align: center;
    display: inline-block;
    /* kontroluj skalowanie loga tu: */
    --scale: 0.75;
    transform: scale(var(--scale));
}

    /* duże inicjały */
    .logo .monogram {
        font-size: 115px; /* rozmiar główny - zmniejsz/powiększaj */
        line-height: 0.9;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        margin: 0 0 0.6rem 0;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* cienka pozioma kreska (tak jak na obrazku) */
    .logo .divider {
        height: 5px; /* grubość linii */
        background: linear-gradient(90deg, var(--text), var(--text));
        width: 326px;
        max-width: 520px;
        margin: 0 auto;
        opacity: 0.95;
        box-shadow: none;
        margin-bottom: 0rem;
        border-radius: 1px;
    }

    /* nazwisko poniżej */
    .logo .name {
        display: block;
        font-size: 39px;
        letter-spacing: 0px; /* większe odstepy między literami */
        text-transform: uppercase;
        font-weight: 600;
        margin-top: 0rem;
    }

/* responsywność - skaluj proporcjonalnie na mniejszych ekranach */
/*@media (max-width:900px) {
    .logo .monogram {
        font-size: 6.5rem;
    }

    .logo .divider {
        width: 74%;
    }

    .logo .name {
        font-size: 1.05rem;
    }
}

@media (max-width:480px) {
    .logo .monogram {
        font-size: 4.2rem;
    }

    .logo .divider {
        width: 84%;
    }

    .logo .name {
        font-size: 0.95rem;
        letter-spacing: 0.2em;
    }
}*/


/* SPECJALIZACJE */
.spec-section {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
}

.spec-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.spec-card {
    background: #f1f1f1;
    padding: 24px;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

    .spec-card:hover {
        transform: translateY(-5px);
    }

.spec-modal-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #e0e0e0;
}

/* O MNIE */
.about-section {
    padding: 60px 20px;
    background: #fafafa;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

    .about-text h2 {
        margin-bottom: 20px;
    }

.about-img {
    flex: 1;
    display: none;
}

    .about-img img {
        width: 100%;
        border-radius: 12px;
    }

/* KONTAKT */
.contact-section {
    padding: 60px 20px;
    text-align: center;
    background: #fff;
}

    .contact-section p {
        margin-bottom: 20px;
    }

/* STOPKA */
footer {
    background: #111;
    color: #ccc;
    padding: 20px;
    text-align: center;
}

.footer-contact {
    margin-top: 10px;
    display: grid;
    gap: 12px;
}

.footer-addresses {
    display: grid;
    grid-template-columns: 1fr; /* always stack addresses vertically */
    gap: 10px;
    width: 100%;
}

.footer-address {
    width: 100%;
}

.addr-label {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

/* default link layout (desktop / tablet): two stacked lines */
.addr-link {
    color: #ccc;
    text-decoration: none;
    display: block;
}

.addr-line1,
.addr-line2 {
    display: block;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.2;
}

/* small-screen (mobile) — street+number on first row, postal+city left and icon right on second row */
@media (max-width: 599px) {
    .addr-link {
        display: grid;
        grid-template-columns: 1fr 28px;
        grid-template-rows: auto auto;
        column-gap: 8px;
        align-items: center;
    }

    .addr-line1 { /* first row spans full width */
        grid-column: 1 / 3;
    }

    .addr-line2 { /* second row, left column */
        grid-column: 1 / 2;
    }

    .pin-icon { /* second row, right column */
        grid-column: 2 / 3;
        justify-self: end;
        width: 20px;
        height: 20px;
        color: #ccc;
        fill: currentColor;
    }
}

/* hover color consistent with other footer icons */
.footer-addresses a:hover,
.footer-addresses a:focus {
    color: #4CAF50;
}

.hero-overlay img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.bg-switch-btn {
    position: absolute;
    top: 24px;
    right: 32px;
    z-index: 20;
    padding: 10px 18px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.85;
    transition: background 0.2s;
    text-decoration: none;
}

    .bg-switch-btn:hover {
        background: #4CAF50;
        color: #fff;
        opacity: 1;
    }

.spec-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.0);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: background 0.3s, opacity 0.3s;
}

    .spec-modal.show {
        display: flex;
        background: rgba(0,0,0,0.6);
        opacity: 1;
    }

.spec-modal-content {
    background: #fff;
    color: #222;
    padding: 32px 40px;
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    /* efekt szkła / elegancja */
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    /* animacja wejścia */
    position: relative;
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    line-height: 1.7;
}


.spec-modal-close,
.about-modal-close {
    position: relative;
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
    top: -15px;
}

    .spec-modal-close:hover,
    .about-modal-close:hover {
        color: #4CAF50; /* akcent kancelarii */
    }


.spec-modal-content h2,
.spec-modal-header-title {
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    color: #2b2b2b;
    margin-left: 15px;
    margin-right: 15px;
}

.spec-modal-text,
.spec-modal-content p {
    font-size: 1.05rem;
    margin-bottom: 16px;
    color: #333;
}

.spec-modal-content::-webkit-scrollbar {
    width: 8px;
}

.spec-modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 6px;
}

    .spec-modal-content::-webkit-scrollbar-thumb:hover {
        background: #aaa;
    }

.spec-modal.show .spec-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.contact-icons {
    margin-top: 18px;
    display: flex;
    gap: 24px;
    justify-content: center;
}

.contact-icons-xl {
    display: none;
    margin-top: 18px;
    gap: 24px;
    justify-content: center;
}

.icon-btn {
    font-size: 2.2rem;
    background: #fff;
    color: #222;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, box-shadow 0.2s;
    border: none;
    outline: none;
}

    .icon-btn:hover, .icon-btn:focus {
        background: #4CAF50;
        color: #fff;
        box-shadow: 0 4px 16px rgba(76,175,80,0.15);
    }

.footer-icons {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 8px;
    justify-content: center;
}

.footer-icon-btn {
    font-size: 1.1rem;
    background: #fff;
    color: #222;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    transition: background 0.2s, box-shadow 0.2s;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
}

    .footer-icon-btn:hover, .footer-icon-btn:focus {
        background: #4CAF50;
        color: #fff;
        box-shadow: 0 2px 8px rgba(76,175,80,0.13);
    }

.footer-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-value {
    font-weight: 500;
    margin-right: 4px;
}

.footer-addresses {
    display: grid;
    grid-template-columns: 1fr; /* always stack addresses vertically */
    gap: 10px;
    width: 100%;
}

.footer-address {
    width: 100%;
}

.addr-label {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

/* default link layout (desktop / tablet): two stacked lines */
.addr-link {
    color: #ccc;
    text-decoration: none;
    display: block;
}

.addr-line1,
.addr-line2 {
    display: block;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.2;
}

/* small-screen (mobile) — street+number on first row, postal+city left and icon right on second row */
@media (max-width: 599px) {
    .addr-link {
        display: grid;
        grid-template-columns: 1fr 28px;
        grid-template-rows: auto auto;
        column-gap: 8px;
        align-items: center;
    }

    .addr-line1 { /* first row spans full width */
        grid-column: 1 / 3;
    }

    .addr-line2 { /* second row, left column */
        grid-column: 1 / 2;
    }

    .pin-icon { /* second row, right column */
        grid-column: 2 / 3;
        justify-self: end;
        width: 20px;
        height: 20px;
        color: #ccc;
        fill: currentColor;
    }
}

/* hover color consistent with other footer icons */
.footer-addresses a:hover,
.footer-addresses a:focus {
    color: #4CAF50;
}

.hero-overlay img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.bg-switch-btn {
    position: absolute;
    top: 24px;
    right: 32px;
    z-index: 20;
    padding: 10px 18px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.85;
    transition: background 0.2s;
}

    .bg-switch-btn:hover {
        background: #4CAF50;
        color: #fff;
        opacity: 1;
    }

.spec-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.0);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: background 0.3s, opacity 0.3s;
}

    .spec-modal.show {
        display: flex;
        background: rgba(0,0,0,0.6);
        opacity: 1;
    }

.spec-modal-content {
    background: #fff;
    color: #222;
    padding: 32px 40px;
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    /* efekt szkła / elegancja */
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    /* animacja wejścia */
    position: relative;
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    line-height: 1.7;
}


.spec-modal-close,
.about-modal-close {
    position: relative;
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
    top: -15px;
}

    .spec-modal-close:hover,
    .about-modal-close:hover {
        color: #4CAF50; /* akcent kancelarii */
    }


.spec-modal-content h2,
.spec-modal-header-title {
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    color: #2b2b2b;
    margin-left: 15px;
    margin-right: 15px;
}

.spec-modal-text,
.spec-modal-content p {
    font-size: 1.05rem;
    margin-bottom: 16px;
    color: #333;
}

.spec-modal-content::-webkit-scrollbar {
    width: 8px;
}

.spec-modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 6px;
}

    .spec-modal-content::-webkit-scrollbar-thumb:hover {
        background: #aaa;
    }

.spec-modal.show .spec-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.contact-icons {
    margin-top: 18px;
    display: flex;
    gap: 24px;
    justify-content: center;
}

.contact-icons-xl {
    display: none;
    margin-top: 18px;
    gap: 24px;
    justify-content: center;
}

.icon-btn {
    font-size: 2.2rem;
    background: #fff;
    color: #222;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, box-shadow 0.2s;
    border: none;
    outline: none;
}

    .icon-btn:hover, .icon-btn:focus {
        background: #4CAF50;
        color: #fff;
        box-shadow: 0 4px 16px rgba(76,175,80,0.15);
    }

.footer-icons {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 8px;
    justify-content: center;
}

.footer-icon-btn {
    font-size: 1.1rem;
    background: #fff;
    color: #222;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    transition: background 0.2s, box-shadow 0.2s;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
}

    .footer-icon-btn:hover, .footer-icon-btn:focus {
        background: #4CAF50;
        color: #fff;
        box-shadow: 0 2px 8px rgba(76,175,80,0.13);
    }

.footer-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-value {
    font-weight: 500;
    margin-right: 4px;
}

.footer-addresses {
    display: grid;
    grid-template-columns: 1fr; /* always stack addresses vertically */
    gap: 10px;
    width: 100%;
}

.footer-address {
    width: 100%;
}

.addr-label {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

/* default link layout (desktop / tablet): two stacked lines */
.addr-link {
    color: #ccc;
    text-decoration: none;
    display: block;
}

.addr-line1,
.addr-line2 {
    display: block;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.2;
}

/* small-screen (mobile) — street+number on first row, postal+city left and icon right on second row */
@media (max-width: 599px) {
    .addr-link {
        display: grid;
        grid-template-columns: 1fr 28px;
        grid-template-rows: auto auto;
        column-gap: 8px;
        align-items: center;
    }

    .addr-line1 { /* first row spans full width */
        grid-column: 1 / 3;
    }

    .addr-line2 { /* second row, left column */
        grid-column: 1 / 2;
    }

    .pin-icon { /* second row, right column */
        grid-column: 2 / 3;
        justify-self: end;
        width: 20px;
        height: 20px;
        color: #ccc;
        fill: currentColor;
    }
}

/* hover color consistent with other footer icons */
.footer-addresses a:hover,
.footer-addresses a:focus {
    color: #4CAF50;
}

.cormorant-font {
    font-family: "Cormorant Garamond", Times, serif;
}

.hero-text {
    padding-left: 0px;
    padding-right: 0px;
}

.hero-parag1 {
    max-width: 380px;
    display: flex;
    margin: auto;
}

.hero-parag2 {
    max-width: 294px;
    display: flex;
    margin: auto;
}

@media (max-width: 600px) {
    .spec-modal-content {
        padding: 18px 8px;
    }
}


@media (max-width: 360px) {
    .logo .monogram { font-size: 90px; }
    .logo .name { font-size: 30px; }
    .logo .divider { width: 256px; }
}
@media (min-width: 420px) {
    .hero {
        background-position-x: -490px;
    }
}

@media (min-width: 600px) {
    .hero {
        background-position: right;
    }
    .addr-link {
        display: flex;
        justify-content: center;
    }
    .pin-icon {
        margin-left: 8px;
    }

    .hero-text {
        min-width: 600px;
        padding-left: 0px;
        padding-right: 0px;
    }
    .hero-parag1 {
        max-width: max-content;
    }
    .hero-parag2 {
        max-width: max-content;
    }

    .hero-overlay {
        max-width: 600px;
        border-radius: 12px;
    }
    
    .logo {
        --scale: 1;
    }
}

@media (min-width: 800px) {
    .spec-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-icons {
        display: none;
    }

    .contact-icons-xl {
        display: flex;
    }

    .about-img {
        display: flex;
    }

    

}
