/* Klenoty z oceli – Instagram popup */
.kzig,
.kzig * {
    box-sizing: border-box;
}

.kzig {
    --kzig-wine: #7a3e52;
    --kzig-wine-dark: #5e2f3f;
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(27, 20, 22, 0.62);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.kzig.is-visible {
    opacity: 1;
    visibility: visible;
}

.kzig__dialog {
    position: relative;
    display: grid;
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    overflow: auto;
    border: 1px solid rgba(122, 62, 82, 0.16);
    border-radius: 20px;
    background: #fffaf7;
    box-shadow: 0 28px 80px rgba(31, 20, 24, 0.35);
    color: #211c1e;
    font-family: Roboto, Arial, sans-serif;
    transform: translateY(18px) scale(0.98);
    transition: transform 220ms ease;
}

.kzig.is-visible .kzig__dialog {
    transform: translateY(0) scale(1);
}

.kzig__content {
    padding: clamp(32px, 5vw, 58px);
}

.kzig__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--kzig-wine);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kzig__title {
    margin: 0 0 14px;
    color: var(--kzig-wine-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.04;
}

.kzig__lead {
    margin: 0 0 22px;
    color: #51484b;
    font-size: 17px;
    line-height: 1.5;
}

.kzig__steps {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    counter-reset: kzig-step;
}

.kzig__steps li {
    position: relative;
    min-height: 34px;
    margin: 9px 0;
    padding: 6px 0 4px 43px;
    counter-increment: kzig-step;
    font-size: 15px;
    line-height: 1.4;
}

.kzig__steps li::before {
    content: counter(kzig-step) ".";
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #f3dfe0;
    color: var(--kzig-wine-dark);
    font-family: Georgia, serif;
    font-size: 17px;
}

.kzig__steps strong {
    color: var(--kzig-wine);
}

.kzig__button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 13px 25px;
    border-radius: 4px;
    background: var(--kzig-wine);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color 180ms ease, transform 180ms ease;
}

.kzig__button:hover,
.kzig__button:focus-visible {
    background: var(--kzig-wine-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

.kzig__note {
    display: block;
    margin-top: 13px;
    color: #71666a;
    font-size: 12px;
}

.kzig__visual {
    min-height: 460px;
    background-color: #eaded7;
    background-image: url('/user/documents/upload/hero-03-soupravy.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.kzig__close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    display: grid;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 3px 14px rgba(35, 25, 28, 0.12);
    color: #5e2f3f;
    font: 300 32px/1 Arial, sans-serif;
    cursor: pointer;
}

body.kzig-lock {
    overflow: hidden;
}

@media (max-width: 720px) {
    .kzig {
        align-items: flex-end;
        padding: 12px;
    }

    .kzig__dialog {
        width: 100%;
        max-height: calc(100dvh - 24px);
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .kzig__content {
        padding: 31px 25px 27px;
    }

    .kzig__title {
        padding-right: 34px;
        font-size: clamp(31px, 10vw, 42px);
    }

    .kzig__lead {
        font-size: 15px;
    }

    .kzig__visual {
        min-height: 170px;
        grid-row: 1;
        background-position: 65% center;
    }

    .kzig__content {
        grid-row: 2;
    }

    .kzig__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kzig,
    .kzig__dialog,
    .kzig__button {
        transition: none;
    }
}
