/* AMG Core – mobile first. Styl zgodny z amgbiuro.pl (Plus Jakarta Sans, granat #0C1524, złoto #DFA85E). */
.amg-c {
	--amg-navy: #0c1524;
	--amg-navy-2: #16223a;
	--amg-gold: #dfa85e;
	--amg-gold-dark: #b8833c;
	--amg-gold-soft: #fbf3e7;
	--amg-text: #4a5567;
	--amg-muted: #6b7686;
	--amg-soft: #f5f7fa;
	--amg-border: #e3e7ee;
	--amg-red: #b8462f;
	--amg-white: #fff;
	--amg-radius: 16px;
	--amg-gutter: 16px;
	font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--amg-text);
	font-size: 16px;
	line-height: 1.65;
	background: var(--amg-white);
	overflow-wrap: break-word;
}
.amg-c *, .amg-c *::before, .amg-c *::after { box-sizing: border-box; }
.amg-c.amg-c :where(h1, h2, h3, h4, p, ul, ol, dl, figure) { margin: 0; }
.amg-c.amg-c :where(ul, ol) { padding: 0; list-style: none; }
.amg-c img { max-width: 100%; height: auto; display: block; }
.amg-c a { color: var(--amg-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.amg-c a:focus-visible, .amg-c button:focus-visible, .amg-c summary:focus-visible, .amg-c input:focus-visible { outline: 3px solid var(--amg-gold); outline-offset: 2px; border-radius: 6px; }
.amg-c.amg-c :where(h1, h2, h3, h4) { font-family: inherit; color: var(--amg-navy); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; text-transform: none; }
.amg-c .amg-ico { flex: none; vertical-align: middle; }

.amg-c .amg-wrap { width: 100%; max-width: 1232px; margin: 0 auto; padding: 0 var(--amg-gutter); }
.amg-c .amg-wrap--narrow { max-width: 832px; }

.amg-c .amg-sec { padding: 56px 0; }
.amg-c .amg-sec--soft { background: var(--amg-soft); }
.amg-c .amg-sec--navy { background: var(--amg-navy); color: #d6dce6; }

.amg-c .amg-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amg-gold-dark); margin-bottom: 10px; }
.amg-c .amg-sec--navy .amg-eyebrow, .amg-c .amg-head--dark .amg-eyebrow { color: var(--amg-gold); }
.amg-c .amg-h1 { font-size: clamp(30px, 7.5vw, 48px); line-height: 1.12; letter-spacing: -0.03em; }
.amg-c .amg-h2 { font-size: clamp(26px, 6vw, 40px); line-height: 1.18; letter-spacing: -0.03em; }
.amg-c .amg-lead { font-size: 17px; line-height: 1.7; margin-top: 16px; }
.amg-c .amg-head { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.amg-c .amg-head p:not(.amg-eyebrow) { margin-top: 12px; }
.amg-c .amg-head--left { text-align: left; margin-left: 0; }
.amg-c .amg-head--dark .amg-h2 { color: var(--amg-white); }

/* Przyciski */
.amg-c .amg-btns { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.amg-c .amg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 24px; border-radius: 8px; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none !important; border: 1.5px solid transparent; transition: transform .15s ease, background-color .15s ease, color .15s ease; cursor: pointer; text-align: center; }
.amg-c .amg-btn:hover { transform: translateY(-1px); }
.amg-c .amg-btn--navy { background: var(--amg-navy); color: var(--amg-white) !important; }
.amg-c .amg-btn--navy:hover { background: var(--amg-navy-2); }
.amg-c .amg-btn--gold { background: var(--amg-gold); color: var(--amg-navy) !important; }
.amg-c .amg-btn--gold:hover { background: #e8b977; }
.amg-c .amg-btn--outline { border-color: var(--amg-navy); color: var(--amg-navy) !important; background: transparent; }
.amg-c .amg-btn--ghost { border-color: rgba(255,255,255,.7); color: var(--amg-white) !important; background: transparent; }

/* Breadcrumb */
.amg-c .amg-bc { margin-bottom: 20px; font-size: 14px; }
.amg-c .amg-bc ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.amg-c .amg-bc li { display: inline-flex; align-items: center; gap: 8px; color: var(--amg-muted); }
.amg-c .amg-bc li + li::before { content: "/"; color: var(--amg-gold-dark); }
.amg-c .amg-bc a { color: var(--amg-text); text-decoration: none; }
.amg-c .amg-bc a:hover { color: var(--amg-navy); text-decoration: underline; }

/* Pigułki */
.amg-c .amg-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--amg-white); border: 1px solid var(--amg-border); font-size: 14px; font-weight: 600; color: var(--amg-navy) !important; text-decoration: none !important; white-space: nowrap; }
.amg-c .amg-pill small { color: var(--amg-muted); font-weight: 500; }
.amg-c .amg-pill.is-active, .amg-c .amg-pill:hover { background: var(--amg-navy); border-color: var(--amg-navy); color: var(--amg-white) !important; }
.amg-c .amg-pill.is-active small, .amg-c .amg-pill:hover small { color: var(--amg-gold); }
.amg-c .amg-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; margin-top: 24px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.amg-c .amg-chips--static { flex-wrap: wrap; overflow: visible; }
.amg-c .amg-chips--static .amg-pill:hover { background: var(--amg-white); color: var(--amg-navy) !important; border-color: var(--amg-border); }

/* ---------- HERO e-commerce ---------- */
.amg-c .amg-hero { padding: 24px 0 56px; background: linear-gradient(180deg, var(--amg-soft) 0, var(--amg-white) 320px); }
.amg-c .amg-hero__grid { display: grid; gap: 40px; }
.amg-c .amg-checks { margin-top: 24px; display: grid; gap: 12px; }
.amg-c .amg-checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--amg-navy); font-weight: 500; }
.amg-c .amg-checks__ico { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--amg-gold); color: var(--amg-navy); display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.amg-c .amg-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--amg-muted); }
.amg-c .amg-vis { background: var(--amg-navy); color: var(--amg-white); border-radius: 20px; padding: 24px; box-shadow: 0 24px 48px rgba(12,21,36,.22); }
.amg-c .amg-vis__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; }
.amg-c .amg-chip { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--amg-gold); color: var(--amg-gold); font-size: 13px; font-weight: 700; }
.amg-c .amg-vis__label { margin: 18px 0 10px; font-size: 13px; color: #9aa4b5; font-weight: 600; }
.amg-c .amg-vis__list { display: grid; gap: 10px; }
.amg-c .amg-vis__list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--amg-navy-2); font-weight: 600; }
.amg-c .amg-vis__list strong { color: var(--amg-gold); font-weight: 600; font-size: 15px; text-align: right; }
.amg-c .amg-vis__arrow { text-align: center; color: var(--amg-gold); font-size: 26px; line-height: 1; margin: 12px 0; }
.amg-c .amg-vis__result { background: var(--amg-gold); color: var(--amg-navy); border-radius: 14px; padding: 18px 20px; display: grid; gap: 6px; }
.amg-c .amg-vis__result strong { font-size: 19px; letter-spacing: -0.01em; }
.amg-c .amg-vis__result span { font-size: 14px; font-weight: 500; line-height: 1.5; }

