/*
 * Home page of the network and the sites' pages - their own design from the accepted mockups
 * CLAUDE/specs/makiety/Strona-glowna-B.html and Landing-serwisu.html (CLAUDE.md: the sales pages and the wizard are the
 * exception to "Bootstrap only"). One family of neutrals with the same blue undertone (page, surfaces, lines, text) and
 * ONE accent - the site's --mgn-accent, the same blue as the buttons in the header (Marcin 2026-10-29: no warm grey next
 * to navy, no second blue). Every class starts with h- so nothing meets Bootstrap's.
 */
.home {
    --h-bg: var(--bs-body-bg);
    --h-s1: #f4f6fb;
    --h-s2: #e9edf6;
    --h-line: #dde3ef;
    --h-ink: #121a2e;
    --h-ink-2: #5a6580;
    --h-ink-3: #7c869c;
    --h-accent: var(--mgn-accent);
    --h-accent-ink: #fff;
    --h-accent-soft: #e4ecfc;
    --h-accent-line: #b9cdf6;
    --h-shadow: 0 1px 2px rgba(18, 26, 46, .06), 0 8px 24px rgba(18, 26, 46, .06);
    max-width: 1120px;
    margin: -1.5rem auto 0;
    color: var(--h-ink);
    font-size: 1rem;
    line-height: 1.55;
}
/* Dark: the neutral greys of the video wizard mockup (Marcin 2026-10-30), like custom.css */
[data-bs-theme=dark] .home {
    --h-s1: #212529;
    --h-s2: #2b3035;
    --h-line: #495057;
    --h-ink: #dee2e6;
    --h-ink-2: #adb5bd;
    --h-ink-3: #8b939b;
    --h-accent-soft: #24324d;
    --h-accent-line: #34508a;
    --h-shadow: none;
}
.home h1, .home h2, .home h3 { margin: 0; color: var(--h-ink); }
.home h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; font-weight: 600; }
.home h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; font-weight: 600; }
.home h3 { font-size: 1.0625rem; line-height: 1.3; font-weight: 600; }
/* no specificity, so every p below keeps its own margin */
:where(.home) p { margin: 0; }
.h-tiny { font-size: .8125rem; color: var(--h-ink-3); }

.h-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 1rem; line-height: 1; padding: 15px 22px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; cursor: pointer; }
.h-btn--primary { background: var(--h-accent); color: var(--h-accent-ink); }
.h-btn--primary:hover { background: var(--mgn-accent-hover); color: var(--h-accent-ink); }
.h-btn--ghost { background: transparent; color: var(--h-ink); border-color: var(--h-line); }
.h-btn--ghost:hover { border-color: var(--h-ink-3); color: var(--h-ink); }
.home a:focus-visible, .home button:focus-visible, .home summary:focus-visible { outline: 2px solid var(--h-accent); outline-offset: 3px; }
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.h-card { background: var(--h-s1); border: 1px solid var(--h-line); border-radius: 16px; box-shadow: var(--h-shadow); }

/* ---------- section rhythm: the same head everywhere ---------- */
.h-section { padding-top: 96px; }
.h-head { margin-bottom: 32px; max-width: 640px; }
.h-head p { margin-top: 10px; color: var(--h-ink-2); font-size: 1.0625rem; }
@media (max-width: 600px) { .h-section { padding-top: 64px; } }

/* ---------- home: the service in two sentences, then its principles ---------- */
.h-intro { padding-top: 32px; max-width: 760px; }
.h-intro .h-lead { margin: 20px 0 28px; font-size: 1.1875rem; color: var(--h-ink-2); }
.h-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px; border-top: 1px solid var(--h-line); }
.h-principles > div { padding: 22px 24px 0 0; }
.h-principles > div + div { padding-left: 24px; border-left: 1px solid var(--h-line); }
.h-principles h3 { font-size: 1rem; }
.h-principles p { margin-top: 6px; font-size: .9375rem; color: var(--h-ink-2); }
@media (max-width: 900px) {
    .h-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .h-principles > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .h-principles > div:nth-child(n+3) { margin-top: 22px; border-top: 1px solid var(--h-line); }
}
@media (max-width: 520px) {
    .h-principles { grid-template-columns: minmax(0, 1fr); }
    .h-principles > div + div { padding-left: 0; border-left: 0; margin-top: 22px; border-top: 1px solid var(--h-line); }
}

