/* ============================================
   Dev Consulting - Frontend
   Aesthetics: noir editorial, gold accents
   ============================================ */

/* Google Fonts są ładowane przez wp_enqueue zgodnie z aktywnym presetem typografii */

html, body {
    margin: 0;
    padding: 0;
}
body {
    background: var(--dk-dark, #0a0a0a);
}

.dk-app {
    /* CSS variables są wstrzykiwane na :root przez DK_Presets::build_css_variables()
       zgodnie z aktywnym presetem kolorów. Tu tylko fallbacki gdyby coś poszło nie tak. */
    font-family: var(--dk-font-sans, 'Inter', -apple-system, sans-serif);
    color: var(--dk-light, #f5f1e8);
    background: var(--dk-dark, #0a0a0a);
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: .01em;
}

.dk-app * { box-sizing: border-box; }

.dk-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

/* Typography */
.dk-app h1, .dk-app h2, .dk-app h3 {
    font-family: var(--dk-font-serif);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.01em;
    margin: 0;
}

.dk-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--dk-gold);
    margin-bottom: 24px;
    position: relative;
    padding-left: 40px;
}
.dk-eyebrow::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 28px;
    height: 1px;
    background: var(--dk-gold);
}

/* Hero */
.dk-hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    background-color: var(--dk-dark);
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid var(--dk-line);
}
.dk-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0, calc(.4 * var(--dk-bg-fx, 1))) 100%);
    pointer-events: none;
}

/* Hero grid layout (single col by default, split on desktop with image) */
.dk-hero__grid {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

/* Split mode: tekst + N kolumn ze zdjęciami obok siebie. Konkretne szerokości (grid-template-columns)
   ustawiane inline per sekcja w render-section.php - liczba kolumn i ich kolejność (tekst z lewej/prawej)
   są dynamiczne, więc kolejność w DOM już odpowiada kolejności wizualnej (bez sztuczek z CSS order). */
.dk-hero--split .dk-hero__grid {
    align-items: stretch;
    min-height: 92vh;
}

/* Text content column */
.dk-hero__content {
    display: flex;
    align-items: center;
    padding: clamp(60px, 10vh, 120px) clamp(24px, 5vw, 80px);
}

.dk-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
    width: 100%;
    text-align: left;
}

/* When no split (no image), inner is wider and centered */
.dk-hero:not(.dk-hero--split) .dk-hero__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px clamp(20px, 5vw, 60px);
}

/* Image column */
.dk-hero__media {
    position: relative;
    overflow: hidden;
    background: transparent;
}
.dk-hero__image {
    /* width/left ustawiane inline per zdjęcie (patrz dk_media_column() w render-section.php) -
       "fill" (ile % kolumny zajmuje) i "pos_x" (dokowanie lewo/prawo) są edytowalne per zdjęcie. */
    position: absolute;
    top: 50%;
    height: auto;
    display: block;
    transform: translate(-50%, -50%);
    transition: transform 1.2s cubic-bezier(.16,1,.3,1), left .3s ease, width .3s ease;
}
.dk-hero--zoom:hover .dk-hero__image {
    transform: translate(-50%, -50%) scale(1.04);
}

/* Tablet & mobile: stack columns vertically */
@media (max-width: 900px) {
    .dk-hero--split .dk-hero__grid {
        grid-template-columns: 1fr !important;
        min-height: auto;
    }
    .dk-hero--split.dk-hero--text-right .dk-hero__content {
        order: 2;
    }
    .dk-hero--split.dk-hero--text-right .dk-hero__media {
        order: 1;
    }
    .dk-hero__media {
        min-height: 50vh;
        max-height: 60vh;
    }
    .dk-hero__content {
        padding: clamp(40px, 8vh, 80px) clamp(20px, 5vw, 40px);
    }
}

.dk-hero__title {
    font-size: clamp(38px, 5vw, 72px);
    margin-bottom: 24px;
    color: var(--dk-light);
    font-family: var(--dk-font-serif);
}
.dk-hero__title em,
.dk-hero__title b {
    color: var(--dk-gold);
    font-style: italic;
    font-weight: 400;
}
.dk-hero__subtitle {
    font-size: clamp(15px, 1.2vw, 18px);
    max-width: 540px;
    margin: 0 0 36px;
    color: var(--dk-muted);
}