/* Porównanie */
.amg-c .amg-cmp { display: grid; gap: 16px; }
.amg-c .amg-cmp__card { background: var(--amg-white); border: 1px solid var(--amg-border); border-radius: 20px; padding: 28px 22px; display: flex; flex-direction: column; gap: 18px; }
.amg-c .amg-cmp__card h3 { font-size: 24px; }
.amg-c .amg-cmp__card--dark { background: var(--amg-navy); border-color: var(--amg-navy); color: #e6eaf0; }
.amg-c .amg-cmp__card--dark h3 { color: var(--amg-white); }
.amg-c .amg-tag { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--amg-soft); color: var(--amg-navy); font-size: 13px; font-weight: 700; }
.amg-c .amg-tag--gold { background: var(--amg-gold); }
.amg-c .amg-list { display: grid; gap: 14px; }
.amg-c .amg-list li { position: relative; padding-left: 34px; font-weight: 500; line-height: 1.55; }
.amg-c .amg-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 14px; }
.amg-c .amg-list--check li::before { background-color: var(--amg-gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C1524' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.amg-c .amg-list--cross li::before { background-color: #f6ddd6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8462F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m7 7 10 10M17 7 7 17'/%3E%3C/svg%3E"); }
.amg-c .amg-cmp__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--amg-border); font-weight: 700; color: var(--amg-navy); }
.amg-c .amg-cmp__card--dark .amg-cmp__foot { border-color: var(--amg-navy-2); color: var(--amg-gold); }