/* ---------- catalog: a list - what the site is, its main category, reach, then the price ---------- */
.h-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.h-filter a { font-size: .875rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--h-line); color: var(--h-ink-2); text-decoration: none; }
.h-filter a[aria-current] { background: var(--h-accent); border-color: var(--h-accent); color: var(--h-accent-ink); }
.h-filter a:not([aria-current]):hover { border-color: var(--h-ink-3); color: var(--h-ink); }
.h-list { border-top: 1px solid var(--h-line); }
.h-list-head, .h-list-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 170px 120px 28px; gap: 24px; align-items: center; }
.h-list-head { padding: 12px 8px; font-size: .8125rem; color: var(--h-ink-3); border-bottom: 1px solid var(--h-line); }
.h-list-head span:nth-child(n+2):nth-child(-n+4) { text-align: right; }
.h-list-head small { display: block; font-size: .75rem; }
.h-list-row { padding: 20px 8px; border-bottom: 1px solid var(--h-line); text-decoration: none; color: var(--h-ink); }
.h-list-row:hover { background: var(--h-s1); color: var(--h-ink); }
.h-l-site { display: flex; align-items: center; gap: 16px; min-width: 0; }
.h-l-thumb { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 112px; height: 70px; border: 1px solid var(--h-line); border-radius: 8px; background: var(--h-s1); color: var(--h-ink-3); font-weight: 600; font-size: 1.25rem; object-fit: cover; object-position: top; }
.h-l-text { min-width: 0; }
.h-l-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-weight: 600; font-size: 1.0625rem; }
.h-l-name em { font-style: normal; font-weight: 500; font-size: .8125rem; color: var(--h-accent); }
.h-l-desc { display: block; margin-top: 4px; font-size: .9375rem; color: var(--h-ink-2); }
.h-l-num { text-align: right; font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.h-l-num.is-empty { font-size: .875rem; font-weight: 400; color: var(--h-ink-3); }
.h-l-price { font-weight: 600; }
.h-l-price small { display: block; font-size: .75rem; font-weight: 400; color: var(--h-ink-3); }
.h-l-go { text-align: right; font-size: 1.5rem; color: var(--h-ink-3); line-height: 1; }
.h-list-row:hover .h-l-go { color: var(--h-accent); }
.h-list-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: .875rem; }
.h-list-foot a { color: var(--h-accent); text-decoration: none; font-weight: 600; }
@media (max-width: 760px) {
    .h-list-head { display: none; }
    .h-list-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; padding: 18px 4px; align-items: end; }
    .h-l-site { grid-column: 1 / -1; gap: 12px; }
    .h-l-thumb { width: 88px; height: 55px; }
    .h-l-num { text-align: left; font-size: 1rem; }
    .h-l-num::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 400; color: var(--h-ink-3); margin-bottom: 2px; }
    .h-l-go { display: none; }
}

/* ---------- steps: a real sequence, so numbered ---------- */
.h-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: h-step; }
.h-steps li { padding: 22px; counter-increment: h-step; }
.h-steps li::before { content: counter(h-step); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--h-accent-soft); color: var(--h-accent); font-weight: 600; font-size: .875rem; margin-bottom: 16px; }
.h-steps p { margin-top: 8px; font-size: .9375rem; color: var(--h-ink-2); }
@media (max-width: 900px) { .h-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .h-steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- results on the account: the panel in the same palette ---------- */
.h-res { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.h-res ul { margin: 0; padding: 0; list-style: none; }
.h-res li { padding: 12px 0; border-top: 1px solid var(--h-line); color: var(--h-ink-2); font-size: .9375rem; }
.h-res li:last-child { border-bottom: 1px solid var(--h-line); }
.h-res .h-tiny { margin-top: 16px; }
.h-peek { padding: 20px; }
.h-kpis { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.h-kpi { background: var(--h-bg); border: 1px solid var(--h-line); border-radius: 12px; padding: 14px 16px; }
.h-kpi span { font-size: .8125rem; color: var(--h-ink-2); }
.h-kpi b { display: block; font-size: 1.5rem; font-weight: 700; margin-top: 4px; }
.h-kpi.is-big b { font-size: 2rem; }
.h-bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin-top: 12px; padding: 14px 16px 0; background: var(--h-bg); border: 1px solid var(--h-line); border-radius: 12px; }
.h-bars i { flex: 1; background: var(--h-accent); border-radius: 4px 4px 0 0; }
.h-peek .h-tiny { margin-top: 10px; }
@media (max-width: 960px) { .h-res { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 520px) { .h-kpis { grid-template-columns: 1fr 1fr; } .h-kpi.is-big { grid-column: 1 / -1; } }

/* ---------- publishers ---------- */
.h-pubs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; padding: 36px; }
.h-pubs p { margin-top: 10px; color: var(--h-ink-2); }
.h-pubs .h-btn { margin-top: 24px; }
.h-pubs ul { list-style: none; padding: 0; margin: 0; }
/* lines only between the points */
.h-pubs li { padding: 14px 0; font-size: .9375rem; color: var(--h-ink-2); }
.h-pubs li + li { border-top: 1px solid var(--h-line); }
.h-pubs li:first-child { padding-top: 0; }
.h-pubs li:last-child { padding-bottom: 0; }
.h-pubs li b { display: block; color: var(--h-ink); font-weight: 600; margin-bottom: 2px; }
@media (max-width: 900px) { .h-pubs { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; } }
.h-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; }
.h-more p { margin-top: 8px; color: var(--h-ink-2); max-width: 600px; }

/* ---------- FAQ: full width, two columns ---------- */
.h-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.h-faq details { border-top: 1px solid var(--h-line); padding: 18px 0; }
.h-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: "+"; color: var(--h-ink-3); font-weight: 400; font-size: 1.25rem; line-height: 1; }
.h-faq details[open] summary::after { content: "−"; }
.h-faq p { margin-top: 10px; font-size: .9375rem; color: var(--h-ink-2); }
@media (max-width: 760px) { .h-faq { grid-template-columns: minmax(0, 1fr); } }