/* Buttons */
.dk-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: var(--dk-font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--dk-gold);
    color: var(--dk-light);
    background: transparent;
    cursor: pointer;
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
}
.dk-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--dk-gold);
    transform: translateX(-101%);
    transition: transform .4s ease;
    z-index: -1;
}
.dk-btn:hover { color: var(--dk-dark); }
.dk-btn:hover::before { transform: translateX(0); }

.dk-btn--gold {
    background: var(--dk-gold);
    color: var(--dk-dark);
}
.dk-btn--gold::before { background: var(--dk-light); }
.dk-btn--gold:hover { color: var(--dk-dark); }

/* Text section */
.dk-text-section {
    padding: clamp(60px, 10vw, 140px) 0;
    border-bottom: 1px solid var(--dk-line);
}
.dk-text-section h2 {
    font-size: clamp(34px, 4.5vw, 58px);
    max-width: 780px;
    margin-bottom: 32px;
}
.dk-prose {
    max-width: 680px;
    color: var(--dk-muted);
    font-size: 17px;
    line-height: 1.8;
}

/* Features */
.dk-features {
    padding: clamp(60px, 10vw, 140px) 0;
    border-bottom: 1px solid var(--dk-line);
    background:
        linear-gradient(var(--dk-dark), var(--dk-dark)) padding-box,
        radial-gradient(circle at 20% 0%, rgba(var(--dk-gold-rgb, 201, 169, 97), calc(.06 * var(--dk-bg-fx, 1))), transparent 50%);
}
.dk-features h2 {
    font-size: clamp(34px, 4.5vw, 58px);
    margin-bottom: 80px;
    max-width: 700px;
}
.dk-features__grid {
    display: grid;
    /* --dk-feature-cols ustawiane inline per sekcja (patrz render-section.php) na podstawie
       liczby/wag kolumn z panelu Treści strony - fallback to stary responsywny auto-fit. */
    grid-template-columns: var(--dk-feature-cols, repeat(auto-fit, minmax(260px, 1fr)));
    gap: 1px;
    background: var(--dk-line);
    border: 1px solid var(--dk-line);
}
.dk-feature {
    background: var(--dk-dark);
    padding: clamp(32px, 4vw, 56px) clamp(28px, 3.5vw, 48px);
    transition: background .4s ease;
    position: relative;
}
.dk-feature:hover {
    background: linear-gradient(180deg, rgba(var(--dk-gold-rgb, 201, 169, 97), .05), transparent);
}
.dk-feature__num {
    display: block;
    font-family: var(--dk-font-serif);
    font-size: 14px;
    color: var(--dk-gold);
    margin-bottom: 24px;
    letter-spacing: .2em;
}
.dk-feature h3 {
    font-size: 26px;
    margin-bottom: 16px;
    color: var(--dk-light);
}
.dk-feature p {
    color: var(--dk-muted);
    font-size: 15px;
    margin: 0;
}

/* Booking section */
.dk-booking {
    padding: clamp(60px, 10vw, 140px) 0;
    background: var(--dk-dark, #0a0a0a);
    position: relative;
}
.dk-booking::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--dk-darker, #050505) 100%);
    opacity: var(--dk-bg-fx, 1);
    pointer-events: none;
    z-index: 0;
}
.dk-booking > * {
    position: relative;
    z-index: 1;
}
.dk-booking h2 {
    font-size: clamp(34px, 4.5vw, 58px);
    margin-bottom: 16px;
}
.dk-booking__subtitle {
    color: var(--dk-muted);
    font-size: 17px;
    margin-bottom: 60px;
    max-width: 600px;
}

/* Booking widget */
#dk-booking-app {
    background: var(--dk-card-bg, rgba(255,255,255,.02));
    border: 1px solid var(--dk-line);
    padding: clamp(20px, 4vw, 56px);
    max-width: 980px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}
#dk-booking-app * {
    box-sizing: border-box;
}

