/* Kokonat — System ofertówek
 * Public client offer view (Task #5). Self-contained — does not depend on
 * app.css. Loaded only for visitors of /o/{token}.
 */

:root {
    --pink:   #e86ead;
    --purple: #732fb9;
    --deep:   #27104f;
    --orange: #e74d24;
    --cream:  #fdf6ec;
    --white:  #fff;
    --grey:   #6b6580;
    --light:  #f4f0ea;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--cream);
    color: var(--deep);
    min-height: 100vh;
    overflow-x: hidden;
}

.client-view {
    max-width: 920px;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    box-shadow: 0 0 60px rgba(39,16,79,0.08);
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.hero {
    background: var(--deep);
    color: var(--white);
    padding: 56px 56px 70px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(232,110,173,0.25), transparent 70%);
    pointer-events: none;
}
.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-img {
    height: 32px;
    width: auto;
    display: block;
}
/* Legacy pink-droplet mark + text — kept so older snapshots that still
   reference these classes still render something. Current templates use
   .logo-img with the official wordmark instead. */
.logo-mark {
    width: 28px; height: 28px;
    background: var(--pink);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}
.logo-text {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 22px;
}
.hero-meta {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
    text-align: right;
}
.hero-meta strong {
    display: block;
    color: var(--pink);
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 12px;
}
.countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(231,77,36,0.15);
    border: 1px solid rgba(231,77,36,0.35);
    border-radius: 999px;
    font-size: 11px;
    color: #ffb89e;
    letter-spacing: 0.03em;
    text-transform: none;
}
.countdown.urgent {
    background: rgba(231,77,36,0.3);
    border-color: rgba(231,77,36,0.6);
    color: #ffd4c2;
}
.countdown .cdot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--orange);
}
.countdown strong { color: var(--white); font-weight: 600; }

.hero h1 {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 50px;
    /* 600 per Patrycja's weight policy — 700 was too heavy at 50px. */
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 2;
    margin-bottom: 18px;
}
.hero h1 em {
    font-style: italic;
    color: var(--pink);
    font-weight: 400;
}
.hero .sub {
    font-size: 15px;
    opacity: 0.85;
    max-width: 540px;
    line-height: 1.55;
    position: relative;
    z-index: 2;
}
.hero .sub.note {
    margin-top: 20px;
    padding: 18px 20px;
    background: rgba(232,110,173,0.1);
    border-left: 3px solid var(--pink);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    opacity: 1;
    color: rgba(255,255,255,0.95);
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    line-height: 1.6;
}

.hero-client {
    margin-top: 36px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 2;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-client .logo-box {
    width: 54px; height: 54px;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-weight: 700;
    color: var(--purple);
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}
.hero-client .logo-box img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.hero-client .for {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
    margin-bottom: 2px;
}
.hero-client .cname { font-family: "ivypresto-display", "Playfair Display", Georgia, serif; font-size: 20px; font-weight: 600; }
.hero-client .csub { font-size: 13px; opacity: 0.75; margin-top: 2px; }

/* -------------------------------------------------------------------------- */
/* Section shells                                                             */
/* -------------------------------------------------------------------------- */

.gallery, .section, .testi, .cta { padding: 60px 56px; }
.section { border-bottom: 1px solid var(--light); }
.gallery { background: var(--white); border-bottom: 1px solid var(--light); }

.sec-label {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--purple);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sec-label::before { content: ''; width: 24px; height: 2px; background: var(--pink); }

.gallery h2, .section h2, .testi h2, .cta h2 {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 18px;
}
.gallery h2 em, .section h2 em, .testi h2 em, .cta h2 em {
    font-style: italic;
    color: var(--purple);
}
.gallery p, .section p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--grey);
    max-width: 600px;
    margin-bottom: 14px;
}

