/* ============================================================
   TENANTO — SHARED SUB-PAGE STYLES
   funkcje · cennik · kontakt · faq · legal · blog
   ============================================================ */

/* ---------- PAGE HERO ---------- */
.page-hero { background: var(--navy-900); color: #fff; padding-block: clamp(48px,7vw,92px) clamp(40px,6vw,72px); position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(900px 460px at 82% -10%, rgba(30,158,122,0.16), transparent 60%); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--teal-300); }
.page-hero .eyebrow::before { background: var(--teal-400); }
.page-hero h1 { color: #fff; font-size: var(--fs-h1); margin: 16px 0 0; max-width: 760px; }
.page-hero .lede { color: var(--text-on-navy-muted); font-size: var(--fs-lg); margin-top: 18px; max-width: 620px; line-height: var(--lh-relaxed); }
.page-hero .hero-cta { margin-top: 30px; }

/* ---------- BREADCRUMB ---------- */
.crumb { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-subtle); margin-bottom: 4px; }
.crumb a { color: var(--text-muted); }
.crumb a:hover { color: var(--navy-700); }
.crumb.on-navy { color: var(--text-on-navy-muted); }
.crumb.on-navy a { color: var(--teal-300); }
.crumb svg { width: 14px; height: 14px; opacity: .6; }

/* ---------- FEATURE PAGE: split rows ---------- */
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: center; padding-block: clamp(40px,5vw,64px); border-bottom: 1px solid var(--border); }
.feat-row:nth-child(even) .feat-text { order: 2; }
.feat-row .feat-text .icon-chip { margin-bottom: 18px; }
.feat-row .feat-text h2 { font-size: var(--fs-h3); margin-bottom: 14px; }
.feat-row .feat-text p { color: var(--text-muted); line-height: var(--lh-relaxed); margin-bottom: 18px; }
.feat-list { display: flex; flex-direction: column; gap: 11px; }
.feat-list li { display: flex; align-items: flex-start; gap: 11px; font-size: var(--fs-base); color: var(--text); }
.feat-list li svg { width: 20px; height: 20px; color: var(--teal-600); flex: none; margin-top: 2px; }
.feat-visual { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--sh-md); padding: 20px; }

/* mini preview building blocks reused inside .feat-visual */
.mini-rows .mrow { margin-bottom: 8px; }
.mini-rows .mrow:last-child { margin-bottom: 0; }
.mini-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mini-head h5 { font-size: var(--fs-sm); font-family: var(--font-head); color: var(--text-strong); }

