/* ════════════════════════════════════════════════════════════
   ALPENZAUN — Montage-Service
   Shortcode: [alpenzaun_montage]
   ════════════════════════════════════════════════════════════ */

.aze-mt-wrap {
    --az-black: #141414;
    --az-terra: #f04e23;
    --az-terra-dark: #772008;
    --az-khaki: #3d403a;
    --az-cream: #fafaf8;
    --az-steel: #a8a8a0;
    --az-line: rgba(20, 20, 20, .08);
    --az-shadow: 0 4px 16px rgba(20, 20, 20, .05);
    --az-shadow-lg: 0 22px 50px -16px rgba(20, 20, 20, .18);

    font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
    color: var(--az-black);
    max-width: 1650px;
    margin: 0 auto;
    padding: 56px 24px 80px;
    line-height: 1.6;
}

/* ── HERO ───────────────────────────────────────────────── */
.aze-mt-hero {
    max-width: 880px;
    margin: 0 auto 72px;
    text-align: center;
}
.aze-mt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(240, 78, 35, .08);
    border: 1px solid rgba(240, 78, 35, .22);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--az-terra);
    margin-bottom: 22px;
}
.aze-mt-eyebrow-dot {
    width: 6px; height: 6px;
    background: var(--az-terra);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(240, 78, 35, .6);
}
.aze-mt-title {
    font-size: clamp(38px, 5.5vw, 60px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.05;
    margin: 0 0 18px;
    color: var(--az-black);
}
.aze-mt-title-accent {
    color: var(--az-terra);
    font-style: italic;
}
.aze-mt-sub {
    font-size: 19px;
    font-weight: 600;
    color: var(--az-black);
    margin: 0 0 26px;
    line-height: 1.45;
}
.aze-mt-text {
    text-align: left;
}
.aze-mt-text p {
    font-size: 15.5px;
    color: var(--az-khaki);
    line-height: 1.7;
    margin: 0 0 16px;
}
.aze-mt-text p:last-child { margin-bottom: 0; }

/* ── ABLAUF (3 kroky) ───────────────────────────────────── */
.aze-mt-steps { margin-bottom: 72px; }
.aze-mt-steps-title {
    text-align: center;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 32px;
    color: var(--az-black);
}
.aze-mt-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.aze-mt-step {
    position: relative;
    background: #fff;
    border: 1px solid var(--az-line);
    border-radius: 14px;
    padding: 28px 28px 26px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.aze-mt-step:hover {
    transform: translateY(-3px);
    border-color: rgba(240, 78, 35, .25);
    box-shadow: var(--az-shadow-lg);
}
.aze-mt-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(240, 78, 35, .1);
    color: var(--az-terra);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .04em;
    margin-bottom: 16px;
}
.aze-mt-step h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 8px;
    color: var(--az-black);
}
.aze-mt-step p {
    font-size: 14px;
    color: var(--az-khaki);
    line-height: 1.6;
    margin: 0;
}

/* ── MONTAGEANLEITUNGEN — knižné karty ──────────────────── */
.aze-mt-guides { margin-bottom: 72px; }
.aze-mt-guides-head {
    text-align: center;
    margin-bottom: 36px;
}
.aze-mt-guides-head h2 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 10px;
    color: var(--az-black);
}
.aze-mt-guides-head p {
    font-size: 15px;
    color: var(--az-khaki);
    max-width: 620px;
    margin: 0 auto;
}
.aze-mt-books {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Kniha */
.aze-mt-book {
    position: relative;
    display: flex;
    background: #fff;
    border: 1px solid var(--az-line);
    border-radius: 6px 14px 14px 6px;  /* ľavá hrana ostrejšia = chrbát knihy */
    text-decoration: none;
    overflow: hidden;
    min-height: 190px;
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
    box-shadow: var(--az-shadow);
}
.aze-mt-book:hover {
    transform: translateY(-5px) rotate(-.4deg);
    box-shadow: 0 26px 50px -16px rgba(20, 20, 20, .25);
}
.aze-mt-book.is-soon {
    opacity: .65;
    cursor: default;
}
.aze-mt-book.is-soon:hover { transform: none; box-shadow: var(--az-shadow); }

/* Chrbát knihy */
.aze-mt-book-spine {
    width: 10px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--az-terra) 0%, var(--az-terra-dark) 100%);
    transition: width .25s;
}
.aze-mt-book:hover .aze-mt-book-spine { width: 14px; }
.aze-mt-book.is-soon .aze-mt-book-spine {
    background: linear-gradient(180deg, #c4c4be 0%, #a8a8a0 100%);
}

/* Hrany stránok (vpravo) */
.aze-mt-book-pages {
    position: absolute;
    top: 6px;
    bottom: 6px;
    right: 0;
    width: 5px;
    background: repeating-linear-gradient(
        90deg,
        rgba(20, 20, 20, .07) 0px,
        rgba(20, 20, 20, .07) 1px,
        #fff 1px,
        #fff 2.5px
    );
    border-radius: 0 3px 3px 0;
}

.aze-mt-book-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 24px 18px 20px;
    min-width: 0;
}
.aze-mt-book-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.aze-mt-book-ico {
    width: 40px;
    height: 40px;
    background: rgba(240, 78, 35, .1);
    border-radius: 11px;
    color: var(--az-terra);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}