/* -------------------------------------------------------------------------- */
/* Gallery                                                                    */
/* -------------------------------------------------------------------------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 158px;
    gap: 8px;
    margin-top: 24px;
}
.g-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--deep);
    transition: transform 0.3s;
}
.g-item:hover {
    transform: scale(1.015);
    box-shadow: 0 18px 40px rgba(39,16,79,0.25);
}
.g-item.lg { grid-column: span 2; grid-row: span 2; }
.g-item.md { grid-column: span 2; }
.g-item svg,
.g-item .g-media {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.g-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(39,16,79,0.85), rgba(39,16,79,0.2) 45%, transparent 65%);
    pointer-events: none;
}
.g-label {
    position: absolute;
    bottom: 12px;
    left: 14px;
    right: 14px;
    color: #fff;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.g-title {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 3px;
}
.g-item.lg .g-title { font-size: 17px; }
.g-meta { font-size: 10px; opacity: 0.85; line-height: 1.3; }

/* #18 — gallery variant: "title_only" hides the meta sub-line. The toggle
   lives in the editor sidebar (offers.gallery_variant column persisted). */
.gallery[data-gallery-variant="title_only"] .g-meta { display: none; }

/* Portfolio CTA — small caption right under the grid. Subtle but with the
   link in brand pink so it earns the click without competing with the
   gallery itself. */
.gallery-cta {
    margin-top: 28px;
    text-align: left;
    font-size: 14px;
    color: rgba(39,16,79,0.7);
}
.gallery-cta a {
    color: var(--pink);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(232,110,173,0.4);
    padding-bottom: 1px;
    transition: border-color 0.2s, color 0.2s;
}
.gallery-cta a:hover {
    color: var(--purple);
    border-bottom-color: var(--purple);
}

/* -------------------------------------------------------------------------- */
/* Offer table                                                                */
/* -------------------------------------------------------------------------- */

.offer-section { padding-bottom: 50px; }

.offer-table { margin-top: 24px; }
.table-head, .offer-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 24px;
    padding: 16px 0;
    align-items: center;
}
.table-head {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey);
    font-weight: 600;
    border-bottom: 2px solid var(--deep);
}
.table-head .qc { min-width: 60px; text-align: center; }
.table-head .pc { min-width: 110px; text-align: right; }
.table-head .tc { min-width: 130px; text-align: right; }

.offer-row { border-bottom: 1px solid var(--light); }
.offer-row .oname { font-weight: 500; font-size: 15px; }
.offer-row .oname small {
    display: block;
    color: var(--grey);
    font-size: 11px;
    margin-top: 3px;
    font-weight: 400;
}
.offer-row .qc { font-size: 13px; color: var(--grey); min-width: 60px; text-align: center; }
.offer-row .pc { font-size: 13px; color: var(--grey); min-width: 110px; text-align: right; }
.offer-row .pc small { color: var(--purple); }
.offer-row .tc {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    min-width: 130px;
    text-align: right;
}

.opill {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 9px;
    background: rgba(115,47,185,0.12);
    color: var(--purple);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.offer-row .tc small {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: var(--grey);
    margin-top: 1px;
}
.offer-row .oname-budget { color: var(--purple); }

/* --- Stage headers in offer table (prototype CSS 148–151) --- */
.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 30px;
    padding: 14px 0 12px;
    border-bottom: 2px solid var(--deep);
}
.stage-header:first-child { margin-top: 24px; }
.stage-header .st-label {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--deep);
}
.stage-header .st-num {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--purple);
    font-weight: 600;
}
.offer-row .nw { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* --- Tooltip: info icon + dark bubble on hover/focus (prototype CSS 182–186) --- */
.info-i {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--light);
    color: var(--purple);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    flex-shrink: 0;
    position: relative;
    line-height: 1;
}
.info-i:hover, .info-i:focus { background: var(--purple); color: #fff; outline: none; }
.info-i .tip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--deep);
    color: #fff;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    width: 260px;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
    text-transform: none;
    box-shadow: 0 12px 30px rgba(39,16,79,0.3);
}
.info-i .tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--deep);
}
.info-i:hover .tip, .info-i:focus .tip { opacity: 1; }

.offer-empty {
    padding: 28px;
    text-align: center;
    color: var(--grey);
    font-size: 13px;
    background: var(--cream);
    border-radius: 8px;
}

