/* Dr Wolfinger - style komponentow (sekcji). Wygenerowane z dawnych blocks/*/style.css */

/* ===== breadcrumbs ===== */
/* ==========================================================================
   Block: dw-breadcrumbs
   ========================================================================== */

.dw-breadcrumbs {
    padding: var(--wp--preset--spacing--5) 0;
}

.dw-breadcrumbs__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dw-breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dw-breadcrumbs__link {
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--warm-gray);
    text-decoration: none;
    transition: color 200ms ease;
    white-space: nowrap;
}

.dw-breadcrumbs__link:hover {
    color: var(--wp--preset--color--gold);
}

.dw-breadcrumbs__link:focus-visible {
    outline: 2px solid var(--wp--preset--color--gold);
    outline-offset: 2px;
    border-radius: 2px;
}

.dw-breadcrumbs__current {
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--charcoal);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 28ch;
}

.dw-breadcrumbs__separator {
    display: flex;
    align-items: center;
    color: var(--wp--preset--color--light-gray);
    margin: 0 2px;
}

@media (max-width: 480px) {
    .dw-breadcrumbs__current {
        max-width: 18ch;
    }
}

.dw-hero-video {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--wp--preset--color--white);
}

/* Media container */
.dw-hero-video__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.dw-hero-video__video,
.dw-hero-video__fallback-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.dw-hero-video__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.25) 0%,
        rgba(10, 10, 10, 0.55) 60%,
        rgba(10, 10, 10, 0.75) 100%
    );
}

/* Content */
.dw-hero-video__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--8);
    max-width: 900px;
    width: 100%;
}

.dw-hero-video__headline {
    font-family: var(--wp--preset--font-family--cormorant-garamond);
    font-size: clamp(var(--wp--preset--font-size--3xl), 6vw, var(--wp--preset--font-size--6xl));
    font-weight: 600;
    line-height: 1.05;
    color: var(--wp--preset--color--white);
    margin: 0 0 var(--wp--preset--spacing--6);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.dw-hero-video__lead {
    font-family: var(--wp--preset--font-family--jost);
    font-size: clamp(var(--wp--preset--font-size--md), 2vw, var(--wp--preset--font-size--xl));
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 var(--wp--preset--spacing--10);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA button */
.dw-hero-video__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    background: var(--wp--preset--color--gold);
    color: var(--wp--preset--color--white);
    text-decoration: none;
    border-radius: 999px;
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 260ms cubic-bezier(.22, .61, .36, 1),
                transform 200ms cubic-bezier(.22, .61, .36, 1),
                box-shadow 260ms cubic-bezier(.22, .61, .36, 1);
    box-shadow: 0 8px 40px rgba(196, 163, 90, 0.4);
    min-height: 44px;
}

.dw-hero-video__cta:hover {
    background: #b8923f;
    transform: translateY(-2px);
    box-shadow: 0 12px 50px rgba(196, 163, 90, 0.55);
}

.dw-hero-video__cta:focus-visible {
    outline: 3px solid var(--wp--preset--color--gold-light);
    outline-offset: 3px;
}

/* Pause button */
.dw-hero-video__pause-btn {
    position: absolute;
    bottom: var(--wp--preset--spacing--8);
    right: var(--wp--preset--spacing--8);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: var(--wp--preset--color--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms ease, border-color 200ms ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.dw-hero-video__pause-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}

.dw-hero-video__pause-btn:focus-visible {
    outline: 2px solid var(--wp--preset--color--gold);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

/* Scroll hint */
.dw-hero-video__scroll-hint {
    position: absolute;
    bottom: var(--wp--preset--spacing--8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
}

.dw-hero-video__scroll-dot {
    animation: dw-hero-scroll 2s ease-in-out infinite;
}

@keyframes dw-hero-scroll {
    0%   { transform: translateY(0); opacity: 1; }
    60%  { transform: translateY(10px); opacity: 0.2; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .dw-hero-video__scroll-dot { animation: none; }
    .dw-hero-video__cta { transition: none; }
    .dw-hero-video__pause-btn { transition: none; }
}

/* Responsive */
@media (max-width: 768px) {
    .dw-hero-video {
        min-height: 85svh;
    }

    .dw-hero-video__content {
        padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--6);
    }

    .dw-hero-video__pause-btn {
        bottom: var(--wp--preset--spacing--6);
        right: var(--wp--preset--spacing--6);
    }
}

.dw-search {
    position: relative;
    max-width: 640px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.dw-search__form {
    position: relative;
}

.dw-search__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.dw-search__input {
    width: 100%;
    height: 56px;
    padding: 0 100px 0 24px;
    border: 1.5px solid var(--wp--preset--color--light-gray);
    border-radius: 999px;
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--base);
    color: var(--wp--preset--color--charcoal);
    background: var(--wp--preset--color--white);
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
    -webkit-appearance: none;
    appearance: none;
}

.dw-search__input::placeholder {
    color: var(--wp--preset--color--warm-gray);
}

.dw-search__input:focus {
    border-color: var(--wp--preset--color--gold);
    box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.15);
}

.dw-search__submit {
    position: absolute;
    right: 8px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--wp--preset--color--gold);
    color: var(--wp--preset--color--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms ease;
    min-width: 40px;
    min-height: 40px;
}

.dw-search__submit:hover {
    background: #b8923f;
}

.dw-search__submit:focus-visible {
    outline: 2px solid var(--wp--preset--color--gold);
    outline-offset: 2px;
}

.dw-search__clear {
    position: absolute;
    right: 56px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--wp--preset--color--warm-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 200ms ease, background 200ms ease;
}

.dw-search__clear:hover {
    color: var(--wp--preset--color--charcoal);
    background: var(--wp--preset--color--light-gray);
}

/* Dropdown wyników */
.dw-search__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--wp--preset--color--white);
    border: 1.5px solid var(--wp--preset--color--light-gray);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    z-index: 100;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.dw-search__results-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.dw-search__result-item {
    margin: 0;
}

.dw-search__result-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--wp--preset--color--charcoal);
    font-size: var(--wp--preset--font-size--sm);
    transition: background 150ms ease;
    gap: 8px;
}