.dk-step-indicator {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--dk-line);
}
.dk-step {
    flex: 1;
    padding: 12px 0;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--dk-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .3s ease;
}
.dk-step--active {
    color: var(--dk-gold);
    border-bottom-color: var(--dk-gold);
}

/* Calendar grid */
.dk-cal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.dk-cal__col {
    min-width: 0;
    width: 100%;
}
@media (max-width: 768px) {
    .dk-cal { grid-template-columns: 1fr; gap: 30px; }
}
.dk-cal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.dk-cal__month {
    font-family: var(--dk-font-serif);
    font-size: 22px;
    color: var(--dk-light);
}
.dk-cal__nav {
    background: transparent;
    border: 1px solid var(--dk-line);
    color: var(--dk-gold);
    width: 36px; height: 36px;
    cursor: pointer;
    transition: all .25s ease;
    font-size: 14px;
}
.dk-cal__nav:hover {
    border-color: var(--dk-gold);
    background: rgba(var(--dk-gold-rgb, 201, 169, 97), .1);
}
.dk-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.dk-cal__dow {
    text-align: center;
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--dk-muted);
    padding: 8px 0;
}
.dk-cal__day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--dk-light);
    cursor: pointer;
    font-size: 14px;
    transition: all .2s ease;
}
.dk-cal__day:hover:not(:disabled) {
    border-color: var(--dk-gold);
    color: var(--dk-gold);
}
.dk-cal__day:disabled {
    color: var(--dk-text-faint, rgba(255,255,255,.35));
    cursor: not-allowed;
}
.dk-cal__day--has-slots {
    color: var(--dk-light);
    position: relative;
}
.dk-cal__day--has-slots::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 4px; height: 4px;
    background: var(--dk-gold);
    border-radius: 50%;
}
.dk-cal__day--selected {
    background: var(--dk-gold);
    color: var(--dk-dark);
    font-weight: 500;
}

/* Slots */
.dk-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    align-content: start;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 480px) {
    .dk-slots {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}
.dk-slot-btn {
    padding: 12px 4px;
    background: transparent;
    border: 1px solid var(--dk-line);
    color: var(--dk-light);
    font-family: var(--dk-font-sans);
    font-size: 14px;
    cursor: pointer;
    transition: all .2s ease;
    box-sizing: border-box;
    min-width: 0;
    text-align: center;
}
@media (max-width: 480px) {
    .dk-slot-btn {
        font-size: 13px;
        padding: 10px 2px;
    }
}
.dk-slot-btn:hover:not(:disabled):not(.dk-slot-btn--non-adjacent) {
    border-color: var(--dk-gold);
    color: var(--dk-gold);
}
.dk-slot-btn--selected {
    background: var(--dk-gold);
    color: var(--dk-dark);
    border-color: var(--dk-gold);
    position: relative;
}
.dk-slot-btn--selected::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 10px;
    font-weight: 700;
}
.dk-slot-btn--disabled,
.dk-slot-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
}
.dk-slot-btn--non-adjacent {
    opacity: .5;
}
.dk-slot-btn--non-adjacent:hover {
    cursor: not-allowed;
    border-color: var(--dk-line);
    color: var(--dk-light);
}

/* Selection summary */
.dk-selection-summary {
    margin-top: 24px;
    padding: 14px 16px;
    background: rgba(var(--dk-gold-rgb, 201, 169, 97), .08);
    border-left: 2px solid var(--dk-gold);
    font-size: 13px;
    box-sizing: border-box;
    width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.dk-selection-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
    gap: 12px;
    flex-wrap: wrap;
}
.dk-selection-summary__row > span {
    min-width: 0;
}
.dk-selection-summary__row > span:last-child {
    text-align: right;
    flex: 0 1 auto;
}
.dk-selection-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid var(--dk-line);
    margin-top: 8px;
    padding-top: 10px;
    font-family: var(--dk-font-serif);
    font-size: 18px;
    color: var(--dk-gold);
    gap: 12px;
    flex-wrap: wrap;
}
@media (max-width: 480px) {
    .dk-selection-summary {
        font-size: 12px;
        padding: 12px 14px;
    }
    .dk-selection-summary__total {
        font-size: 16px;
    }
}

