/* ===== Base ===== */


@font-face {
    font-family: Agrandir-Regular;
    font-weight: normal;
    font-display: swap; /* Zapobiega FOIT – tekst widoczny od razu z fontem zapasowym */
    src: url("/dodatki/fonts/Agrandir-Regular.otf") format("opentype");
}
@font-face {
    font-family: Agrandir-TextBold;
    font-weight: bold;
    font-display: swap;
    src: url("/dodatki/fonts/Agrandir-TextBold.otf") format("opentype");
}
@font-face {
    font-family: Agrandir-ThinItalic;
    font-style: italic;
    font-display: swap;
    src: url("/dodatki/fonts/Agrandir-ThinItalic.otf") format("opentype");
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Agrandir-Regular, serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.site-page {
    min-height: 100vh;
    overflow-x: clip;
}

.construction-page {
    background: linear-gradient(180deg, #f5fbff 0%, #eef6fb 100%);
    color: var(--dark-gray);
    font-family: Agrandir-Regular, serif;
}

.construction-shell {
    max-width: 1280px;
    margin: 0 auto;
    min-height: calc(100vh - 32px);
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding: 32px 20px 56px;
}

.construction-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    padding: 22px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(42, 92, 130, 0.1);
    box-shadow: 0 8px 20px rgba(42, 92, 130, 0.04);
}

.construction-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.construction-logo {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(42, 92, 130, 0.05);
    padding: 8px;
}

.construction-brand-name {
    display: block;
    color: var(--primary-color);
    font-size: clamp(1.3rem, 1.7vw, 1.9rem);
    letter-spacing: 0.08em;
    font-family: Agrandir-TextBold, serif;
    line-height: 1.1;
}

.construction-brand small {
    display: block;
    color: var(--medium-gray);
    font-size: 0.81rem;
    letter-spacing: 0.02em;
    margin-top: 4px;
}

.construction-main {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
}

.construction-card,
.construction-widget {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(42, 92, 130, 0.1);
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(42, 92, 130, 0.04);
}

.construction-card {
    width: 100%;
    max-width: 880px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 56px);
}

.construction-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 14px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: rgba(42, 92, 130, 0.08);
    color: var(--primary-color);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: Agrandir-TextBold, serif;
}

.construction-card h1 {
    margin: 0 0 16px;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.05;
    color: var(--primary-color);
    font-family: Agrandir-TextBold, serif;
}

.construction-card p {
    margin: 0;
    max-width: 680px;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--medium-gray);
}

.construction-widget {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    min-height: 100%;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
}

.construction-widget .calendly {
    width: 100%;
    min-height: 100%;
}

.construction-widget .calendly-placeholder {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    padding: 24px 18px;
    border: 2px dashed rgba(42, 92, 130, 0.2);
    border-radius: 16px;
    background: rgba(250, 253, 255, 0.92);
    text-align: center;
}

.construction-widget h2 {
    color: var(--primary-color);
    font-family: Agrandir-TextBold, serif;
    font-size: 1.45rem;
}

@media screen and (max-width: 900px) {
    .construction-shell {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 100%;
        padding: 20px 16px 40px;
    }

    .construction-sidebar {
        position: static;
        order: 2;
    }

    .construction-main {
        order: 1;
    }

    .construction-card {
        width: 100%;
        max-width: 100%;
    }

    .construction-widget .calendly-inline-widget {
        height: clamp(420px, 70vh, 640px) !important;
    }
}

@media screen and (max-width: 480px) {
    .construction-brand {
        width: 100%;
    }

    .construction-card h1 {
        font-size: clamp(2rem, 9vw, 2.7rem);
    }

    .construction-brand-name {
        letter-spacing: 0.04em;
    }
}

img,
video {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

/* FOOTER */
footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 20px 20px;
    margin-top: auto;
}