.aze-mt-book:hover .aze-mt-book-ico {
    background: var(--az-terra);
    color: #fff;
}
.aze-mt-book.is-soon .aze-mt-book-ico {
    background: rgba(20, 20, 20, .06);
    color: var(--az-steel);
}
.aze-mt-book-ico svg { width: 19px; height: 19px; }
.aze-mt-book-badge {
    display: inline-flex;
    padding: 4px 10px;
    background: rgba(20, 20, 20, .05);
    color: var(--az-khaki);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.aze-mt-book:not(.is-soon) .aze-mt-book-badge {
    background: rgba(240, 78, 35, .1);
    color: var(--az-terra);
}
.aze-mt-book-title {
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.3;
    margin: 0 0 6px;
    color: var(--az-black);
}
.aze-mt-book-sub {
    font-size: 13px;
    color: var(--az-steel);
    margin: 0;
    line-height: 1.5;
    flex: 1;
}
.aze-mt-book-dl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--az-terra);
    transition: gap .2s;
}
.aze-mt-book:hover .aze-mt-book-dl { gap: 12px; }
.aze-mt-book.is-soon .aze-mt-book-dl { color: var(--az-steel); }
.aze-mt-book-dl svg { width: 15px; height: 15px; }

/* ── CTA ────────────────────────────────────────────────── */
.aze-mt-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: linear-gradient(135deg, var(--az-black) 0%, #1f1f1f 100%);
    border-radius: 18px;
    padding: 40px 48px;
    flex-wrap: wrap;
}
.aze-mt-cta-txt h2 {
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
    margin: 0 0 8px;
}
.aze-mt-cta-txt p {
    font-size: 15px;
    color: rgba(255, 255, 255, .72);
    margin: 0;
    max-width: 560px;
    line-height: 1.6;
}
.aze-mt-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    background: var(--az-terra);
    color: #fff !important;
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.aze-mt-cta-btn:hover {
    background: #d63d13;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -10px rgba(240, 78, 35, .55);
}
.aze-mt-cta-btn svg { width: 17px; height: 17px; transition: transform .2s; }
.aze-mt-cta-btn:hover svg { transform: translateX(4px); }

/* ── PDF MODAL ──────────────────────────────────────────── */
.aze-mt-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.aze-mt-modal.is-open {
    opacity: 1;
    visibility: visible;
}
body.aze-mt-locked { overflow: hidden; }

.aze-mt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, .72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}
.aze-mt-modal-box {
    position: relative;
    width: min(1100px, 100%);
    height: min(86vh, 100%);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .55);
    transform: translateY(14px) scale(.98);
    transition: transform .3s cubic-bezier(.22, .94, .36, 1);
}
.aze-mt-modal.is-open .aze-mt-modal-box {
    transform: translateY(0) scale(1);
}
.aze-mt-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--az-line);
    background: var(--az-cream);
    flex-shrink: 0;
}
.aze-mt-modal-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--az-black);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.aze-mt-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.aze-mt-modal-dl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--az-terra);
    color: #fff !important;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s;
}
.aze-mt-modal-dl:hover { background: #d63d13; }
.aze-mt-modal-dl svg { width: 15px; height: 15px; }
.aze-mt-modal-close {
    width: 38px; height: 38px;
    background: rgba(20, 20, 20, .06);
    border: 0;
    border-radius: 50%;
    color: var(--az-black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, transform .2s;
}
.aze-mt-modal-close:hover {
    background: var(--az-terra);
    color: #fff;
    transform: rotate(90deg);
}
.aze-mt-modal-close svg { width: 16px; height: 16px; }
.aze-mt-modal-body {
    flex: 1;
    min-height: 0;
    background: #525659;  /* PDF viewer chrome farba */
}
.aze-mt-modal-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 720px) {
    .aze-mt-wrap { padding: 36px 16px 56px; }
    .aze-mt-hero { margin-bottom: 44px; }
    .aze-mt-title { font-size: 34px; }
    .aze-mt-sub { font-size: 16.5px; }
    .aze-mt-text p { font-size: 14.5px; }

    .aze-mt-steps { margin-bottom: 44px; }
    .aze-mt-steps-grid { grid-template-columns: 1fr; gap: 14px; }
    .aze-mt-step { padding: 22px 22px 20px; }

    .aze-mt-guides { margin-bottom: 44px; }
    .aze-mt-books { grid-template-columns: 1fr; gap: 16px; }
    .aze-mt-book { min-height: 0; }
    .aze-mt-book-body { padding: 18px 20px 16px 16px; }

    .aze-mt-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
    }
    .aze-mt-cta-btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
    .aze-mt-title { font-size: 29px; }
}