/* Form */
.dk-form {
    display: grid;
    gap: 20px;
    max-width: 520px;
}
.dk-form__row { display: grid; gap: 8px; }
.dk-form label {
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--dk-gold);
}
.dk-form input,
.dk-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--dk-line);
    padding: 12px 0;
    color: var(--dk-light);
    font-family: var(--dk-font-sans);
    font-size: 16px;
    outline: none;
    transition: border-color .25s ease;
}
.dk-form input:focus,
.dk-form textarea:focus {
    border-bottom-color: var(--dk-gold);
}
.dk-form textarea { min-height: 80px; resize: vertical; }

.dk-summary {
    margin: 32px 0;
    padding: 24px;
    background: rgba(var(--dk-gold-rgb, 201, 169, 97), .05);
    border-left: 2px solid var(--dk-gold);
}
.dk-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}
.dk-summary__label { color: var(--dk-muted); }
.dk-summary__value { color: var(--dk-light); }
.dk-summary__total {
    font-family: var(--dk-font-serif);
    font-size: 28px;
    color: var(--dk-gold);
    border-top: 1px solid var(--dk-line);
    margin-top: 12px;
    padding-top: 12px;
}

.dk-loading {
    text-align: center;
    color: var(--dk-muted);
    padding: 40px;
    font-style: italic;
}
.dk-error {
    color: #e57373;
    background: rgba(229,115,115,.08);
    padding: 14px;
    border-left: 2px solid #e57373;
    margin: 16px 0;
    font-size: 14px;
}
.dk-success {
    color: var(--dk-gold);
    text-align: center;
    padding: 40px;
}
.dk-success h3 {
    font-family: var(--dk-font-serif);
    font-size: 36px;
    margin-bottom: 16px;
}

/* Animations */
@keyframes dkFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dk-hero__inner > * {
    animation: dkFadeUp .8s ease both;
}
.dk-hero__inner > *:nth-child(1) { animation-delay: .1s; }
.dk-hero__inner > *:nth-child(2) { animation-delay: .25s; }
.dk-hero__inner > *:nth-child(3) { animation-delay: .4s; }
.dk-hero__inner > *:nth-child(4) { animation-delay: .55s; }

/* Mobile */
@media (max-width: 600px) {
    .dk-hero { min-height: 80vh; }
    .dk-features__grid { grid-template-columns: 1fr !important; }
}

/* RODO consent checkbox */
.dk-form__row--consent {
    margin-top: 20px;
    padding: 16px 18px;
    background: var(--dk-card-bg, rgba(255,255,255,.04));
    border: 1px solid var(--dk-line);
    border-left: 3px solid var(--dk-gold);
}
.dk-consent {
    display: flex;
    gap: 12px;
    cursor: pointer;
    align-items: flex-start;
    line-height: 1.5;
}
.dk-consent input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--dk-gold);
    cursor: pointer;
}
.dk-consent__text {
    font-size: 13px;
    color: var(--dk-muted);
}
.dk-consent__text a {
    color: var(--dk-gold);
    text-decoration: underline;
}
.dk-consent__text a:hover {
    color: var(--dk-gold-dark, var(--dk-gold));
}

/* ==========================================
   Sekcja "O mnie" - split layout z image
   (analogiczna do hero, ale lżejsza)
   ========================================== */
.dk-about--split {
    padding: clamp(60px, 10vw, 120px) 0;
}
.dk-about--split .dk-container {
    max-width: 1400px;
    padding: 0 clamp(20px, 5vw, 60px);
}
.dk-about__grid {
    /* grid-template-columns ustawiane inline per sekcja (patrz render-section.php) - liczba kolumn
       i ich kolejność (tekst z lewej/prawej) są dynamiczne, DOM już odpowiada kolejności wizualnej. */
    display: grid;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.dk-about__content {
    max-width: 640px;
}
.dk-about__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: transparent;
}
.dk-about__image {
    /* width/left ustawiane inline per zdjęcie (patrz dk_media_column() w render-section.php). */
    position: absolute;
    top: 50%;
    height: auto;
    display: block;
    transform: translate(-50%, -50%);
    transition: transform 1.2s cubic-bezier(.16, 1, .3, 1), left .3s ease, width .3s ease;
}
.dk-about--zoom:hover .dk-about__image {
    transform: translate(-50%, -50%) scale(1.04);
}