/* Kalkulator */
.amg-c .amg-calc { background: var(--amg-white); color: var(--amg-text); border-radius: 20px; padding: 22px 18px; display: grid; gap: 24px; }
.amg-c .amg-calc__top { display: grid; gap: 16px; }
.amg-c .amg-calc__label { display: grid; gap: 2px; font-size: 15px; font-weight: 600; color: var(--amg-muted); }
.amg-c .amg-calc__value { font-size: 40px; font-weight: 800; color: var(--amg-navy); letter-spacing: -0.03em; line-height: 1.1; }
.amg-c .amg-calc__presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--amg-soft); border-radius: 12px; padding: 6px; }
.amg-c .amg-calc__preset { min-height: 44px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-weight: 700; font-size: 15px; color: var(--amg-navy); cursor: pointer; }
.amg-c .amg-calc__preset[aria-pressed="true"] { background: var(--amg-navy); color: var(--amg-white); }
.amg-c .amg-calc__range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--amg-gold) var(--fill, 50%), var(--amg-border) var(--fill, 50%)); outline: none; margin: 8px 0 0; }
.amg-c .amg-calc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--amg-white); border: 4px solid var(--amg-gold); box-shadow: 0 2px 8px rgba(12,21,36,.2); cursor: grab; }
.amg-c .amg-calc__range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--amg-white); border: 4px solid var(--amg-gold); cursor: grab; }
.amg-c .amg-calc__scale { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; color: var(--amg-muted); margin-top: -12px; }
.amg-c .amg-calc__cards { display: grid; gap: 14px; }
.amg-c .amg-calc__card { background: var(--amg-soft); border-radius: 16px; padding: 20px; display: grid; gap: 12px; }
.amg-c .amg-calc__card--amg { background: var(--amg-gold-soft); border: 1.5px solid var(--amg-gold); }
.amg-c .amg-calc__card h3 { font-size: 17px; }
.amg-c .amg-calc__card dl { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--amg-border); }
.amg-c .amg-calc__card--amg dl { border-color: var(--amg-gold); }
.amg-c .amg-calc__card dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.amg-c .amg-calc__card dd { margin: 0; font-weight: 600; color: var(--amg-navy); text-align: right; }
.amg-c .amg-calc__total { font-size: 32px; font-weight: 800; color: var(--amg-navy); letter-spacing: -0.03em; line-height: 1.1; }
.amg-c .amg-calc__total small { font-size: 15px; font-weight: 500; color: var(--amg-muted); letter-spacing: 0; }
.amg-c .amg-calc__total--red { color: var(--amg-red); }
.amg-c .amg-calc__bar { height: 10px; border-radius: 5px; background: var(--amg-white); overflow: hidden; }
.amg-c .amg-calc__bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--amg-gold); transition: width .35s ease; }
.amg-c .amg-calc__bar [data-bar="trad"] { background: var(--amg-red); }
.amg-c .amg-calc__result { background: var(--amg-navy); border-radius: 16px; padding: 22px 20px; display: grid; gap: 16px; }
.amg-c .amg-calc__save { font-size: 24px; font-weight: 800; color: var(--amg-gold); letter-spacing: -0.02em; line-height: 1.2; }
.amg-c .amg-calc__year { color: var(--amg-white); font-weight: 500; margin-top: 4px; }
.amg-c .amg-calc__note { font-size: 13px; line-height: 1.55; color: var(--amg-muted); margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.amg-c .amg-calc__more { background: var(--amg-soft); border-radius: 12px; padding: 4px 16px; margin-top: -8px; }
.amg-c .amg-calc__more summary { min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 600; color: var(--amg-navy); cursor: pointer; }
.amg-c .amg-calc__inputs { display: grid; gap: 12px; padding: 4px 0 16px; }
.amg-c .amg-calc__field { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--amg-text); }
.amg-c .amg-calc__field input { min-height: 44px; border: 1px solid var(--amg-border); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 16px; color: var(--amg-navy); background: var(--amg-white); width: 100%; box-sizing: border-box; }
.amg-c .amg-calc__field small { font-size: 12px; font-weight: 500; color: var(--amg-muted); }
.amg-c .amg-calc__detail { font-size: 13px; line-height: 1.45; color: var(--amg-muted); margin: -4px 0 0; }