/* ---------- site page: breadcrumbs, hero with the place ---------- */
.h-crumbs { padding-top: 8px; font-size: .875rem; color: var(--h-ink-3); }
.h-crumbs a { color: var(--h-ink-2); text-decoration: none; }
.h-crumbs a:hover { color: var(--h-ink); }
.h-chip { display: inline-block; margin-bottom: 18px; font-size: .8125rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--h-line); color: var(--h-ink-2); }
.h-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding-top: 24px; }
.h-hero.is-text { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.h-hero h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.h-hero .h-lead { margin: 20px 0 28px; font-size: 1.125rem; color: var(--h-ink-2); max-width: 30em; }
.h-price-line { margin-top: 20px; font-size: .9375rem; color: var(--h-ink-2); }
.h-price-line b { color: var(--h-ink); }
@media (max-width: 960px) { .h-hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 16px; } }

/* the site drawn in our palette, with the place */
.h-stage-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.h-seg { display: inline-flex; background: var(--h-s2); border-radius: 10px; padding: 3px; }
.h-seg button { border: 0; background: none; color: var(--h-ink-2); font-size: .875rem; font-weight: 500; line-height: 1; padding: 9px 14px; border-radius: 8px; cursor: pointer; }
.h-seg button[aria-pressed="true"] { background: var(--h-bg); color: var(--h-ink); box-shadow: 0 1px 2px rgba(18, 26, 46, .12); }
.h-screen { border-radius: 14px; overflow: hidden; border: 1px solid var(--h-line); background: var(--h-s1); }
.h-screen.is-phone { max-width: 300px; margin: 0 auto; }
.h-slot { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--slot-bg, var(--h-accent-soft)); transition: background-color .3s; }
.h-slot.is-over { outline: 2px dashed var(--h-accent); outline-offset: -6px; }
.h-slot img { max-width: 100%; max-height: 100%; object-fit: contain; display: none; }
.h-slot.has-img img { display: block; }
.h-slot.has-img .h-sample { display: none; }
.h-slot-label { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 600; line-height: 1.3; padding: 3px 7px; border-radius: 6px; background: var(--h-bg); color: var(--h-ink); }
.h-sample { text-align: center; padding: 0 12%; }
.h-sample b { display: block; font-size: clamp(1rem, 2vw, 1.5rem); line-height: 1.15; color: var(--h-ink); }
.h-sample span { display: block; margin: 8px 0 14px; font-size: .8125rem; color: var(--h-ink-2); }
.h-sample em { font-style: normal; display: inline-block; font-size: .75rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--h-accent); color: var(--h-accent-ink); }
.is-phone .h-sample b { font-size: .9375rem; }
.is-phone .h-sample span { display: none; }
.is-phone .h-sample em { margin-top: 6px; }
.h-stage-foot { margin-top: 10px; font-size: .8125rem; color: var(--h-ink-3); }
.h-stage-foot .is-warn { color: var(--bs-warning-text-emphasis); }
@media (max-width: 600px) {
    .h-screen:not(.is-phone) .h-sample { padding: 22px 8% 0; }
    .h-screen:not(.is-phone) .h-sample b { font-size: .8125rem; }
    .h-screen:not(.is-phone) .h-sample span { display: none; }
    .h-screen:not(.is-phone) .h-sample em { font-size: .625rem; padding: 5px 8px; margin-top: 8px; }
    .h-screen:not(.is-phone) .h-slot-label { font-size: 9px; top: 5px; left: 5px; }
}