.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-2);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-2);
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent-2);
    width: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-social a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.footer-social a:hover {
    transform: translateY(-3px);
    color: var(--accent-2);
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.build-version {
    margin-top: 8px;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    opacity: 0.9;
    text-align: center;
    font-family: inherit;
}


/* ===== Navigation → nav.css ===== */

/* → nav.css: @media max-width:1439px, max-width:1079px, min-width:1440px */


/* ===== Main Layout ===== */
/* MAIN CONTENT */

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.sidebar,
.main-content,
.content,
body.public-page section,
.nav-container,
#menu,
.nav,
.nav-links,
.testimonial-carousel,
.testimonial-slides,
.testimonial,
.korepetytorzy-container,
.korepetytor,
.contact-form,
.footer-container,
.footer-section {
    min-width: 0;
    max-width: 100%;
}

.section-title,
#glowna p,
#glowna li,
.offer-price,
.offer-badge,
.offer-desc,
.offer-cta,
.footer-section p,
.footer-links a,
.footer-contact li,
.modal-content p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.public-page section {
    width: 100%;
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#glowna h3{
    position: relative;
}
#glowna h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-2);
}
.section-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

/* ===== Marka ===== */
#glowna div {
    line-height:1.8;
    font-size:1.15rem;
    text-align:center;
}
#glowna h3,
#glowna p {
    text-align: left;
}

#glowna a {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 1.15rem;
}
#glowna a:hover {
    font-weight: bold;
    color: var(--accent-2);
}



/* ===== Oferta ===== */

/* Klasy zastępujące style inline w oferta.html */
.offer-price {
    text-align: center;
}

.offer-badge {
    font-size: 0.9rem;
    color: var(--accent-1);
    text-align: center;
}

.offer-desc {
    font-size: 0.9rem;
    text-align: center;
}

.offer-cta {
    text-align: center;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.offer-cta-link {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.offer-cta-link:hover {
    color: var(--accent-2);
    font-weight: bold;
}

.korepetytor {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: var(--light-gray);
    transition: transform 0.3s;
}

.korepetytor:hover {
    transform: translateY(-5px);
}

.korepetytor img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--accent-2);
}


/* ===== Kontakt ===== */
.required:after {
    content: "*";
    color: red;
}

#kontakt input::placeholder,
#kontakt textarea::placeholder {
    font-size: 0.8rem;
}

/* Hidden anti-spam field */
.hp-trap {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.global-error {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    background: #fdeaea;
}

/* Modal potwierdzenia */
.confirmation-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.confirmation-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.confirmation-modal.active .modal-content {
    transform: translateY(0);
}

.modal-icon {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 20px;
}

.modal-content h3 {
    color: #2a5c82;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.ticket-id {
    background-color: #ffd166;
    color: #333;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    margin: 20px 0;
    display: inline-block;
    font-size: 1.1rem;
}

.modal-button {
    background: #2a5c82;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-button:hover {
    background: #3d8b9e;
}

/* Responsywnosc */
@media (max-width: 500px) {
    .modal-content {
        padding: 25px;
    }

    .modal-icon {
        font-size: 3rem;
    }

    .modal-content h3 {
        font-size: 1.5rem;
    }

    .modal-content p {
        font-size: 1rem;
    }
}

/* KONTAKT */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

input:focus,
textarea:focus,
.modal-button:focus,
button[type="submit"]:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 1px;
    border-color: var(--secondary-color);
}

.error input,
.error textarea {
    border-color: #e74c3c;
}

.error-msg {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}

button[type="submit"] {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background: var(--secondary-color);
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}


/* ===== Responsive ===== */

