/* AML dokumentácia on ficek.sk/aml (docs/AML.md of the admin) - everything scoped to .aml so the
   rest of ficek.sk is untouched; the look follows the old aml-dokumentacia.sk in the colours of
   ficek.sk: #112b5d, #18448c, green #18ae41 */

.aml {
    --aml-ink: #112b5d;
    --aml-text: #212529;
    --aml-blue: #18448c;
    --aml-green: #18ae41;
    --aml-green-dark: #118132;
    --aml-muted: #5b6776;
    --aml-line: #dee2e6;
    --aml-field: #c8d3e1;
    --aml-sky: #eef4fb;
}

/* ---------- shared ---------- */
.aml h2 { color: var(--aml-ink); font-weight: 600; }
.aml-title { color: var(--aml-ink); font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; }
.aml-title-small { font-size: clamp(26px, 3.2vw, 38px); }
.aml-title-order { color: var(--aml-text); font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.aml-lead { color: var(--aml-muted); font-size: 19px; line-height: 1.55; margin: 0 0 18px; max-width: 780px; }
.aml-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px; border: 0; border-radius: 6px; background: var(--aml-green); color: #fff !important; font-size: 18px; font-weight: 700; line-height: 1.2; text-decoration: none !important; cursor: pointer; touch-action: manipulation; transition: background .15s ease; }
.aml-btn:hover, .aml-btn:focus { background: var(--aml-green-dark); }
.aml-btn-full { width: 100%; }
.aml-link { color: var(--aml-blue); font-weight: 600; text-decoration: underline; font-size: 18px; }
.aml-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0 0 14px; }