.discount-banner {
    margin-top: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(231,77,36,0.1), rgba(232,110,173,0.1));
    border-left: 3px solid var(--orange);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.discount-banner .dl { font-size: 12px; font-weight: 500; }
.discount-banner .da {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 18px;
    color: var(--orange);
    font-weight: 600;
}

.summary {
    margin-top: 34px;
    padding: 28px;
    background: var(--deep);
    color: #fff;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.summary.summary-3col { grid-template-columns: 1fr 1.2fr 1fr; gap: 0; }
.summary .val-strike { text-decoration: line-through; opacity: 0.55; font-size: 26px; }

.summary-monthly {
    margin-top: 14px;
    padding: 28px;
    background: var(--purple);
    color: #fff;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.summary-monthly h4 {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
    margin-bottom: 8px;
    font-weight: 600;
}
.summary-monthly .val {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
}
.summary-monthly .val small { font-size: 14px; font-weight: 400; opacity: 0.8; }
.summary-monthly .snote { font-size: 11px; opacity: 0.78; margin-top: 4px; }
.summary-monthly .hl {
    padding-left: 28px;
    border-left: 1px solid rgba(255,255,255,0.2);
}
.summary h4 {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 8px;
    font-weight: 600;
}
.summary .val {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
}
.summary .snote { font-size: 11px; opacity: 0.7; margin-top: 4px; }
.summary .hl {
    padding-left: 28px;
    border-left: 1px solid rgba(255,255,255,0.15);
}
.summary .hl .val {
    background: linear-gradient(135deg, var(--pink), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.summary .discount-cell {
    padding: 0 28px;
    background: linear-gradient(135deg, rgba(231,77,36,0.15), rgba(232,110,173,0.1));
    border-left: 1px solid rgba(255,255,255,0.15);
    border-right: 1px solid rgba(255,255,255,0.15);
    position: relative;
    margin: -28px 0;
    padding-top: 28px;
    padding-bottom: 28px;
}
.summary .discount-cell h4 { color: #ffb89e; opacity: 1; }
.summary .discount-cell .val { color: #ffd4c2; font-size: 30px; }
.summary .discount-cell .snote { color: rgba(255,212,194,0.85); }
.summary .discount-cell::before {
    content: '✓ RABAT';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: 999px;
}
.summary.summary-3col > div:first-child { padding-right: 28px; }

/* -------------------------------------------------------------------------- */
/* Testimonials                                                               */
/* -------------------------------------------------------------------------- */

.testi { background: var(--white); border-bottom: 1px solid var(--light); }
.testi h2 { font-size: 32px; }
.testi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 30px;
}
.testi-card {
    padding: 24px;
    background: var(--cream);
    border-radius: 10px;
    border-left: 3px solid var(--pink);
}
.testi-card .q {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 14px;
}
.testi-card .a { font-size: 11px; font-weight: 600; }
.testi-card .a small { display: block; color: var(--grey); font-weight: 400; margin-top: 2px; }

/* -------------------------------------------------------------------------- */
/* CTA                                                                        */
/* -------------------------------------------------------------------------- */

.cta { background: var(--cream); text-align: center; padding: 60px 56px; }
.cta h2 { font-size: 32px; margin-bottom: 10px; font-family: "ivypresto-display", "Playfair Display", Georgia, serif; font-weight: 600; }
.cta p { font-size: 14px; color: var(--grey); max-width: 480px; margin: 0 auto 28px; line-height: 1.6; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-btn {
    padding: 16px 28px;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.25s;
}
.cta-btn.primary { background: var(--deep); color: #fff; }
.cta-btn.primary:hover { background: var(--purple); }
.cta-btn.accent { background: var(--orange); color: #fff; }
.cta-btn.accent:hover { background: #c43d18; }
.cta-btn.outline {
    background: transparent;
    color: var(--deep);
    border: 1.5px solid var(--deep);
}
.cta-btn.outline:hover { background: var(--deep); color: #fff; }

a.cta-btn { text-decoration: none; display: inline-block; }

.cta-btn[disabled],
.cta-btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.preview-banner {
    background: #fff8db;
    border: 1px solid #e6c95a;
    color: #6b4f00;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 0 0 22px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.cta-pdf {
    margin-top: 22px;
    font-size: 12px;
    color: var(--grey);
}
.cta-pdf a {
    color: var(--purple);
    text-decoration: none;
    border-bottom: 1px solid rgba(115,47,185,0.3);
    font-weight: 500;
}
.cta-pdf a:hover { color: var(--deep); border-color: var(--deep); }

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.pg-footer {
    background: var(--deep);
    color: #fff;
    padding: 40px 56px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 36px;
    align-items: start;
}
.pg-footer .sender-card { display: flex; gap: 16px; align-items: flex-start; }
.pg-footer .sender-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-weight: 600;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}
/* When a photo is configured for the sender, override the gradient
   background with the actual portrait, cropped to the circle. */
.pg-footer .sender-avatar-photo {
    object-fit: cover;
    background: none;
}
.pg-footer .sender-info { font-size: 12px; line-height: 1.55; max-width: 260px; }
.pg-footer .sender-name {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--pink);
    margin-bottom: 2px;
}
.pg-footer .sender-role { font-size: 11px; opacity: 0.7; margin-bottom: 8px; }
.pg-footer .sender-bio { font-size: 12px; opacity: 0.85; line-height: 1.55; margin-bottom: 10px; font-style: italic; }
.pg-footer .sender-contact { display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.pg-footer .sender-contact a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}
.pg-footer .sender-contact a:hover { color: var(--pink); opacity: 1; }
.pg-footer .company-info { font-size: 11px; opacity: 0.65; line-height: 1.7; padding-top: 6px; }
.pg-footer .company-info strong {
    display: block;
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 12px;
    color: #fff;
    opacity: 0.9;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}
.pg-footer .hours { margin-top: 8px; font-size: 11px; opacity: 0.7; }
.pg-footer .meta-side {
    text-align: right;
    font-size: 11px;
    opacity: 0.5;
    line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/* Modals + success overlay                                                   */
/* -------------------------------------------------------------------------- */

.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(39,16,79,0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    padding: 20px;
}
.modal-bg.show { display: flex; }
.modal {
    background: #fff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    padding: 36px;
    text-align: center;
}
.modal .iw {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px;
}
.modal h3 {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 600;
}
.modal > p {
    font-size: 13px;
    color: var(--grey);
    line-height: 1.6;
    margin-bottom: 22px;
}
.modal .field { text-align: left; margin-bottom: 14px; }
.modal .field label {
    display: block;
    color: var(--grey);
    margin-bottom: 5px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}
.modal .field input, .modal .field textarea {
    width: 100%;
    background: var(--cream);
    border: 1px solid var(--light);
    color: var(--deep);
    padding: 11px 13px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
}
.modal .field input:focus, .modal .field textarea:focus {
    outline: none;
    border-color: var(--purple);
    background: #fff;
}
.modal .field textarea { resize: vertical; min-height: 60px; }
/* Two-column row for paired fields (e-mail + phone). Stacks on narrow
   viewports so each input still has breathing room on mobile. */
.modal .field-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}
.modal .field-row .field { flex: 1; margin-bottom: 0; min-width: 0; }
@media (max-width: 480px) {
    .modal .field-row { flex-direction: column; gap: 0; }
    .modal .field-row .field { margin-bottom: 14px; }
}
.modal .field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(39,16,79,0.55);
    line-height: 1.35;
}
.modal .check-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--cream);
    padding: 12px 14px;
    border-radius: 8px;
}
.modal .check-row input[type=checkbox] {
    width: 18px; height: 18px;
    accent-color: var(--purple);
    margin-top: 2px;
}
.modal .check-row label {
    color: var(--deep);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    font-size: 13px;
    margin: 0;
    cursor: pointer;
}
.modal-error {
    background: rgba(231,77,36,0.08);
    color: var(--orange);
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 3px solid var(--orange);
    font-size: 12px;
    margin-bottom: 14px;
    text-align: left;
    line-height: 1.4;
}
.modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.modal-actions button {
    flex: 1;
    padding: 13px;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.15s;
}
.modal-actions .confirm { background: var(--deep); color: #fff; }
.modal-actions .confirm:hover { background: var(--purple); }
.modal-actions .confirm:disabled { background: rgba(39,16,79,0.4); cursor: not-allowed; }
.modal-actions .cancel { background: var(--light); color: var(--deep); }
.modal-actions .cancel:hover { background: var(--cream); }

/* -------------------------------------------------------------------------- */
/* Reject — discrete link under CTA + rejection modal                         */
/* -------------------------------------------------------------------------- */

/* Discreet text-link button below the main CTAs. Deliberately NOT alarm-red:
   the client should feel free to use it without pressure, just visually
   subordinated to the primary actions. */
.cta-reject-line {
    margin-top: 16px;
    font-size: 12px;
    color: var(--grey);
}
.cta-reject {
    background: none;
    border: none;
    padding: 4px 2px;
    font-family: inherit;
    font-size: 12px;
    color: var(--grey);
    text-decoration: underline;
    text-decoration-color: rgba(107,101,128,0.35);
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.15s, text-decoration-color 0.15s;
}
.cta-reject:hover {
    color: var(--deep);
    text-decoration-color: var(--deep);
}
.cta-reject[disabled],
.cta-reject[aria-disabled="true"] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Reject modal — neutral, not alarm-red. Same modal shell with a muted
   icon and a colder accent on the submit button so it doesn't feel like
   the primary path. */
.modal-reject .iw.iw-muted {
    background: linear-gradient(135deg, #8a8499, #6b6580);
    color: #fff;
}
.modal-reject .reasons-label {
    margin-bottom: 8px;
}
.reject-reasons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.reject-reason-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cream);
    padding: 11px 14px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border-color 0.15s, background 0.15s;
}
.reject-reason-row:hover {
    border-color: var(--light);
}
.reject-reason-row input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--purple);
    margin: 0;
    flex-shrink: 0;
}
.reject-reason-row span {
    color: var(--deep);
    font-size: 13px;
    font-weight: 500;
    /* The parent .modal .field label sets uppercase + letter-spacing for the
       small caption labels. Reason rows are full sentence-case strings —
       override here so they read naturally. */
    text-transform: none;
    letter-spacing: 0;
}
.reject-reason-row:has(input:checked) {
    background: #fff;
    border-color: var(--purple);
}
.reject-warning {
    font-size: 12px;
    color: var(--deep);
    line-height: 1.55;
    background: #fff8db;
    border-left: 3px solid #e6c95a;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 4px 0 14px;
    text-align: left;
}
.reject-warning strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}
.reject-warning a {
    color: var(--purple);
    text-decoration: none;
    border-bottom: 1px solid rgba(115,47,185,0.4);
}
.modal-actions .confirm-reject {
    background: #6b6580;
}
.modal-actions .confirm-reject:hover {
    background: var(--deep);
}

/* Rejection-date sub-line in the unavailable view */
.unavailable-card .rejection-date {
    font-size: 13px;
    color: var(--grey);
    margin-top: -6px;
    margin-bottom: 14px;
}

.success-overlay {
    position: fixed;
    inset: 0;
    background: var(--deep);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    text-align: center;
    padding: 40px;
}
.success-overlay.show { display: flex; }
.success-overlay .check {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
}
.success-overlay h2 {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 14px;
}
.success-overlay p {
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 520px;
}
.success-overlay .cta-btn.primary { background: var(--pink); color: var(--deep); }
.success-overlay .cta-btn.primary:hover { background: #fff; }

/* -------------------------------------------------------------------------- */
/* Unavailable page                                                           */
/* -------------------------------------------------------------------------- */

.unavailable-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--cream);
}
.unavailable-card {
    max-width: 520px;
    width: 100%;
    background: #fff;
    border-radius: 18px;
    padding: 48px 40px;
    box-shadow: 0 24px 60px rgba(39,16,79,0.1);
    text-align: center;
}
.unavailable-card .logo {
    justify-content: center;
    margin-bottom: 32px;
}
.unavailable-card .logo-text { color: var(--deep); }
.unavailable-card h1 {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
}
.unavailable-card h1 em { font-style: italic; color: var(--orange); }
.unavailable-card p {
    color: var(--grey);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
}
.unavailable-card .contact-line {
    margin-top: 28px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--purple);
    font-weight: 600;
}
.unavailable-card .contact-block {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.unavailable-card .contact-block a {
    color: var(--deep);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 12px;
    background: var(--cream);
    border-radius: 8px;
    transition: background 0.15s;
}
.unavailable-card .contact-block a:hover { background: var(--light); }

/* -------------------------------------------------------------------------- */
/* Stat banner (prototype CSS 128–137)                                        */
/* -------------------------------------------------------------------------- */

.stat-banner {
    background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
    color: #fff;
    padding: 60px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.stat-banner::before {
    content: '';
    position: absolute;
    top: -30%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(231,77,36,0.35), transparent 60%);
    pointer-events: none;
}
.stat-banner::after {
    content: '';
    position: absolute;
    bottom: -40%; right: -15%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(39,16,79,0.4), transparent 65%);
    pointer-events: none;
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.stats-grid .divider {
    width: 1px;
    height: 120px;
    background: rgba(255,255,255,0.25);
}
.stat-cell { text-align: center; }
.stat-cell .big {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 88px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
    display: block;
    margin-bottom: 8px;
    text-shadow: 0 4px 24px rgba(39,16,79,0.3);
}
.stat-cell .big em { font-style: normal; color: #ffd4c2; }
.stat-cell .desc {
    font-size: 14px;
    line-height: 1.55;
    opacity: 0.95;
    max-width: 280px;
    margin: 0 auto;
    font-weight: 400;
}
.stat-cell .desc strong { font-weight: 600; color: #fff; }

/* -------------------------------------------------------------------------- */
/* About section + pillars (prototype CSS 141–146)                            */
/* -------------------------------------------------------------------------- */

.section.about { background: linear-gradient(180deg, var(--cream), var(--white)); }
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 34px;
}
.pillar {
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--light);
    transition: all 0.3s;
}
.pillar:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(39,16,79,0.08);
    border-color: var(--pink);
}
.pillar .pnum {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 30px;
    color: var(--pink);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 10px;
}
.pillar h3 {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.25;
}
.pillar p {
    font-size: 12px;
    line-height: 1.55;
    color: var(--grey);
    margin: 0;
}