@media screen and (max-width: 1079px) {
    body.public-page {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        overflow-x: clip;
        font-size: 16px;
    }

    .sidebar {
        min-height: calc(100svh - 72px);
        width: 100%;
        display: flex;
        flex-direction: column;
        background: var(--backup-color);
        padding: 14px 10px 20px;
        top: 0;
        align-items: center;
        text-align: center;
        justify-content: flex-start;
        gap: 8px;
    }

    .sidebar .logo {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    .sidebar h1 {
        font-size: clamp(1.35rem, 5.6vw, 1.8rem);
        line-height: 1.2;
        margin: 0 0 8px;
    }

    .sidebar img {
        max-width: clamp(120px, 34vw, 160px);
        margin: 12px 0;
    }

    .sidebar .calendly {
        width: min(100%, 640px);
        margin: 0 auto;
    }

    .sidebar .calendly-inline-widget {
        width: 100% !important;
        min-width: 0 !important;
        height: clamp(500px, 74vh, 760px);
        border-radius: 12px;
        overflow: hidden;
    }

    .sidebar .calendly-inline-widget iframe {
        min-width: 0 !important;
        width: 100% !important;
    }

    .main-content {
        background: white;
        display: flex;
        flex-direction: column;
    }

    .content {
        width: 100%;
        padding: 14px;
    }

    body.public-page section {
        padding: 18px 14px;
    }

    .section-title {
        font-size: clamp(1.5rem, 6.8vw, 2rem);
        margin-bottom: 18px;
    }

    #glowna div {
        font-size: clamp(1rem, 4.2vw, 1.1rem);
        line-height: 1.7;
    }

    #glowna h3 {
        font-size: clamp(1.1rem, 4.8vw, 1.35rem);
    }

    #glowna p,
    #glowna li,
    #oferta p,
    #oferta li,
    #kontakt p,
    #kontakt label,
    #kontakt input,
    #kontakt textarea {
        font-size: clamp(0.98rem, 3.9vw, 1.05rem);
    }

    /* Reguła #oferta p[style] usunięta — oferta.html używa klas CSS (offer-price, offer-desc itd.) */

    .korepetytorzy-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        margin-top: 20px;
    }

    .korepetytor h3 {
        font-size: clamp(1.1rem, 4.8vw, 1.35rem);
    }

    .footer-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .footer-section h3 {
        font-size: clamp(1.15rem, 5vw, 1.35rem);
    }

    .footer-section p,
    .footer-links a,
    .footer-contact li {
        font-size: clamp(0.96rem, 3.8vw, 1.02rem);
    }

    .build-version {
        font-size: 0.84rem;
    }
}

@media screen and (min-width: 1080px) and (max-width: 1439px) {

    body.public-page {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
    .sidebar {
        height: calc(100vh - 72px);
        width: auto;
        display: flex;
        flex-direction: row;
        background: var(--backup-color);
        top: 0;
        align-items: center;
        text-align: center;
        justify-content: center;
        gap: 20px;
        padding: 12px 20px;
    }

    .sidebar .logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    .sidebar h1 {
        margin-right: 30px;
        font-size: clamp(1.4rem, 2.2vw, 1.95rem);
    }

    .sidebar img {
        max-width: 150px;
        margin: 20px;

    }

    .sidebar .calendly {
        width: 100%;
        max-width: min(760px, 60vw);
    }

    .sidebar .calendly-inline-widget {
        width: 100% !important;
        min-width: 0 !important;
        height: min(80vh, 760px);
    }

    .main-content {
        background: white;
        display: flex;
        flex-direction: column;
    }
    .content {
        width: 100%;
        padding: 22px;
    }

    body.public-page section {
        padding: 24px 22px;
    }

    .section-title {
        font-size: clamp(1.7rem, 3.2vw, 2.1rem);
    }


    .korepetytorzy-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        margin-top: 20px;
    }


    .footer-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
    }
}

