/* =========================================================
   eDestilerija — podstranice (kalkulatori, demo, pravne strane)
   Nadograđuje style.css: koristi iste tokene, header i footer.
   ========================================================= */

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: 56px 0 120px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero__inner { max-width: 760px; }
.page-hero--center .page-hero__inner { margin: 0 auto; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.035em; margin-top: 20px; }
.page-hero__lead { margin-top: 18px; font-size: 19px; color: var(--slate); max-width: 640px; }
.page-hero--center .page-hero__lead { margin-left: auto; margin-right: auto; }
.page-hero__chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.page-hero--center .page-hero__chips { justify-content: center; }
.page-hero__chips span { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--slate); }
.page-hero__chips svg { width: 19px; height: 19px; color: var(--brand-600); flex: none; }
.page-hero__meta { margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 22px; font-size: 14px; font-weight: 600; color: var(--muted); }
.page-hero--center .crumbs { justify-content: center; }
.crumbs a { color: var(--muted); transition: color .15s; }
.crumbs a:hover { color: var(--brand-700); }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Layout ---------- */
.page { position: relative; z-index: 2; margin-top: -72px; padding-bottom: 88px; }
.page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.page__grid--toc { grid-template-columns: 260px minmax(0, 1fr); }
.page__main { min-width: 0; }
.page__aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 18px; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 36px 40px; margin-bottom: 24px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.page__main > .card:first-child { box-shadow: var(--shadow); }
.card h2 { display: flex; align-items: center; gap: 12px; font-size: 23px; letter-spacing: -.02em; margin-bottom: 14px; }
.card h2 > svg { flex: none; width: 24px; height: 24px; color: var(--brand-600); }
.card h3 { font-size: 17px; margin: 24px 0 8px; }
.card p { margin-bottom: 14px; font-size: 16px; }
.card p:last-child { margin-bottom: 0; }
.card > p:first-of-type { color: var(--slate); }
.card ul { margin-bottom: 14px; }
.card ul li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 16px; }
.card ul li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.card strong { color: var(--ink); }
.card a:not(.btn) { color: var(--brand-600); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brand-200); text-underline-offset: 3px; }
.card a:not(.btn):hover { text-decoration-color: currentColor; }

/* Numerisani naslovi (politika privatnosti) */
.card h2 .num {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100);
  border-radius: 10px; font-size: 15px; font-weight: 800;
}