/* Karty korzyści */
.amg-c .amg-cards { display: grid; gap: 16px; }
.amg-c .amg-card { background: var(--amg-white); border: 1px solid var(--amg-border); border-radius: var(--amg-radius); padding: 24px; box-shadow: 0 8px 24px rgba(12,21,36,.05); display: grid; gap: 12px; align-content: start; }
.amg-c .amg-card__ico { width: 52px; height: 52px; border-radius: 12px; background: var(--amg-navy); color: var(--amg-gold); display: inline-flex; align-items: center; justify-content: center; }
.amg-c .amg-card h3 { font-size: 19px; }

/* Kroki */
.amg-c .amg-steps { display: grid; gap: 28px; counter-reset: none; }
.amg-c .amg-step { display: grid; gap: 10px; }
.amg-c .amg-step__num { font-size: 44px; font-weight: 800; color: var(--amg-gold); letter-spacing: -0.03em; line-height: 1; padding-bottom: 14px; border-bottom: 2px solid var(--amg-border); }
.amg-c .amg-step h3 { font-size: 19px; }

/* Statystyki */
.amg-c .amg-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.amg-c .amg-stats li { background: var(--amg-soft); border-radius: var(--amg-radius); padding: 20px 16px; display: grid; gap: 4px; }
.amg-c .amg-stats strong { font-size: 24px; font-weight: 800; color: var(--amg-navy); letter-spacing: -0.02em; line-height: 1.15; }
.amg-c .amg-stats span { font-size: 14px; line-height: 1.45; }
.amg-c .amg-reviews { margin-top: 48px; }

/* FAQ */
.amg-c .amg-faq { display: grid; gap: 12px; }
.amg-c .amg-faq__item { background: var(--amg-white); border: 1px solid var(--amg-border); border-radius: 12px; transition: border-color .2s; }
.amg-c .amg-sec--soft .amg-faq__item:not([open]) { background: var(--amg-white); }
.amg-c .amg-faq__item[open] { border-color: var(--amg-gold); }
.amg-c .amg-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; font-size: 17px; color: var(--amg-navy); line-height: 1.4; min-height: 56px; }
.amg-c .amg-faq__item summary::-webkit-details-marker { display: none; }
.amg-c .amg-faq__ico { flex: none; position: relative; width: 22px; height: 22px; }
.amg-c .amg-faq__ico::before, .amg-c .amg-faq__ico::after { content: ""; position: absolute; left: 3px; right: 3px; top: 10px; height: 2px; border-radius: 2px; background: var(--amg-navy); transition: transform .2s; }
.amg-c .amg-faq__ico::after { transform: rotate(90deg); }
.amg-c .amg-faq__item[open] .amg-faq__ico::before { background: var(--amg-gold-dark); }
.amg-c .amg-faq__item[open] .amg-faq__ico::after { transform: rotate(0); opacity: 0; }
.amg-c .amg-faq__a { padding: 0 20px 20px; }