/* -------------------------------------------------------------------------- */
/* Process section "Jak pracujemy"                                            */
/* -------------------------------------------------------------------------- */

.process {
    padding: 60px 56px;
    background: var(--white);
    border-bottom: 1px solid var(--light);
}
.process h2 {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 16px;
}
.process h2 em { font-style: italic; color: var(--purple); }
.process > p {
    font-size: 14px;
    color: var(--grey);
    line-height: 1.7;
    max-width: 580px;
    margin-bottom: 22px;
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 28px;
    margin-bottom: 36px;
}
.pstep {
    padding: 22px 20px;
    background: var(--cream);
    border-radius: 12px;
    border: 1px solid var(--light);
}
.pstep-num {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--purple);
    font-weight: 700;
    margin-bottom: 10px;
}
.pstep h4 {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.25;
    color: var(--deep);
}
.pstep p {
    font-size: 12px;
    color: var(--grey);
    line-height: 1.55;
    margin: 0;
}
.process-terms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-top: 28px;
    border-top: 1px dashed var(--light);
}
.pterm {
    padding: 18px 22px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--light);
}
.pt-label {
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--grey);
    font-weight: 600;
    margin-bottom: 6px;
}
.pt-val {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--deep);
    line-height: 1.3;
}
.pt-val small {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: var(--grey);
    line-height: 1.5;
    margin-top: 6px;
}

