/* =========================================================
   FranKonsalt — inner pages (loaded after style.css)
   Shared components: crumbs, page hero, sub-nav, sections,
   card grids, CTA band, price cards, case cards, calculators,
   contacts, article layout, lists, sitemap.
   ========================================================= */

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 13px; color: var(--mute); padding: 10px 0 0; }
.crumbs ol { display: flex; gap: 4px; align-items: center; overflow-x: auto; white-space: nowrap; scrollbar-width: none; margin: 0; padding: 0; list-style: none; }
.crumbs ol::-webkit-scrollbar { display: none; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs li + li::before { content: "/"; color: #C3C8D1; margin-right: 4px; }
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 500; }

/* ---------- Page hero ---------- */
.page-hero { padding: 14px 0 22px; background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); }
.page-hero__grid { display: grid; gap: 16px; align-items: center; }
.page-hero h1 { font-size: clamp(24px, 6.6vw, 30px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.page-hero h1 .brand { color: var(--red); }
.page-hero .lead { font-size: 15px; color: var(--ink-2); line-height: 1.5; margin-top: 8px; max-width: 60ch; }
.page-hero__actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
.page-hero__actions .btn { font-size: 14px; width: 100%; }
.page-hero__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 2.4 / 1; background: var(--surface-2); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--plain { padding: 14px 0 6px; background: #fff; }
.page-hero--plain h1 { font-size: clamp(22px, 6vw, 28px); }

/* Cover hero: dark panel. Phones show the whole picture as a strip under the text,
   from 820px it becomes the backdrop of the panel. */
.page-hero--cover { padding: 10px 0 8px; background: #fff; }
.hero-cover { position: relative; isolation: isolate; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #0D2D50; color: #fff; box-shadow: var(--shadow-md); }
.hero-cover__body { position: relative; min-width: 0; padding: 20px 16px 0; }
.hero-cover h1 { color: #fff; }
.hero-cover .lead { color: rgba(255, 255, 255, .88); }
.hero-cover__media { order: 2; display: block; margin-top: -6px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 48%); mask-image: linear-gradient(180deg, transparent 0, #000 48%); }
.hero-cover__media img { width: 100%; height: auto; }
.page-hero--cover .page-hero__actions { grid-template-columns: 1.3fr 1fr; }
.page-hero--cover .page-hero__actions .btn { font-size: 13.5px; padding-inline: 8px; white-space: normal; text-align: center; line-height: 1.15; }
.page-hero--cover .page-hero__actions .btn .icon { display: none; }
.btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn--glass:hover { background: rgba(255, 255, 255, .24); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18); }
.hero-facts li { min-width: 0; font-size: 11.5px; line-height: 1.3; color: rgba(255, 255, 255, .8); }
.hero-facts b { display: block; margin-bottom: 3px; font-family: var(--font-head); font-weight: 800; font-size: 14.5px; line-height: 1.15; letter-spacing: -.01em; color: #fff; }

/* ---------- Sub-navigation (section tabs) ---------- */
.subnav { margin-top: 14px; }
.subnav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.subnav a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.subnav a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 22px 0; }
.section--surface { background: var(--surface); }
.section--red { background: var(--red-deep); color: #fff; }
.section--red .section-title, .section--red .section-sub { color: #fff; }
.section--tight { padding: 12px 0; }
.section-title { font-size: clamp(20px, 5vw, 26px); line-height: 1.2; margin-bottom: 6px; }
.section-title .brand { color: var(--red); }
.section-sub { font-size: 14.5px; color: var(--ink-2); max-width: 70ch; margin-bottom: 14px; line-height: 1.5; }
.section--red .section-sub { color: rgba(255, 255, 255, .9); }
.section-title + .q-grid, .section-title + .stats__row, .section-title + .cases, .section-title + .price-cards, .section-title + .check-grid, .section-title + .promo-grid { margin-top: 14px; }

/* coloured bands: soft light spot / ring so the flat fill gets some depth */
.section--red, .section--blue { position: relative; isolation: isolate; overflow: hidden; }
.section--red::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -180px; top: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.section--blue { background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue) 70%, #2E7BE0 100%); color: #fff; }
.section--blue::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -240px; bottom: -380px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); pointer-events: none; }
.section--blue .section-title { color: #fff; }
.section--blue .section-sub { color: rgba(255, 255, 255, .9); }

/* ---------- Card grids ---------- */
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 12px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); min-width: 0; }
.q-card__num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--red-50); color: var(--red-700); font-family: var(--font-head); font-weight: 800; font-size: 14px; line-height: 1; margin-bottom: 6px; }
.q-card .icon { width: 24px; height: 24px; color: var(--red); margin-bottom: 4px; }
.q-card h3 { font-size: 14px; line-height: 1.25; font-weight: 700; }
.q-card p { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.q-card--accent { background: var(--blue-50); border-color: transparent; grid-column: 1 / -1; padding: 14px; }
.q-card--accent h3 { font-size: 17px; }
.q-card--accent .brand { color: var(--red); }
.section--red .q-card, .section--blue .q-card { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); color: #fff; }
.section--red .q-card p, .section--blue .q-card p { color: rgba(255, 255, 255, .9); }
.section--red .q-card .icon, .section--blue .q-card .icon { color: #fff; }
.section--red .q-card__num, .section--blue .q-card__num { background: rgba(255, 255, 255, .18); color: #fff; }
.section--surface .q-card { box-shadow: var(--shadow-sm); border-color: transparent; }
.q-grid--full { grid-template-columns: 1fr; }

/* icon chips (opt-in): the icon sits in a rounded tile */
.q-grid--chips .q-card > .icon { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--red-50); margin-bottom: 6px; }
.section--red .q-grid--chips .q-card > .icon, .section--blue .q-grid--chips .q-card > .icon { background: rgba(255, 255, 255, .16); }

/* Phones only: "check" = one compact numbered checklist, "rows" = icon-left horizontal cards */
@media (max-width: 639.98px) {
  .q-grid--check { grid-template-columns: 1fr; gap: 0; padding: 2px 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
  .q-grid--check .q-card { display: block; position: relative; padding: 11px 0 11px 38px; font-size: 14px; line-height: 1.4; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
  .q-grid--check .q-card:last-child { border-bottom: 0; }
  .q-grid--check .q-card__num { position: absolute; left: 0; top: 9px; width: 26px; height: 26px; border-radius: 8px; margin: 0; font-size: 13px; }
  .q-grid--check .q-card h3, .q-grid--check .q-card p { display: inline; font-size: 14px; line-height: 1.4; }
  .q-grid--check .q-card h3 { margin-right: .28em; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
  .q-grid--rows { grid-template-columns: 1fr; gap: 8px; }
  .q-grid--rows .q-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-content: center; padding: 10px 12px; }
  .q-grid--rows .q-card > .icon { grid-row: 1 / span 2; align-self: start; width: 38px; height: 38px; padding: 9px; border-radius: 10px; margin: 0; }
  .q-grid--rows .q-card > h3, .q-grid--rows .q-card > p { grid-column: 2; }
  .q-grid--rows .q-card > h3 { align-self: end; }
}

/* ---------- Check list (reused from home) ---------- */
.check-grid--cols3 { grid-template-columns: 1fr 1fr; }

/* ---------- CTA band ---------- */
.cta-band { --cta-pad: 16px; border-radius: var(--r-lg); background: linear-gradient(115deg, #fff 45%, var(--blue-50) 100%); border: 1px solid #DCE5F4; box-shadow: var(--shadow-md); padding: var(--cta-pad); display: grid; gap: 14px; overflow: hidden; }
.cta-band__lead > h2, .cta-band__lead > h3 { font-size: 19px; line-height: 1.2; margin-bottom: 4px; }
.cta-band__lead > h2 .brand, .cta-band__lead > h3 .brand { color: var(--red); }
.cta-band__lead > p { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.cta-band__offer { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(6, 87, 190, .06); }
.cta-band__offer h3 { font-size: 15px; line-height: 1.25; margin-bottom: 2px; }
.cta-band__offer p { font-size: 13px; line-height: 1.4; color: var(--mute); }
.cta-band__actions { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center; }
.cta-band__phone { display: block; font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--ink); line-height: 1.1; text-decoration: none; white-space: nowrap; transition: color var(--dur); }
.cta-band__phone:hover { text-decoration: none; color: var(--red-700); }
.cta-band__phone small { margin-right: 8px; font-family: var(--font-body); font-weight: 400; font-size: 12.5px; color: var(--mute); }
.cta-band__phone b { color: var(--red); }
.cta-band .btn { flex-direction: column; gap: 1px; min-height: 52px; padding-block: 8px; font-size: 15px; }
.cta-band .btn small { font-size: 11.5px; font-weight: 500; opacity: .88; }
/* headed variant: a tinted statement strip on top of the band */
.cta-band__head { grid-column: 1 / -1; margin: calc(-1 * var(--cta-pad)) calc(-1 * var(--cta-pad)) 0; padding: 14px var(--cta-pad); background: var(--blue-50); border-bottom: 1px solid #DCE5F4; }
.cta-band__head h2 { font-size: 19px; line-height: 1.2; }
.cta-band__head h2 .brand { color: var(--red); }
.cta-band__head p { margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.cta-band--form .field { margin-bottom: 8px; }
.cta-band--form .btn { margin-top: 4px; }
.cta-band--form .form-note { font-size: 12px; color: var(--mute); margin-top: 8px; }

/* ---------- Stats variants ---------- */
.stats__row--4 .stat { flex-basis: 170px; }
.stat--total { background: var(--red-deep); color: #fff; border-color: transparent; }
.stat--total .stat__num, .stat--total .stat__label, .stat--total .stat__more { color: #fff; }
.stat__num small { font-size: 14px; font-weight: 600; color: var(--red); margin-left: 4px; }
.stat--total .stat__num small { color: rgba(255, 255, 255, .85); }

/* ---------- Result / promo / note bands ---------- */
.result-band { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px; border-radius: var(--r); background: var(--blue-50); margin-top: 10px; }
.result-band__badge { width: 44px; height: 44px; border-radius: 12px; background: var(--red-deep); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.result-band h3 { font-size: 16px; margin-bottom: 4px; }
.result-band p { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.result-band p + p { margin-top: 6px; }
.promo-band { border-radius: var(--r-lg); background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%); color: #fff; padding: 18px 16px; }
.promo-band h2 { font-size: 19px; margin-bottom: 4px; }
.promo-band p { font-size: 13.5px; opacity: .92; }
.two-col { display: grid; gap: 10px; margin-top: 10px; }
.two-col > div { padding: 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.two-col h3 { font-size: 16px; margin-bottom: 4px; }
.two-col h3 .brand { color: var(--red); }
.two-col p { font-size: 13.5px; color: var(--ink-2); }
.note-band { border-left: 3px solid var(--red); background: var(--surface); padding: 12px 14px; border-radius: 0 var(--r) var(--r) 0; }
.note-band h3 { font-size: 16px; margin-bottom: 4px; }
.note-band h3 .brand { color: var(--red); }
.note-band p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.timeline { display: grid; gap: 8px; counter-reset: tl; }
.timeline li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: var(--r); background: rgba(255, 255, 255, .12); counter-increment: tl; }
.timeline li::before { content: counter(tl); width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--red-deep); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; }
.timeline h3 { font-size: 14.5px; margin-bottom: 2px; }
.timeline p { font-size: 13px; opacity: .92; }

/* ---------- Guarantee (blue band: statement beside the cards from 1024px) ---------- */
.guarantee__badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 10px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.guarantee__badge .icon { width: 24px; height: 24px; }
.guarantee .section-sub { margin-bottom: 14px; }

/* ---------- Resources (catalogs) + promo bento ---------- */
.promo-grid { display: grid; gap: 10px; }
.resources { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.resource { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 12px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); color: var(--ink); transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur); }
.resource img { height: 40px; width: auto; max-width: calc(100% - 22px); object-fit: contain; object-position: left center; }
.resource__text { min-width: 0; }
.resource__text b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 13.5px; line-height: 1.25; }
.resource__text small { display: block; margin-top: 2px; font-size: 12px; color: var(--mute); }
.resource > .icon { position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; color: #A6ADB8; transform: rotate(-45deg); transition: color var(--dur), transform var(--dur); }
.resource:hover { border-color: var(--blue); text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.resource:hover > .icon { color: var(--blue); transform: rotate(-45deg) translateX(2px); }

/* ---------- Case cards (results) ---------- */
.cases { display: flex; align-items: flex-start; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 14px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; scroll-behavior: smooth; }
.cases::-webkit-scrollbar { display: none; }
.case { flex: 0 0 min(80vw, 310px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.case__logo { height: 52px; display: flex; align-items: center; }
.case__logo img { max-height: 52px; width: auto; max-width: 160px; object-fit: contain; }
.case h3 { font-size: 15px; line-height: 1.25; }
.case p { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.case__facts { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; margin-top: auto; padding: 10px 12px; border-radius: 10px; background: var(--surface); }
.case__facts b { display: block; font-family: var(--font-head); font-size: 15px; color: var(--red); line-height: 1.15; }
.case__facts span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--mute); line-height: 1.3; }

/* ---------- Price cards: swipe strip on phones, grid from 640px ---------- */
.price-cards { display: flex; align-items: flex-start; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 12px var(--gutter) 14px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; }
.price-cards::-webkit-scrollbar { display: none; }
.price-card { position: relative; flex: 0 0 min(80vw, 310px); scroll-snap-align: start; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.price-card--hit { border-color: var(--red); background: linear-gradient(180deg, var(--red-50) 0, #fff 110px); box-shadow: 0 14px 28px -16px rgba(205, 52, 64, .55); }
.price-card__badge { position: absolute; top: -10px; right: 14px; background: var(--red-deep); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.price-card__name { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--red-700); font-weight: 700; }
.price-card__price { font-family: var(--font-head); font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price-card__bonus { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.price-card__bonus b { color: var(--red-700); }
.price-card details summary { list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 6px; min-height: 40px; }
.price-card details summary::-webkit-details-marker { display: none; }
.price-card details summary .icon { transition: transform var(--dur); }
.price-card details[open] summary .icon { transform: rotate(180deg); }
.price-card ul { display: grid; gap: 5px; padding-bottom: 4px; }
.price-card li { display: flex; gap: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.price-card li .icon { width: 16px; height: 16px; color: var(--red); margin-top: 2px; stroke-width: 2.4; }
.price-card .btn { margin-top: auto; }
/* set by main.js from 1024px, where the lists are always open */
.price-card details.is-static summary { pointer-events: none; min-height: 0; padding: 4px 0 8px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.price-card details.is-static summary .icon { display: none; }

/* ---------- Calculators ---------- */
.calc { display: grid; gap: 12px; }
.calc__steps { display: grid; gap: 10px; }
.calc-step { border-radius: var(--r); background: #fff; border: 1px solid var(--line); padding: 14px; }
.calc-step__head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.calc-step__num { width: 30px; height: 30px; border-radius: 50%; background: var(--red-deep); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; flex: none; }
.calc-step h3 { font-size: 15px; line-height: 1.25; }
.calc-step__hint { font-size: 12.5px; color: var(--mute); margin-top: 6px; }
.choice { display: grid; gap: 6px; }
.choice label { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; font-size: 14px; transition: border-color var(--dur), background var(--dur); }
.choice label:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); flex: none; }
.choice small { display: block; font-size: 12px; color: var(--mute); }
.select { position: relative; }
.select select { width: 100%; height: 46px; border: 1px solid #CFD4DC; border-radius: 10px; padding: 0 40px 0 12px; font: inherit; font-size: 16px; background: #fff; appearance: none; -webkit-appearance: none; color: var(--ink); }
.select .icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--mute); }
.counter { display: inline-flex; align-items: center; border: 1px solid #CFD4DC; border-radius: 10px; overflow: hidden; }
.counter button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--blue); font-size: 22px; font-weight: 600; }
.counter button:hover { background: var(--blue-50); }
.counter output { min-width: 48px; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.calc__summary { border-radius: var(--r-lg); background: var(--blue-900); color: #fff; padding: 16px; display: grid; gap: 6px; }
.calc__summary h3 { font-size: 15px; opacity: .85; font-weight: 600; margin-bottom: 4px; }
.calc__row { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.calc__row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.calc__total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 8px; }
.calc__total span:first-child { font-size: 14px; }
.calc__total strong { font-family: var(--font-head); font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__summary .btn { margin-top: 8px; }
.calc__summary .btn--white { background: #fff; color: var(--blue-900); }
.calc__summary .btn--white:hover { background: var(--blue-50); }
.calc__note { font-size: 12px; opacity: .75; }

/* Comparison table (check service) */
.compare { overflow-x: auto; margin-top: 12px; border-radius: var(--r); border: 1px solid var(--line); }
.compare table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 420px; }
.compare th, .compare td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th { background: var(--surface); font-size: 12.5px; font-weight: 600; }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 96px; }
.compare tr:last-child td { border-bottom: 0; }
.compare .icon { width: 18px; height: 18px; color: #15803D; stroke-width: 2.4; margin: 0 auto; }
.compare .dash { color: #C3C8D1; }
.compare tfoot td { font-family: var(--font-head); font-weight: 800; font-size: 16px; background: var(--surface); }
.compare tfoot td:first-child { font-family: var(--font-body); font-weight: 600; font-size: 13.5px; }

/* Price summary (renewal) */
.price-summary { display: grid; gap: 10px; }
.price-summary__notes { font-size: 12.5px; color: var(--mute); line-height: 1.45; }

/* ---------- Contacts ---------- */
.contact-cards { display: grid; gap: 12px; }
.contact-card { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; display: grid; }
.contact-card__body { padding: 14px 16px; display: grid; gap: 8px; }
.contact-card h2 { font-size: 18px; }
.contact-card h2 .brand { color: var(--red); }
.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13.5px; margin: 0; }
.contact-card dt { color: var(--mute); }
.contact-card dd { margin: 0; color: var(--ink); }
.contact-card dd a { color: var(--ink); font-weight: 500; }
.contact-card__map { background: var(--surface); padding: 8px 12px 12px; display: grid; }
.contact-card__map:has(iframe) { padding: 0; }
.contact-card__map iframe { width: 100%; height: 100%; min-height: 220px; border: 0; display: block; }
.contact-card__map .btn { font-size: 13.5px; min-height: 40px; background: #fff; border-color: var(--line); }
.contact-card__map .btn:hover { border-color: var(--blue); color: var(--blue); }
.contact-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact-quick a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.contact-quick a .icon { width: 18px; height: 18px; color: var(--red); margin-bottom: 4px; }
.contact-quick b { color: var(--ink); font-size: 13.5px; }
.contact-quick a:hover { border-color: var(--blue); text-decoration: none; }

/* ---------- Article layout (text pages) ---------- */
.article-layout { display: grid; gap: 16px; align-items: start; }
.prose--page { padding: 18px 16px; }
.prose--page > *:first-child { margin-top: 0; }
.prose--page h2 { font-size: 22px; margin: 20px 0 10px; }
.prose--page h3 { font-size: 17px; margin: 18px 0 8px; }
.prose--page p { margin-bottom: 10px; }
.prose--page ul { margin: 0 0 12px; padding-left: 0; display: grid; gap: 6px; }
.prose--page ul li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.prose--page ul li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.prose--page ol { margin: 0 0 12px 20px; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.prose__img { margin: 14px 0; border-radius: var(--r); overflow: hidden; }
.prose__img img { width: 100%; height: auto; }
.prose--page a { text-decoration: underline; text-decoration-color: rgba(6, 87, 190, .35); text-underline-offset: 2px; }
.prose--page strong { color: var(--ink); }
.prose__empty { color: var(--mute); font-style: italic; }
.aside { display: grid; gap: 12px; }
.aside-card { border-radius: var(--r-lg); background: var(--blue-900); color: #fff; padding: 16px; display: grid; gap: 8px; }
.aside-card h3 { font-size: 17px; }
.aside-card p { font-size: 13px; opacity: .85; line-height: 1.45; }
.aside-card .btn { margin-top: 4px; }
.aside-card__phone { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 18px; text-align: center; text-decoration: none; }
.aside-links { border-radius: var(--r); border: 1px solid var(--line); padding: 12px 14px; }
.aside-links h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin-bottom: 6px; }
.aside-links ul { display: grid; gap: 2px; }
.aside-links a { display: block; padding: 7px 0; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.aside-links li:last-child a { border-bottom: 0; }
.aside-links a:hover { color: var(--blue); text-decoration: none; }
.aside-links a[aria-current="page"] { color: var(--red); font-weight: 600; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.spec-list div { padding: 10px 12px; border-radius: 10px; background: var(--surface); }
.spec-list dt { font-size: 12px; color: var(--mute); }
.spec-list dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.franchise-logo { float: right; width: 120px; margin: 0 0 10px 14px; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- Lists (news / articles / events) ---------- */
.list-cards { display: grid; gap: 10px; }
.list-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.list-card h2 { font-size: 16px; line-height: 1.3; }
.list-card h2 a { color: var(--ink); }
.list-card h2 a:hover { color: var(--blue); }
.list-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.list-card__more { font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; }
.list-card__more .icon { width: 16px; height: 16px; }
.list-card__img { border-radius: 10px; overflow: hidden; max-width: 420px; }
.list-card .spec-list { margin: 6px 0 2px; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.pagination span[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* ---------- Sitemap ---------- */
.sitemap { display: grid; gap: 12px; }
.sitemap__group { border-radius: var(--r); border: 1px solid var(--line); padding: 12px 14px; }
.sitemap__group h2 { font-size: 16px; margin-bottom: 6px; }
.sitemap__group h2 a { color: var(--ink); }
.sitemap__group ul { display: grid; gap: 2px; }
.sitemap__group a { display: block; padding: 6px 0; font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.sitemap__group a:hover { color: var(--blue); }
.sitemap__group--wide { grid-column: 1 / -1; }
.sitemap__group--wide ul { grid-template-columns: 1fr; }

/* ---------- Inner reviews / clients reuse ---------- */
.page-inner .reviews { margin-top: 8px; }

/* =========================================================
   ≥ 640px
   ========================================================= */
@media (min-width: 640px) {
  .page-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .page-hero__actions .btn { width: auto; }
  .q-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .q-grid--2, .q-grid--check { grid-template-columns: repeat(2, 1fr); }  /* check: 8 cards, 2x4 on tablets → 4x2 from 1024px */
  .q-card { padding: 16px; }
  .q-card h3 { font-size: 15px; }
  .q-card p { font-size: 13px; }
  .page-hero--cover .page-hero__actions .btn { font-size: 14px; padding-inline: 18px; white-space: nowrap; }
  .page-hero--cover .page-hero__actions .btn .icon { display: block; }
  .hero-cover__body { padding: 24px 24px 0; }
  .hero-facts { gap: 16px; }
  .hero-facts li { font-size: 12.5px; }
  .hero-facts b { font-size: 17px; }
  .cta-band { --cta-pad: 20px; grid-template-columns: 1.2fr 1fr; align-items: center; }
  .cta-band--form { grid-template-columns: 1fr 1.1fr; }
  .price-cards { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 18px 12px; overflow: visible; padding: 0; margin: 12px 0 0; }
  .price-card { flex: none; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .contact-quick { grid-template-columns: repeat(4, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; }
  .sitemap { grid-template-columns: 1fr 1fr; }
  .sitemap__group--wide ul { grid-template-columns: 1fr 1fr; }
  .list-cards { grid-template-columns: 1fr 1fr; }
  .check-grid--cols3 { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   ≥ 820px
   ========================================================= */
@media (min-width: 820px) {
  .page-hero { padding: 24px 0 30px; }
  .page-hero__grid { grid-template-columns: 1.15fr 1fr; gap: 32px; }
  .page-hero h1 { font-size: 36px; }
  .page-hero .lead { font-size: 17px; }
  .page-hero__media { aspect-ratio: 2 / 1; }
  .page-hero--cover { padding: 14px 0 10px; }
  .hero-cover { justify-content: center; min-height: 360px; border-radius: 20px; }
  .hero-cover__media { position: absolute; inset: 0; z-index: -2; order: 0; margin: 0; -webkit-mask-image: none; mask-image: none; }
  .hero-cover__media img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
  .hero-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 30, 60, .92) 0%, rgba(8, 30, 60, .74) 40%, rgba(8, 30, 60, .18) 70%, rgba(8, 30, 60, 0) 100%); }
  .hero-cover__body { max-width: 620px; padding: 36px 36px 34px; }
  .hero-facts { margin-top: 24px; padding-top: 18px; }
  .section { padding: 32px 0; }
  .calc { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .calc__summary { position: sticky; top: calc(var(--sticky-offset) + 16px); }
  .article-layout { grid-template-columns: 1fr 300px; gap: 28px; }
  .prose--page { padding: 28px; }
  .aside { position: sticky; top: calc(var(--sticky-offset) + 16px); }
  .cases { align-items: stretch; gap: 14px; }
  .case { flex-basis: calc((100% - 14px) / 2.15); padding: 18px; }
  .result-band { padding: 18px 20px; }
}

/* =========================================================
   ≥ 1024px
   ========================================================= */
@media (min-width: 1024px) {
  .crumbs { padding-top: 14px; }
  .page-hero { padding: 30px 0 40px; }
  .page-hero h1 { font-size: 42px; }
  .page-hero--plain { padding: 22px 0 8px; }
  .page-hero--plain h1 { font-size: 34px; }
  .subnav a { font-size: 14px; min-height: 40px; padding: 0 16px; }
  .section { padding: 44px 0; }
  .section-title { font-size: 30px; margin-bottom: 8px; }
  .section-sub { font-size: 16px; margin-bottom: 20px; }
  .q-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .q-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .q-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .q-grid--5 { grid-template-columns: repeat(5, 1fr); }
  .q-card { padding: 20px; }
  .q-card h3 { font-size: 16px; }
  .q-card p { font-size: 13.5px; }
  .q-card--accent { grid-column: span 2; }
  .q-card--accent h3 { font-size: 20px; }
  .q-grid--chips .q-card > .icon { width: 44px; height: 44px; padding: 10px; margin-bottom: 8px; }
  .q-grid--check .q-card { transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur); }
  .q-grid--check .q-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #D5DAE2; }
  .page-hero--cover { padding: 18px 0 12px; }
  .hero-cover { min-height: 400px; }
  .hero-cover__body { max-width: 680px; padding: 44px 48px 40px; }
  .hero-cover h1 { font-size: 46px; line-height: 1.06; }
  .hero-cover .lead { font-size: 18px; margin-top: 12px; max-width: 46ch; }
  .page-hero--cover .page-hero__actions { margin-top: 22px; gap: 12px; }
  .page-hero--cover .page-hero__actions .btn { min-height: 50px; font-size: 15px; padding-inline: 22px; }
  .hero-facts { gap: 28px; margin-top: 30px; padding-top: 20px; max-width: 600px; }
  .hero-facts li { font-size: 13px; }
  .hero-facts b { font-size: 20px; margin-bottom: 4px; }
  .cta-band { --cta-pad: 28px; padding-block: 26px; gap: 22px 36px; }
  .cta-band__lead > h2, .cta-band__lead > h3 { font-size: 24px; }
  .cta-band__lead > p { font-size: 15px; }
  .cta-band__offer { margin-top: 14px; padding: 12px 16px; }
  .cta-band__offer h3 { font-size: 16px; }
  .cta-band__offer p { font-size: 13.5px; }
  .cta-band__actions { grid-template-columns: auto 1fr; gap: 22px; }
  .cta-band__phone { font-size: 22px; }
  .cta-band__phone small { display: block; margin: 0 0 4px; }
  .cta-band .btn { min-height: 56px; font-size: 16px; }
  .cta-band .btn small { font-size: 12px; }
  .cta-band__head { margin-top: -26px; padding-block: 20px; }
  .cta-band__head h2 { font-size: 26px; }
  .cta-band__head p { font-size: 16px; margin-top: 4px; }
  .guarantee { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 40px; align-items: center; }
  .guarantee .section-title { font-size: 28px; line-height: 1.18; }
  .guarantee .section-sub { margin: 14px 0 0; }
  .guarantee__badge { width: 60px; height: 60px; border-radius: 16px; margin-bottom: 18px; }
  .guarantee__badge .icon { width: 30px; height: 30px; }
  .cases { gap: 16px; }
  .case { flex-basis: calc((100% - 32px) / 3); }
  .case h3 { font-size: 16px; }
  .case p { font-size: 13px; }
  .case__facts b { font-size: 16px; }
  .case__facts span { font-size: 12px; }
  .price-cards { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
  .price-card { padding: 20px 18px; }
  .price-card__price { font-size: 30px; }
  .promo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; }
  .resources { grid-template-columns: 1fr; gap: 12px; }
  .resource { flex-direction: row; align-items: center; gap: 18px; padding: 18px 48px 18px 22px; }
  .resource img { flex: none; width: 168px; height: 48px; max-width: none; }
  .resource__text b { font-size: 16px; }
  .resource__text small { font-size: 13px; }
  .resource > .icon { top: 50%; right: 20px; width: 18px; height: 18px; margin-top: -9px; }
  .promo-band { display: flex; flex-direction: column; justify-content: center; padding: 28px 32px; }
  .promo-band h2 { font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
  .promo-band p { font-size: 15px; }
  .two-col { gap: 16px; margin-top: 16px; }
  .two-col > div { padding: 20px 22px; }
  .two-col h3 { font-size: 18px; }
  .result-band { grid-template-columns: auto 1fr 1fr; align-items: center; gap: 24px; padding: 22px 26px; }
  .result-band h3 { font-size: 20px; margin: 0; }
  .result-band p { font-size: 14.5px; }
  .note-band { padding: 18px 22px; }
  .note-band p { font-size: 15px; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 12px; }
  .contact-cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .contact-card__map iframe { min-height: 240px; }
  .calc-step { padding: 20px; }
  .choice--row { grid-template-columns: repeat(3, 1fr); }
  .compare table { font-size: 14px; }
  .list-cards { gap: 14px; }
  .list-card { padding: 18px 20px; }
  .list-card h2 { font-size: 18px; }
  .sitemap { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .sitemap__group--wide ul { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 1200px) {
  .price-card ul { gap: 6px; }
}

/* Desktop price table: shared rows, so prices, bonuses, buttons and lists line up across the four cards */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1024px) {
    .price-cards { grid-template-rows: repeat(5, auto); }
    .price-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
    .price-card__name { grid-row: 1; }
    .price-card__price { grid-row: 2; }
    .price-card__bonus { grid-row: 3; }
    .price-card .btn { grid-row: 4; margin-top: 4px; align-self: start; }
    .price-card details { grid-row: 5; margin-top: 4px; }
  }
}

/* note inside modal when opened from a calculator */
.calc-note { font-size: 12.5px; color: var(--blue-900); background: var(--blue-50); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }

/* scroller arrows on light backgrounds */
.scroller-nav--dark button { background: var(--surface); color: var(--ink); border-color: var(--line); }
.scroller-nav--dark button:hover { background: var(--blue-50); color: var(--blue); }
.section-head .section-title { margin-bottom: 0; }

/* grid children must be allowed to shrink (scrollers inside) */
.page-hero__grid > *, .calc > *, .calc__steps, .article-layout > *, .clients__grid > *, .cta-band > *, .partners__row > * { min-width: 0; }
/* stats: long money values */
.stat__num { white-space: nowrap; }
.stat__num small { display: block; margin: 2px 0 0; white-space: normal; }
.stats__row--money .stat { flex-basis: 190px; }
.stats__row--money .stat__num { font-size: 24px; }
@media (min-width: 820px) {
  .stats__row--2 { grid-template-columns: repeat(2, 1fr); }
  .stats__row--3 { grid-template-columns: repeat(3, 1fr); }
  .stats__row--4 { grid-template-columns: repeat(4, 1fr); }
  .stats__row--money .stat__num { font-size: 28px; }
}
@media (min-width: 1024px) {
  .stats__row--money .stat__num { font-size: 32px; }
}

/* ---------- Process (numbered steps): timeline on mobile, row on desktop ---------- */
.process { display: grid; gap: 0; margin-top: 14px; }
.process__step { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 0 0 14px; position: relative; }
.process__step::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--line); }
.process__step:last-child { padding-bottom: 0; }
.process__step:last-child::before { display: none; }
.process__num { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--red); color: var(--red); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 15px; position: relative; z-index: 1; flex: none; }
.process__body { min-width: 0; padding-top: 6px; }
.process__body h3 { font-size: 15px; line-height: 1.25; margin-bottom: 2px; }
.process__body p { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.process__step--result .process__num { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.process__step--result .process__body { background: var(--blue-50); border-radius: 12px; padding: 10px 12px; }
.process__step--result .process__body h3 { color: var(--blue-900); }
.process__step--result .process__body p + p { margin-top: 6px; }
.section--surface .process__num { background: var(--surface); }
.section--surface .process__step--result .process__num { background: var(--red-deep); }
@media (min-width: 820px) {
  .process { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px 12px; margin-top: 18px; }
  .process--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 20px; }
  .process--4 .process__step::before { right: -20px; }
  .process--4 .process__body { padding-right: 8px; }
  .process__step { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 10px; padding: 0; }
  .process__step::before { left: 44px; right: -12px; top: 17px; bottom: auto; height: 2px; width: auto; }
  .process__step:last-child::before { display: none; }
  .process__body { padding-top: 0; }
  .process__body h3 { font-size: 16px; }
  .process__body p { font-size: 13.5px; }
  .process__step--result { grid-column: 1 / -1; grid-template-columns: 36px 1fr; grid-template-rows: auto; gap: 14px; align-items: center; margin-top: 4px; }
  .process__step:has(+ .process__step--result)::before { display: none; }
  .process__step--result .process__body { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 4px 24px; align-items: center; padding: 14px 20px; }
  .process__step--result .process__body h3 { grid-column: 1; grid-row: 1 / span 3; font-size: 18px; margin: 0; }
  .process__step--result .process__body p { grid-column: 2; }
  .process__step--result .process__body p + p { margin-top: 0; }
  .process__step--result .process__body p:only-of-type { grid-row: 1 / span 3; }
}

/* numbered list variant: same rhythm, no connector lines */
.process--list .process__step::before { display: none !important; }

/* search page (search.php) and 404 */
.search--page { max-width: 640px; margin: 0 0 22px; }
.search--page .btn { width: auto; border-radius: 0; box-shadow: none; padding: 0 22px; }
.search__count { color: var(--mute); margin: 0 0 18px; }
.search__results { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; max-width: 820px; }
.search__results h2 { font-size: 18px; line-height: 1.35; margin: 0 0 6px; }
.search__results h2 a { color: var(--blue); text-decoration: none; }
.search__results h2 a:hover { text-decoration: underline; }
.search__results p { margin: 0; color: var(--ink-2); font-size: 15px; }
.search__results mark { background: #fff1a8; color: inherit; border-radius: 2px; padding: 0 1px; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 18px 0 0; }