/* megawrzuta.pl mock (views/site/mock/megawrzuta.pl.php) */
.h-mw { display: grid; grid-template-columns: 6% 44% 50%; aspect-ratio: 16 / 9; }
.h-mw-side { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 12px; border-right: 1px solid var(--h-line); }
.h-mw-side svg { width: 60%; color: var(--h-ink-2); }
.h-mw-side i { width: 34%; aspect-ratio: 1; border-radius: 3px; background: var(--h-s2); }
.h-mw-content { padding: 7% 8%; min-width: 0; }
.h-mw-h { font-weight: 650; font-size: clamp(.75rem, 1.3vw, .9375rem); margin-bottom: 10px; }
.h-mw-card { background: var(--h-bg); border: 1px solid var(--h-line); border-radius: 8px; padding: 6px 10px 10px; }
.h-mw-row { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--h-ink-2); padding: 6px 0; border-bottom: 1px solid var(--h-line); }
.h-mw-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-mw-row span:last-child { white-space: nowrap; }
.h-mw-btn { margin-top: 10px; text-align: center; font-size: 10px; font-weight: 600; padding: 7px; border-radius: 6px; background: var(--h-s2); color: var(--h-ink); }
.is-phone .h-mw { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; aspect-ratio: 9 / 16; }
.is-phone .h-mw-side { flex-direction: row; justify-content: space-between; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--h-line); }
.is-phone .h-mw-side svg { width: 32px; }
.is-phone .h-mw-side i { display: none; }
.is-phone .h-slot { aspect-ratio: 3 / 1; }

/* facts strip under the hero: one row, equal cells */
.h-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--h-line); border-bottom: 1px solid var(--h-line); }
.h-fact { padding: 22px 24px 22px 0; }
.h-fact + .h-fact { padding-left: 24px; border-left: 1px solid var(--h-line); }
.h-fact b { display: block; font-size: 1.75rem; line-height: 1.1; font-weight: 600; }
.h-fact span { display: block; margin-top: 6px; font-size: .875rem; color: var(--h-ink-2); }
.h-facts-note { margin-top: 10px; }
@media (max-width: 760px) {
    .h-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .h-fact:nth-child(3) { padding-left: 0; border-left: 0; }
    .h-fact:nth-child(n+3) { border-top: 1px solid var(--h-line); }
}

/* ---------- price and free days ---------- */
.h-book { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px; align-items: start; }
.h-cal { padding: 24px; }
.h-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.h-month h3 { margin-bottom: 12px; }
.h-grid7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.h-dow { font-size: .75rem; color: var(--h-ink-3); text-align: center; padding-bottom: 4px; }
.h-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: .875rem; text-decoration: none; color: var(--h-ink-3); }
a.h-day { background: var(--h-bg); border: 1px solid var(--h-line); color: var(--h-ink); font-weight: 600; }
a.h-day:hover { border-color: var(--h-accent); background: var(--h-accent-soft); color: var(--h-ink); }
.h-day.is-taken { text-decoration: line-through; background: var(--h-s2); }
.h-day.is-past { opacity: .5; }
.h-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: .8125rem; color: var(--h-ink-2); }
.h-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.h-legend .is-free { background: var(--h-bg); border: 1px solid var(--h-line); }
.h-legend .is-taken { background: var(--h-s2); }
.h-price-card { padding: 24px; }
.h-price { font-size: 2.5rem; font-weight: 600; line-height: 1; }
.h-price small { font-size: 1rem; font-weight: 500; color: var(--h-ink-2); letter-spacing: 0; }
.h-tiers { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9375rem; }
.h-tiers td { padding: 9px 0; border-top: 1px solid var(--h-line); }
.h-tiers td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.h-tiers .is-off { color: var(--h-accent); font-weight: 600; }
.h-price-card ul { list-style: none; padding: 0; margin: 0 0 22px; font-size: .875rem; color: var(--h-ink-2); }
.h-price-card li { padding-left: 18px; position: relative; margin-top: 6px; }
.h-price-card li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--h-accent); }
.h-price-card .h-btn { width: 100%; }
@media (max-width: 960px) { .h-book { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .h-months { grid-template-columns: minmax(0, 1fr); } }

/* ---------- audience: hours of the day ---------- */
.h-hours { padding: 24px; }
.h-hours .h-tiny { margin-top: 4px; }
.h-chart { display: flex; align-items: flex-end; gap: 4px; height: 180px; margin-top: 24px; }
.h-chart i { flex: 1; border-radius: 4px 4px 0 0; background: var(--h-accent); opacity: .35; min-height: 3px; }
.h-chart i.is-peak { opacity: 1; }
.h-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: .75rem; color: var(--h-ink-3); font-variant-numeric: tabular-nums; }
.h-rules { margin-top: 24px; padding: 18px 22px; border-radius: 12px; border: 1px solid var(--h-line); font-size: .9375rem; color: var(--h-ink-2); }
.h-rules b { color: var(--h-ink); }

@media (prefers-reduced-motion: reduce) { .h-slot { transition: none; } }