/* -------------------------------------------------------------------------- */
/* Footer socials (prototype CSS 267–269)                                     */
/* -------------------------------------------------------------------------- */

.pg-footer .socials {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
.pg-footer .socials a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
}
.pg-footer .socials a:hover {
    background: var(--pink);
    color: var(--deep);
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .hero { padding: 40px 24px 50px; }
    .hero h1 { font-size: 32px; }
    .gallery, .section, .testi, .cta, .stat-banner, .process { padding: 40px 24px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .pg-footer { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px; }
    .pg-footer .meta-side { text-align: left; }
    .testi-grid { grid-template-columns: 1fr; }
    .summary, .summary.summary-3col, .summary-monthly { grid-template-columns: 1fr; }
    .summary .hl, .summary-monthly .hl { padding-left: 0; border-left: none; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.15); }
    .summary .discount-cell { margin: 0; padding: 24px; border-left: none; border-right: none; border-top: 1px solid rgba(255,255,255,0.15); border-bottom: 1px solid rgba(255,255,255,0.15); }
    .summary.summary-3col > div:first-child { padding-right: 0; }
    .cta-buttons { flex-direction: column; }
    .cta-btn { width: 100%; }
    .stats-grid { grid-template-columns: 1fr; gap: 24px; }
    .stats-grid .divider { display: none; }
    .stat-cell .big { font-size: 64px; }
    .pillars, .process-steps, .process-terms { grid-template-columns: 1fr; }
}