/* ---------- COMPARISON TABLE ---------- */
.cmp-wrap { overflow-x: auto; margin-top: 44px; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.cmp { width: 100%; border-collapse: collapse; min-width: 720px; background: var(--surface); }
.cmp th, .cmp td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.cmp thead th { background: var(--surface-2); font-family: var(--font-head); color: var(--text-strong); font-weight: 700; }
.cmp thead th.feat-col, .cmp tbody td.feat-col { text-align: left; font-weight: 600; color: var(--text-strong); }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp .grp td { background: var(--navy-50); font-family: var(--font-head); font-weight: 700; color: var(--navy-700); text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.cmp .yes { color: var(--teal-600); } .cmp .yes svg { width: 19px; height: 19px; }
.cmp .no { color: var(--n-300); }
.cmp .featured-col { background: var(--navy-50); }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px,4vw,56px); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(24px,3vw,40px); box-shadow: var(--sh-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--text-strong); }
.form-field label .req { color: var(--red-500); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); width: 100%; transition: border-color .15s, box-shadow .15s;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--navy-500); box-shadow: var(--sh-ring); }
.form-consent { display: flex; gap: 11px; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; }
.form-consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--navy-700); }
.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.contact-info { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.contact-info h3 { font-size: var(--fs-h4); margin-bottom: 16px; }
.contact-info .ci-row { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.contact-info .ci-row:last-child { border-bottom: none; }
.contact-info .ci-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--navy-100); color: var(--navy-700); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-info .ci-ico svg { width: 18px; height: 18px; }
.contact-info .ci-l { font-size: var(--fs-xs); color: var(--text-subtle); }
.contact-info .ci-v { font-family: var(--font-head); font-weight: 600; color: var(--text-strong); font-size: var(--fs-sm); }
.contact-card-navy { background: var(--navy-800); color: #fff; border-radius: var(--r-lg); padding: 24px; }
.contact-card-navy h3 { color: #fff; font-size: var(--fs-h4); margin-bottom: 8px; }
.contact-card-navy p { color: var(--text-on-navy-muted); font-size: var(--fs-sm); line-height: var(--lh-relaxed); }

/* form success toast */
.form-toast { display: none; align-items: center; gap: 11px; padding: 14px 16px; background: var(--teal-50); color: var(--teal-700); border-radius: var(--r-md); margin-bottom: 20px; font-size: var(--fs-sm); font-weight: 500; }
.form-toast.show { display: flex; }
.form-toast svg { width: 20px; height: 20px; flex: none; }

/* ---------- FAQ FULL PAGE ---------- */
.faq-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.faq-cat { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); padding: 8px 16px; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); cursor: pointer; transition: all .14s; }
.faq-cat:hover { border-color: var(--navy-300); color: var(--text-strong); }
.faq-cat.active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.faq-group { margin-bottom: 40px; }
.faq-group > h2 { font-size: var(--fs-h3); margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.faq-group > h2 .icon-chip { width: 38px; height: 38px; }
.faq-group > h2 .icon-chip svg { width: 19px; height: 19px; }

/* ---------- LEGAL / PROSE ---------- */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px,4vw,56px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--nav-h) + 24px); }
.legal-toc h4 { font-family: var(--font-head); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--text-subtle); margin-bottom: 14px; }
.legal-toc ul { display: flex; flex-direction: column; gap: 3px; border-left: 2px solid var(--border); }
.legal-toc a { display: block; padding: 7px 14px; font-size: var(--fs-sm); color: var(--text-muted); border-left: 2px solid transparent; margin-left: -2px; transition: color .14s, border-color .14s; }
.legal-toc a:hover { color: var(--navy-700); border-left-color: var(--navy-300); }
.prose { max-width: 720px; }
.prose .meta { font-size: var(--fs-sm); color: var(--text-subtle); margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.prose h2 { font-size: var(--fs-h3); margin: 38px 0 14px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: var(--fs-h4); margin: 26px 0 10px; }
.prose p { color: var(--text); line-height: var(--lh-relaxed); margin-bottom: 16px; }
.prose ul.bullets { list-style: disc; padding-left: 22px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.prose ul.bullets li { color: var(--text); line-height: var(--lh-normal); }
.prose .callout { background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: var(--r-md); padding: 18px 20px; margin: 22px 0; font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- BLOG GRID ---------- */
.blog-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.blog-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-sm); margin-bottom: 44px; background: var(--surface); }
.blog-featured .bf-img { min-height: 340px; position: relative; }
.blog-featured .bf-body { padding: clamp(28px,3vw,44px); display: flex; flex-direction: column; justify-content: center; }
.blog-featured .bf-body .cat { margin-bottom: 16px; }
.blog-featured .bf-body h2 { font-size: var(--fs-h2); margin-bottom: 14px; }
.blog-featured .bf-body p { color: var(--text-muted); line-height: var(--lh-relaxed); margin-bottom: 22px; max-width: 460px; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.blog-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.blog-card .bc-img { height: 190px; position: relative; }
.blog-card .bc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-card .bc-body h3 { font-size: var(--fs-h4); margin: 12px 0 8px; line-height: var(--lh-snug); }
.blog-card .bc-body p { font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-normal); flex: 1; }
.blog-card .bc-meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: var(--fs-xs); color: var(--text-subtle); }
.blog-card .bc-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-subtle); }
.cat-tag { display: inline-flex; align-items: center; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-2xs); letter-spacing: .03em; text-transform: uppercase; color: var(--teal-700); background: var(--teal-50); padding: 4px 11px; border-radius: var(--r-full); align-self: flex-start; }
.cat-tag.c2 { color: var(--blue-700); background: var(--blue-50); }
.cat-tag.c3 { color: var(--amber-700); background: var(--amber-50); }
.cat-tag.c4 { color: var(--navy-700); background: var(--navy-100); }

/* image placeholders (no stock photos) */
.imgph { background:
  linear-gradient(135deg, var(--navy-700), var(--navy-900));
  position: relative; overflow: hidden; }
.imgph::after { content:""; position:absolute; inset:0; background-image:
  linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px; }