/* ---------- landing ---------- */
.aml-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 24px 0 32px; }
.aml-deadline { display: inline-block; margin: 0 0 20px; padding: 9px 16px; border-left: 4px solid #e0a106; background: #fdf3d8; color: #6a4a00; font-weight: 700; }
.aml-price { margin: 0 0 22px; color: var(--aml-ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.aml-price strong { font-size: 36px; }
.aml-price span { color: var(--aml-muted); }
.aml-note { color: var(--aml-muted); }

/* the first pages of the five documents laid like papers on a desk; each later sheet lies over the one
   before, the one under the pointer or the keyboard focus rises above the others */
.aml-visual { min-width: 0; }
.aml-sheets { list-style: none; margin: 0; padding: 22px 0 0; display: flex; justify-content: center; }
.aml-sheet { flex: 0 0 36%; margin-left: -20%; position: relative; transition: transform .18s ease; }
.aml-sheet:first-child { margin-left: 0; }
.aml-sheet a { display: block; position: relative; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(20, 43, 79, .2), 0 12px 30px rgba(20, 43, 79, .17); cursor: zoom-in; touch-action: manipulation; }
.aml-sheet img { display: block; width: 100%; height: auto; border-radius: 4px; }
.aml-sheet:nth-child(1) { transform: rotate(-3deg) translateY(12px); }
.aml-sheet:nth-child(2) { transform: rotate(-1.5deg) translateY(3px); }
.aml-sheet:nth-child(3) { transform: translateY(-4px); }
.aml-sheet:nth-child(4) { transform: rotate(1.5deg) translateY(3px); }
.aml-sheet:nth-child(5) { transform: rotate(3deg) translateY(12px); }
.aml-sheet:hover, .aml-sheet:focus-within { transform: translateY(-14px); z-index: 5; }
.aml-sheet-tab { position: absolute; left: 8px; top: -12px; padding: 2px 8px; border-radius: 4px; background: var(--aml-ink); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.5; }
.aml-sheet-legend { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; font-size: 14px; line-height: 1.35; color: var(--aml-muted); }
.aml-sheet-legend b { display: block; color: var(--aml-ink); font-size: 16px; }
.aml-sheets-note { text-align: center; font-size: 15px; color: var(--aml-muted); margin: 14px 0 0; }
@media (prefers-reduced-motion: reduce) { .aml-sheet { transition: none; } }

.aml-lightbox { max-width: min(92vw, 820px); max-height: 92vh; padding: 0; border: 0; border-radius: 6px; background: #fff; overflow: auto; }
.aml-lightbox::backdrop { background: rgba(17, 43, 93, .72); }
.aml-lightbox img { display: block; width: 100%; height: auto; }
.aml-lightbox { width: min(1100px, 96vw); max-width: none; max-height: 94vh; }
.aml-lightbox-close { position: sticky; top: 10px; float: right; margin: 10px; z-index: 1; min-height: 40px; padding: 7px 14px; border: 1px solid var(--aml-ink); border-radius: 6px; background: #fff; color: var(--aml-ink); font-weight: 600; cursor: pointer; touch-action: manipulation; }

.aml-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 8px 0 40px; padding: 24px 0; border-top: 1px solid var(--aml-line); border-bottom: 1px solid var(--aml-line); color: var(--aml-muted); }
.aml-trust > div + div { border-left: 1px solid var(--aml-line); padding-left: 24px; }
.aml-trust p { margin: 0; }
.aml-trust span { display: block; }
.aml-trust strong { display: block; color: var(--aml-ink); font-size: 18px; }
.aml-trust a { color: var(--aml-blue); font-weight: 600; text-decoration: underline; }
.aml-trust-author { display: flex; gap: 14px; align-items: center; }
.aml-trust-author img { width: 56px; height: 56px; border-radius: 50%; flex: none; object-fit: cover; }


/* ---------- homepage sections (old aml-dokumentacia.sk) ---------- */
/* a band runs across the whole window although the page content sits in the column of the layout */
.aml-band, .aml-closing { position: relative; width: 100vw; margin-left: calc(50% - 50vw); padding: 64px 0; background: #fff; }
.aml-band-tint { background: var(--aml-sky); border-top: 1px solid #d9e5f3; border-bottom: 1px solid #d9e5f3; }
.aml-home .aml-trust { margin-bottom: 0; border-bottom: 0; }
.aml-heading { max-width: 46em; margin: 0 0 32px; }
.aml-heading h2, .aml-author h2, .aml-closing h2 { font-size: clamp(26px, 2.4vw, 38px); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; color: var(--aml-ink); margin: 0 0 12px; }
.aml-heading p { font-size: 18px; line-height: 1.6; color: var(--aml-muted); margin: 0; }
.aml-documents { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--aml-line); }
.aml-documents li { display: grid; grid-template-columns: 104px minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--aml-line); scroll-margin-top: 130px; }
.aml-documents img { display: block; width: 104px; height: auto; border-radius: 3px; box-shadow: 0 1px 2px rgba(20, 43, 79, .2), 0 6px 16px rgba(20, 43, 79, .12); }
.aml-document-text h3 { font-size: 21px; font-weight: 600; line-height: 1.3; color: var(--aml-ink); margin: 0 0 8px; }
.aml-document-text p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--aml-text); }
.aml-document-when { margin: 0; font-size: 15px; line-height: 1.55; color: var(--aml-muted); }
.aml-document-when strong { display: block; font-size: 14px; font-weight: 600; color: var(--aml-ink); margin-bottom: 4px; }
.aml-extras { margin-top: 36px; }
.aml-extras h3 { font-size: 19px; font-weight: 600; color: var(--aml-ink); margin: 0 0 14px; }
.aml-extras ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.aml-extras li { font-size: 15.5px; line-height: 1.55; color: var(--aml-text); padding-left: 16px; border-left: 3px solid #d9e9fb; }
.aml-extras strong { display: block; color: var(--aml-ink); font-weight: 600; margin-bottom: 2px; }
.aml-samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.aml-sample { margin: 0; }
.aml-sample a { display: block; aspect-ratio: 5 / 6; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(20, 43, 79, .18), 0 12px 30px rgba(20, 43, 79, .14); cursor: zoom-in; }
.aml-sample img { display: block; width: 100%; height: auto; }
.aml-sample figcaption { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--aml-muted); }
.aml-sample figcaption strong { display: block; font-size: 17px; font-weight: 600; color: var(--aml-ink); margin-bottom: 4px; }
.aml-sample figcaption span { display: block; }
.aml-sample .aml-sample-page { margin-top: 6px; font-size: 14px; }
.aml-samples-more { margin: 28px 0 0; font-size: 15px; color: var(--aml-muted); }
.aml-author { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: center; }
.aml-author > img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; }
.aml-author p { font-size: 17px; line-height: 1.65; color: var(--aml-text); margin: 0 0 14px; max-width: 40em; }
.aml-author a, .aml-professions-note a, .aml-more-card a, .aml-articles li a, .aml-provider a { color: var(--aml-blue); }
.aml-rating { display: flex; gap: 16px; align-items: center; padding: 14px 18px; background: var(--aml-sky); border-radius: 6px; max-width: 44em; }
.aml-rating strong { font-size: 26px; font-weight: 650; color: var(--aml-ink); white-space: nowrap; }
.aml-rating span { font-size: 15px; line-height: 1.5; color: var(--aml-muted); }
.aml-professions { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.aml-professions a { display: block; padding: 9px 16px; border: 1px solid #b9cbe2; border-radius: 999px; background: #fff; color: var(--aml-ink); font-size: 16px; font-weight: 500; text-decoration: none; }
.aml-professions a:hover, .aml-professions a:focus { border-color: var(--aml-blue); color: var(--aml-blue); }
.aml-professions-note { margin: 24px 0 0; font-size: 16px; color: var(--aml-muted); }
.aml-steps { list-style: none; counter-reset: amlstep; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.aml-steps li { counter-increment: amlstep; position: relative; padding-top: 52px; }
.aml-steps li::before { content: counter(amlstep); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--aml-ink); color: #fff; font-weight: 600; display: grid; place-items: center; }
.aml-steps h3 { font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--aml-ink); margin: 0 0 8px; }
.aml-steps p { font-size: 16px; line-height: 1.6; color: var(--aml-text); margin: 0; }
.aml-faqs { max-width: 860px; }
.aml-faqs details, .aml-page details { border-bottom: 1px solid #cfdcec; }
.aml-faqs summary { cursor: pointer; position: relative; padding: 18px 34px 18px 0; font-size: 18px; font-weight: 600; color: var(--aml-ink); list-style: none; }
.aml-faqs summary::-webkit-details-marker { display: none; }
.aml-faqs summary::after { content: '+'; position: absolute; right: 4px; top: 13px; font-size: 24px; font-weight: 400; color: var(--aml-blue); }
.aml-faqs details[open] summary::after { content: '\2013'; }
.aml-faqs p { margin: 0 0 20px; font-size: 16.5px; line-height: 1.65; color: var(--aml-text); max-width: 44em; }
.aml-closing { background: var(--aml-ink); color: #fff; }
.aml-closing-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; align-items: center; }
.aml-closing h2 { color: #fff; }
.aml-closing p { font-size: 17px; line-height: 1.6; color: #d7e3f4; margin: 0; max-width: 36em; }
.aml-closing-price strong { display: block; font-size: 34px; font-weight: 650; letter-spacing: -.02em; color: #fff; }
.aml-closing-price span { display: block; font-size: 15px; color: #c3d3ea; margin-bottom: 16px; }
.aml-closing .aml-closing-note { font-size: 14px; margin-top: 12px; color: #c3d3ea; }
.aml-more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 40px; }
.aml-more-card { padding: 20px; border: 1px solid var(--aml-line); border-radius: 6px; background: #fff; }
.aml-more-card h3 { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--aml-ink); margin: 0 0 8px; }
.aml-more-card p { font-size: 15px; line-height: 1.55; color: var(--aml-text); margin: 0 0 10px; }
.aml-more-card p:last-child { margin-bottom: 0; }
.aml-more-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.aml-podcast-heading { display: flex; align-items: baseline; gap: 12px; }
.aml-podcast-heading h3, .aml-articles h3 { font-size: 22px; font-weight: 600; color: var(--aml-ink); margin: 0 0 14px; }
.aml-podcast-heading span { color: var(--aml-muted); font-size: 14px; }
.aml-podcast h4 { font-size: 18px; color: var(--aml-ink); margin: 0 0 8px; }
.aml-podcast p { color: var(--aml-text); }
.aml-podcast-player { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #0d1b33; }
.aml-podcast-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.aml-podcast-poster { display: block; position: absolute; inset: 0; }
.aml-podcast-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aml-podcast-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: rgba(17, 43, 93, .9); color: #fff; font-weight: 600; }
.aml-podcast-play svg { width: 22px; height: 22px; fill: #fff; }
.aml-podcast-note { font-size: 14px; color: var(--aml-muted) !important; margin-top: 10px; }
.aml-podcast-note a { color: var(--aml-blue); }
.aml-articles ul { list-style: none; margin: 0 0 16px; padding: 0; }
.aml-articles li { padding: 12px 0; border-bottom: 1px solid var(--aml-line); }
.aml-articles li a { font-weight: 600; }
.aml-articles li p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--aml-text); }
.aml-btn-secondary { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px; border: 1px solid var(--aml-blue); border-radius: 6px; color: var(--aml-blue) !important; font-weight: 600; text-decoration: none !important; }
.aml-btn-secondary:hover { background: var(--aml-sky); }
.aml-provider { margin: 32px 0 0; font-size: 15px; color: var(--aml-muted); }
.aml-buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #cfdcec; box-shadow: 0 -6px 20px rgba(20, 43, 79, .12); }
.aml-buy-bar p { margin: 0; line-height: 1.25; }
.aml-buy-bar strong { display: block; font-size: 17px; color: var(--aml-ink); }
.aml-buy-bar span { font-size: 13px; color: var(--aml-muted); }
.aml-buy-bar .aml-btn { width: auto; min-height: 44px; padding: 8px 16px; font-size: 16px; }

/* ---------- order ---------- */
.aml-order-top { max-width: 920px; margin: 0 auto; padding: 20px 0 16px; }
.aml-back-link { display: inline-block; margin-bottom: 18px; color: var(--aml-blue); font-size: 15px; }
.aml-order-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; margin: 8px 0 56px; }
.aml-panel { background: #fff; border-radius: 6px; padding: 32px; box-shadow: 0 2px 4px rgba(0, 0, 0, .075); }
.aml-form fieldset { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.aml-form legend { color: var(--aml-text); font-size: 22px; font-weight: 500; margin: 0 0 18px; padding: 0; float: none; width: auto; }
.aml-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.aml-field { display: flex; flex-direction: column; margin: 0 0 18px; }
.aml-field label { margin: 0 0 7px; color: var(--aml-text); font-size: 15px; font-weight: 500; }
.aml-req { color: var(--aml-text); }
.aml .aml-field input, .aml .aml-field select, .aml .aml-field textarea {
    width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--aml-field); border-radius: 6px;
    background-color: #fff; color: var(--aml-text); font-size: 17px; line-height: 1.3; box-shadow: none; appearance: auto;
}
.aml .aml-field textarea { min-height: 96px; resize: vertical; }
.aml .aml-field input:focus, .aml .aml-field select:focus, .aml .aml-field textarea:focus { outline: 0; border-color: var(--aml-blue); box-shadow: 0 0 0 3px rgba(24, 68, 140, .15); }
.aml .aml-field input::placeholder, .aml .aml-field textarea::placeholder { color: #98a2ae; }
.aml-field-link { margin-top: 10px; color: var(--aml-blue); text-decoration: underline; align-self: flex-start; }
.aml-hint { display: block; margin: -10px 0 18px; color: var(--aml-muted); font-size: 14px; }
.aml-hint a { color: var(--aml-blue); }
.aml-field .aml-hint { margin: 7px 0 0; }
.aml-package-card { border: 1px solid var(--aml-blue); border-radius: 6px; background: var(--aml-sky); padding: 18px 20px; }
.aml-package-card p { margin: 0; color: var(--aml-muted); }
.aml-package-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-bottom: 8px !important; }
.aml-package-head strong { color: var(--aml-text); font-size: 18px; font-weight: 600; }
.aml-summary { border-top: 1px solid var(--aml-line); padding-top: 22px; margin: 0 0 20px; }
.aml-summary h2 { font-size: 20px; margin: 0 0 6px; }
.aml-summary p { color: var(--aml-muted); margin: 0 0 8px; }
.aml-summary-total strong { color: var(--aml-text); font-size: 20px; }
.aml-check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 10px; font-size: 15px; font-weight: 400; color: var(--aml-text); cursor: pointer; }
.aml-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; }
.aml-check a, .aml-form .aml-hint a { color: var(--aml-blue); text-decoration: underline; }
.aml-form .aml-btn { margin-top: 8px; }
.aml-errors { margin: 0 0 22px; padding: 12px 16px 12px 34px; border-left: 4px solid #c0392b; border-radius: 4px; background: #fdecea; color: #8a1f14; }
.aml-order-aside { position: sticky; top: 130px; }
.aml-order-aside h2 { font-size: 26px; margin: 4px 0 20px; color: var(--aml-text); font-weight: 500; }
.aml-order-aside ol { padding-left: 24px; margin: 0; color: var(--aml-muted); font-size: 16px; }
.aml-order-aside li { padding-left: 8px; margin-bottom: 20px; }
.aml-aside-contact { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: center; border-top: 1px solid var(--aml-line); padding-top: 24px; margin-top: 30px; }
.aml-aside-contact img { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.aml-aside-contact strong { color: var(--aml-text); }
.aml-aside-contact a { color: var(--aml-blue); text-decoration: underline; }

/* ---------- payment result ---------- */
.aml-result { max-width: 760px; margin: 32px auto 56px; text-align: center; }
.aml-result h2 { font-size: 28px; margin: 0 0 12px; }
.aml-result p { color: var(--aml-muted); font-size: 17px; }
.aml-result .aml-actions { justify-content: center; margin-top: 22px; }
.aml-result-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; background: var(--aml-green); color: #fff; font-size: 34px; font-weight: 700; }
.aml-result-icon.is-waiting { background: #e0a106; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .aml-documents li { grid-template-columns: 88px minmax(0, 3fr) minmax(0, 2fr); gap: 20px; }
    .aml-documents img { width: 88px; }
    .aml-more-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
    .aml-band, .aml-closing { padding: 48px 0; }
    .aml-documents li { grid-template-columns: 88px minmax(0, 1fr); }
    .aml-document-when { grid-column: 2; }
    .aml-extras ul, .aml-steps { grid-template-columns: 1fr; }
    .aml-samples { grid-template-columns: 1fr; max-width: 520px; }
    .aml-closing-grid, .aml-more-columns { grid-template-columns: 1fr; gap: 28px; }
    .aml-hero { grid-template-columns: 1fr; gap: 20px; }
    .aml-visual { max-width: 620px; }
    .aml-trust { grid-template-columns: 1fr; gap: 0; }
    .aml-trust > div { padding: 12px 0; }
    .aml-trust > div + div { border-left: 0; border-top: 1px solid var(--aml-line); padding-left: 0; }
    .aml-order-layout { grid-template-columns: 1fr; gap: 28px; }
    .aml-order-aside { position: static; }
}

@media (max-width: 767px) {
    .aml-buy-bar:not([hidden]) { display: flex; }
    body.aml-buy-bar-on { padding-bottom: 76px; }
}

@media (max-width: 575px) {
    .aml-documents li { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
    .aml-documents img { width: 64px; }
    .aml-document-text h3 { font-size: 19px; }
    .aml-author { grid-template-columns: 1fr; gap: 20px; }
    .aml-author > img { width: 120px; height: 120px; }
    .aml-rating { flex-direction: column; align-items: flex-start; gap: 6px; }
    .aml-more-grid { grid-template-columns: 1fr; }
    .aml-grid { grid-template-columns: 1fr; }
    .aml-lead, .aml-link { font-size: 16px; }
    .aml-btn { width: 100%; font-size: 17px; }
    .aml-sheet-legend { grid-template-columns: 1fr 1fr; gap: 6px 14px; }
    .aml-panel { padding: 22px 18px; }
    .aml-form legend { font-size: 20px; }
    .aml .aml-field input, .aml .aml-field select, .aml .aml-field textarea { font-size: 16px; }
}

/* the full-width bands use 100vw - no horizontal scroll from the width of the scrollbar */
body { overflow-x: clip; }