.dw-search__result-link:hover,
.dw-search__result-item--active .dw-search__result-link {
    background: var(--wp--preset--color--cream);
    color: var(--wp--preset--color--gold);
}

.dw-search__result-type {
    color: var(--wp--preset--color--warm-gray);
    font-size: var(--wp--preset--font-size--xs);
}

.dw-search__loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--warm-gray);
}

.dw-search__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--wp--preset--color--light-gray);
    border-top-color: var(--wp--preset--color--gold);
    border-radius: 50%;
    animation: dw-spin 0.6s linear infinite;
    flex-shrink: 0;
}

@keyframes dw-spin {
    to { transform: rotate(360deg); }
}

.dw-search__empty {
    padding: 16px 20px;
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--warm-gray);
}

.dw-search__empty:empty {
    display: none;
}

/* Popularne */
.dw-search__popular {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding: 0 4px;
}

.dw-search__popular-label {
    font-size: var(--wp--preset--font-size--xs);
    color: var(--wp--preset--color--warm-gray);
    font-family: var(--wp--preset--font-family--jost);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.dw-search__popular-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dw-search__popular-link {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border: 1px solid var(--wp--preset--color--light-gray);
    border-radius: 999px;
    font-size: var(--wp--preset--font-size--xs);
    color: var(--wp--preset--color--charcoal);
    text-decoration: none;
    transition: border-color 200ms ease, color 200ms ease;
    min-height: 32px;
}

.dw-search__popular-link:hover {
    border-color: var(--wp--preset--color--gold);
    color: var(--wp--preset--color--gold);
}

@media (prefers-reduced-motion: reduce) {
    .dw-search__spinner { animation: none; }
    .dw-search__input { transition: none; }
}

.dw-area-picker {
    padding: var(--wp--preset--spacing--20) 0;
}

.dw-area-picker__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--wp--preset--spacing--4);
    max-width: 960px;
    margin: 0 auto;
}

.dw-area-picker__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: var(--wp--preset--spacing--6) var(--wp--preset--spacing--4);
    background: var(--wp--preset--color--white);
    border: 1.5px solid var(--wp--preset--color--light-gray);
    border-radius: 20px;
    cursor: pointer;
    transition: border-color 220ms cubic-bezier(.22,.61,.36,1),
                box-shadow 220ms cubic-bezier(.22,.61,.36,1),
                transform 200ms cubic-bezier(.22,.61,.36,1);
    text-align: center;
    min-height: 44px;
}

.dw-area-picker__tile:hover {
    border-color: var(--wp--preset--color--gold);
    box-shadow: 0 4px 20px rgba(196, 163, 90, 0.15);
    transform: translateY(-2px);
}

.dw-area-picker__tile.is-active,
.dw-area-picker__tile[aria-selected="true"] {
    border-color: var(--wp--preset--color--gold);
    background: linear-gradient(135deg, rgba(196, 163, 90, 0.08), rgba(232, 213, 163, 0.08));
    box-shadow: 0 4px 24px rgba(196, 163, 90, 0.2);
}

.dw-area-picker__tile:focus-visible {
    outline: 2px solid var(--wp--preset--color--gold);
    outline-offset: 2px;
}

.dw-area-picker__tile-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--wp--preset--color--cream);
    flex-shrink: 0;
}

.dw-area-picker__tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dw-area-picker__tile-image--placeholder {
    background: var(--wp--preset--color--light-gray);
}

.dw-area-picker__tile-name {
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 500;
    color: var(--wp--preset--color--charcoal);
    line-height: 1.3;
}

.dw-area-picker__tile-subtitle {
    font-size: var(--wp--preset--font-size--xs);
    color: var(--wp--preset--color--warm-gray);
    line-height: 1.3;
}

/* Panel problemów */
.dw-area-picker__problems-panel {
    margin-top: var(--wp--preset--spacing--12);
    padding: var(--wp--preset--spacing--10);
    background: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--light-gray);
    border-radius: 28px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.dw-area-picker__problems-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--wp--preset--color--warm-gray);
    font-size: var(--wp--preset--font-size--sm);
    padding: var(--wp--preset--spacing--6) 0;
}

.dw-area-picker__problems-title {
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--lg);
    font-weight: 500;
    color: var(--wp--preset--color--charcoal);
    margin: 0 0 var(--wp--preset--spacing--6);
}

.dw-area-picker__problems-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--wp--preset--spacing--3);
}

.dw-area-picker__problem-link {
    display: block;
    padding: 10px 16px;
    background: var(--wp--preset--color--cream);
    border-radius: 999px;
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--charcoal);
    text-decoration: none;
    transition: background 200ms ease, color 200ms ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.dw-area-picker__problem-link:hover {
    background: var(--wp--preset--color--gold-light);
    color: var(--wp--preset--color--charcoal);
}

