/* Viladomy Horoušany – Coming Soon
   Barevnost odvozena z loga (zelená). */
:root {
    --green:        #8DBF26;
    --green-dark:   #74a014;
    --ink:          #1f2a17;
    --text:         #444c3e;
    --muted:        #8a907f;
    --line:         #e6e8e1;
    --bg:           #eef1ea;
    --card:         #ffffff;
    --pad:          clamp(16px, 2.4vw, 40px);
    --radius:       28px;
    --radius-sm:    12px;
    --shadow:       0 30px 70px -30px rgba(40, 60, 20, .35);
}

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

html, body { height: 100%; }

body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 80% -10%, #f4f7ee 0%, transparent 60%),
        linear-gradient(135deg, #eef1ea 0%, #e4e9dd 100%);
    -webkit-font-smoothing: antialiased;
}

.shell {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: var(--pad);
}

/* ---------- Karta ---------- */
.card {
    width: 100%;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    overflow: hidden;
    min-height: calc(100vh - (2 * var(--pad)));
}

/* ---------- Panely ---------- */
.panel { position: relative; }

.panel--left {
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 3vw, 48px);
}

.brand__logo { height: 54px; width: auto; }

.panel__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 0;
}

.title {
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.01em;
}

.lead {
    margin-top: 12px;
    font-size: .98rem;
    line-height: 1.6;
    color: var(--muted);
}
.lead strong { color: var(--green-dark); }

.panel__foot {
    font-size: .8rem;
    color: var(--muted);
    text-align: center;
    padding-top: 12px;
}

/* ---------- Formulář ---------- */
.form { margin-top: 26px; display: grid; gap: 16px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: grid; gap: 7px; }

.field label {
    font-size: .82rem;
    font-weight: 500;
    color: var(--ink);
}
.req { color: var(--green-dark); }

.field input,
.field textarea {
    font: inherit;
    font-size: .92rem;
    color: var(--ink);
    background: #fbfcf9;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    transition: border-color .18s, box-shadow .18s, background .18s;
    width: 100%;
    resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: #b3b8a8; }

.field input:focus,
.field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(141, 191, 38, .15);
}

.field input.invalid,
.field textarea.invalid {
    border-color: #d9534f;
    box-shadow: 0 0 0 4px rgba(217, 83, 79, .12);
}

/* Honeypot – schované mimo obrazovku */
.hp {
    position: absolute !important;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* ---------- Tlačítko ---------- */
.btn {
    margin-top: 4px;
    position: relative;
    font: inherit;
    font-weight: 600;
    font-size: .95rem;
    color: #fff;
    background: var(--green);
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    cursor: pointer;
    transition: background .18s, transform .05s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .7; cursor: not-allowed; }

.btn__spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.5);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: spin .7s linear infinite;
}
.btn.loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__note {
    font-size: .86rem;
    min-height: 1.2em;
    line-height: 1.4;
}
.form__note.ok  { color: var(--green-dark); }
.form__note.err { color: #d9534f; }

.form__privacy {
    font-size: .72rem;
    color: var(--muted);
    line-height: 1.4;
}
.form__privacy a { color: var(--muted); }

/* ---------- Pravý panel (fotka) ---------- */
.panel--right {
    margin: 14px;
    border-radius: 22px;
    overflow: hidden;
    min-height: 360px;
}

.hero {
    position: absolute;
    inset: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    will-change: opacity;
}
.hero__slide.is-active { opacity: 1; }

.panel--right::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,30,10,.05) 0%, rgba(20,30,10,.0) 35%, rgba(20,30,10,.75) 100%);
}

.badge {
    position: absolute;
    top: 18px; left: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.92);
    color: var(--ink);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    padding: 8px 14px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.badge::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(141,191,38,.35);
}

.hero__overlay {
    position: absolute;
    z-index: 2;
    left: 0; right: 0; bottom: 0;
    padding: clamp(22px, 3vw, 40px);
    color: #fff;
}
.hero__divider {
    display: block;
    width: 46px; height: 3px;
    background: var(--green);
    border-radius: 3px;
    margin-bottom: 16px;
}
.hero__title {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 700;
}
.hero__text {
    margin-top: 8px;
    font-size: .92rem;
    color: rgba(255,255,255,.85);
    max-width: 420px;
}