/* Mobile: stack columns vertically */
@media (max-width: 900px) {
    .dk-about__grid {
        grid-template-columns: 1fr !important;
        gap: 32px;
    }
    .dk-about--split.dk-about--text-right .dk-about__content {
        order: 2;
    }
    .dk-about--split.dk-about--text-right .dk-about__media {
        order: 1;
    }
    .dk-about__media {
        aspect-ratio: 3 / 2;
        max-height: 50vh;
    }
}

/* ==========================================
   Sekcja Opinie / Reviews
   ========================================== */
.dk-reviews {
    padding: clamp(60px, 10vw, 130px) 0;
    background: var(--dk-dark);
    border-bottom: 1px solid var(--dk-line);
}
.dk-reviews__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.dk-reviews__header h2 {
    margin: 8px 0 0;
}
.dk-reviews__stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.dk-reviews__avg {
    font-family: var(--dk-font-serif);
    font-size: 56px;
    line-height: 1;
    color: var(--dk-gold);
    font-weight: 500;
}
.dk-reviews__count {
    color: var(--dk-muted);
    font-size: 14px;
    margin-top: 4px;
}

/* Gwiazdki (display) */
.dk-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 16px;
    line-height: 1;
}
.dk-stars--lg { font-size: 20px; }
.dk-star--full  { color: var(--dk-gold); }
.dk-star--half  {
    color: var(--dk-gold);
    position: relative;
    opacity: .55;
}
.dk-star--empty { color: var(--dk-line); }

/* Karuzela */
.dk-reviews__carousel {
    position: relative;
    overflow: hidden;
}
.dk-reviews__track {
    display: flex;
    gap: 24px;
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
    will-change: transform;
}
.dk-reviews__loading {
    color: var(--dk-muted);
    padding: 40px 0;
    font-size: 14px;
}
.dk-review-card {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
    background: var(--dk-card-bg, rgba(255,255,255,.03));
    border: 1px solid var(--dk-line);
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.dk-review-card__stars {
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.dk-review-card__content {
    flex: 1;
    color: var(--dk-light);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 20px;
}
.dk-review-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--dk-line);
}
.dk-review-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.dk-review-card__avatar--initials {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--dk-gold);
    color: var(--dk-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--dk-font-serif);
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}
.dk-review-card__name {
    font-weight: 600;
    font-size: 14px;
    color: var(--dk-light);
}
.dk-review-card__verified {
    font-size: 11px;
    color: var(--dk-gold);
    margin-top: 2px;
}
.dk-review-card__date {
    font-size: 11px;
    color: var(--dk-muted);
    margin-top: 2px;
}

/* Nawigacja karuzeli */
.dk-reviews__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--dk-line);
    background: var(--dk-dark);
    color: var(--dk-gold);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    z-index: 2;
}
.dk-reviews__nav:hover {
    background: var(--dk-gold);
    color: var(--dk-dark);
    border-color: var(--dk-gold);
}
.dk-reviews__nav:disabled {
    opacity: .3;
    cursor: not-allowed;
}
.dk-reviews__nav:disabled:hover {
    background: var(--dk-dark);
    color: var(--dk-gold);
    border-color: var(--dk-line);
}
.dk-reviews__nav--prev { left: -22px; }
.dk-reviews__nav--next { right: -22px; }

.dk-reviews__cta {
    text-align: center;
    margin-top: 48px;
}
.dk-reviews__empty {
    text-align: center;
    color: var(--dk-muted);
    padding: 40px 0;
    font-size: 15px;
}

/* Mobile karuzela: 1 widoczna */
@media (max-width: 900px) {
    .dk-review-card {
        flex: 0 0 calc(100% - 0px);
    }
    .dk-reviews__nav--prev { left: 4px; }
    .dk-reviews__nav--next { right: 4px; }
    .dk-reviews__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}