.dw-area-picker__problems-empty {
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--warm-gray);
}

@media (prefers-reduced-motion: reduce) {
    .dw-area-picker__tile { transition: none; }
}

@media (max-width: 640px) {
    .dw-area-picker__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .dw-area-picker__problems-panel {
        padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--6);
    }
}

.dw-tilt-cards {
    padding: var(--wp--preset--spacing--20) 0;
}

.dw-tilt-cards__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--wp--preset--spacing--6);
}

.dw-tilt-cards__item {
    transform-style: preserve-3d;
}

.dw-tilt-cards__card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--wp--preset--color--white);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 200ms cubic-bezier(.22, .61, .36, 1),
                transform 200ms cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
    height: 100%;
}

.dw-tilt-cards__card:focus-visible {
    outline: 2px solid var(--wp--preset--color--gold);
    outline-offset: 2px;
}

.dw-tilt-cards__image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--wp--preset--color--cream);
    flex-shrink: 0;
}

.dw-tilt-cards__image-wrap--empty {
    background: linear-gradient(135deg, var(--wp--preset--color--cream), var(--wp--preset--color--light-gray));
}

.dw-tilt-cards__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 200ms cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
    display: block;
}

.dw-tilt-cards__content {
    padding: var(--wp--preset--spacing--6);
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--3);
    flex: 1;
}

.dw-tilt-cards__title {
    font-family: var(--wp--preset--font-family--cormorant-garamond);
    font-size: var(--wp--preset--font-size--2xl);
    font-weight: 600;
    color: var(--wp--preset--color--charcoal);
    line-height: 1.2;
    margin: 0;
    transition: color 200ms ease;
}

.dw-tilt-cards__card:hover .dw-tilt-cards__title {
    color: var(--wp--preset--color--gold);
}

.dw-tilt-cards__subtitle {
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--warm-gray);
    line-height: 1.5;
    margin: 0;
}

.dw-tilt-cards__arrow {
    display: flex;
    align-items: center;
    color: var(--wp--preset--color--gold);
    margin-top: auto;
    transition: transform 200ms cubic-bezier(.22, .61, .36, 1);
}

.dw-tilt-cards__card:hover .dw-tilt-cards__arrow {
    transform: translateX(4px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .dw-tilt-cards__card,
    .dw-tilt-cards__image,
    .dw-tilt-cards__arrow {
        transition: none;
        will-change: auto;
    }

    .dw-tilt-cards__item {
        transform-style: flat;
    }
}

@media (max-width: 640px) {
    .dw-tilt-cards__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 400px) {
    .dw-tilt-cards__grid {
        grid-template-columns: 1fr;
    }
}

.dw-doctor-teaser {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: var(--wp--preset--spacing--16);
    align-items: start;
    padding: var(--wp--preset--spacing--20) 0;
}

.dw-doctor-teaser--full {
    grid-template-columns: 320px 1fr;
}

.dw-doctor-teaser__portrait-wrap {
    position: sticky;
    top: 100px;
}

.dw-doctor-teaser__portrait {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
    border-radius: 28px;
    display: block;
}

.dw-doctor-teaser__portrait--placeholder {
    background: linear-gradient(135deg, var(--wp--preset--color--cream), var(--wp--preset--color--light-gray));
}

.dw-doctor-teaser__info {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--8);
}

.dw-doctor-teaser__header {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--2);
}

.dw-doctor-teaser__degree {
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.dw-doctor-teaser__name {
    font-family: var(--wp--preset--font-family--cormorant-garamond);
    font-size: var(--wp--preset--font-size--4xl);
    font-weight: 600;
    color: var(--wp--preset--color--charcoal);
    margin: 0;
    line-height: 1.1;
}

.dw-doctor-teaser__name-link {
    color: inherit;
    text-decoration: none;
    transition: color 200ms ease;
}

.dw-doctor-teaser__name-link:hover {
    color: var(--wp--preset--color--gold);
}

.dw-doctor-teaser__role {
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--md);
    color: var(--wp--preset--color--warm-gray);
    margin: 0;
}

.dw-doctor-teaser__bio {
    font-size: var(--wp--preset--font-size--base);
    color: var(--wp--preset--color--charcoal);
    line-height: 1.7;
    max-width: 68ch;
}

.dw-doctor-teaser__bio p:last-child {
    margin-bottom: 0;
}

.dw-doctor-teaser__section-label {
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 600;
    color: var(--wp--preset--color--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 var(--wp--preset--spacing--4);
}

.dw-doctor-teaser__tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--2);
}

.dw-doctor-teaser__tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: var(--wp--preset--color--cream);
    border-radius: 999px;
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--charcoal);
    min-height: 36px;
}

.dw-doctor-teaser__tag a {
    color: inherit;
    text-decoration: none;
    transition: color 200ms ease;
}

.dw-doctor-teaser__tag a:hover {
    color: var(--wp--preset--color--gold);
}

.dw-doctor-teaser__education-list,
.dw-doctor-teaser__awards-list {
    margin: 0;
    padding: 0 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--2);
}

