/* Sekcja hero z tłem biuro.webp – box w stylu frosted glass */
.biuro-hero-section {
    width: 100%;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 80px 0;
    box-sizing: border-box;
}

.biuro-hero-section .full {
    width: 100%;
}

.biuro-hero-section__content {
    width: 40%;
    max-width: 560px;
    padding: 48px 40px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-sizing: border-box;
}

.biuro-hero-section__title {
    margin: 0 0 16px 0;
    color: var(--black, #0D0E16);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.25;
    font-family: 'Lora', serif;
}

.biuro-hero-section__breadcrumb {
    margin: 0 0 28px 0;
    font-size: 1.6rem;
    font-weight: 400;
    color: #5a5a5a;
    font-family: 'Satoshi', sans-serif;
    letter-spacing: 0.02em;
}

.biuro-hero-section__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    background-color: var(--black, #0D0E16);
    color: var(--white, #EBEBEB);
    font-family: 'Satoshi', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.biuro-hero-section__btn:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .biuro-hero-section {
        min-height: 50vh;
        padding: 60px 0;
    }
    .biuro-hero-section__content {
        width: 100%;
        max-width: none;
        padding: 32px 24px;
    }
    .biuro-hero-section__title {
        font-size: 2.2rem;
    }
    .biuro-hero-section__breadcrumb {
        font-size: 1.4rem;
    }
}

.first-section {
    display: flex;
    width: 100%;
    min-height: 60vh;
    padding: 0;
    gap: 0;
}

.first-div {
    flex: 0 0 50%;
    background-color: #A58055;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 25px,
            rgba(255, 255, 255, 0.06) 25px,
            rgba(255, 255, 255, 0.06) 30px
        );
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.first-div::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08) 15px, transparent 15px),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.08) 15px, transparent 15px);
    background-size: 100% 50px;
    background-repeat: repeat-y;
    pointer-events: none;
    z-index: 1;
}

.image-mask {
    position: absolute;
    width: 0;
    height: 0;
}

.first-div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.second-div {
    flex: 0 0 58%;
    background-color: #EDE8E0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0px 4%;
    max-width: 50%;
}

.second-div h1 {
    margin: 0 0 20px 0;
    color: var(--green);
    font-size: 5.6rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.3;
    font-family: 'Lora', serif;
}

.second-div blockquote.hero-tagline {
    margin: 0 0 25px 0;
    padding: 0;
    border: none;
}

.second-div blockquote.hero-tagline p {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 700;
    color: #4F4F4F;
    font-family: 'Lora', serif;
    line-height: 1.3;
}

.second-div p {
    margin: 0 0 40px 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #4F4F4F;
    font-family: 'Satoshi', sans-serif;
}

.first-section .arrow-scroll-down {
    display: inline-block;
    text-decoration: none;
    align-self: flex-start;
}

.arrow-icon {
    width: 50px;
    height: 50px;
    align-self: flex-start;
    cursor: pointer;
    border-radius: 50%;
    box-sizing: border-box;
}

.first-section .arrow-icon {
    background-color: #5E5038;
}

.arrow-icon svg,
.arrow-icon img {
    width: 100%;
    height: 100%;
    filter: brightness(0) saturate(100%) invert(1);
}

/* Wysoki kontrast – hero scroll arrow: czarne kółko */
body.high-contrast .first-section .arrow-icon img,
body.high-contrast .first-section .arrow-icon svg {
    filter: brightness(0) saturate(100%);
}

.tresc-drugiej-kol {
    max-width: 580px;
    width: 100%;
    padding-right: 4%;
}

/* Sekcja W czym pomagamy (po drugiej sekcji) */
.w-czym-pomagamy-section.oferta-formy-section {
    width: 100%;
    padding: 50px 0 60px;
    background-color: #F5F4F1;
    box-sizing: border-box;
}

.w-czym-pomagamy-section .oferta-inner {
    margin-left: auto;
    margin-right: auto;
}