.contact {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}
.contact__name {
    font-weight: 600;
    font-size: 1.05rem;
}
.contact__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: .95rem;
    width: fit-content;
    transition: color .15s;
}
.contact__link:hover { color: var(--green); }
.contact__link svg {
    width: 18px; height: 18px;
    fill: var(--green);
    flex-shrink: 0;
}

/* ---------- Tlačítko lupy ---------- */
.zoom-btn {
    position: absolute;
    z-index: 3;
    top: 18px; right: 18px;
    width: 42px; height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.92);
    color: var(--ink);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 18px -6px rgba(0,0,0,.4);
    transition: background .15s, transform .12s, color .15s;
}
.zoom-btn:hover { background: var(--green); color: #fff; transform: scale(1.06); }
.zoom-btn svg { width: 20px; height: 20px; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 20, 10, .92);
    opacity: 0;
    transition: opacity .25s ease;
    padding: clamp(12px, 4vw, 56px);
}
.lightbox.is-open { display: flex; opacity: 1; }

.lb__stage {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.lb__img {
    max-width: 100%;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform .3s ease, opacity .3s ease;
    transform-origin: center center;
    user-select: none;
}
.lb__img.is-zoomed { cursor: move; transform: scale(2); }
.lb__img.is-fading { opacity: 0; }

.lb__close,
.lb__nav {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    cursor: pointer;
    border-radius: 50%;
    transition: background .15s, transform .12s;
}
.lb__close:hover,
.lb__nav:hover { background: var(--green); border-color: var(--green); }

.lb__close {
    top: clamp(14px, 3vw, 28px);
    right: clamp(14px, 3vw, 28px);
    width: 46px; height: 46px;
}
.lb__close svg { width: 24px; height: 24px; }

.lb__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
}
.lb__nav:hover { transform: translateY(-50%) scale(1.06); }
.lb__prev { left: clamp(10px, 3vw, 32px); }
.lb__next { right: clamp(10px, 3vw, 32px); }
.lb__nav svg { width: 26px; height: 26px; }

.lb__counter {
    position: absolute;
    top: clamp(14px, 3vw, 28px);
    left: clamp(14px, 3vw, 28px);
    color: rgba(255,255,255,.85);
    font-size: .85rem;
    letter-spacing: .05em;
    background: rgba(0,0,0,.35);
    padding: 6px 14px;
    border-radius: 999px;
}

/* ---- Pruh náhledů ---- */
.lb__thumbs {
    position: absolute;
    bottom: clamp(10px, 2vw, 20px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 8px;
    max-width: min(92vw, 900px);
    padding: 8px 10px;
    overflow-x: auto;
    background: rgba(0,0,0,.35);
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.4) transparent;
}
.lb__thumbs::-webkit-scrollbar { height: 6px; }
.lb__thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.35); border-radius: 6px; }

.lb__thumb {
    flex: 0 0 auto;
    width: 72px; height: 50px;
    border-radius: 7px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .55;
    transition: opacity .15s, border-color .15s, transform .12s;
    background: #222;
}
.lb__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.lb__thumb:hover { opacity: .85; transform: translateY(-2px); }
.lb__thumb.is-active { opacity: 1; border-color: var(--green); }

@media (max-width: 560px) {
    .lb__thumb { width: 56px; height: 40px; }
    .lb__img { max-height: 70vh; }
}

/* ---------- Responzivita ---------- */
@media (max-width: 860px) {
    .card {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .panel--right {
        order: -1;
        min-height: 280px;
        margin: 14px 14px 0;
    }
    .panel--left { padding: 28px 22px 22px; }
    .panel__body { padding: 22px 0; }
}

@media (max-width: 480px) {
    .field-row { grid-template-columns: 1fr; }
    .brand__logo { height: 44px; }
}