.dw-doctor-teaser__education-list li,
.dw-doctor-teaser__awards-list li {
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--charcoal);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .dw-doctor-teaser {
        grid-template-columns: 1fr;
        gap: var(--wp--preset--spacing--10);
    }

    .dw-doctor-teaser--full {
        grid-template-columns: 1fr;
    }

    .dw-doctor-teaser__portrait-wrap {
        position: static;
        max-width: 280px;
    }

    .dw-doctor-teaser__portrait {
        aspect-ratio: 1 / 1;
    }

    .dw-doctor-teaser__name {
        font-size: var(--wp--preset--font-size--3xl);
    }
}

.dw-cases-grid {
    padding: var(--wp--preset--spacing--16) 0;
}

.dw-cases-grid__filters {
    margin-bottom: var(--wp--preset--spacing--8);
}

.dw-cases-grid__filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--4);
    align-items: flex-end;
}

.dw-cases-grid__filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 160px;
}

.dw-cases-grid__filter-label {
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 500;
    color: var(--wp--preset--color--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dw-cases-grid__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--wp--preset--spacing--6);
}

.dw-cases-grid__card {
    background: var(--wp--preset--color--white);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 200ms ease, transform 200ms ease;
}

.dw-cases-grid__card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Zdjęcia przed/po */
.dw-cases-grid__photos {
    position: relative;
    aspect-ratio: 2 / 1;
}

.dw-cases-grid__photos--sensitive .dw-cases-grid__photo-pair {
    filter: blur(18px);
    transition: filter 300ms ease;
}

.dw-cases-grid__photos.is-revealed .dw-cases-grid__photo-pair,
.dw-cases-grid__photos:not(.dw-cases-grid__photos--sensitive) .dw-cases-grid__photo-pair {
    filter: none;
}

.dw-cases-grid__reveal-btn {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(248, 245, 240, 0.85);
    backdrop-filter: blur(2px);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--wp--preset--color--charcoal);
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 500;
    text-align: center;
    padding: var(--wp--preset--spacing--4);
    transition: background 200ms ease;
}

.dw-cases-grid__reveal-btn:hover {
    background: rgba(248, 245, 240, 0.95);
    color: var(--wp--preset--color--gold);
}

.dw-cases-grid__photos.is-revealed .dw-cases-grid__reveal-btn {
    display: none;
}

.dw-cases-grid__photo-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.dw-cases-grid__photo {
    position: relative;
    overflow: hidden;
    background: var(--wp--preset--color--cream);
}

.dw-cases-grid__photo:first-child {
    border-right: 1px solid var(--wp--preset--color--light-gray);
}

.dw-cases-grid__img,
.dw-cases-grid__img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dw-cases-grid__img-placeholder {
    background: linear-gradient(135deg, var(--wp--preset--color--cream), var(--wp--preset--color--light-gray));
}

.dw-cases-grid__photo-label {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--wp--preset--color--white);
    border-radius: 999px;
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 500;
    letter-spacing: 0.04em;
    z-index: 1;
    pointer-events: none;
}

/* Metadane */
.dw-cases-grid__meta {
    padding: var(--wp--preset--spacing--5) var(--wp--preset--spacing--6);
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--2);
}

.dw-cases-grid__title {
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--base);
    font-weight: 500;
    color: var(--wp--preset--color--charcoal);
    margin: 0;
    line-height: 1.4;
}

.dw-cases-grid__title a {
    color: inherit;
    text-decoration: none;
    transition: color 200ms ease;
}

.dw-cases-grid__title a:hover {
    color: var(--wp--preset--color--gold);
}

.dw-cases-grid__date {
    font-size: var(--wp--preset--font-size--xs);
    color: var(--wp--preset--color--warm-gray);
}

.dw-cases-grid__empty {
    text-align: center;
    color: var(--wp--preset--color--warm-gray);
    padding: var(--wp--preset--spacing--12);
    font-size: var(--wp--preset--font-size--md);
}

@media (prefers-reduced-motion: reduce) {
    .dw-cases-grid__card { transition: none; }
    .dw-cases-grid__photos--sensitive .dw-cases-grid__photo-pair { filter: blur(18px); }
    .dw-cases-grid__photos.is-revealed .dw-cases-grid__photo-pair { transition: none; }
}

@media (max-width: 640px) {
    .dw-cases-grid__list {
        grid-template-columns: 1fr;
    }
}

.dw-recovery-timeline {
    padding: var(--wp--preset--spacing--16) 0;
}

.dw-recovery-timeline__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.dw-recovery-timeline__step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: var(--wp--preset--spacing--6);
    align-items: start;
}

.dw-recovery-timeline__marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.dw-recovery-timeline__dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--wp--preset--color--gold);
    color: var(--wp--preset--color--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(196, 163, 90, 0.35);
    z-index: 1;
    position: relative;
}

.dw-recovery-timeline__line {
    width: 2px;
    flex: 1;
    min-height: 40px;
    background: linear-gradient(to bottom, var(--wp--preset--color--gold), var(--wp--preset--color--light-gray));
    margin: 4px 0;
}

.dw-recovery-timeline__content {
    padding: var(--wp--preset--spacing--3) 0 var(--wp--preset--spacing--10);
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--2);
}