/* =========================================================================
   Phase B — banner "Poprosiłeś o zmiany" + structured changes modal
   ========================================================================= */

/* Informational banner above CTAs when offer.status = 'changes_requested'.
   Calm tone, brand pink at low opacity, NOT alarm red. */
.changes-requested-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(232, 110, 173, 0.10);  /* var(--pink) at ~10% */
    border: 1px solid rgba(232, 110, 173, 0.35);
    color: var(--deep);
    padding: 16px 18px;
    border-radius: 12px;
    margin: 0 0 22px;
    text-align: left;
    line-height: 1.5;
    font-size: 14px;
}
.changes-requested-banner .crb-icon {
    flex: 0 0 32px;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background: var(--pink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}
.changes-requested-banner .crb-body strong {
    color: var(--deep);
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

/* Phase C — manual-accept banner. Green ("załatwione, jasne co poszło"),
   nie alarm. Reużywa struktury changes-requested-banner. */
.manual-accept-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: var(--deep);
    padding: 16px 18px;
    border-radius: 12px;
    margin: 0 0 22px;
    text-align: left;
    line-height: 1.5;
    font-size: 14px;
}
.manual-accept-banner .mab-icon {
    flex: 0 0 32px;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}
.manual-accept-banner .mab-body strong {
    color: var(--deep);
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}
.manual-accept-banner .mab-body em {
    font-style: normal;
    font-weight: 600;
    color: #15803d;
}
.manual-accept-banner .mab-body a {
    color: var(--purple);
    text-decoration: underline;
}

/* Wider modal — three sections is more vertical space than the others.
   Capped at 90vh with internal scroll so a long offer + full catalog don't
   push content off-screen. The .modal-actions row scrolls along with the
   body (simplest layout, no sticky needed at this scale). */
.modal-changes {
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
    /* Custom scrollbar so the dark cream/white surface isn't broken by a
       default OS gutter colour. */
    scrollbar-width: thin;
    scrollbar-color: var(--pink) transparent;
}
.modal-changes::-webkit-scrollbar { width: 8px; }
.modal-changes::-webkit-scrollbar-thumb {
    background: rgba(232, 110, 173, 0.5);
    border-radius: 4px;
}
.modal-changes::-webkit-scrollbar-track { background: transparent; }

.changes-section {
    text-align: left;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f0e8d8;
}
.changes-section:first-of-type { border-top: none; padding-top: 0; margin-top: 12px; }
.changes-section-label {
    margin: 0 0 4px;
    font-family: 'ivypresto-display', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--deep);
}
.changes-section-label small {
    color: var(--grey);
    font-weight: 400;
    font-size: 13px;
    font-family: inherit;
}
.changes-section-hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--grey);
}
.changes-section-empty {
    margin: 0;
    font-size: 13px;
    color: var(--grey);
    font-style: italic;
    padding: 10px 12px;
    background: #f9f4e8;
    border-radius: 6px;
}