@media screen and (min-width: 1440px) {

    body.public-page {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    }
    .sidebar {
        height: 100vh;
        align-self: start;
        width: auto;
        display: flex;
        flex-direction: column;
        background: var(--backup-color);
        padding: 20px;
        position: sticky;
        top: 0;
        align-items: center;
        text-align:center;
        justify-content: center;
    }
    .sidebar h1 {
        margin-bottom: 30px;
    }
    .sidebar img {
        max-width: min(80%, 250px);
        margin: 20px;

    }
    .sidebar .calendly {
        width: 100%;
        min-height: 65%;
    }
    .sidebar .calendly-inline-widget {
        height: 100%;
    }

    .main-content {
        background: white;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .korepetytorzy-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        margin-top: 20px;
    }



    .footer-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* =====================================================
   MAŁE TELEFONY — pionowo (360–430 px szerokości)
   Dodatkowe zmniejszenie tekstu i paddingów
   ===================================================== */
@media screen and (max-width: 430px) {
    .logo-text {
        font-size: clamp(0.95rem, 5vw, 1.1rem);
    }

    .sidebar h1 {
        font-size: clamp(1.1rem, 5.8vw, 1.35rem);
    }

    .sidebar img {
        max-width: clamp(80px, 22vw, 110px);
        margin: 6px 0;
    }

    /* Calendly nieco niższy żeby logo i tytuł miały oddech */
    .sidebar .calendly-inline-widget {
        height: clamp(460px, 68vh, 620px);
    }

    .section-title {
        font-size: clamp(1.25rem, 7.2vw, 1.6rem);
        margin-bottom: 14px;
    }

    body.public-page section {
        padding: 14px 10px;
        border-radius: 10px;
        margin-bottom: 24px;
    }

    .content {
        padding: 10px;
    }

    #glowna div {
        font-size: clamp(0.93rem, 4.4vw, 1rem);
        line-height: 1.65;
    }

    #glowna h3 {
        font-size: clamp(1rem, 5vw, 1.15rem);
    }

    #glowna p,
    #glowna li,
    #oferta p,
    #oferta li,
    #kontakt p,
    #kontakt label,
    #kontakt input,
    #kontakt textarea {
        font-size: clamp(0.92rem, 4vw, 1rem);
    }

    .offer-price,
    .offer-badge,
    .offer-desc,
    .offer-cta {
        font-size: clamp(0.9rem, 3.8vw, 0.98rem);
    }

    .korepetytor img {
        width: 110px;
        height: 110px;
    }

    .footer-section h3 {
        font-size: clamp(1rem, 5.2vw, 1.2rem);
    }

    .footer-section p,
    .footer-links a,
    .footer-contact li {
        font-size: clamp(0.88rem, 3.8vw, 0.96rem);
    }

    button[type="submit"] {
        width: 100%;
        font-size: 1rem;
        padding: 12px 20px;
    }

    .modal-content {
        padding: 20px 16px;
    }

    .modal-content h3 {
        font-size: 1.3rem;
    }
}

/* =====================================================
   TABLET — pionowo (431–1079 px szerokości)
   Większy tekst i Calendly dobrze dopasowany do ekranu
   ===================================================== */
@media screen and (min-width: 431px) and (max-width: 1079px) {
    /* Nieco więcej przestrzeni na tablecie */
    body.public-page section {
        padding: 22px 18px;
    }

    .content {
        padding: 18px;
    }

    .section-title {
        font-size: clamp(1.55rem, 5vw, 2rem);
    }

    #glowna div {
        font-size: clamp(1rem, 2.6vw, 1.15rem);
    }

    #glowna h3 {
        font-size: clamp(1.1rem, 3vw, 1.35rem);
    }

    #glowna p,
    #glowna li,
    #oferta p,
    #oferta li,
    #kontakt p,
    #kontakt label,
    #kontakt input,
    #kontakt textarea {
        font-size: clamp(0.98rem, 2.4vw, 1.08rem);
    }

    /* Calendly na tablecie — pełna szerokość, odpowiednia wysokość */
    .sidebar .calendly-inline-widget {
        height: clamp(530px, 72vh, 760px);
    }
}

/* =====================================================
   TELEFON POZIOMO (landscape) + MAŁY VIEWPORT
   Landscape to krótki ekran — sidebar musi być kompaktowy
   a Calendly dopasowany do dostępnej wysokości
   ===================================================== */