.dw-recovery-timeline__period {
    display: inline-block;
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 600;
    color: var(--wp--preset--color--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.dw-recovery-timeline__heading {
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--lg);
    font-weight: 600;
    color: var(--wp--preset--color--charcoal);
    margin: 0;
    line-height: 1.3;
}

.dw-recovery-timeline__desc {
    font-size: var(--wp--preset--font-size--base);
    color: var(--wp--preset--color--warm-gray);
    line-height: 1.6;
    margin: 0;
}

/* Wersja pozioma dla >3 kroków */
@media (min-width: 900px) {
    .dw-recovery-timeline__list:has(> :nth-child(4)) {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
        max-width: 100%;
    }

    .dw-recovery-timeline__list:has(> :nth-child(4)) .dw-recovery-timeline__step {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        flex: 1;
        gap: var(--wp--preset--spacing--4);
        text-align: center;
        align-items: start;
    }

    .dw-recovery-timeline__list:has(> :nth-child(4)) .dw-recovery-timeline__marker {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .dw-recovery-timeline__list:has(> :nth-child(4)) .dw-recovery-timeline__line {
        width: 100%;
        min-height: 2px;
        height: 2px;
        flex: 1;
        margin: 0 4px;
        background: linear-gradient(to right, var(--wp--preset--color--gold), var(--wp--preset--color--light-gray));
    }

    .dw-recovery-timeline__list:has(> :nth-child(4)) .dw-recovery-timeline__content {
        padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--4) 0;
        align-items: center;
    }
}

.dw-programs {
    padding: var(--wp--preset--spacing--16) 0;
}

.dw-programs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--wp--preset--spacing--6);
}

.dw-programs__card {
    background: var(--wp--preset--color--white);
    border-radius: 28px;
    overflow: hidden;
    border: 1.5px solid var(--wp--preset--color--light-gray);
    display: flex;
    flex-direction: column;
    transition: box-shadow 200ms ease, transform 200ms ease;
}

.dw-programs__card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.dw-programs__image-wrap {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--wp--preset--color--cream);
}

.dw-programs__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dw-programs__content {
    padding: var(--wp--preset--spacing--7);
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--5);
    flex: 1;
}

.dw-programs__title {
    font-family: var(--wp--preset--font-family--cormorant-garamond);
    font-size: var(--wp--preset--font-size--2xl);
    font-weight: 600;
    color: var(--wp--preset--color--charcoal);
    margin: 0;
    line-height: 1.2;
}

.dw-programs__title a {
    color: inherit;
    text-decoration: none;
    transition: color 200ms ease;
}

.dw-programs__title a:hover {
    color: var(--wp--preset--color--gold);
}

.dw-programs__desc {
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--warm-gray);
    line-height: 1.6;
    margin: 0;
}

.dw-programs__components-label {
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 600;
    color: var(--wp--preset--color--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 var(--wp--preset--spacing--3);
}

.dw-programs__components-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--2);
}

.dw-programs__components-list li {
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--charcoal);
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.dw-programs__components-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wp--preset--color--gold-light);
}

.dw-programs__components-more {
    font-style: italic;
    color: var(--wp--preset--color--warm-gray) !important;
}

.dw-programs__components-more::before {
    display: none;
}

.dw-programs__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--3);
    padding-top: var(--wp--preset--spacing--5);
    border-top: 1px solid var(--wp--preset--color--light-gray);
}

.dw-programs__sessions {
    font-size: var(--wp--preset--font-size--xs);
    color: var(--wp--preset--color--warm-gray);
}

.dw-programs__price {
    font-family: var(--wp--preset--font-family--cormorant-garamond);
    font-size: var(--wp--preset--font-size--2xl);
    font-weight: 600;
    color: var(--wp--preset--color--charcoal);
}

@media (prefers-reduced-motion: reduce) {
    .dw-programs__card { transition: none; }
}

.dw-tech-list {
    padding: var(--wp--preset--spacing--10) 0;
}

.dw-tech-list__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--wp--preset--spacing--6);
}

.dw-tech-list__card {
    background: var(--wp--preset--color--white);
    border: 1.5px solid var(--wp--preset--color--light-gray);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 200ms ease;
    height: 100%;
}

.dw-tech-list__card:hover {
    border-color: var(--wp--preset--color--gold);
    box-shadow: 0 4px 24px rgba(196, 163, 90, 0.15);
    transform: translateY(-2px);
}

.dw-tech-list__card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.dw-tech-list__image-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--wp--preset--color--cream);
}

.dw-tech-list__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 300ms ease;
}

.dw-tech-list__card:hover .dw-tech-list__image {
    transform: scale(1.04);
}

.dw-tech-list__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--wp--preset--color--cream), var(--wp--preset--color--light-gray));
}

.dw-tech-list__content {
    padding: var(--wp--preset--spacing--6);
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--3);
    flex: 1;
}

.dw-tech-list__title {
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--lg);
    font-weight: 600;
    color: var(--wp--preset--color--charcoal);
    margin: 0;
    line-height: 1.3;
    transition: color 200ms ease;
}

.dw-tech-list__card:hover .dw-tech-list__title {
    color: var(--wp--preset--color--gold);
}

.dw-tech-list__excerpt {
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--warm-gray);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.dw-tech-list__link-text {
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--gold);
    font-weight: 500;
    margin-top: auto;
    transition: gap 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
    .dw-tech-list__card,
    .dw-tech-list__image,
    .dw-tech-list__title { transition: none; }
}

.dw-instagram-feed {
    padding: var(--wp--preset--spacing--16) 0;
}

.dw-instagram-feed__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--4);
    margin-bottom: var(--wp--preset--spacing--8);
}

.dw-instagram-feed__title {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--3);
    font-family: var(--wp--preset--font-family--cormorant-garamond);
    font-size: var(--wp--preset--font-size--2xl);
    font-weight: 600;
    color: var(--wp--preset--color--charcoal);
    margin: 0;
}

