/* ====================================
   Sellon — podstrony treściowe (poradniki, usługi)
   Uzupełnia style.css; tokeny kolorów z :root w style.css.
   Źródło: sites/sellon-pl/ w repo StockHub (build_pages.py).
   ==================================== */

.page-hero {
    position: relative;
    padding: calc(var(--nav-height) + 56px) 0 56px;
    background: var(--dark);
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 0%, rgba(76, 175, 80, 0.18), transparent 60%);
    pointer-events: none;
}

.page-hero .container { position: relative; }

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary-light); }
.breadcrumbs span[aria-hidden] { margin: 0 0.4rem; }

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--white);
    max-width: 860px;
    margin-bottom: 1rem;
}

.page-lead {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 760px;
    margin-bottom: 1.75rem;
}

.page-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
}

.page-hero .hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.article {
    background: var(--light-bg);
    color: var(--text-body);
    padding: 56px 0 72px;
}

.article-body {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.75;
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 2.75rem 0 1rem;
    scroll-margin-top: calc(var(--nav-height) + 16px);
}

.article-body h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 1.75rem 0 0.6rem;
}

.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.4rem; }
.article-body li { margin-bottom: 0.45rem; }
.article-body strong { color: var(--text-dark); }

.article-body a {
    color: var(--primary-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.toc {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 0 0 2rem;
}

.toc-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.toc ol { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }

.article-body table {
    width: 100%;
    border-collapse: collapse;
    background: var(--light-card);
    font-size: 0.95rem;
    line-height: 1.5;
}

.article-body th, .article-body td {
    border: 1px solid var(--light-border-hover);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.article-body th { background: var(--light-bg-alt); color: var(--text-dark); }

.note {
    border-left: 4px solid var(--primary);
    background: var(--primary-subtle);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 18px;
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}

.checklist { list-style: none; margin-left: 0 !important; }

.checklist li {
    position: relative;
    padding-left: 1.75rem;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-hover);
    font-weight: 700;
}

.cta-box {
    background: var(--dark);
    color: var(--text);
    border-radius: var(--radius);
    padding: 32px;
    margin: 2.5rem 0;
}

.article-body .cta-box h2,
.article-body .cta-box h3 { color: var(--white); margin-top: 0; }
.article-body .cta-box p { color: var(--text); }
.article-body .cta-box a.btn { text-decoration: none; color: var(--white); }

.article-faq .faq-item {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 12px;
}

.article-faq h3 { margin-top: 0; }
.article-faq p:last-child { margin-bottom: 0; }

.related {
    display: grid;
    gap: 16px;
    margin-top: 1rem;
}

.article-body .related a {
    display: block;
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
}

.article-body .related a:hover { border-color: var(--primary); }
.related small { display: block; font-weight: 400; color: var(--text-muted-light); margin-top: 4px; }

.services-more {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted-light);
}

.services-more a { color: var(--primary-hover); font-weight: 600; }

@media (min-width: 768px) {
    .page-hero h1 { font-size: 2.6rem; }
    .related { grid-template-columns: 1fr 1fr; }
}

/* Menu: etykiety w jednej linii na tablecie (jak w index.html) */
@media (min-width: 768px) { .nav-link { white-space: nowrap; } }
@media (min-width: 768px) and (max-width: 1099px) {
    .nav-link { padding: 8px 7px; font-size: 0.8rem; }
    .lang-link { padding-left: 8px; padding-right: 8px; }
}