@media screen and (orientation: landscape) and (max-height: 600px) {
    /* Na landscape sidebar układa się poziomo (logo + calendly obok siebie) */
    .sidebar {
        flex-direction: row !important;
        min-height: auto;
        height: auto;
        align-items: flex-start;
        padding: 10px 16px;
        gap: 16px;
    }

    .sidebar .logo {
        flex-direction: column;
        flex-shrink: 0;
        width: clamp(120px, 20vw, 180px);
        justify-content: center;
        align-items: center;
    }

    .sidebar h1 {
        font-size: clamp(0.85rem, 2.2vw, 1rem);
        margin: 0 0 6px;
    }

    .sidebar img {
        max-width: clamp(60px, 10vw, 90px);
        margin: 4px 0;
    }

    .sidebar .calendly {
        flex: 1;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    /* Calendly w landscape — wysokość dopasowana do krótkiego ekranu */
    .sidebar .calendly-inline-widget {
        /* svh = small viewport height, bezpieczniejsze niż vh na mobile */
        height: clamp(340px, 82svh, 520px);
    }

    /* Nawigacja fixed - na landscape header jest węższy */
    header {
        position: fixed;
    }

    body.public-page {
        padding-top: 56px;
    }

    .nav-container {
        padding: 8px 16px;
    }
}

/* Landscape na telefonie 667-896 px szerokości — text scaling */
@media screen and (orientation: landscape) and (max-height: 600px) and (min-width: 480px) {
    .section-title {
        font-size: clamp(1.3rem, 4vw, 1.7rem);
        margin-bottom: 12px;
    }

    body.public-page section {
        padding: 14px 16px;
        margin-bottom: 20px;
    }

    #glowna div {
        font-size: clamp(0.95rem, 2.4vw, 1.05rem);
        line-height: 1.6;
    }

    #glowna h3 {
        font-size: clamp(1rem, 2.6vw, 1.2rem);
    }

    #glowna p,
    #glowna li,
    #oferta p,
    #oferta li {
        font-size: clamp(0.9rem, 2.2vw, 1rem);
    }

    .client-photo {
        width: 64px;
        height: 64px;
    }
}


/* ===== Cookie consent ===== */
.calendly {
    width: 100%;
}

.calendly-inline-widget {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: clamp(420px, 62vh, 720px) !important;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.calendly-inline-widget iframe {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    border: 0;
}

.calendly-placeholder {
    display: flex;
    min-height: 420px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px;
    border: 2px dashed rgba(42, 92, 130, 0.26);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary-color);
    text-align: center;
}

.calendly-placeholder h2 {
    font-family: Agrandir-TextBold, serif;
    font-size: 1.35rem;
}

.calendly-placeholder p {
    max-width: 420px;
    color: var(--dark-gray);
    font-size: 0.96rem;
}

.calendly-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.calendly-actions a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 1200;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-card {
    width: min(760px, 100%);
    padding: 18px;
    border: 1px solid rgba(42, 92, 130, 0.18);
    border-radius: 12px;
    background: #ffffff;
    color: var(--dark-gray);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
    pointer-events: auto;
}

.cookie-copy h2 {
    color: var(--primary-color);
    font-family: Agrandir-TextBold, serif;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.cookie-copy p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.cookie-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #d9e5ec;
    border-radius: 10px;
    background: #f8fbfc;
}

.cookie-option input {
    width: auto;
    margin-top: 3px;
}

.cookie-option small {
    display: block;
    margin-top: 3px;
    color: var(--medium-gray);
    font-size: 0.82rem;
    line-height: 1.35;
}

.cookie-option.locked {
    opacity: 0.78;
}

.cookie-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.cookie-action,
.footer-cookie-button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.cookie-action {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
}

.cookie-action.primary {
    background: var(--primary-color);
    color: #ffffff;
}

.cookie-action.muted {
    background: #edf4f7;
    color: var(--primary-color);
}

.cookie-action:hover,
.cookie-action:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

.footer-cookie-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 2px 0;
    border-radius: 6px;
    background: transparent;
    color: #ffffff;
    text-align: left;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.footer-cookie-button:hover,
.footer-cookie-button:focus-visible {
    color: var(--accent-2);
    /*background: rgba(255, 255, 255, 0.08);*/
    outline: none;
}

.footer-cookie-button:focus-visible {
    box-shadow: 0 0 0 2px var(--accent-2);
}

@media screen and (max-width: 640px) {
    .cookie-consent {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .cookie-card {
        max-height: calc(100svh - 20px);
        overflow: auto;
        padding: 14px;
    }

    .cookie-options {
        grid-template-columns: minmax(0, 1fr);
    }

    .cookie-actions {
        justify-content: stretch;
    }

    .cookie-action {
        width: 100%;
    }

    .calendly-placeholder {
        min-height: 360px;
        padding: 20px 14px;
    }
}

/* ===== Opinie v2 — czytelne karty i pełna responsywność ===== */