.dw-instagram-feed__follow {
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 500;
    color: var(--wp--preset--color--gold);
    text-decoration: none;
    transition: color 200ms ease;
    white-space: nowrap;
}

.dw-instagram-feed__follow:hover {
    color: var(--wp--preset--color--charcoal);
}

.dw-instagram-feed__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--wp--preset--spacing--3);
}

.dw-instagram-feed__item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 360ms cubic-bezier(.22, .61, .36, 1),
                transform 360ms cubic-bezier(.22, .61, .36, 1);
}

.dw-instagram-feed__tile {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--wp--preset--color--cream);
    border-radius: 12px;
    cursor: pointer;
}

.dw-instagram-feed__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 300ms ease;
}

.dw-instagram-feed__tile:hover .dw-instagram-feed__thumb {
    transform: scale(1.04);
}

.dw-instagram-feed__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--wp--preset--color--cream), var(--wp--preset--color--light-gray));
}

.dw-instagram-feed__overlay {
    position: absolute;
    inset: 0;
    background: rgba(196, 163, 90, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms ease;
}

.dw-instagram-feed__tile:hover .dw-instagram-feed__overlay {
    background: rgba(196, 163, 90, 0.55);
}

/* Video tile */

/* Dialog zgody */

@media (prefers-reduced-motion: reduce) {
    .dw-instagram-feed__item {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .dw-instagram-feed__thumb { transition: none; }
}

@media (max-width: 640px) {
    .dw-instagram-feed__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--wp--preset--spacing--2);
    }
}

.dw-contact-form {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.dw-contact-form__form {
    width: 100%;
}

.dw-contact-form__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--wp--preset--spacing--6);
}

.dw-contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dw-contact-form__field--full {
    grid-column: 1 / -1;
}

.dw-contact-form__label {
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 500;
    color: var(--wp--preset--color--charcoal);
}

.dw-contact-form__req {
    color: var(--wp--preset--color--gold);
    margin-left: 2px;
}

.dw-contact-form__input,
.dw-contact-form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--wp--preset--color--light-gray);
    border-radius: 12px;
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--base);
    color: var(--wp--preset--color--charcoal);
    background: var(--wp--preset--color--white);
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
}

.dw-contact-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.dw-contact-form__input:focus,
.dw-contact-form__textarea:focus {
    border-color: var(--wp--preset--color--gold);
    box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.15);
}

.dw-contact-form__input:invalid:not(:placeholder-shown),
.dw-contact-form__textarea:invalid:not(:placeholder-shown) {
    border-color: var(--wp--preset--color--error);
}

.dw-contact-form__field--consent {
    align-items: flex-start;
}

.dw-contact-form__consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--warm-gray);
    line-height: 1.5;
}

.dw-contact-form__checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--wp--preset--color--gold);
    cursor: pointer;
}

.dw-contact-form__note {
    font-size: var(--wp--preset--font-size--xs);
    color: var(--wp--preset--color--warm-gray);
    margin: var(--wp--preset--spacing--5) 0;
    padding: var(--wp--preset--spacing--4);
    background: var(--wp--preset--color--cream);
    border-left: 3px solid var(--wp--preset--color--gold-light);
    border-radius: 0 8px 8px 0;
    line-height: 1.5;
}

.dw-contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 40px;
    background: var(--wp--preset--color--gold);
    color: var(--wp--preset--color--white);
    border: none;
    border-radius: 999px;
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 260ms ease, transform 200ms ease;
    min-height: 52px;
    min-width: 180px;
}

.dw-contact-form__submit:hover:not(:disabled) {
    background: #b8923f;
    transform: translateY(-1px);
}

.dw-contact-form__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.dw-contact-form__submit:focus-visible {
    outline: 3px solid var(--wp--preset--color--gold-light);
    outline-offset: 3px;
}

/* Stany */
.dw-contact-form__success {
    text-align: center;
    padding: var(--wp--preset--spacing--16);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--wp--preset--spacing--6);
}

.dw-contact-form__success-message {
    font-size: var(--wp--preset--font-size--md);
    font-weight: 500;
    color: var(--wp--preset--color--charcoal);
    max-width: 480px;
    line-height: 1.5;
}

.dw-contact-form__error-banner {
    background: #fce8e8;
    border: 1px solid var(--wp--preset--color--error);
    border-radius: 12px;
    padding: var(--wp--preset--spacing--5) var(--wp--preset--spacing--6);
    margin-bottom: var(--wp--preset--spacing--6);
    color: var(--wp--preset--color--error);
    font-size: var(--wp--preset--font-size--sm);
}