/* CTA */
.amg-c .amg-cta { background: var(--amg-navy); color: #d6dce6; border-radius: 20px; padding: 32px 22px; display: grid; gap: 8px; }
.amg-c .amg-cta h2 { color: var(--amg-white); font-size: clamp(24px, 5.5vw, 36px); margin-bottom: 8px; }
.amg-c .amg-cta--slim { margin-top: 48px; }
.amg-c .amg-cta--slim .amg-btn { margin-top: 16px; }
.amg-c .amg-related { margin-top: 24px; text-align: center; font-size: 15px; }

/* ---------- Artykuł / hasło ---------- */
.amg-c .amg-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; pointer-events: none; }
.amg-c .amg-progress i { display: block; height: 100%; width: 0; background: var(--amg-gold); }
.amg-c .amg-article__hero { background: var(--amg-soft); padding: 24px 0 32px; }
.amg-c .amg-article__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.amg-c .amg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; font-size: 14px; line-height: 1.35; }
.amg-c .amg-meta small { color: var(--amg-muted); font-size: 12px; }
.amg-c .amg-meta a { font-weight: 700; text-decoration: none; }
.amg-c .amg-meta__img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--amg-border); }
.amg-c .amg-meta__sep { display: none; }
.amg-c .amg-article__cover { margin-top: 24px !important; }
.amg-c .amg-article__cover img { width: 100%; border-radius: var(--amg-radius); aspect-ratio: 16 / 9; object-fit: cover; }
.amg-c .amg-article__layout { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 56px; }
.amg-c .amg-article__body { min-width: 0; max-width: 760px; }
.amg-c .amg-article__lead { margin: 0 0 24px; font-weight: 500; color: var(--amg-navy); }

.amg-c .amg-toc { background: var(--amg-soft); border-radius: 12px; padding: 4px 18px; }
.amg-c .amg-toc summary { cursor: pointer; font-weight: 700; color: var(--amg-navy); padding: 12px 0; list-style-position: inside; }
.amg-c .amg-toc ol { counter-reset: toc; display: grid; gap: 8px; padding: 0 0 16px; }
.amg-c .amg-toc li { counter-increment: toc; display: flex; gap: 8px; font-size: 15px; line-height: 1.4; }
.amg-c .amg-toc li::before { content: counter(toc) "."; color: var(--amg-gold-dark); font-weight: 700; }
.amg-c .amg-toc a { text-decoration: none; color: var(--amg-text); }
.amg-c .amg-toc a:hover, .amg-c .amg-toc a.is-active { color: var(--amg-navy); font-weight: 600; }

.amg-c .amg-definition, .amg-c .amg-takeaways { border-left: 4px solid var(--amg-gold); background: var(--amg-gold-soft); border-radius: 0 12px 12px 0; padding: 18px 20px; margin-bottom: 28px; }
.amg-c .amg-definition__label, .amg-c .amg-takeaways__label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amg-gold-dark); margin-bottom: 8px; }
.amg-c .amg-definition__text { font-size: 18px; line-height: 1.6; color: var(--amg-navy); font-weight: 500; }
.amg-c .amg-takeaways ul { display: grid; gap: 8px; }
.amg-c .amg-takeaways li { position: relative; padding-left: 20px; color: var(--amg-navy); font-weight: 500; }
.amg-c .amg-takeaways li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--amg-gold); }

.amg-c .amg-prose { font-size: 17px; line-height: 1.75; }
.amg-c .amg-prose > * + * { margin-top: 1.1em; }
.amg-c .amg-prose h2 { font-size: clamp(22px, 5vw, 28px); margin-top: 1.8em; scroll-margin-top: 100px; }
.amg-c .amg-prose h3 { font-size: 20px; margin-top: 1.5em; }
.amg-c .amg-prose ul, .amg-c .amg-prose ol { padding-left: 1.3em; }
.amg-c .amg-prose ul { list-style: disc; }
.amg-c .amg-prose ol { list-style: decimal; }
.amg-c .amg-prose li + li { margin-top: .45em; }
.amg-c .amg-prose li::marker { color: var(--amg-gold-dark); }
.amg-c .amg-prose strong { color: var(--amg-navy); }
.amg-c .amg-prose a { color: var(--amg-navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--amg-gold); }
.amg-c .amg-prose img { border-radius: 12px; }
.amg-c .amg-prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.amg-c .amg-prose th, .amg-c .amg-prose td { border: 1px solid var(--amg-border); padding: 10px 12px; text-align: left; }