.changes-item-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    text-transform: none; /* defend against ancestor text-transform on labels */
}
.changes-item-row:hover {
    background: rgba(232, 110, 173, 0.06);
}
.changes-item-row input[type=checkbox] {
    margin: 4px 0 0;
    width: 18px;
    height: 18px;
    accent-color: var(--pink);
    flex: 0 0 auto;
}
.changes-item-row input[type=checkbox]:checked + .changes-item-body .changes-item-name {
    color: var(--pink);
}
.changes-item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.changes-item-name {
    font-weight: 600;
    color: var(--deep);
    font-size: 14px;
}
.changes-item-name em {
    font-style: normal;
    color: var(--purple);
    font-weight: 500;
}
.changes-item-tip {
    font-size: 12px;
    color: var(--grey);
    line-height: 1.45;
}
.changes-item-meta {
    font-size: 12px;
    color: var(--grey);
}

.modal-changes textarea[data-changes-message] {
    width: 100%;
    min-height: 90px;
    padding: 10px 12px;
    border: 1px solid #d7cdb6;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    color: var(--deep);
    background: #fdfaf2;
    resize: vertical;
    box-sizing: border-box;
}
.modal-changes textarea[data-changes-message]:focus {
    border-color: var(--pink);
    outline: 2px solid rgba(232, 110, 173, 0.18);
}
.changes-message-counter {
    display: block;
    text-align: right;
    font-size: 12px;
    color: var(--grey);
    margin-top: 4px;
}