@media (max-width: 640px) {
    .dw-contact-form__fields {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dw-contact-form__input,
    .dw-contact-form__textarea,
    .dw-contact-form__submit {
        transition: none;
    }
}

.dw-faq {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.dw-faq__item:first-child {
    border-top: 1px solid var(--wp--preset--color--light-gray);
}

.dw-faq__toggle {
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--md);
    font-weight: 500;
    line-height: 1.4;
    min-height: 44px;
    transition: color 200ms ease;
}

.dw-faq__toggle:hover {
    color: var(--wp--preset--color--gold);
}

.dw-faq__toggle:focus-visible {
    outline: 2px solid var(--wp--preset--color--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

.dw-faq__toggle[aria-expanded="true"] .dw-faq__question-text {
    color: var(--wp--preset--color--gold);
}

.dw-faq__icon-h {
    transform-origin: center;
}

.dw-faq__answer {
    margin: 0;
    padding: 0;
}

.dw-faq__answer--opening {
    animation: dw-faq-open 260ms cubic-bezier(.22, .61, .36, 1) forwards;
}

.dw-faq__answer--closing {
    animation: dw-faq-close 220ms cubic-bezier(.22, .61, .36, 1) forwards;
}

@keyframes dw-faq-open {
    from { max-height: 0; opacity: 0; }
    to   { max-height: var(--dw-faq-height, 600px); opacity: 1; }
}

@keyframes dw-faq-close {
    from { max-height: var(--dw-faq-height, 600px); opacity: 1; }
    to   { max-height: 0; opacity: 0; }
}

.dw-faq__answer-inner {
    padding: 0 0 var(--wp--preset--spacing--6);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .dw-faq__answer--opening,
    .dw-faq__answer--closing {
        animation: none;
    }
    .dw-faq__answer--closing {
        display: none;
    }
}


/* Shared button styles */
.dw-btn {
    justify-content: center;
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 500;
}

.dw-btn--gold {
    box-shadow: 0 4px 20px rgba(196, 163, 90, 0.3);
}

.dw-btn--gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(196, 163, 90, 0.45);
}

.dw-btn--outline {
    border: 1.5px solid var(--wp--preset--color--light-gray);
}

@media (prefers-reduced-motion: reduce) {
    .dw-btn { transition: none; }
}

.dw-pricelist {
    padding: var(--wp--preset--spacing--10) 0;
}

.dw-pricelist__filters {
    margin-bottom: var(--wp--preset--spacing--8);
    padding: var(--wp--preset--spacing--6) var(--wp--preset--spacing--8);
    background: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--light-gray);
    border-radius: 20px;
}

.dw-pricelist__filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--4);
    align-items: flex-end;
}

.dw-pricelist__filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 160px;
}

.dw-pricelist__filter-label {
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 500;
    color: var(--wp--preset--color--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dw-pricelist__input,
.dw-pricelist__select {
    height: 44px;
    padding: 0 16px;
    border: 1.5px solid var(--wp--preset--color--light-gray);
    border-radius: 10px;
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--charcoal);
    background: var(--wp--preset--color--white);
    outline: none;
    transition: border-color 200ms ease;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
}

.dw-pricelist__select {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9' stroke='%238A8078' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.dw-pricelist__input:focus,
.dw-pricelist__select:focus {
    border-color: var(--wp--preset--color--gold);
    box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.15);
}

.dw-pricelist__filter-actions {
    display: flex;
    gap: var(--wp--preset--spacing--3);
    align-items: center;
    flex-wrap: wrap;
}

/* Tabela */
.dw-pricelist__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dw-pricelist__table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--wp--preset--font-family--jost);
}

.dw-pricelist__th {
    text-align: left;
    padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--5);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 600;
    color: var(--wp--preset--color--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 2px solid var(--wp--preset--color--light-gray);
    white-space: nowrap;
}

.dw-pricelist__th--price {
    text-align: right;
    width: 200px;
}

.dw-pricelist__row {
    border-bottom: 1px solid var(--wp--preset--color--light-gray);
    transition: background 150ms ease;
}

.dw-pricelist__row:hover {
    background: var(--wp--preset--color--cream);
}

.dw-pricelist__td {
    padding: var(--wp--preset--spacing--5) var(--wp--preset--spacing--5);
    vertical-align: middle;
}

.dw-pricelist__td--price {
    text-align: right;
    white-space: nowrap;
}

.dw-pricelist__link {
    font-size: var(--wp--preset--font-size--base);
    color: var(--wp--preset--color--charcoal);
    text-decoration: none;
    font-weight: 500;
    transition: color 200ms ease;
}

.dw-pricelist__link:hover {
    color: var(--wp--preset--color--gold);
}

.dw-pricelist__price {
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--md);
    font-weight: 600;
    color: var(--wp--preset--color--charcoal);
}

.dw-pricelist__price-individual {
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--warm-gray);
    font-style: italic;
}

.dw-pricelist__empty {
    text-align: center;
    color: var(--wp--preset--color--warm-gray);
    padding: var(--wp--preset--spacing--12);
    font-size: var(--wp--preset--font-size--md);
}

.dw-pricelist__count {
    font-size: var(--wp--preset--font-size--xs);
    color: var(--wp--preset--color--warm-gray);
    margin-top: var(--wp--preset--spacing--4);
    text-align: right;
}

@media (max-width: 640px) {
    .dw-pricelist__filters {
        padding: var(--wp--preset--spacing--5) var(--wp--preset--spacing--4);
    }

    .dw-pricelist__filter-group {
        flex: 1 1 100%;
    }
}

.dw-configurator {
    max-width: 860px;
    margin: 0 auto;
    padding: var(--wp--preset--spacing--16) 0;
}

/* Kroki */
.dw-configurator__steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: var(--wp--preset--spacing--12);
    overflow-x: auto;
    padding-bottom: 4px;
}

.dw-configurator__step {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--3);
    padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--4);
    flex: 1;
    position: relative;
    opacity: 0.45;
    transition: opacity 200ms ease;
}

.dw-configurator__step::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid var(--wp--preset--color--light-gray);
    z-index: 1;
}

.dw-configurator__step:last-child::after {
    display: none;
}