@media (min-width: 901px) and (max-width: 1200px) {
    .dk-review-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

/* ==========================================
   Formularz oceny (strona / modal)
   ========================================== */
.dk-review-form-page {
    background: var(--dk-dark);
    min-height: 80vh;
}
.dk-review-form__intro {
    color: var(--dk-muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 12px 0 32px;
}
.dk-review-form .dk-form__row {
    margin-bottom: 24px;
}
.dk-form__label {
    display: block;
    font-size: 13px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--dk-muted);
    margin-bottom: 8px;
}
.dk-required { color: var(--dk-gold); }
.dk-form__help {
    display: block;
    font-size: 12px;
    color: var(--dk-muted);
    margin-top: 6px;
}

/* Rating input (klikalne gwiazdki) */
.dk-rating-input {
    display: flex;
    align-items: center;
    gap: 4px;
}
.dk-rating-input__star {
    background: none;
    border: none;
    font-size: 36px;
    line-height: 1;
    color: var(--dk-line);
    cursor: pointer;
    padding: 0 2px;
    transition: color .15s ease, transform .15s ease;
}
.dk-rating-input__star:hover {
    transform: scale(1.15);
}
.dk-rating-input__star--active {
    color: var(--dk-gold);
}
.dk-rating-input__label {
    margin-left: 14px;
    font-size: 14px;
    color: var(--dk-muted);
}

.dk-review-form input[type="text"],
.dk-review-form textarea {
    width: 100%;
    background: var(--dk-card-bg, rgba(255,255,255,.03));
    border: 1px solid var(--dk-line);
    color: var(--dk-light);
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    border-radius: 2px;
}
.dk-review-form input[type="text"]:focus,
.dk-review-form textarea:focus {
    outline: none;
    border-color: var(--dk-gold);
}
.dk-review-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}
.dk-review-form input[type="file"] {
    color: var(--dk-muted);
    font-size: 13px;
}
.dk-btn--lg {
    padding: 16px 40px;
    font-size: 15px;
}

/* Komunikaty wyniku */
.dk-review-msg {
    padding: 16px 20px;
    border-radius: 2px;
    font-size: 14px;
    line-height: 1.5;
}
.dk-review-msg--success {
    background: rgba(0,163,42,.1);
    border: 1px solid rgba(0,163,42,.4);
    color: #4ade80;
}
.dk-review-msg--error {
    background: rgba(214,54,56,.1);
    border: 1px solid rgba(214,54,56,.4);
    color: #f87171;
}

/* Gwiazdki małe (karta opinii) */
.dk-stars--sm { font-size: 14px; letter-spacing: 1px; margin-bottom: 14px; }

/* ============================================
   GALERIA + LIGHTBOX
   ============================================ */
.dk-gallery {
    padding: clamp(60px, 10vw, 140px) 0;
    border-bottom: 1px solid var(--dk-line);
}
.dk-gallery h2 {
    font-size: clamp(30px, 4vw, 48px);
    margin: 0 0 40px;
}
.dk-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.dk-gallery__item {
    display: block;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 2px;
}
.dk-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.dk-gallery__item:hover img {
    transform: scale(1.05);
}

.dk-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
}
.dk-lightbox[hidden] { display: none; }
.dk-lightbox__figure {
    max-width: min(90vw, 1100px);
    max-height: 85vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.dk-lightbox__image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.dk-lightbox__caption {
    color: var(--dk-muted, rgba(255,255,255,.7));
    font-size: 14px;
    text-align: center;
}
.dk-lightbox__close, .dk-lightbox__nav {
    position: absolute;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 12px;
    opacity: .8;
}
.dk-lightbox__close:hover, .dk-lightbox__nav:hover { opacity: 1; }
.dk-lightbox__close { top: 16px; right: 20px; font-size: 36px; }
.dk-lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); font-size: 48px; }
.dk-lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); font-size: 48px; }
@media (max-width: 600px) {
    .dk-gallery__grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
    .dk-lightbox__nav { font-size: 32px; }
}