.imgph.teal { background: linear-gradient(135deg, var(--teal-600), var(--teal-800)); }
.imgph.amber { background: linear-gradient(135deg, var(--amber-500), #9a5e12); }
.imgph.blue { background: linear-gradient(135deg, var(--blue-500), #1e3f63); }
.imgph .imgph-ico { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); z-index: 1; }
.imgph .imgph-ico svg { width: 64px; height: 64px; }
.imgph .imgph-label { position: absolute; left: 18px; bottom: 16px; z-index: 1; font-family: var(--font-head); font-weight: 700; color: rgba(255,255,255,.9); font-size: var(--fs-sm); display: flex; align-items: center; gap: 8px; }

/* ---------- BLOG POST ---------- */
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: clamp(32px,4vw,56px); align-items: start; }
.post-featured-img { height: clamp(260px,38vw,440px); border-radius: var(--r-xl); overflow: hidden; margin-bottom: 36px; }
.post-body { max-width: 720px; }
.post-body .post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: var(--fs-sm); color: var(--text-subtle); flex-wrap: wrap; }
.post-body .post-author { display: flex; align-items: center; gap: 10px; }
.post-body .post-author .av { width: 34px; height: 34px; border-radius: 50%; background: var(--navy-100); color: var(--navy-700); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-xs); }
.post-body h1 { font-size: var(--fs-h1); margin: 14px 0 0; line-height: var(--lh-tight); }
.post-body .lead { font-size: var(--fs-lg); color: var(--text-muted); line-height: var(--lh-relaxed); margin: 24px 0; }
.post-body h2 { font-size: var(--fs-h3); margin: 36px 0 14px; }
.post-body h3 { font-size: var(--fs-h4); margin: 26px 0 10px; }
.post-body p { line-height: var(--lh-relaxed); margin-bottom: 18px; color: var(--text); }
.post-body ul.bullets { list-style: none; padding: 0; margin-bottom: 18px; display: flex; flex-direction: column; gap: 12px; }
.post-body ul.bullets li { display: flex; gap: 11px; align-items: flex-start; line-height: var(--lh-normal); }
.post-body ul.bullets li svg { width: 20px; height: 20px; color: var(--teal-600); flex: none; margin-top: 2px; }
.post-body blockquote { border-left: 3px solid var(--teal-400); padding: 6px 0 6px 22px; margin: 26px 0; font-size: var(--fs-lg); color: var(--text-strong); font-style: italic; }
.post-body .pquote-card { background: var(--navy-50); border-radius: var(--r-lg); padding: 26px; margin: 28px 0; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-tags .tg { font-size: var(--fs-xs); color: var(--text-muted); background: var(--n-50); border: 1px solid var(--border); padding: 5px 12px; border-radius: var(--r-full); }

/* post sidebar */
.post-aside { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 24px; }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.aside-card h4 { font-family: var(--font-head); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--text-subtle); margin-bottom: 16px; }
.related { display: flex; flex-direction: column; gap: 16px; }
.related a { display: flex; gap: 13px; align-items: flex-start; }
.related .r-img { width: 64px; height: 56px; border-radius: 10px; flex: none; overflow: hidden; }
.related .r-t { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--text-strong); line-height: 1.35; transition: color .14s; }
.related a:hover .r-t { color: var(--navy-700); }
.related .r-m { font-size: var(--fs-2xs); color: var(--text-subtle); margin-top: 5px; }
.toc-list { display: flex; flex-direction: column; gap: 3px; border-left: 2px solid var(--border); }
.toc-list a { padding: 6px 14px; font-size: var(--fs-sm); color: var(--text-muted); border-left: 2px solid transparent; margin-left: -2px; transition: color .14s, border-color .14s; }
.toc-list a:hover { color: var(--navy-700); border-left-color: var(--navy-300); }
.toc-list a.lvl3 { padding-left: 28px; font-size: var(--fs-xs); }
.toc-list a.active { color: var(--navy-700); border-left-color: var(--teal-500); font-weight: 600; }
.aside-cta { background: var(--navy-800); color: #fff; border-radius: var(--r-lg); padding: 24px; }
.aside-cta h4 { color: var(--teal-300); }
.aside-cta p { color: var(--text-on-navy-muted); font-size: var(--fs-sm); line-height: var(--lh-relaxed); margin: 8px 0 16px; }

/* ---------- PAGINATION ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); border: 1px solid var(--border); font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--text-muted); background: var(--surface); }
.pagination a:hover { border-color: var(--navy-300); color: var(--text-strong); }
.pagination .current { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .feat-row { grid-template-columns: 1fr; gap: 28px; }
  .feat-row:nth-child(even) .feat-text { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: none; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured .bf-img { min-height: 240px; }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}