.dw-configurator__step.is-active,
.dw-configurator__step.is-done {
    opacity: 1;
}

.dw-configurator__step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--wp--preset--color--light-gray);
    color: var(--wp--preset--color--warm-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 600;
    flex-shrink: 0;
    transition: background 200ms ease, color 200ms ease;
}

.dw-configurator__step.is-active .dw-configurator__step-num {
    background: var(--wp--preset--color--gold);
    color: var(--wp--preset--color--white);
}

.dw-configurator__step.is-done .dw-configurator__step-num {
    background: var(--wp--preset--color--charcoal);
    color: var(--wp--preset--color--white);
}

.dw-configurator__step-label {
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 500;
    color: var(--wp--preset--color--charcoal);
    white-space: nowrap;
}

/* Panele */
.dw-configurator__panel {
    min-height: 200px;
}

.dw-configurator__panel-title {
    font-family: var(--wp--preset--font-family--cormorant-garamond);
    font-size: var(--wp--preset--font-size--2xl);
    font-weight: 600;
    color: var(--wp--preset--color--charcoal);
    margin: 0 0 var(--wp--preset--spacing--8);
}

/* Audience grid */
.dw-configurator__audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--wp--preset--spacing--6);
    max-width: 400px;
}

.dw-configurator__audience-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--wp--preset--spacing--4);
    padding: var(--wp--preset--spacing--10);
    border: 2px solid var(--wp--preset--color--light-gray);
    border-radius: 24px;
    background: var(--wp--preset--color--white);
    cursor: pointer;
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--md);
    font-weight: 500;
    color: var(--wp--preset--color--charcoal);
    transition: border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
    min-height: 44px;
}

.dw-configurator__audience-btn:hover,
.dw-configurator__audience-btn.is-active,
.dw-configurator__audience-btn[aria-pressed="true"] {
    border-color: var(--wp--preset--color--gold);
    box-shadow: 0 4px 20px rgba(196, 163, 90, 0.2);
    color: var(--wp--preset--color--gold);
}

/* Areas grid */
.dw-configurator__areas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--3);
}

.dw-configurator__area-btn {
    padding: 8px 20px;
    border: 1.5px solid var(--wp--preset--color--light-gray);
    border-radius: 999px;
    background: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 500;
    color: var(--wp--preset--color--charcoal);
    cursor: pointer;
    transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
    min-height: 44px;
}

.dw-configurator__area-btn:hover,
.dw-configurator__area-btn.is-active {
    border-color: var(--wp--preset--color--gold);
    background: rgba(196, 163, 90, 0.08);
    color: var(--wp--preset--color--charcoal);
}

/* Procedures list */
.dw-configurator__procedures-list {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--3);
}

.dw-configurator__proc-btn {
    width: 100%;
    text-align: left;
    padding: var(--wp--preset--spacing--5) var(--wp--preset--spacing--6);
    border: 1.5px solid var(--wp--preset--color--light-gray);
    border-radius: 14px;
    background: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--jost);
    font-size: var(--wp--preset--font-size--base);
    font-weight: 500;
    color: var(--wp--preset--color--charcoal);
    cursor: pointer;
    transition: border-color 200ms ease, background 200ms ease;
    min-height: 56px;
}

.dw-configurator__proc-btn:hover {
    border-color: var(--wp--preset--color--gold);
    background: rgba(196, 163, 90, 0.06);
    color: var(--wp--preset--color--gold);
}

.dw-configurator__no-results {
    color: var(--wp--preset--color--warm-gray);
    font-size: var(--wp--preset--font-size--sm);
    padding: var(--wp--preset--spacing--6) 0;
}

/* Variants */
.dw-configurator__variants {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--4);
}

.dw-configurator__proc-detail-link {
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--gold);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: var(--wp--preset--spacing--6);
}

.dw-configurator__step4-actions {
    margin-top: var(--wp--preset--spacing--8);
}

/* Loading/error */
.dw-configurator__loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--wp--preset--color--warm-gray);
    font-size: var(--wp--preset--font-size--sm);
    padding: var(--wp--preset--spacing--8) 0;
}

.dw-configurator__error {
    color: var(--wp--preset--color--error);
    padding: var(--wp--preset--spacing--6);
    border: 1px solid var(--wp--preset--color--error);
    border-radius: 12px;
    font-size: var(--wp--preset--font-size--sm);
}

/* Nav */
.dw-configurator__nav {
    display: flex;
    gap: var(--wp--preset--spacing--4);
    margin-top: var(--wp--preset--spacing--10);
    flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
    .dw-configurator__step,
    .dw-configurator__step-num,
    .dw-configurator__audience-btn,
    .dw-configurator__area-btn,
    .dw-configurator__proc-btn { transition: none; }
}

@media (max-width: 640px) {
    .dw-configurator__steps {
        gap: 0;
    }

    .dw-configurator__step-label {
        display: none;
    }

    .dw-configurator__audience-grid {
        max-width: 100%;
    }
}

.dw-image-break {
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: hidden;
}

.dw-image-break__img {
    width: 100%;
    height: clamp(240px, 40vw, 560px);
    object-fit: cover;
    object-position: center;
    display: block;
}

.dw-image-break__caption {
    padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--6);
    font-size: var(--wp--preset--font-size--xs);
    color: var(--wp--preset--color--warm-gray);
    text-align: center;
    font-family: var(--wp--preset--font-family--jost);
    line-height: 1.5;
}