/* ============================================
   PORTFOLIO - karuzela kolumn (kilka kart naraz + strzałki, jak karuzela opinii)
   ============================================ */
.dk-portfolio {
    padding: clamp(60px, 10vw, 140px) 0;
    border-bottom: 1px solid var(--dk-line);
}
.dk-portfolio h2 {
    font-size: clamp(30px, 4vw, 48px);
    margin: 0 0 40px;
}
.dk-portfolio__carousel {
    position: relative;
    overflow: hidden;
}
.dk-portfolio__track {
    display: flex;
    gap: 24px;
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
    will-change: transform;
}
.dk-portfolio__card {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--dk-line);
    background: var(--dk-card-bg, rgba(255,255,255,.03));
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color .2s ease;
}
.dk-portfolio__card:hover { border-color: var(--dk-gold); }
.dk-portfolio__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.dk-portfolio__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.dk-portfolio__card:hover .dk-portfolio__media img { transform: scale(1.05); }
.dk-portfolio__caption {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--dk-light);
    border-top: 1px solid var(--dk-line);
}

.dk-portfolio__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--dk-line);
    background: var(--dk-dark);
    color: var(--dk-gold);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    z-index: 2;
}
.dk-portfolio__nav:hover { background: var(--dk-gold); color: var(--dk-dark); border-color: var(--dk-gold); }
.dk-portfolio__nav:disabled { opacity: .3; cursor: not-allowed; }
.dk-portfolio__nav:disabled:hover { background: var(--dk-dark); color: var(--dk-gold); border-color: var(--dk-line); }
.dk-portfolio__nav--prev { left: -22px; }
.dk-portfolio__nav--next { right: -22px; }

@media (max-width: 600px) {
    .dk-portfolio__nav--prev { left: 4px; }
    .dk-portfolio__nav--next { right: 4px; }
}

/* ============================================
   GRID ARTYKUŁÓW (sekcja article_grid) - miniatura, tytuł, zajawka
   ============================================ */
.dk-article-grid {
    padding: clamp(60px, 10vw, 140px) 0;
    border-bottom: 1px solid var(--dk-line);
}
.dk-article-grid h2 {
    font-size: clamp(30px, 4vw, 48px);
    margin: 0 0 40px;
}
.dk-article-grid__grid {
    display: grid;
    grid-template-columns: repeat(var(--dk-article-cols, 3), 1fr);
    gap: 28px;
}
.dk-article-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--dk-line);
    background: var(--dk-card-bg, rgba(255,255,255,.03));
    overflow: hidden;
    transition: border-color .2s ease;
}
.dk-article-card:hover { border-color: var(--dk-gold); }
.dk-article-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.dk-article-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.dk-article-card:hover .dk-article-card__media img { transform: scale(1.05); }
.dk-article-card__body { padding: 20px 22px 24px; }
.dk-article-card__title {
    font-family: var(--dk-font-serif);
    font-size: 19px;
    margin: 0 0 10px;
    color: var(--dk-light);
    text-wrap: balance;
}
.dk-article-card__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dk-muted);
    margin: 0;
}
@media (max-width: 900px) {
    .dk-article-grid__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .dk-article-grid__grid { grid-template-columns: 1fr; }
}

/* ============================================
   FORMULARZ (sekcja "form", tryb sprzedaży) - sprzedaż dóbr cyfrowych (np. biletów) przez Stripe.
   Celowo tylko zmienne motywu (--dk-*), żeby wyglądało spójnie na każdym presecie kolorystycznym,
   jasnym czy ciemnym - pola formularza używają dokładnie tego samego stylu co .dk-form (rezerwacja).
   ============================================ */