.w-czym-pomagamy-section .oferta-title {
    margin: 0 0 1.2em 0;
    color: var(--green, #3b402e);
    font-size: 4rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    line-height: 1.25;
}

.w-czym-pomagamy-section .oferta-formy-intro {
    margin: 0 0 28px 0;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.5;
    color: #4A4A49;
    font-family: 'Satoshi', sans-serif;
}

.w-czym-pomagamy-section .oferta-formy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.w-czym-pomagamy-section .oferta-formy-kafelek {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 22px;
    background-color: #fff;
    border: 1px solid #E9E8E7;
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 100%;
    min-height: 200px;
    box-sizing: border-box;
}


.w-czym-pomagamy-section .oferta-formy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    color: var(--green, #3b402e);
    flex-shrink: 0;
}

.w-czym-pomagamy-section .oferta-formy-icon svg {
    width: 48px;
    height: 48px;
}

.w-czym-pomagamy-section .oferta-formy-text {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.4;
    color: #4A4A49;
    font-family: 'Satoshi', sans-serif;
}

.w-czym-pomagamy-section .oferta-formy-kafelek--wide {
    grid-column: span 2;
}

.w-czym-pomagamy-section .oferta-formy-cta-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

@media screen and (max-width: 768px) {
    .w-czym-pomagamy-section.oferta-formy-section {
        padding: 36px 0 48px;
    }
    .w-czym-pomagamy-section .oferta-title {
        font-size: 2.8rem;
    }
    .w-czym-pomagamy-section .oferta-formy-intro {
        font-size: 1.6rem;
    }

    .w-czym-pomagamy-section .oferta-formy-kafelek--wide {
        grid-column: span 1;
    }
    .w-czym-pomagamy-section .oferta-formy-kafelek {
        padding: 20px 18px;
    }
    .w-czym-pomagamy-section .oferta-formy-text {
        font-size: 1.5rem;
    }
    .w-czym-pomagamy-section .oferta-formy-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .w-czym-pomagamy-section .oferta-formy-grid .oferta-formy-kafelek:last-child {
        grid-column: span 2;
    }

    .w-czym-pomagamy-section .oferta-formy-cta-wrap {
        margin-top: 32px;
    }
}

/* Druga sekcja - ciemne tło, dwie kolumny, przycisk */
.second-section {
    width: 100%;
    background-color: #3b402e;
    padding: 80px 4% 80px;
    box-sizing: border-box;
}

.second-section-inner {
    max-width: 1440px;
    margin: 0 auto;
}

.second-section-columns {
    display: flex;
    gap: 8%;
    justify-content: center;
    margin-bottom: 60px;
}

.second-section-col {
    flex: 0 1 40%;
    max-width: 480px;
}

.second-section-col p {
    margin: 0;
    color: #FFF;
    font-family: 'Satoshi', sans-serif;
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 130%;
    text-align: left;
}

.second-section-cta-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Trzecia sekcja - Nasz zespół */
.third-section {
    width: 100%;
    padding: 80px 4%;
    box-sizing: border-box;
    background-repeat: repeat-x;
    background-position-x: 3%;
    background-position-y: 38%;
}

.third-section-inner {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.third-section h2 {
    margin: 0 0 40px 0;
    color: var(--green, #3b402e);
    font-size: 6.4rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    line-height: 1.3;
}

/* Karuzela / slider „Nasz zespół” (zawsze; przy jednym slajdzie bez strzałek i kropek) */
.third-section-carousel--single .third-section-carousel-btn,
.third-section-carousel--single .third-section-carousel-dots {
    display: none;
}

.third-section-carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin-bottom: 40px;
}

.third-section-carousel-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
}

.third-section-carousel-track {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform 0.4s ease;
    will-change: transform;
}

.third-section-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
}

.third-section-carousel-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    vertical-align: middle;
}

.third-section-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(165, 128, 85, 0.92);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.third-section-carousel-btn:hover,
.third-section-carousel-btn:focus-visible {
    background: #8f6d48;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.third-section-carousel-btn--prev {
    left: 10px;
}

.third-section-carousel-btn--next {
    right: 10px;
}