.amg-c .amg-faq-inline, .amg-c .amg-sources, .amg-c .amg-terms { margin-top: 40px; }
.amg-c .amg-faq-inline h2, .amg-c .amg-sources h2, .amg-c .amg-terms h2 { font-size: 22px; margin-bottom: 16px; }
.amg-c .amg-sources ol { list-style: decimal; padding-left: 1.3em; display: grid; gap: 6px; font-size: 15px; }
.amg-c .amg-terms ul { display: flex; flex-wrap: wrap; gap: 8px; }
.amg-c .amg-terms a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; background: var(--amg-soft); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--amg-navy); }
.amg-c .amg-terms a:hover { background: var(--amg-navy); color: var(--amg-white); }
.amg-c .amg-service { margin-top: 40px; background: var(--amg-navy); border-radius: var(--amg-radius); padding: 24px; display: grid; gap: 8px; color: #d6dce6; }
.amg-c .amg-service__label { font-size: 14px; }
.amg-c .amg-service__title { font-size: 21px; font-weight: 700; color: var(--amg-white); margin-bottom: 8px; }
.amg-c .amg-service .amg-btn { justify-self: start; }
.amg-c .amg-author { margin-top: 40px; display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 22px; border: 1px solid var(--amg-border); border-radius: var(--amg-radius); }
.amg-c .amg-author__img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--amg-soft); }
.amg-c .amg-author__label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amg-gold-dark); }
.amg-c .amg-author__name { font-size: 20px; font-weight: 700; }
.amg-c .amg-author__name a { text-decoration: none; }
.amg-c .amg-author__job { font-size: 14px; color: var(--amg-muted); margin-top: 2px; }
.amg-c .amg-author__bio { margin-top: 12px; font-size: 15px; }
.amg-c .amg-author__body { min-width: 0; }
.amg-c .amg-author__links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 15px; font-weight: 600; }
.amg-c .amg-author__links a { display: inline-flex; align-items: center; gap: 6px; }
.amg-c .amg-disclaimer { margin-top: 32px; font-size: 14px; color: var(--amg-muted); padding-top: 20px; border-top: 1px solid var(--amg-border); }
.amg-c .amg-adjacent { margin-top: 32px; display: grid; gap: 10px; }
.amg-c .amg-adjacent a { display: grid; padding: 14px 16px; border-radius: 12px; background: var(--amg-soft); text-decoration: none; font-weight: 600; }
.amg-c .amg-adjacent small { font-size: 13px; color: var(--amg-muted); font-weight: 500; }
.amg-c .amg-adjacent__all { text-align: center; place-content: center; }