.dk-product {
    padding: clamp(60px, 10vw, 140px) 0;
    border-bottom: 1px solid var(--dk-line);
}
.dk-product__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    background: var(--dk-card-bg, rgba(255,255,255,.02));
    border: 1px solid var(--dk-line);
    padding: clamp(24px, 4vw, 48px);
}
.dk-product__media { aspect-ratio: 4 / 3; overflow: hidden; }
.dk-product__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dk-product__title {
    font-family: var(--dk-font-serif);
    font-size: clamp(26px, 3vw, 34px);
    margin: 0 0 14px;
    color: var(--dk-light);
    text-wrap: balance;
}
.dk-product__description {
    color: var(--dk-muted);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 28px;
}
.dk-product-form__row--qty { max-width: 160px; }
.dk-product-form__stepper {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--dk-line);
}
.dk-product-form__stepper input {
    border: none !important;
    text-align: center;
    width: 100%;
    -moz-appearance: textfield;
}
.dk-product-form__stepper input::-webkit-outer-spin-button,
.dk-product-form__stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.dk-product-form__step {
    background: transparent;
    border: none;
    color: var(--dk-gold);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 8px 14px;
}
.dk-product-form__step:hover { color: var(--dk-light); }
.dk-product-form__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 18px 0;
    margin: 20px 0;
    border-top: 1px solid var(--dk-line);
    color: var(--dk-muted);
    font-size: 14px;
}
.dk-product-form__total-value {
    font-family: var(--dk-font-serif);
    font-size: 24px;
    color: var(--dk-gold);
}
.dk-product-form__submit { width: 100%; text-align: center; }
.dk-form__sent { color: var(--dk-gold); font-size: 16px; text-align: center; padding: 20px 0; margin: 0; }
@media (max-width: 760px) {
    .dk-product__card { grid-template-columns: 1fr; }
}

/* Baner potwierdzenia / anulowania zamówienia (sekcja "form" w trybie sprzedaży) - wstawiany dynamicznie przez JS
   na górze strony po powrocie ze Stripe, patrz public.js. */
.dk-order-banner {
    max-width: 900px;
    margin: 24px auto 0;
    padding: 18px 22px;
    border: 1px solid var(--dk-line);
    background: var(--dk-card-bg, rgba(255,255,255,.02));
    color: var(--dk-light);
    font-size: 14px;
    line-height: 1.6;
}
.dk-order-banner strong { color: var(--dk-gold); }
.dk-order-banner--cancel { color: var(--dk-muted); }

/* Meta autora w karcie */
.dk-review-card__meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* ============================================
   ARTYKUŁ (E-E-A-T): tytuł, autor z bio, daty, treść, źródła
   ============================================ */
.dk-container--narrow { max-width: 760px; }
.dk-article { padding: clamp(60px, 8vw, 100px) 0 clamp(80px, 10vw, 140px); }
.dk-article__title {
    font-size: clamp(30px, 4.5vw, 48px);
    margin: 12px 0 28px;
    text-wrap: balance;
}
.dk-article__meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 28px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--dk-line);
}
.dk-article__author { display: flex; align-items: center; gap: 14px; }
.dk-article__author-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dk-article__author-name { font-weight: 600; color: var(--dk-light); font-size: 15px; }
.dk-article__author-bio { color: var(--dk-muted); font-size: 13px; margin-top: 2px; max-width: 60ch; }
.dk-article__dates { color: var(--dk-muted); font-size: 13px; }
.dk-article__cover { margin: 0 0 36px; aspect-ratio: 16/9; overflow: hidden; }
.dk-article__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dk-article__content { max-width: none; }
.dk-article__content p { margin: 0 0 22px; }
.dk-article__content h2 { font-size: 26px; margin: 40px 0 18px; color: var(--dk-light); }
.dk-article__content h3 { font-size: 20px; margin: 32px 0 14px; color: var(--dk-light); }
.dk-article__content img { max-width: 100%; height: auto; margin: 24px 0; }
.dk-article__content blockquote {
    border-left: 3px solid var(--dk-gold);
    margin: 28px 0;
    padding: 4px 0 4px 20px;
    font-style: italic;
    color: var(--dk-light);
}
.dk-article__content ul, .dk-article__content ol { margin: 0 0 22px; padding-left: 24px; }
.dk-article__sources {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--dk-line);
}
.dk-article__sources h2 { font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: var(--dk-muted); margin: 0 0 14px; }
.dk-article__sources ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dk-article__sources a { color: var(--dk-gold); font-size: 14px; word-break: break-word; }