/* ---------- Kalkulator ---------- */
.calc-tabs {
  display: flex; gap: 6px; padding: 5px; margin-bottom: 26px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
}
.calc-tabs button {
  flex: 1; border: 0; background: transparent; font-size: 15px; font-weight: 700; color: var(--muted);
  padding: 11px 16px; border-radius: 999px; transition: background .15s, color .15s, box-shadow .15s;
}
.calc-tabs button:hover { color: var(--brand-700); }
.calc-tabs button.is-active { background: var(--grad); color: #fff; box-shadow: 0 10px 20px -10px rgba(63,67,224,.6); }
.calc-panel { display: none; }
.calc-panel.is-active { display: block; animation: fadeUp .35s ease; }

.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fields--3 { grid-template-columns: repeat(3, 1fr); }
.fields--4 { grid-template-columns: repeat(2, 1fr); }
:is(.card, .dm-form) .field { margin-bottom: 0; }
:is(.card, .dm-form) .field label { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field .in { position: relative; }
:is(.card, .dm-form) .field input,
:is(.card, .dm-form) .field select {
  width: 100%; font-family: inherit; font-size: 17px; font-weight: 600; color: var(--ink);
  background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 64px 14px 16px; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
:is(.card, .dm-form) .field input::placeholder { color: #a0aec0; font-weight: 500; }
:is(.card, .dm-form) .field input:hover,
:is(.card, .dm-form) .field select:hover { border-color: var(--brand-200); }
:is(.card, .dm-form) .field select {
  -webkit-appearance: none; appearance: none; cursor: pointer; font-size: 15.5px; padding-right: 42px;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
:is(.card, .dm-form) .field input:focus,
:is(.card, .dm-form) .field select:focus { border-color: var(--brand-500); box-shadow: var(--ring); background: #fff; }
.field .unit {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 13.5px; font-weight: 700; color: var(--muted); pointer-events: none;
}
.field small, .field--rate small { display: block; font-size: 13.5px; color: var(--muted); margin-top: 7px; line-height: 1.55; }
.field--rate { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }

.calc-err {
  display: none; align-items: flex-start; gap: 10px; margin-top: 16px;
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 15px; font-weight: 500;
}
.calc-err.is-visible { display: flex; }
.calc-err svg { flex: none; width: 18px; height: 18px; margin-top: 3px; }

/* Rezultat — tamni panel u stilu CTA trake */
.result {
  position: relative; overflow: hidden; isolation: isolate; display: none;
  margin-top: 22px; padding: 28px 30px; border-radius: var(--radius);
  background: var(--bg-deep); color: #fff;
}
.result::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 120% at 100% 0%, rgba(79,90,240,.5), transparent 60%);
}
.result.is-visible { display: block; animation: fadeUp .35s ease; }
.result__main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.result__main small { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.75); }
.result__num { font-size: clamp(32px, 6vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.result__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.result__item { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm); padding: 13px 16px; }
.result__item small { display: block; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.7); line-height: 1.4; margin-bottom: 4px; }
.result__item b { font-size: 18px; font-weight: 800; }

/* ---------- Napomena ---------- */
.note {
  display: flex; gap: 12px; margin-top: 20px; padding: 16px 18px;
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--brand-800);
}
.note svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.card .note a { color: var(--brand-800); }

/* ---------- Tabele ---------- */
.table-scroll { overflow-x: auto; margin: 16px 0 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
.table-scroll th { background: var(--bg-soft); color: var(--ink); text-align: left; font-weight: 700; padding: 13px 16px; white-space: nowrap; }
.table-scroll td { padding: 12px 16px; border-top: 1px solid var(--line-2); vertical-align: top; }
.table-scroll tbody tr:hover td { background: #fafbff; }

/* ---------- FAQ u kartici (koristi .acc iz style.css) ---------- */
.card .faq__list { margin-top: 8px; }
.card .acc__q { font-size: 16px; padding: 18px 20px; }
.card .acc__a-inner { padding: 0 20px 20px; font-size: 15.5px; }

/* ---------- Aside ---------- */
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.side-card h3 { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.side-links { display: flex; flex-direction: column; gap: 4px; }
.side-links a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; transition: background .15s; }
.side-links a:hover { background: var(--brand-50); }
.side-links a[aria-current="page"] { background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-100); }
.side-links b { display: block; font-size: 15px; color: var(--ink); line-height: 1.3; }
.side-links small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.side-links .ico { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.side-links a[aria-current="page"] .ico { background: var(--grad); color: #fff; }
.side-links .ico svg { width: 19px; height: 19px; }

.side-promo {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); padding: 24px; color: rgba(255,255,255,.85); background: var(--bg-deep);
}
.side-promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 90% at 100% 0%, rgba(79,90,240,.55), transparent 65%); }
.side-promo b { display: block; color: #fff; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.side-promo p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; }
.side-promo .btn { margin-top: 16px; padding: 12px 18px; font-size: 15px; }
.side-promo .eyebrow { margin-bottom: 12px; font-size: 11.5px; padding: 5px 11px; }

/* ---------- TOC (politika privatnosti) ---------- */
.toc { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; }
.toc h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.toc a { display: block; font-size: 14.5px; font-weight: 500; color: var(--slate); padding: 7px 12px; border-radius: 9px; transition: background .15s, color .15s; }
.toc a:hover, .toc a.is-active { background: var(--brand-50); color: var(--brand-700); }

.rights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.right-item { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.right-item b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.right-item span { font-size: 14.5px; color: var(--muted); }

.contact-card { position: relative; overflow: hidden; isolation: isolate; background: var(--bg-deep); border: 0; color: rgba(255,255,255,.85); }
.contact-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 0%, rgba(79,90,240,.5), transparent 60%); }
.contact-card h2 { color: #fff; }
.contact-card h2 .num { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.card .contact-links a {
  display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 999px; transition: background .15s;
}
.card .contact-links a:hover { background: rgba(255,255,255,.2); }
.contact-links svg { width: 17px; height: 17px; }

/* ---------- Stranice rešenja (hero sa ilustracijom) ---------- */
.page-hero--split { padding-bottom: 80px; }
.page-hero__split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.page-hero__split .page-hero__inner { max-width: none; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero__visual { min-width: 0; }
.pkg-badge { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); }

.howto { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.howto h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 18px; }
.howto__intro p { margin-top: 16px; color: var(--muted); font-size: 17px; }
.howto__steps { display: flex; flex-direction: column; gap: 14px; counter-reset: how; }
.howto__steps li { counter-increment: how; position: relative; padding: 22px 24px 22px 76px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.howto__steps li::before { content: counter(how); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad); }
.howto__steps b { display: block; color: var(--ink); font-size: 17px; }
.howto__steps p { margin-top: 4px; color: var(--muted); font-size: 15.5px; }
.legal-note { display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.legal-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--muted); }
.mock__foot--warn { background: #fffbeb; color: #92400e; }
.mock__foot--warn svg { color: var(--amber); }
.mock__big { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.mock__sub { font-size: 13px; color: var(--muted); }

/* Šta je novo */
.changelog { max-width: 820px; margin: 0 auto; }
.changelog__version { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.changelog__version b { font-size: 22px; color: var(--ink); }
.change { display: grid; grid-template-columns: 118px 1fr; gap: 6px 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.change__type { align-self: start; justify-self: start; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; }
.change__type--new { color: #047857; background: #ecfdf5; }
.change__type--upgrade { color: var(--brand-700); background: var(--brand-50); }
.change__type--fix { color: #92400e; background: #fffbeb; }
.change h3 { font-size: 18px; margin: 0; }
.change p { grid-column: 2; margin: 0; color: var(--slate); font-size: 16px; }

/* ---------- CTA traka na dnu podstranica ---------- */
.page-cta { padding: 0 0 96px; }

/* ---------- Poruka (successfuly-sent) ---------- */
.status-page { position: relative; overflow: hidden; min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 64px 0; }
.status-card { max-width: 520px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 48px 40px; box-shadow: var(--shadow); }
.status-card__ico { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--leaf), #059669); box-shadow: 0 0 0 10px rgba(16,185,129,.12); }
.status-card__ico svg { width: 34px; height: 34px; }
.status-card h1 { font-size: clamp(26px, 4vw, 32px); }
.status-card p { margin-top: 12px; color: var(--muted); }
.status-card .btn { margin-top: 28px; }

/* ---------- Partnerski program ---------- */
.pp-hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pp-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }

.pp-facts { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pp-fact { padding: 26px 24px; text-align: center; }
.pp-fact + .pp-fact { border-left: 1px solid var(--line-2); }
.pp-fact b { display: block; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; color: var(--brand-700); line-height: 1.15; }
.pp-fact span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.page:has(.pp-facts) { padding-bottom: 0; }

.pp-panel--dark { background: var(--bg-deep); border-color: var(--bg-deep); color: rgba(255,255,255,.85); overflow: hidden; isolation: isolate; }
.pp-panel--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 100% 0%, rgba(79,90,240,.5), transparent 60%); }
.pp-panel--dark h3 { color: #fff; }
.pp-panel--dark li svg { color: var(--brand-200); }
.pp-panel--dark .tag { background: rgba(255,255,255,.14); }

.pp-calc { max-width: 920px; margin: 0 auto; }

.pp-portal { align-items: center; gap: 56px; }
.pp-portal__copy h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 18px; }
.pp-portal__copy > p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.pp-list { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.pp-list li { display: flex; gap: 14px; align-items: flex-start; }
.pp-list .ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100); }
.pp-list .ico svg { width: 20px; height: 20px; }
.pp-list b { display: block; color: var(--ink); font-size: 16.5px; }
.pp-list span:not(.ico) { display: block; font-size: 15.5px; color: var(--muted); line-height: 1.55; }

.pp-mock { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.pp-mock__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.pp-mock__dots { display: flex; gap: 6px; }
.pp-mock__dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.pp-mock__dots i:first-child { background: #fca5a5; }
.pp-mock__dots i:nth-child(2) { background: #fcd34d; }
.pp-mock__dots i:last-child { background: #86efac; }
.pp-mock__url { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-mock__body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.pp-mock__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-mock__tabs span { font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 12px; border-radius: 999px; }
.pp-mock__tabs .is-active { background: var(--grad); color: #fff; }
.pp-mock__code { background: var(--brand-50); border: 1px dashed var(--brand-200); border-radius: var(--radius-sm); padding: 12px 16px; }
.pp-mock__code small, .pp-mock__stats small, .pp-mock__chart small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.pp-mock__code b { font-size: 15px; color: var(--ink); word-break: break-all; }
.pp-mock__code em { font-style: normal; color: var(--brand-700); }
.pp-mock__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pp-mock__stats div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.pp-mock__stats b { font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
.pp-mock__stats .is-accent { background: var(--bg-deep); border-color: var(--bg-deep); }
.pp-mock__stats .is-accent small { color: rgba(255,255,255,.7); }
.pp-mock__stats .is-accent b { color: #fff; }
.pp-mock__chart { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.pp-mock__bars { height: 110px; margin-top: 10px; display: flex; align-items: flex-end; gap: 6px; }
.pp-mock__bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--brand-500), var(--brand-300)); }

.pp-opt { font-weight: 500; color: var(--muted); }
.form .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 13px 42px 13px 15px;
  font-size: 15px; font-family: inherit; color: var(--ink); background-color: var(--bg-soft); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.form .field select:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--ring); background-color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .page-hero__split, .howto { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .page-hero__visual { max-width: 520px; }
  .page__grid, .page__grid--toc { grid-template-columns: minmax(0, 1fr); }
  .page__aside { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .pp-portal { grid-template-columns: 1fr; gap: 36px; }
  .toc { position: static; }
}
@media (max-width: 760px) {
  .page-hero { padding: 36px 0 104px; }
  .page-hero__lead { font-size: 17px; }
  .page { padding-bottom: 64px; }
  .card { padding: 26px 20px; }
  .card h2 { font-size: 20px; }
  .fields, .fields--3, .fields--4, .result__grid, .rights, .page__aside { grid-template-columns: 1fr; }
  .calc-tabs button { font-size: 14px; padding: 10px 8px; }
  .result { padding: 24px 20px; }
  .page-cta { padding-bottom: 64px; }
  .status-card { padding: 36px 22px; }
  .page-hero--split { padding-bottom: 56px; }
  .page-hero__actions .btn { flex: 1 1 auto; }
  .howto__steps li { padding: 18px 18px 18px 66px; }
  .howto__steps li::before { left: 16px; top: 18px; }
  .change { grid-template-columns: 1fr; }
  .change p { grid-column: 1; }
  .pp-facts { grid-template-columns: 1fr 1fr; }
  .pp-fact { padding: 20px 14px; }
  .pp-fact + .pp-fact { border-left: 0; }
  .pp-fact:nth-child(even) { border-left: 1px solid var(--line-2); }
  .pp-fact:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .pp-mock__stats { grid-template-columns: 1fr 1fr; }
  .pp-mock__body { padding: 16px; }
}

.card-x p a { color: var(--brand-700); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brand-200); text-underline-offset: 3px; }