/* ---------- Encyklopedia ---------- */
.amg-c .amg-enc__hero, .amg-c .amg-blog__hero { background: var(--amg-soft); padding: 24px 0 32px; }
.amg-c .amg-enc__author { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 15px; }
.amg-c .amg-enc__author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--amg-border); }
.amg-c .amg-enc__author a { font-weight: 700; }
.amg-c .amg-search { position: relative; margin-top: 20px; max-width: 560px; color: var(--amg-muted); }
.amg-c .amg-search .amg-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); }
.amg-c .amg-search input[type="search"] { width: 100%; min-height: 54px; padding: 12px 16px 12px 48px; border-radius: 12px; border: 1.5px solid var(--amg-border); background: var(--amg-white); font: inherit; font-size: 16px; color: var(--amg-navy); }
.amg-c .amg-search input[type="search"]:focus { border-color: var(--amg-gold); outline: none; }
.amg-c .amg-enc__body, .amg-c .amg-blog__body { padding-top: 24px; padding-bottom: 64px; }
.amg-c .amg-az { display: flex; flex-wrap: wrap; gap: 6px; position: sticky; top: 0; z-index: 5; background: var(--amg-white); padding: 10px 0; border-bottom: 1px solid var(--amg-border); }
.amg-c .amg-az a, .amg-c .amg-az span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none; }
.amg-c .amg-az a { background: var(--amg-navy); color: var(--amg-white) !important; }
.amg-c .amg-az a:hover { background: var(--amg-gold); color: var(--amg-navy) !important; }
.amg-c .amg-az span { color: #c3c9d3; }
.amg-c .amg-enc__group { margin-top: 32px; scroll-margin-top: 70px; }
.amg-c .amg-enc__letter { font-size: 32px; font-weight: 800; color: var(--amg-gold-dark); border-bottom: 2px solid var(--amg-border); padding-bottom: 8px; margin-bottom: 16px; }
.amg-c .amg-enc__list { display: grid; gap: 12px; }
.amg-c .amg-enc__item a { display: grid; gap: 6px; height: 100%; padding: 20px; border: 1px solid var(--amg-border); border-radius: 14px; text-decoration: none; background: var(--amg-white); transition: border-color .2s, box-shadow .2s; }
.amg-c .amg-enc__item a:hover { border-color: var(--amg-gold); box-shadow: 0 10px 24px rgba(12,21,36,.07); }
.amg-c .amg-enc__item h3 { font-size: 18px; }
.amg-c .amg-enc__item p { font-size: 15px; color: var(--amg-text); line-height: 1.55; }
.amg-c .amg-enc__cats { font-size: 13px; font-weight: 600; color: var(--amg-gold-dark); }
.amg-c .amg-empty { margin-top: 24px; font-weight: 600; }

/* ---------- Blog ---------- */
.amg-c .amg-blog__tools { display: grid; gap: 4px; }
.amg-c .amg-grid { display: grid; gap: 20px; margin-top: 24px; }
.amg-c .amg-post__link { display: flex; flex-direction: column; height: 100%; text-decoration: none !important; background: var(--amg-white); border: 1px solid var(--amg-border); border-radius: var(--amg-radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.amg-c .amg-post__link:hover { box-shadow: 0 14px 32px rgba(12,21,36,.09); transform: translateY(-2px); }
.amg-c .amg-post__media { aspect-ratio: 16 / 9; background: var(--amg-soft); overflow: hidden; }
.amg-c .amg-post__media img { width: 100%; height: 100%; object-fit: cover; }
.amg-c .amg-post__ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--amg-gold); background: var(--amg-navy); }
.amg-c .amg-post__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.amg-c .amg-post__cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amg-gold-dark); }
.amg-c .amg-post__title { font-size: 19px; line-height: 1.3; color: var(--amg-navy); }
.amg-c .amg-post__excerpt { font-size: 15px; color: var(--amg-text); line-height: 1.55; }
.amg-c .amg-post__meta { margin-top: auto; font-size: 13px; color: var(--amg-muted); }
.amg-c .amg-post--featured { margin-top: 8px; }
.amg-c .amg-post--featured .amg-post__title { font-size: clamp(22px, 5vw, 30px); }
.amg-c .amg-pagination { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.amg-c .amg-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--amg-border); text-decoration: none; font-weight: 600; color: var(--amg-navy); }
.amg-c .amg-pagination .page-numbers.current { background: var(--amg-navy); color: var(--amg-white); border-color: var(--amg-navy); }
.amg-c .amg-enc-teaser { margin-top: 56px; background: var(--amg-soft); border-radius: 20px; padding: 28px 22px; display: grid; gap: 20px; }
.amg-c .amg-enc-teaser ul { display: flex; flex-wrap: wrap; gap: 8px; }
.amg-c .amg-enc-teaser li a { display: inline-block; padding: 9px 14px; border-radius: 10px; background: var(--amg-white); text-decoration: none; font-weight: 600; font-size: 15px; }
.amg-c .amg-enc-teaser li a:hover { background: var(--amg-navy); color: var(--amg-white); }
.amg-c .amg-enc-teaser .amg-btn { justify-self: start; }

/* Strona autorki */
.amg-c .amg-authorpage__head { display: grid; gap: 24px; }
.amg-c .amg-authorpage__img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--amg-border); border: 4px solid var(--amg-white); box-shadow: 0 8px 24px rgba(12,21,36,.12); }
.amg-c .amg-authorpage__job { font-weight: 600; color: var(--amg-navy); margin-top: 8px; }