.third-section-carousel-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.third-section-carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(75, 75, 75, 0.35);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.third-section-carousel-dot.is-active {
    background: var(--green, #3b402e);
    transform: scale(1.15);
}

.third-section-carousel-dot:hover {
    background: rgba(59, 64, 46, 0.65);
}

.third-section-carousel-dot:focus-visible {
    background: rgba(59, 64, 46, 0.65);
    outline: 3px solid #1a5f1a;
    outline-offset: 3px;
}

.third-section p,
.third-section-team-text p {
    margin: 0 0 40px 0;
    max-width: 700px;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.5;
    color: #4F4F4F;
    font-family: 'Satoshi', sans-serif;
}

.third-section .but {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 56px;
}

/* Sekcja Umów wizytę */
.appointment-section {
    width: 100%;
    background-color: #F0EFE4;
    padding: 80px 0%;
    box-sizing: border-box;
}

.appointment-section-inner {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.appointment-section h2 {
    margin: 0 0 20px 0;
    color: var(--green, #3b402e);
    font-size: 6.4rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    line-height: 1.3;
}

.appointment-title-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.appointment-title-link:hover {
    opacity: 0.8;
}

.appointment-intro {
    margin: 0 0 50px 0;
    font-size: 2rem;
    color: #4F4F4F;
    font-family: 'Satoshi', sans-serif;
    text-align: left;
    max-width: 700px;
    font-weight: 700;
    line-height: 1.3;
}

.appointment-wrapper {
    display: flex;
    gap: 17rem;
    width: 100%;
    flex-wrap: nowrap;
}

.appointment-step {
    flex: 1 1 26%;
    min-width: 280px;
    background-color: #DDDCD1;
    border-radius: 20px;
    padding: 28px;
    border: none;
    display: flex;
    flex-direction: column;
}

.appointment-calendar {
    flex: 1 1 30%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 100px;
    gap: 5.6rem;
    text-align: center;
}

.appointment-time-summary {
    flex: 1 1 26%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
}

.appointment-step-title {
    margin: 0 0 16px 0;
    color: var(--green, #3b402e);
    font-size: 2.4rem;
    font-weight: 600;
    font-family: 'Lora', serif;
}

/* Etykieta semantyczna zamiast h3 (np. „Wybierz godzinę” → pole time-select) */
label.appointment-step-title--label {
    display: block;
    cursor: default;
}

/* Grupa usług: fieldset + legend = dostępna nazwa grupy (WCAG); opcje = <label for> w JS */
.appointment-visit-type-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}
.appointment-visit-type-legend {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0 0 12px 0;
    float: none;
}
.appointment-visit-type-radios {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.appointment-radio-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.appointment-radio-row .appointment-radio-label {
    margin: 0;
    padding-top: 2px;
    font-weight: 400;
    cursor: pointer;
}

.appointment-label {
    display: block;
    margin-bottom: 6px;
    font-size: 1.4rem;
    font-weight: 500;
    color: #4F4F4F;
    font-family: 'Satoshi', sans-serif;
}

.appointment-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.6rem;
    font-family: 'Satoshi', sans-serif;
    border: 1px solid #d4cec4;
    border-radius: 6px;
    background-color: #fff;
    margin-bottom: 16px;
    appearance: auto;
}

.appointment-select-beige {
    background-color: #F5F0E8;
    border: 2px solid #ABAC9C;
}

.appointment-select:disabled {
    background-color: #eae5dd;
    color: #6B6B6B;
}

/* Siatka godzin */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.time-slots-placeholder {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 1.4rem;
    color: #6B6B6B;
    font-family: 'Satoshi', sans-serif;
}

.time-slot-btn {
    padding: 12px 16px;
    font-size: 1.5rem;
    font-family: 'Satoshi', sans-serif;
    border: 1px solid #d4cec4;
    border-radius: 6px;
    background-color: #F5F0E8;
    color: var(--green, #3b402e);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}


.time-slot-btn.selected {
    background-color: var(--green, #3b402e);
    color: #fff;
    border-color: var(--green, #3b402e);
}

.time-slot-btn:disabled.time-slot-booked {
    background-color: #e0e0e0;
    color: #6B6B6B;
    cursor: not-allowed;
}

/* Podsumowanie wyboru */
.appointment-summary-box {
    margin-top: 20px;
    padding: 20px;
    background-color: #DDDCD1;
    border-radius: 20px;
    border: none;
}

.summary-row {
    margin: 0 0 8px 0;
    font-size: 1.4rem;
    color: #4F4F4F;
    font-family: 'Satoshi', sans-serif;
}

.summary-row:last-of-type {
    margin-bottom: 16px;
}

.summary-label {
    font-weight: 600;
    color: var(--green, #3b402e);
}

.appointment-next-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 1.5rem;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    color: var(--brown-dark, #5E5038);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.appointment-next-link-text {
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: 'Lora', serif;
    font-size: 2rem;
}

.appointment-next-link:hover:not(:disabled) {
    color: #3b402e;
}

.appointment-next-link:disabled {
    color: #6B6B6B;
    cursor: not-allowed;
}

.appointment-next-link:disabled .appointment-next-arrow-icon {
    background-color: #6B6B6B;
    color: #fff;
}

.appointment-next-arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--brown, #7D7246);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

/* Kalendarz - redesign */
.appointment-section-redesign .calendar-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.appointment-section-redesign .calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.appointment-section-redesign .calendar-month-year {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--green, #3b402e);
    font-family: 'Satoshi';
    letter-spacing: 0.5px;
}

.appointment-section-redesign .calendar-nav {
    width: 32px;
    height: 32px;
    border: 1px solid #d4cec4;
    border-radius: 6px;
    background: #F5F0E8;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brown-dark, #5E5038);
    transition: background 0.2s;
}

.appointment-section-redesign .calendar-nav:hover {
    background-color: #ebe5dc;
}

.appointment-section-redesign .calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #4F4F4F;
    font-family: 'Satoshi', sans-serif;
}

.appointment-section-redesign .calendar-weekdays span {
    text-align: center;
}

.appointment-section-redesign .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.appointment-section-redesign .calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-family: 'Satoshi', sans-serif;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.appointment-section-redesign .calendar-day-available:hover {
    background-color: #d8d2c8 !important;
}

.appointment-section-redesign .calendar-day.selected {
    background-color: var(--green, #3b402e) !important;
    color: #fff !important;
}

.appointment-section-redesign .calendar-day-empty {
    visibility: hidden;
}

.appointment-section-redesign .calendar-day-disabled {
    color: #6B6B6B !important;
    cursor: not-allowed !important;
}

.appointment-section-redesign .calendar-day-disabled:hover {
    background: transparent !important;
}

/* Zachowanie starego selecta jeśli używany */
.appointment-select option:disabled {
    color: #6B6B6B !important;
    background-color: #f5f5f5 !important;
    cursor: not-allowed;
}

.appointment-form-step {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.appointment-form-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.appointment-form-card h3 {
    margin: 0 0 20px 0;
    color: var(--green, #3b402e);
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Lora', serif;
}

.appointment-form-summary {
    margin-bottom: 24px;
    padding: 16px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.appointment-form-summary p {
    margin: 0 0 8px 0;
    font-size: 1.4rem;
    color: #4F4F4F;
    font-family: 'Satoshi', sans-serif;
}

.appointment-form-summary p:last-child {
    margin-bottom: 0;
}

.appointment-form-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

/* Przyciski w rezerwacji – ten sam styl co reszta przycisków na stronie (.but.brown), bez strzałek */
.appointment-section .but.brown,
.appointment-section button.but.brown {
    border: none;
    cursor: pointer;
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.8rem;
    padding: 1.2rem 2.4rem;
    border-radius: 50px;
    background-color: var(--brown, #7D7246);
    color: #fff;
    transition: background-color 0.2s ease;
    display: inline-block;
    text-decoration: none;
    box-sizing: border-box;
}

.appointment-section .but.brown:hover:not(:disabled),
.appointment-section button.but.brown:hover:not(:disabled) {
    background-color: var(--brown-hover, #5E5038);
}

.appointment-section .but.brown:disabled,
.appointment-section button.but.brown:disabled {
    background-color: #6B6B6B;
    color: #fff;
    opacity: 1;
    cursor: not-allowed;
}

.appointment-form-actions .but {
    flex: 1;
    justify-content: center;
}

.appointment-form-row {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.appointment-form-row:first-of-type {
    margin-top: 0;
}

.appointment-form-row .appointment-form-group {
    flex: 1;
    min-width: 0;
}

.appointment-contact-form label {
    display: block;
    margin-bottom: 8px;
    margin-top: 0;
    font-size: 1.4rem;
    font-weight: 500;
    color: #4F4F4F;
    font-family: 'Satoshi', sans-serif;
}

.appointment-form-row .appointment-form-group label {
    margin-top: 0;
}

.appointment-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.6rem;
    font-family: 'Satoshi', sans-serif;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

input#appointment-imie,
input#appointment-nazwisko {
    border-radius: 8px;
}

.appointment-contact-form .but {
    margin-top: 0;
}

/* Zgody w formularzu rezerwacji */
.appointment-consents {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.appointment-consent-item {
    display: block;
}

.appointment-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 400;
    color: #4F4F4F;
    font-family: 'Satoshi', sans-serif;
    line-height: 1.5;
    margin: 0;
}

.appointment-consent-checkbox {
    width: 12px;
    height: 13px;
    margin-top: 2px;
    margin: 0px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--brown, #7D7246);
}

.appointment-consent-text {
    flex: 1;
}

.appointment-consent-text a {
    color: var(--brown-dark, #5E5038);
    text-decoration: underline;
}

.appointment-consent-text a:hover {
    text-decoration: none;
}

/* Popup po przesłaniu rezerwacji */
.appointment-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.appointment-popup {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.appointment-popup-title {
    margin: 0 0 12px 0;
    font-size: 1.8rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    color: var(--green, #3b402e);
}

.appointment-popup-message {
    margin: 0 0 24px 0;
    font-size: 1.6rem;
    font-family: 'Satoshi', sans-serif;
    color: #4F4F4F;
    line-height: 1.5;
}

.appointment-popup-close {
    display: block;
    margin-left: auto;
    cursor: pointer;
}

/* Styl dla radio buttons typu wizyty u psychiatry */
.appointment-visit-type-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.appointment-radio-label {
    display: block;
    font-size: 1.6rem;
    font-family: 'Satoshi', sans-serif;
    cursor: pointer;
    line-height: 1.4;
}

.appointment-radio-row input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 2px 0 0 0;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--green, #3b402e);
}

/* Responsywność sekcji umów wizytę */
@media (max-width: 768px) {
    .appointment-section {
        padding: 60px 5%;
    }

    .appointment-section h2 {
        font-size: 2.4rem;
        margin-bottom: 40px;
    }

    .appointment-wrapper {
        flex-direction: column;
        gap: 24px;
    }

    .appointment-step,
    .appointment-calendar,
    .appointment-time-summary {
        min-width: 100%;
    }

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

    .appointment-form-row .appointment-form-group + .appointment-form-group {
        margin-top: 16px;
    }

    .appointment-form-actions {
        flex-direction: column;
    }
}

/* Czwarta sekcja - Nowości */
.fourth-section {
    width: 100%;
    background-color: #FFFFFF;
    padding: 80px 4%;
    box-sizing: border-box;
}

.fourth-section-inner {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fourth-section h2 {
    margin: 0 0 20px 0;
    color: var(--green, #3b402e);
    font-size: 4rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    line-height: 1.3;
}

.fourth-section-description {
    margin: 0 0 60px 0;
    max-width: 800px;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.5;
    color: #4F4F4F;
    font-family: 'Satoshi', sans-serif;
}

.fourth-section-cards {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-bottom: 60px;
    width: 100%;
    max-width: 1200px;
    align-items: stretch; /* Wszystkie kafelki mają jednakową wysokość */
}

.news-card {
    flex: 0 1 30%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    transition: none;
    position: relative;
    /* Flexbox z align-items: stretch automatycznie rozciąga kafelki do jednakowej wysokości */
}

/* Wyłączone efekty hover dla ::before */
.news-card::before {
    display: none;
}

.news-card:hover::before {
    display: none !important;
}

/* Efekty hover - WYŁĄCZONE */
.news-card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex: 1 1 auto; /* Rozciągnij link do pełnej wysokości kafelka */
    color: inherit;
    position: relative;
    pointer-events: auto;
    min-height: 0; /* Pozwól na elastyczne rozciąganie */
}

/* Fokus klawiatury na kafelku – overflow:hidden obcina domyślny outline */
.news-card:has(.news-card-link:focus-visible) {
    overflow: visible;
    z-index: 20;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.news-card-link:focus {
    outline: none;
}

.news-card-link:focus-visible {
    outline: 3px solid #1a5f1a;
    outline-offset: 4px;
    border-radius: 10px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 5px #1a5f1a;
}


.news-card-image {
    position: relative;
    width: 100%;
    /* Usunięto padding-top aby zdjęcia mogły mieć różne wysokości */
    overflow: hidden;
    background-color: #E5E5E5;
    border-radius: 12px 12px 0 0;
    z-index: 2;
    flex-shrink: 0; /* Zapobiega zmniejszaniu się zdjęcia */
}

.news-card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.news-card-image .wp-post-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.news-category,
.news-date {
    position: absolute;
    top: 12px;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 400;
    color: #000000;
    font-family: 'Satoshi', sans-serif;
    z-index: 2;
}

.news-category {
    left: 12px;
}

.news-date {
    right: 12px;
}

.news-card-content {
    background-color: #4F4F4F;
    padding: 24px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    border-radius: 0 0 12px 12px;
    transition: margin-top 0.3s ease;
    min-height: 0;
    position: relative;
    z-index: 3;
    gap: 1.2rem;
    margin-top: 0;
}

/* Wysoki kontrast – ciemne kafle aktualności na czarnym tle */
body.high-contrast .news-card-content {
    background-color: #000000;
}

.news-card:hover .news-card-content {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 0;
    z-index: 3;
    border-radius: 0 0 12px 12px;
}

/* Efekty hover dla linku */
.news-card:hover .news-card-link {
    /* Link rozciąga się z kafelkiem */
}


.news-card-title {
    margin: 0;
    color: #FFFFFF;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: 'Satoshi', sans-serif;
    text-align: left;
    flex-shrink: 0;
}

.news-card-excerpt {
    margin: 0;
    color: #FFFFFF;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.5;
    font-family: 'Satoshi', sans-serif;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    flex: 0 1 auto;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
    text-align: left;
    display: block;
}

.news-card:hover .news-card-excerpt {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
}

.news-card-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #FFFFFF;
    font-size: 1.8rem;
    font-weight: 500;
    font-family: 'Satoshi', sans-serif;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: none;
    cursor: pointer;
    opacity: 1;
    max-height: none;
    overflow: visible;
    text-align: left;
    margin-top: auto;
    flex-shrink: 0;
}

.news-card-arrow {
    font-size: 1.6rem;
    line-height: 1;
}

.news-card-content p {
    margin: 0;
    color: #FFFFFF;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.4;
    font-family: 'Satoshi', sans-serif;
}

.fourth-section-cta {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fourth-section .but {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}




@media (max-width: 1300px) {
    .appointment-wrapper {
        display: flex;
        gap: 5rem;
        width: 100%;
        flex-wrap: nowrap;
    }
    .appointment-step {
        flex: 1 1 100%;
    }
    .appointment-wrapper {
        flex-wrap: wrap;
    }
}


/* Responsywność */
@media (max-width: 768px) {
    .first-section {
        flex-direction: column;
        min-height: auto;
    }
    
    .first-div {
        flex: 0 0 auto;
        width: 100%;
        min-height: 40vh;
    }
    
    .second-div {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        padding: 32px 5%;
        box-sizing: border-box;
    }
    
    .second-div h1 {
        font-size: 2.8rem;
    }
    
    .second-div blockquote.hero-tagline p {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }
    
    .second-div p {
        font-size: 1.6rem;
        margin-bottom: 24px;
    }
    
    .tresc-drugiej-kol {
        padding-right: 0;
    }
    
    .second-section {
        padding: 60px 5% 60px;
    }
    
    .second-section-columns {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .second-section-col {
        flex: 1 1 auto;
        max-width: none;
    }
    
    .second-section-col p {
        font-size: 1.6rem;
    }
    
    .third-section {
        padding: 60px 5%;
    }
    
    .third-section h2 {
        font-size: 2.4rem;
        margin-bottom: 30px;
    }
    
    .third-section-carousel {
        margin-bottom: 30px;
    }

    .third-section-carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.6rem;
    }

    .third-section-carousel-btn--prev {
        left: 6px;
    }

    .third-section-carousel-btn--next {
        right: 6px;
    }
    
    .third-section p,
    .third-section-team-text p {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .fourth-section {
        padding: 60px 5%;
    }
    
    .fourth-section h2 {
        font-size: 4rem;
        margin-bottom: 20px;
    }
    
    .fourth-section-description {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .fourth-section-cards {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .fourth-section-cards {
        flex-direction: column;
        align-items: stretch; /* Zachowaj jednakową wysokość również w mobile */
    }
    
    .news-card {
        flex: 1 1 auto;
        max-width: 100%;
        min-height: auto; /* Pozwól na naturalną wysokość w mobile */
    }
    
    .news-card-content {
        padding: 20px;
        min-height: auto;
        margin-top: 0;
        transition: none;
    }
    
    .news-card-content {
        padding: 20px;
        min-height: auto;
        margin-top: 0;
        transition: margin-top 0.3s ease;
    }
    
    /* Efekty hover w responsive - WYŁĄCZONE */
    .news-card:hover .news-card-content {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 0;
        z-index: 3;
        border-radius: 0 0 12px 12px;
    }
    
    .news-card-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .news-card-excerpt {
        font-size: 1.3rem;
        margin-bottom: 0;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
    }
    
    .news-card:hover .news-card-excerpt {
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
    }
    
    .news-card-button {
        font-size: 1.3rem;
    }
    
    .news-card-content p {
        font-size: 1.6rem;
    }

    .appointment-section-inner {
        gap: 0rem;
    }
    .appointment-intro {
        margin: 0 0 30px 0;
        font-size: 1.6rem;
    }
    .appointment-calendar {
        gap: 2rem;
    }
}