/* -------------------------------------------------------------------------- */
/* Home — branded crossroads on the bare domain (NA-POZNIEJ #2)                */
/* Mobile-first: the stage is fluid, and only the desktop cap is a breakpoint. */
/* -------------------------------------------------------------------------- */

.home-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    background: var(--cream);
}
.home-card {
    width: 100%;
    max-width: 760px;
    text-align: center;
}
.home-logo {
    width: 168px;
    max-width: 60%;
    height: auto;
    margin: 0 auto 24px;
    display: block;
}

/* The animation is the hero — it gets the weight, the copy stays a footnote.
   Fixed 16:9 frame + cover: the manifest's clips ship in different aspect
   ratios (osiedle 16:9, trzaskoma ~3:2), and since the clip is re-rolled per
   visit, a fluid stage would make the whole page jump height between loads.
   The frame stays put and the clip fills it. `max-height` keeps the animation
   from swallowing short viewports (laptop 1280x720, landscape phone). */
.home-stage {
    margin: 0 0 26px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--light);
    box-shadow: 0 24px 60px rgba(39, 16, 79, 0.12);
    line-height: 0;
    aspect-ratio: 16 / 9;
    max-height: 56vh;
}
.home-media {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-copy h1 {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--deep);
    margin-bottom: 14px;
}
.home-copy h1 em { font-style: italic; color: var(--orange); }
.home-copy p {
    max-width: 480px;
    margin: 0 auto;
    color: var(--grey);
    font-size: 14px;
    line-height: 1.65;
}
.home-copy p a {
    color: var(--purple);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(115, 47, 185, 0.3);
}
.home-copy p a:hover { border-bottom-color: var(--purple); }

/* Deliberately quiet: these are escape hatches, not calls to action. */
.home-links {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
}
.home-links a {
    color: var(--grey);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.home-links a:hover {
    color: var(--deep);
    border-bottom-color: rgba(107, 101, 128, 0.4);
}
.home-links-sep { color: #c9c2b4; }

@media (max-width: 480px) {
    .home-wrap { padding: 32px 16px; }
    .home-logo { width: 132px; margin-bottom: 28px; }
    .home-stage { margin-bottom: 28px; border-radius: 14px; }
    .home-copy h1 { font-size: 22px; }
}