/* ---------- ≥ 600 px ---------- */
@media (min-width: 600px) {
	.amg-c .amg-btns { flex-direction: row; flex-wrap: wrap; }
	.amg-c .amg-btns--stack { flex-direction: column; }
	.amg-c .amg-stats { grid-template-columns: repeat(2, 1fr); }
	.amg-c .amg-cards, .amg-c .amg-grid, .amg-c .amg-enc__list { grid-template-columns: repeat(2, 1fr); }
	.amg-c .amg-calc__cards { grid-template-columns: 1fr 1fr; }
	.amg-c .amg-calc__inputs { grid-template-columns: repeat(3, 1fr); }
	.amg-c .amg-steps { grid-template-columns: repeat(2, 1fr); }
	.amg-c .amg-adjacent { grid-template-columns: 1fr auto 1fr; align-items: stretch; }
	.amg-c .amg-adjacent a[rel="next"] { text-align: right; }
	.amg-c .amg-author { grid-template-columns: 96px 1fr; padding: 28px; }
	.amg-c .amg-author__img { width: 96px; height: 96px; }
}

/* ---------- ≥ 900 px ---------- */
@media (min-width: 900px) {
	.amg-c { --amg-gutter: 24px; }
	.amg-c .amg-sec { padding: 96px 0; }
	.amg-c .amg-head { margin-bottom: 48px; }
	.amg-c .amg-hero { padding: 32px 0 96px; }
	.amg-c .amg-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
	.amg-c .amg-vis { padding: 36px; }
	.amg-c .amg-cmp { grid-template-columns: 1fr 1fr; gap: 24px; }
	.amg-c .amg-cmp__card { padding: 40px; }
	.amg-c .amg-calc { padding: 48px; gap: 32px; }
	.amg-c .amg-calc__top { grid-template-columns: 1fr auto; align-items: end; }
	.amg-c .amg-calc__presets { min-width: 420px; }
	.amg-c .amg-calc__result { grid-template-columns: 1fr auto; align-items: center; padding: 28px 32px; }
	.amg-c .amg-calc__save { font-size: 30px; }
	.amg-c .amg-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
	.amg-c .amg-steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
	.amg-c .amg-stats { grid-template-columns: repeat(4, 1fr); gap: 24px; }
	.amg-c .amg-stats li { padding: 28px; }
	.amg-c .amg-stats strong { font-size: 30px; }
	.amg-c .amg-cta { grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 56px 64px; }
	.amg-c .amg-btns--stack { margin-top: 0; align-items: stretch; }
	.amg-c .amg-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
	.amg-c .amg-post--featured .amg-post__link { flex-direction: row; }
	.amg-c .amg-post--featured .amg-post__media { flex: 0 0 56%; aspect-ratio: auto; min-height: 360px; }
	.amg-c .amg-post--featured .amg-post__body { padding: 40px; justify-content: center; }
	.amg-c .amg-enc__hero, .amg-c .amg-blog__hero, .amg-c .amg-article__hero { padding: 40px 0 56px; }
	.amg-c .amg-blog__tools { grid-template-columns: minmax(0, 560px) auto; align-items: end; gap: 32px; }
	.amg-c .amg-enc__list { grid-template-columns: repeat(3, 1fr); }
	.amg-c .amg-enc-teaser { grid-template-columns: 1fr 1.4fr; align-items: center; padding: 40px; }
	.amg-c .amg-enc-teaser .amg-btn { grid-column: 2; }
	.amg-c .amg-meta__sep { display: block; width: 1px; height: 32px; background: var(--amg-border); }
	.amg-c .amg-authorpage__head { grid-template-columns: 160px 1fr; align-items: start; gap: 40px; }
	.amg-c .amg-authorpage__img { width: 160px; height: 160px; }
}

/* ---------- ≥ 1100 px: spis treści obok artykułu ---------- */
@media (min-width: 1100px) {
	.amg-c .amg-article__layout { grid-template-columns: 260px minmax(0, 760px); justify-content: center; gap: 56px; padding-top: 48px; }
	.amg-c .amg-toc-wrap { position: relative; }
	.amg-c .amg-toc { position: sticky; top: 110px; max-height: calc(100vh - 140px); overflow: auto; }
	.amg-c .amg-article__layout > .amg-article__body:only-child { grid-column: 1 / -1; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
	.amg-c *, .amg-c *::before, .amg-c *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Theme overrides: Wexico content wrappers should not constrain plugin templates. */
body.amg-core-view .amg-c { width: 100%; }
