/* ============================================================
   trivenox — kancelaria prawna, Poznań
   Prawo karne · przestępstwa gospodarcze · prawo spadkowe i gospodarcze
   Styl: spokojny korporacyjny, grafit + stalowy morski akcent,
   nagłówki z myślnikiem „—", prostokątne przyciski, karty z listą.
   Krój: Poppins (nagłówki i tekst)
   ============================================================ */

:root {
  --ink: #31343b;
  --ink-2: #292c32;
  --ink-3: #22242a;
  --accent: #77a9b4;
  --accent-dark: #6a98a2;
  --grey: #f0f5f8;
  --paper: #ffffff;
  --body: #5a6168;
  --muted: #8a9097;
  --line: #e3e8ec;
  --line-dark: rgba(255, 255, 255, 0.12);
  --on-dark: #c9cdd2;
  --star: #f2be1f;
  --wrap: 1200px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--body); background: var(--paper); line-height: 1.65; font-size: 16px; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); line-height: 1.15; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.tv-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }

.tv-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 12px; }
.tv-eyebrow::after { content: "—"; color: var(--accent); font-weight: 400; }
.tv-eyebrow.is-light { color: #fff; }
.tv-eyebrow.is-light::after { color: rgba(255,255,255,.6); }

.tv-btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 15px 32px; background: var(--accent); color: #fff; border: 2px solid var(--accent); border-radius: 2px; cursor: pointer; transition: background .22s, border-color .22s, color .22s; }
.tv-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.tv-btn.is-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.tv-btn.is-outline:hover { background: var(--ink); color: #fff; }
.tv-btn.is-light { background: var(--accent); border-color: var(--accent); }

/* ============================================================ HEADER */
.tv-header { position: sticky; top: 0; z-index: 60; background: var(--ink); }
.tv-header .tv-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 20px; }
.tv-logo { display: flex; align-items: center; gap: 12px; }
.tv-logo svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.tv-logo-word b { display: block; font-size: 20px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; line-height: 1; }
.tv-logo-word span { display: block; font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.tv-nav ul { list-style: none; display: flex; align-items: center; gap: 28px; }
.tv-nav a { font-size: 13.5px; font-weight: 500; letter-spacing: 0.04em; color: #d3d7dc; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.tv-nav a:hover, .tv-nav a.is-active { color: #fff; border-color: var(--accent); }
.tv-head-cta { display: flex; align-items: center; gap: 16px; }
.tv-head-cta .tv-btn { padding: 12px 24px; }
.tv-burger { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; padding: 10px; }
.tv-burger span { display: block; height: 2px; width: 100%; background: #fff; transition: transform .3s, opacity .3s; }
.tv-burger span + span { margin-top: 6px; }
.tv-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.tv-burger.is-open span:nth-child(2) { opacity: 0; }
.tv-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================ HERO */
.tv-hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; background-size: cover; background-position: center; }
.tv-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(49,52,59,.86) 0%, rgba(49,52,59,.66) 55%, rgba(49,52,59,.42) 100%); }
.tv-hero .tv-wrap { position: relative; z-index: 2; }
.tv-hero-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; text-decoration: underline; text-underline-offset: 6px; display: inline-block; margin-bottom: 22px; }
.tv-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 700; letter-spacing: -0.5px; line-height: 1.06; text-transform: uppercase; color: #fff; max-width: 15ch; margin-bottom: 30px; }
.tv-hero p { font-size: 17px; color: #dfe3e7; max-width: 52ch; margin-bottom: 32px; }

/* ============================================================ SPECIALTIES STRIP */
.tv-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.tv-strip .tv-wrap { display: grid; grid-template-columns: 1fr; gap: 0; }
.tv-strip-item { text-align: center; padding: 26px 18px; border-top: 1px solid var(--line); }
.tv-strip-item b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.tv-strip-item span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }

/* ============================================================ SECTIONS */
.tv-section { padding: 96px 0; }
.tv-section.is-grey { background: var(--grey); }
.tv-section.is-ink { background: var(--ink); color: #fff; }
.tv-head { margin-bottom: 52px; }
.tv-head .tv-eyebrow { margin-bottom: 16px; }
.tv-head h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 700; }
.tv-head.is-split { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: end; }
.tv-head.is-split p { color: var(--body); font-size: 16px; }
.tv-head.is-center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.tv-head.is-center .tv-eyebrow { justify-content: center; }
.tv-head.is-center p { color: var(--body); margin-top: 14px; }

/* ============================================================ SERVICE CARDS (checklist) */
.tv-cards { display: grid; grid-template-columns: 1fr; gap: 26px; }
.tv-card { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.tv-card-img { aspect-ratio: 3/2; overflow: hidden; }
.tv-card-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); transition: transform .5s ease; }
.tv-card:hover .tv-card-img img { transform: scale(1.05); }
.tv-card-body { padding: 26px 24px 30px; }
.tv-card-body h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.tv-check { list-style: none; }
.tv-check li { display: flex; align-items: flex-start; gap: 11px; padding: 7px 0; font-size: 14.5px; color: var(--body); }
.tv-check li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }

/* ============================================================ PRACTICE GRID */
.tv-practice { display: grid; grid-template-columns: 1fr; gap: 26px; }
.tv-pcard { background: var(--paper); border: 1px solid var(--line); display: block; transition: box-shadow .25s, transform .25s; }
.tv-pcard:hover { box-shadow: 0 18px 40px rgba(49,52,59,.1); transform: translateY(-3px); }
.tv-pcard-img { aspect-ratio: 16/10; overflow: hidden; }
.tv-pcard-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); transition: transform .5s ease; }
.tv-pcard:hover .tv-pcard-img img { transform: scale(1.05); }
.tv-pcard-body { padding: 24px 24px 26px; }
.tv-pcard-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.tv-pcard-body p { font-size: 14.5px; margin-bottom: 14px; }
.tv-more { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.tv-more svg { width: 16px; height: 16px; }

/* ============================================================ ABOUT SPLIT */
.tv-split { display: grid; grid-template-columns: 1fr; }
.tv-split-media { min-height: 320px; background-size: cover; background-position: center; filter: saturate(.75); }
.tv-split-panel { background: var(--ink); color: #fff; padding: 60px 34px; }
.tv-split-panel .tv-eyebrow { margin-bottom: 18px; }
.tv-split-panel h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 20px; }
.tv-split-panel p { color: var(--on-dark); margin-bottom: 16px; font-size: 15.5px; }
.tv-split-panel .tv-btn { margin-top: 12px; }

/* ============================================================ TESTIMONIALS */
.tv-tst { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.tv-tst-head .tv-eyebrow { margin-bottom: 16px; }
.tv-tst-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 24px; }
.tv-quote-card { position: relative; background: var(--paper); border: 1px solid var(--accent); padding: 40px 34px 34px; overflow: hidden; }
.tv-quote-badge { position: absolute; top: 0; right: 0; width: 66px; height: 66px; background: var(--ink); border-bottom-left-radius: 66px; display: flex; align-items: flex-start; justify-content: flex-end; padding: 10px 12px; }
.tv-quote-badge span { color: #fff; font-size: 30px; font-weight: 700; line-height: 1; font-family: Georgia, serif; }
.tv-stars { color: var(--star); letter-spacing: 2px; font-size: 15px; margin-bottom: 16px; }
.tv-quote-card blockquote { font-size: 17px; color: var(--ink); line-height: 1.65; margin-bottom: 24px; }
.tv-quote-author { display: flex; align-items: center; gap: 13px; }
.tv-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.tv-quote-author b { display: block; color: var(--ink); font-size: 15px; }
.tv-quote-author span { font-size: 13px; color: var(--muted); }

.tv-mini-row { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 50px; }
.tv-mini { background: var(--paper); border: 1px solid var(--line); padding: 26px; }
.tv-mini .tv-stars { font-size: 13px; margin-bottom: 12px; }
.tv-mini p { font-size: 14.5px; color: var(--body); font-style: italic; margin-bottom: 18px; }
.tv-mini .tv-quote-author b { font-size: 14px; }

/* ============================================================ CONTACT */
.tv-contact { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: start; }
.tv-contact-info .tv-head { margin-bottom: 30px; }
.tv-contact-rows { display: grid; gap: 18px; }
.tv-crow { display: flex; align-items: center; gap: 16px; }
.tv-crow .tv-tile { width: 48px; height: 48px; flex: none; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.tv-crow .tv-tile svg { width: 22px; height: 22px; color: #fff; }
.tv-crow b { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tv-crow a, .tv-crow span { font-size: 16px; color: var(--ink); font-weight: 500; }
.tv-crow a:hover { color: var(--accent); }
.tv-map { min-height: 360px; border: 1px solid var(--line); }
.tv-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: grayscale(30%); }

/* ============================================================ FAQ / PROSE / PAGEHEAD */
.tv-qa { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.tv-qa-item { border-bottom: 1px solid var(--line); padding: 24px 4px; }
.tv-qa-item h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.tv-qa-item p { color: var(--body); margin: 0; }

.tv-pagehead { position: relative; color: #fff; background: var(--ink); background-size: cover; background-position: center; padding: 96px 0 76px; }
.tv-pagehead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(49,52,59,.9), rgba(49,52,59,.72)); }
.tv-pagehead .tv-wrap { position: relative; z-index: 2; }
.tv-pagehead .tv-eyebrow { color: #fff; margin-bottom: 16px; }
.tv-pagehead .tv-eyebrow::after { color: rgba(255,255,255,.6); }
.tv-pagehead h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); text-transform: uppercase; letter-spacing: -0.5px; max-width: 20ch; }
.tv-pagehead p { color: #dfe3e7; max-width: 620px; margin-top: 16px; font-size: 16.5px; }
.tv-crumbs { margin-top: 20px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark); }
.tv-crumbs a { color: var(--accent); }

.tv-prose { max-width: 800px; margin: 0 auto; }
.tv-prose .tv-lead { font-size: 18px; color: var(--ink); font-weight: 500; line-height: 1.6; margin-bottom: 12px; }
.tv-prose h2 { font-size: 1.7rem; font-weight: 700; margin: 40px 0 14px; }
.tv-prose h3 { font-size: 1.2rem; font-weight: 600; margin: 26px 0 10px; }
.tv-prose p { color: var(--body); margin-bottom: 16px; }
.tv-prose ul, .tv-prose ol { margin: 0 0 18px 22px; color: var(--body); }
.tv-prose li { margin-bottom: 9px; }
.tv-prose a { color: var(--accent-dark); text-decoration: underline; }
.tv-prose strong { color: var(--ink); }

.tv-callout { background: var(--grey); border-left: 3px solid var(--accent); padding: 22px 26px; margin: 26px 0; }
.tv-callout p { margin: 0; color: var(--body); font-size: 15px; }

/* ============================================================ FOOTER */
.tv-footer { background: var(--ink); color: var(--on-dark); padding: 66px 0 0; }
.tv-footer-top { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 46px; }
.tv-footer-brand .tv-logo { margin-bottom: 18px; }
.tv-footer-brand p { font-size: 14px; color: var(--muted); margin-bottom: 22px; max-width: 34ch; }
.tv-footer-rows { display: grid; gap: 14px; }
.tv-footer-rows .tv-crow .tv-tile { width: 40px; height: 40px; }
.tv-footer-rows .tv-crow .tv-tile svg { width: 18px; height: 18px; }
.tv-footer-rows .tv-crow a, .tv-footer-rows .tv-crow span { color: #fff; font-size: 14.5px; }
.tv-footer-rows .tv-crow b { color: var(--muted); }
.tv-footer h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px; }
.tv-footer h4::after { content: "—"; color: var(--accent); }
.tv-footer ul { list-style: none; }
.tv-footer li { margin-bottom: 11px; }
.tv-footer-links a { color: var(--muted); font-size: 14px; }
.tv-footer-links a:hover { color: var(--accent); }
.tv-footer-bottom { border-top: 1px solid var(--line-dark); padding: 22px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.tv-footer-bottom a { color: var(--muted); }
.tv-footer-bottom a:hover { color: var(--accent); }
.tv-footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ============================================================ COOKIE */
.tv-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 1040px; margin: 0 auto; background: var(--ink); color: var(--on-dark); border-radius: 2px; padding: 22px 24px; display: none; grid-template-columns: 1fr; gap: 16px; align-items: center; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.tv-cookie.is-visible { display: grid; }
.tv-cookie p { font-size: 14px; color: var(--on-dark); margin: 0; }
.tv-cookie a { color: var(--accent); text-decoration: underline; }
.tv-cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.tv-cookie-actions button { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 22px; border-radius: 2px; cursor: pointer; border: 2px solid var(--accent); }
.tv-cookie-actions .tv-ck-all { background: var(--accent); color: #fff; }
.tv-cookie-actions .tv-ck-all:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.tv-cookie-actions .tv-ck-min { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.tv-cookie-actions .tv-ck-min:hover { border-color: #fff; }

/* ============================================================ RESPONSIVE */
@media (min-width: 640px) {
  .tv-strip .tv-wrap { grid-template-columns: repeat(2, 1fr); }
  .tv-strip-item:nth-child(-n+2) { border-top: none; }
  .tv-cards { grid-template-columns: repeat(2, 1fr); }
  .tv-practice { grid-template-columns: repeat(2, 1fr); }
  .tv-mini-row { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 940px) {
  .tv-strip .tv-wrap { grid-template-columns: repeat(4, 1fr); }
  .tv-strip-item { border-top: none; border-left: 1px solid var(--line); }
  .tv-strip-item:first-child { border-left: none; }
  .tv-cards { grid-template-columns: repeat(4, 1fr); }
  .tv-practice { grid-template-columns: repeat(3, 1fr); }
  .tv-head.is-split { grid-template-columns: 1.2fr 1fr; }
  .tv-split { grid-template-columns: 1fr 1fr; }
  .tv-split-panel { padding: 80px 60px; }
  .tv-tst { grid-template-columns: 1fr 1.1fr; }
  .tv-contact { grid-template-columns: 1fr 1fr; }
  .tv-footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
@media (max-width: 899px) {
  .tv-burger { display: block; }
  .tv-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); background: var(--ink-2); padding: 92px 30px 30px; transform: translateX(100%); transition: transform .32s ease; z-index: 55; box-shadow: -18px 0 40px rgba(0,0,0,.4); }
  .tv-nav.is-open { transform: translateX(0); }
  .tv-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .tv-nav a { display: block; width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line-dark); }
  .tv-head-cta .tv-btn span { display: none; }
  .tv-head-cta .tv-btn { padding: 12px 16px; }
  .tv-section { padding: 64px 0; }
}
