/* Anna Dembińska: port 1:1 z Kadence (adwokatdembinska.pl, stan 21.09.2026).
   Wartości z wygenerowanego CSS Kadence + pomiarów computed style. Breakpointy jak Kadence: 1024 / 767. */

:root {
  --gold: #bd9827;          /* palette1 */
  --gold-2: #f6c63e;        /* palette2 */
  --black: #000;            /* palette3 */
  --dark: #161616;          /* palette4 */
  --text: #efeeed;          /* palette7 */
  --gold-line: rgba(168, 124, 0, .45);
  --serif: "Times New Roman", Times, serif;
  --sans: Montserrat, sans-serif;
  --container: 1290px;
  --edge: 24px;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--serif); font-weight: 700; color: var(--text); line-height: 1.5; }
p { margin: 0; text-align: justify; hyphens: auto; }
ul { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--edge); }

/* złoty tekst gradientem (klasa .zloty-tekst z custom CSS) */
.gold {
  background: linear-gradient(180deg, #6b5304 0%, #c29908 25%, #f5c920 50%, #c29908 75%, #6b5304 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.bar { border-left: 2px solid var(--gold); padding-left: 16px; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 12px/1.6 var(--sans); letter-spacing: 1px; text-transform: uppercase;
  padding: 12px 40px; border: 1px solid var(--gold); color: var(--text);
  transition: all .3s ease; cursor: pointer; text-align: center;
}
.btn--fill { background: var(--gold); color: var(--text); }
.btn--fill:hover { background: transparent; }
.btn--fill-dark { background: var(--gold); color: var(--black); }
.btn--fill-dark:hover { background: var(--black); color: var(--text); }
.btn--line { background: transparent; }
.btn--line:hover { background: var(--gold); color: var(--black); }
.btn--hero { border-width: 2px; padding: 20px 40px; }
.btn--hero:hover { color: var(--gold); }
.btn--w300 { width: 300px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- nagłówek ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.site-header .logo img { width: 260px; height: auto; }
.hdr-right { display: flex; align-items: center; gap: 16px; }
.nav { display: flex; align-items: center; list-style: none; padding: 0; margin: 0; gap: 16px; }
.nav > li { position: relative; }
.nav > li > a, .nav > li > span {
  display: flex; align-items: center; height: 40px; padding: 8px 12px;
  font: 700 15px/1.6 var(--serif); text-transform: uppercase; color: var(--gold);
  border: 1px solid transparent; cursor: pointer;
}
.nav > li > a:hover, .nav > li > span:hover { border-color: var(--gold); }
.nav .chev { width: 24px; display: inline-flex; justify-content: center; }
.nav .chev svg { width: 13px; height: 13px; }
.sub {
  position: absolute; top: 100%; left: 0; width: 300px; list-style: none; margin: 0; padding: 0;
  background: var(--black); border: 1px solid rgba(168, 124, 0, .6);
  opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 10;
}
.nav > li:hover .sub, .nav > li:focus-within .sub { opacity: 1; visibility: visible; }
.sub li:not(:last-child) { border-bottom: 1px solid rgba(239, 238, 237, .23); }
.sub a { display: block; padding: 16px 24px; font: 400 16px/1.6 var(--sans); color: var(--text); text-transform: none; }
.sub a:hover { color: var(--gold); background: var(--dark); }
.social { display: flex; gap: 8px; }
.social a {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border: 1px solid var(--gold); color: var(--gold); transition: all .2s;
}
.social a:hover { color: var(--text); border-color: var(--text); }
.social svg { width: 20px; height: 20px; }
.burger { display: none; background: none; border: 0; padding: 8px; color: var(--gold); cursor: pointer; }
.burger svg { width: 25px; height: 25px; display: block; }

/* off-canvas mobile (Kadence off-canvas 487) */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: .3s; z-index: 90; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 400px; z-index: 100;
  background: rgba(0, 0, 0, .8); transform: translateX(100%); transition: transform .3s; overflow-y: auto; padding: 32px;
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }
.drawer-close { position: absolute; top: 5px; right: 5px; display: flex; padding: 8px; background: none; border: 0; color: var(--text); cursor: pointer; }
.drawer-close svg { width: 25px; height: 25px; }
.drawer > ul { list-style: none; margin: 0; padding: 40px 20px 0 0; }
.drawer li { position: relative; }
.drawer > ul > li > a { display: flex; align-items: center; height: 40px; padding: 0 12px; font: 700 15px/1.6 var(--serif); color: var(--gold); text-transform: uppercase; }
.drawer .dd-toggle { position: absolute; top: 0; right: 0; width: 34px; height: 40px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--gold); cursor: pointer; }
.drawer .dd-toggle svg { width: 13px; height: 13px; transition: transform .2s; }
.drawer li.open > .dd-toggle svg { transform: rotate(180deg); }
.drawer li ul { list-style: none; margin: 0 0 1px 16px; padding: 0; background: var(--black); display: none; }
.drawer li.open ul { display: block; }
.drawer li li a { display: flex; align-items: center; height: 39px; padding: 0 8px; font: 400 14px/1.6 var(--sans); color: var(--text); }
.drawer li li:not(:last-child) { border-bottom: 1px solid rgba(239, 238, 237, .23); }
.drawer > ul > li > a { border: 1px solid transparent; }
.drawer > ul > li.open > a, .drawer > ul > li > a:hover { border-color: var(--gold); }
.drawer hr { border: 0; border-top: 1px solid rgba(239, 238, 237, .4); width: 80%; margin: 20px 0 51px; }
.drawer .social a { width: 34px; height: 34px; }
.drawer .social svg { width: 16px; height: 16px; }

/* ---------- hero strony głównej ---------- */
.hero-home { position: relative; background: url(img/image-56.png) 48% 74% / cover no-repeat; }
.hero-home::before { content: ""; position: absolute; inset: 0; opacity: .8; background: linear-gradient(90deg, rgba(0,0,0,.04) 51%, var(--black) 84%); }
.hero-home .container { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 419px; column-gap: 32px; padding-top: calc(var(--header-h) + 57px); }
.hero-home .col-l { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding-bottom: 60px; }
.hero-home h2 {
  font-size: 61px; line-height: 1.3; text-transform: uppercase;
  border-left: 4px solid var(--gold); padding: 0 20px; margin-bottom: 30px;
}
.hero-id { display: flex; align-items: center; gap: 16px; margin-bottom: 20vh; }
.hero-id img { width: 50px; }
.hero-id h1 { font: 400 26px/1.5 "Cormorant Garamond", serif; text-transform: uppercase; color: #a09e9e; }
.hero-id h1 mark { background: none; color: var(--text); }
.hero-home .btns { gap: 8px; }
.hero-home .col-r { align-self: end; }
.hero-home .col-r img { width: 419px; }

/* ---------- sekcja z tłem zdjęcia 5% ---------- */
.bg-ghost { position: relative; background: var(--black); }
.bg-ghost::before { content: ""; position: absolute; inset: 0; opacity: .05; background: url(img/Marlena_Faerber_Ania_biznesowa022.webp) 49% 30% / cover no-repeat fixed; pointer-events: none; }
.bg-ghost > * { position: relative; }

/* ---------- specjalizacje (kafle) ---------- */
.areas { padding: 128px 0; }
.areas h2 { font-size: 50px; line-height: 1.1; border-left: 2px solid var(--gold); padding-left: 20px; margin-bottom: 40px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
.tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 12px 0; border: 2px solid var(--gold-line); transition: border-color .3s;
}
.tile:hover { border-color: var(--gold); }
.tile:nth-child(n+2) { background: var(--black); }
.tile img { width: 80px; height: 80px; }
.tile:first-child img { margin-top: 10px; }
.tile h3 { font-size: 28px; line-height: 1.2; margin-top: 42px; }
.tile:nth-child(n+2) h3 { margin-top: 58px; }

/* ---------- cytat + o mnie ---------- */
.about-home { padding: 80px 0 128px; }
.about-home .quote { padding: 0 60px; margin-bottom: 92px; }
.about-home .quote h2 { text-align: center; font-size: 26px; line-height: 1.4; }
.about-grid { display: grid; grid-template-columns: minmax(0, calc(40% - 16px)) minmax(0, calc(60% - 16px)); column-gap: 32px; background: var(--dark); padding-right: 36px; }
.about-grid .photo { border: 1px solid var(--gold); background: url(img/Marlena_Faerber_Ania_biznesowa014-e1769514383823.jpg) 55% 32% / cover no-repeat; }
.about-card {
  margin: 80px 0 40px -80px; padding: 80px 48px 48px 80px; background: var(--black);
  border-right: 1px solid rgba(74, 74, 74, .19); border-bottom: 1px solid rgba(74, 74, 74, .22);
}
.about-card h2 { font-size: 40px; line-height: 1; padding-left: 12px; margin-bottom: 20px; }
.about-card p { margin-bottom: 20px; }
.about-card .sign { width: 240px; margin-bottom: 36px; }
.about-card .btn { padding: 12px 0; }

/* ---------- opinie (karuzela) ---------- */
.reviews { position: relative; background: url(img/Marlena_Faerber_Ania_biznesowa022.webp) 44% 31% / cover no-repeat fixed; padding: 140px 0 24px; }
.reviews::before { content: ""; position: absolute; inset: 0; background: var(--black); opacity: .9; }
.reviews .container { position: relative; }
.reviews h2 { font-size: 50px; line-height: 1.2; padding: 0 20px; border-left: 2px solid var(--gold); margin-bottom: 40px; }
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; gap: 40px; transition: transform .5s ease; }
.carousel-track img { flex: 0 0 calc((100% - 40px) / 2); width: calc((100% - 40px) / 2); aspect-ratio: 1200 / 800; object-fit: cover; }
.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 32px; height: 48px;
  display: flex; align-items: center; justify-content: center; border: 2px solid transparent; border-radius: 3px;
  background: rgba(255, 255, 255, .8); color: #000; cursor: pointer; padding: 0;
}
.car-arrow svg { width: 20px; height: 20px; }
.car-prev { left: 0; } .car-next { right: 0; }
.car-dots { display: flex; justify-content: center; list-style: none; padding: 0; margin: 8px 0 38px; }
.car-dots li { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }
.car-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #fff; opacity: .4; cursor: pointer; }
.car-dots button.is-active { opacity: 1; }

/* ---------- adwokat katowice (3 kolumny) ---------- */
.intro3 { padding: 128px 0 24px; }
.intro3 .grid { display: grid; grid-template-columns: minmax(0, calc(30% - 53.333px)) minmax(0, calc(40% - 53.333px)) minmax(0, calc(30% - 53.333px)); column-gap: 80px; }
.qcard { position: relative; z-index: 5; margin-right: 60px; padding: 40px 24px 24px; background: var(--dark); }
.qcard img { width: 100px; margin-bottom: 16px; }
.qcard p { font-style: italic; margin-bottom: 33px; }
.qcard .author { font: 400 20px/1.5 Allura, cursive; text-align: right; }
.scales { margin-top: -200px; padding-left: 60px; }
.scales img { width: 100%; height: 378px; object-fit: cover; }
.intro3 .txt h2 { font-size: 30px; line-height: 1.2; border-left: 2px solid var(--gold); padding-left: 20px; margin-bottom: 30px; }
.intro3 .txt p { color: rgba(248, 247, 247, .8); margin-bottom: 32px; }
.intro3 .photo { background: url(img/Zdjecie-w-czerwonej-marynarce.jpg) 50% 37% / cover no-repeat; }

/* ---------- kontakt (sekcja wspólna) ---------- */
.contact { padding: 140px 0 60px; }
.contact--sub { padding-top: 60px; }
.contact .grid { display: grid; grid-template-columns: minmax(0, calc(45% - 16px)) minmax(0, calc(55% - 16px)); column-gap: 32px; }
.contact h2.big { font-size: 60px; line-height: 1; border-left: 2px solid var(--gold); padding-left: 16px; margin-bottom: 30px; }
.contact h3.firm { font-size: 18px; line-height: 1.5; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 40px; }
.contact .lead { margin-bottom: 32px; }
.cbtns { display: flex; flex-direction: column; gap: 8px; }
.cbtn {
  display: flex; justify-content: center; text-align: center; word-break: break-word; padding: 12px 18px; font: 400 18px/1.6 var(--sans); color: var(--gold);
  background: rgba(58, 57, 57, .2); border: 1px solid rgba(248, 247, 247, .12); transition: .3s;
}
.cbtn:hover { background: transparent; border-color: var(--gold); }
.contact .form-col { display: flex; flex-direction: column; justify-content: flex-end; padding-left: 40px; }

/* ---------- formularz ---------- */
.form { display: flex; flex-direction: column; gap: 26px; }
.form .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.field { position: relative; padding-top: 22px; }
.field input, .field textarea {
  display: block; width: 100%; margin: 0; padding: 6.4px 8px; font: 400 16px/1.6 var(--sans); color: var(--text);
  background: var(--black); border: 0; border-bottom: 1px solid var(--gold); border-radius: 0; outline: 0; color-scheme: dark;
}
.field textarea { height: 91px; resize: vertical; }
.field label {
  position: absolute; left: 8px; top: 29px; font: 400 16px/1.6 var(--sans); color: #909097;
  pointer-events: none; transition: all .2s;
}
.field label .req { color: #e53e3e; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 0; left: 0; font-size: 13px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: rgba(239, 238, 237, .7); }
.check input { margin: 3px 0 0; width: 13px; height: 14px; flex: none; color-scheme: dark; }
.form .submit {
  width: 100%; padding: 12px 14px; font: 400 14px/1.6 var(--sans); text-transform: uppercase; color: var(--text);
  background: var(--gold); border: 1px solid var(--gold); cursor: pointer; transition: .3s;
}
.form .submit:hover { background: var(--text); color: var(--black); border-color: var(--text); }

/* ---------- podstrony specjalizacji ---------- */
.hero-sub { position: relative; margin-bottom: 80px; background-size: cover; background-repeat: no-repeat; }
.hero-sub::before { content: ""; position: absolute; inset: 0; background: var(--black); opacity: .8; }
.hero-sub .container { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 24px 20px; }
.hero-sub h6 { font-size: 14px; line-height: 1.5; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 7px; }
.hero-sub h2 { font-size: 80px; line-height: 1; letter-spacing: -1px; text-transform: uppercase; margin-bottom: 32px; }
.hero-sub p { max-width: 600px; margin-bottom: 32px; }
.hero-sub .btn { width: 300px; }

.scope { padding: 24px 0 64px; }
.scope .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 80px; }
.scope--rev { padding: 64px 0 104px; }
.scope .img { background-size: cover; background-repeat: no-repeat; }
.scope .txt { padding-top: 40px; }
.scope h2 { font-size: 40px; line-height: 1; border-left: 2px solid var(--gold); padding-left: 16px; margin-bottom: 32px; }
.scope--rev h2 { line-height: 1.2; }
.list { padding-left: 32px; }
.list li { color: rgba(255, 255, 255, .77); padding-bottom: 12px; }
.list li strong { color: var(--text); }
.list ul { list-style: disc; padding-left: 32px; margin-top: 12px; }
.scope:not(.scope--rev) .list { margin-bottom: 11px; }
.scope--xl { padding-bottom: 104px; }

.why { padding: 0 0 24px; }
.why .card { background: var(--dark); padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 32px; }
.why .img { background: url(img/Marlena_Faerber_Ania_biznesowa014.webp) 49% 32% / cover no-repeat; }
.why .txt { padding: 40px 80px 20px 20px; }
.why h2 { font-size: 28px; line-height: 1.5; margin-bottom: 32px; }
.why h2 strong { font-weight: 700; }
.why p { margin-bottom: 32px; }

/* ---------- o mnie ---------- */
.omnie { padding: 160px 0 24px; }
.omnie .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.omnie .txt { padding: 40px 40px 0 0; }
.omnie h2 { font-size: 44px; line-height: 1; border-left: 2px solid var(--gold); padding-left: 20px; margin-bottom: 32px; }
.omnie h4 { font-size: 22px; line-height: 1.2; margin-bottom: 20px; }
.omnie p { line-height: 1.4; color: rgba(239, 238, 237, .8); margin-bottom: 40px; }
.omnie .img { border: 1px solid var(--gold); background: url(img/Marlena_Faerber_Ania_biznesowa019.webp) 53% 33% / cover no-repeat; }

/* ---------- kontakt (podstrona) ---------- */
.kontakt-top { padding: 10rem 0 5rem; min-height: 85vh; }
.kcard { background: var(--dark); border-radius: 12px; padding: 12px; display: grid; grid-template-columns: 40% 60%; }
.kcard .photo {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px 12px 24px;
  border-radius: 8px; background: url(img/Zdjecie-w-czerwonej-marynarce.jpg) center / cover no-repeat; overflow: hidden;
}
.kcard .photo h4 { position: relative; font-size: 22px; line-height: 1.5; padding: 16px; text-align: center; background: rgba(0, 0, 0, .6); }
.kcard .info { padding: 20px 60px 20px 120px; }
.kitem { margin: 16px 0; border-bottom: 1px solid rgba(239, 238, 237, .2); }
.kitem h3 { font-size: 22px; line-height: 1; text-transform: uppercase; border-left: 2px solid var(--gold); padding-left: 16px; margin-bottom: 8px; }
.kitem p { margin-bottom: 20px; }
.kontakt-form { max-width: 1000px; margin: 0 auto; padding: 2rem var(--edge) 5rem; }
.kontakt-form .inner { padding: 40px 20px 40px 80px; }
.kontakt-form h2 { font-size: 56px; text-align: center; margin-bottom: 36px; color: var(--gold); }

/* ---------- dziękuję ---------- */
.thanks { position: relative; background: url(img/Marlena_Faerber_Ania_biznesowa021.webp) 52% 33% / cover no-repeat; }
.thanks::before { content: ""; position: absolute; inset: 0; background: var(--black); opacity: .6; }
.thanks .container { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1.5rem var(--edge); }
.thanks h2 { font-size: 64px; text-align: center; margin-bottom: 24px; width: 100%; }

/* ---------- polityka (szablon domyślny Kadence: pudełko na tle gradientu) ---------- */
body.page-polityka-prywatnosci { background: linear-gradient(135deg, var(--black) 0%, var(--dark) 100%); }
.legal { padding: 80px 0; }
.legal-inner { background: var(--black); padding: 112px 32px 32px; overflow-wrap: break-word; }
.legal h2 { font-size: 28px; line-height: 1.5; margin: 42px 0 14px; }
.legal h2.legal-title { font-size: 50px; margin: 0 0 25px; }
.legal h2.legal-title + h2 { margin-top: 0; }
.legal ol, .legal ul { padding-left: 32px; margin: 0; }
.legal > .container > .legal-inner > ol, .legal > .container > .legal-inner > ul { margin-bottom: 24px; }
.legal ul { list-style: disc; }
.legal p { margin-bottom: 31px; }

/* ---------- stopka ---------- */
.site-footer { border-top: 1px solid rgba(248, 247, 247, .07); }
.footer-main { padding: 54px 0 53px; }
.footer-main .flogo { display: flex; justify-content: center; padding-bottom: 47px; }
.footer-main .flogo img { width: 300px; }
.footer-main .map { display: block; padding-bottom: 30px; }
.footer-main .map img { width: 100%; }
.fcols { display: grid; grid-template-columns: 411fr 192fr 195fr 349fr; column-gap: 32px; padding: 48px 0 24px; margin-top: 31px; }
.fcols h2 { font-size: 22px; line-height: 1.5; margin-bottom: 20px; }
.fcols h3 { font-size: 28px; line-height: 1; border-left: 2px solid var(--gold); padding-left: 16px; margin-bottom: 30px; }
.fcols p { font-size: 14px; line-height: 1.6; color: rgba(248, 247, 247, .78); text-align: left; margin-bottom: 20px; }
.fmenu { list-style: none; padding: 0; margin: 0; }
.fmenu a { display: block; padding: 9.6px 0; font-size: 16px; line-height: 1.8; color: var(--text); }
.fmenu a:hover { color: var(--gold); }
.fcontact { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.fcontact a { display: inline-flex; align-items: center; gap: 8px; padding: 5.6px 14px 5.6px 0; font-size: 14px; line-height: 1.6; color: rgba(248, 247, 247, .8); }
.fcontact svg { width: 16px; height: 16px; }
.footer-bottom { background: var(--text); color: #000; font-size: 14px; line-height: 1.6; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; gap: 30px; }
.footer-bottom a { color: #000; }
.footer-bottom p { text-align: left; }

.to-top {
  position: fixed; right: 30px; bottom: 30px; z-index: 40; display: flex; padding: 12.8px;
  background: var(--gold); color: var(--black); border: 0; cursor: pointer; opacity: 0; visibility: hidden; transition: .3s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--text); color: var(--dark); }
.to-top svg { width: 26px; height: 26px; }

/* =================== TABLET ≤1024 =================== */
@media (max-width: 1024px) {
  .nav, .hdr-right .social { display: none; }
  .burger { display: block; }
  :root { --header-h: 74px; }
  .site-header .logo img { width: 240px; }
  .hero-home .container { grid-template-columns: minmax(0, 1.915fr) minmax(0, 1fr); padding-top: 80px; min-height: 70vh; }
  .hero-home h2 { font-size: 33px; margin-bottom: 17px; }
  .hero-home .btns { flex-direction: column; width: 100%; }
  .hero-home .btn--hero { width: 100%; }
  .hero-home .col-r img { width: 100%; }
  .tile h3 { margin-top: 33px; }
  .tile:nth-child(n+2) h3 { margin-top: 49px; }
  .areas { padding: 80px 0; }
  .areas h2 { font-size: 40px; }
  .tile h3 { font-size: 22px; }
  .about-home { padding: 80px 0; }
  .about-home .quote { padding: 0; }
  .about-home .quote h2 { font-size: 22px; }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-card { padding: 40px 24px 24px 32px; }
  .about-card .sign { margin-right: -100px; }
  .about-card h2 { line-height: 1.2; }
  .reviews { background-attachment: scroll; padding-top: 1.5rem; }
  .bg-ghost::before { background-attachment: scroll; }
  .intro3 { padding-top: 1.5rem; }
  .intro3 .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro3 .grid { row-gap: 32px; }
  .intro3 .grid > :nth-child(3) { grid-column: 1 / -1; min-height: 691px; }
  .contact { padding-top: 80px; }
  .contact .grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .contact h2.big { border-left: 0; padding-left: 0; text-align: center; }
  .contact h3.firm, .contact .lead { text-align: center; }
  .contact .form-col { padding-left: 0; }
  .hero-sub h2 { font-size: 60px; }
  .hero-sub p { max-width: 500px; }
  .hero-sub .btn { padding-left: 12px; padding-right: 12px; width: 240px; }
  .page-prawo-karne .hero-sub { background-position: 27% 44% !important; }
  .page-prawo-cywilne .hero-sub { background-position: center !important; }
  .page-prawo-cywilne .hero-sub p { max-width: 516px; }
  .page-prawo-rodzinne .hero-sub p { max-width: 600px; }
  .page-prawo-rodzinne .hero-sub h2 { font-size: 50px; }
  .page-prawo-cywilne .scope .grid, .page-prawo-rodzinne .scope .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 80px; }
  .scope .grid { column-gap: 2rem; grid-template-columns: minmax(0, calc(40% - 1rem)) minmax(0, calc(60% - 1rem)); }
  .scope { padding-bottom: 2rem; }
  .scope--rev { padding-top: 1rem; }
  .scope--rev .grid { grid-template-columns: minmax(0, calc(60% - 1rem)) minmax(0, calc(40% - 1rem)); }
  .scope--rev .txt { padding-top: 0; }
  .scope--rev { padding-bottom: 104px; }
  .page-prawo-cywilne .scope { padding-bottom: 64px; }
  .page-prawo-rodzinne .scope { padding-bottom: 104px; }
  .scope h2 { font-size: 32px; }
  .scope--rev .img { min-height: 500px; }
  .why .card { grid-template-columns: minmax(0, calc(40% - 1rem)) minmax(0, calc(60% - 1rem)); }
  .why .txt { padding-right: 20px; }
  .why h2 { line-height: 1.2; }
  .omnie { padding-top: 120px; }
  .omnie .grid { grid-template-columns: minmax(0, 1fr); }
  .omnie .txt { padding-right: 0; }
  .omnie .grid { row-gap: 32px; }
  .omnie .img { min-height: 500px; }
  .kontakt-top { padding-bottom: 1.5rem; }
  .kcard .info { padding: 20px 40px; }
  .kitem h3 { font-size: 20px; line-height: 1.1; }
  .legal { padding: 48px 0; }
  .legal h2.legal-title { font-size: 40px; margin-bottom: 20px; }
  .fcols { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .fcols h2 { font-size: 32px; line-height: 1.2; }
  .fcols p { font-size: 18px; max-width: 600px; }
  .fcols > div:first-child p:last-child { margin-bottom: 16px; }
}

/* =================== MOBILE ≤767 =================== */
@media (max-width: 767px) {
  .hero-home .container { grid-template-columns: minmax(0, 1fr); padding-top: 140px; min-height: 0; }
  .hero-home .col-l { padding-bottom: 20px; }
  .hero-home h2 { font-size: 24px; margin-bottom: 30px; }
  .hero-id { margin: 0 0 5vh; }
  .hero-home .container { row-gap: 32px; }
  .hero-id h1 { font-size: 20px; }
  .hero-home .btns { flex-direction: column; width: 100%; gap: 9px; }
  .hero-home .btn--hero { width: 100%; padding: 14px 40px; }
  .hero-home .col-r { justify-self: center; }
  .hero-home .col-r img { width: 200px; }
  .areas { padding: 40px 0 60px; }
  .areas h2 { font-size: 32px; border-left: 0; padding-left: 0; text-align: center; }
  .tiles { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .about-home { padding: 0 0 34px; }
  .about-home .quote { display: none; }
  .about-grid { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 0; }
  .about-grid .photo { min-height: 500px; }
  .about-card { margin: 0 0 40px; padding: 72px 24px 42px; }
  .about-card h2 { font-size: 26px; margin-bottom: 12px; }
  .about-card .btn { margin-top: 0; }
  .about-card .sign { width: 180px; margin-right: 0; }
  .about-card .btns { justify-content: center; }
  .about-card .btn { width: 240px; }
  .reviews { padding: 20px 0 2px; }
  .reviews h2 { font-size: 32px; text-align: center; border-left: 0; }
  .carousel-track img { flex-basis: 100%; width: 100%; }
  .intro3 .grid { grid-template-columns: minmax(0, 1fr); }
  .intro3 .grid > :nth-child(3) { grid-column: auto; min-height: 300px; }
  .scales { margin: -260px 0 39px; padding-left: 80px; }
  .contact { padding: 40px 0 60px; }
  .contact h2.big, .contact h3.firm, .contact .lead { text-align: left; }
  .form .row2 { grid-template-columns: minmax(0, 1fr); row-gap: 33px; }
  .hero-sub .container { min-height: 80vh; padding-top: 120px; }
  .hero-sub--std .container { min-height: 100vh; padding-top: 24px; }
  .page-prawo-cywilne .scope:not(.scope--rev) .img, .page-prawo-rodzinne .scope:not(.scope--rev) .img { min-height: 500px; }
  .hero-sub h2 { font-size: 40px; }
  .hero-sub .btn { width: 320px; }
  .scope .grid, .scope--rev .grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .scope { padding: 0 0 30px; }
  .scope--rev { padding: 30px 0 4rem; }
  .scope--rev .img { order: -1; }
  .scope .img { min-height: 400px; }
  .scope--rev .img { min-height: 500px; }
  .list li:has(> ul) { padding-bottom: 0; }
  .scope .img { order: -1; }
  .scope .txt { padding-top: 0; }
  .page-prawo-cywilne .scope .grid, .page-prawo-rodzinne .scope .grid { grid-template-columns: minmax(0, 1fr); }
  .page-prawo-rodzinne .hero-sub h2 { font-size: 40px; }
  /* osobne zdjęcia hero na mobile (Kadence). Karne: na live URL wskazuje starą domenę annadembinska.brandon-marketing.pl i się nie ładuje; tu wstawione docelowe zdjęcie */
  .page-prawo-karne .hero-sub { background-image: url(img/Marlena_Faerber_Ania_biznesowa021.webp) !important; background-position: 45% 34% !important; }
  .page-prawo-cywilne .hero-sub { background-image: url(img/Zdjecie-w-czerwonej-marynarce.jpg) !important; background-position: center !important; }
  .page-prawo-rodzinne .hero-sub { background-image: url(img/adwokat-rodzinny-katowice.jpg) !important; background-position: 35% 51% !important; }
  .page-prawo-cywilne .scope .txt, .page-prawo-rodzinne .scope .txt { padding-top: 40px; }
  .scope--rev { padding-bottom: 77px; }
  .page-prawo-cywilne .scope { padding-bottom: 65px; }
  .page-prawo-rodzinne .scope { padding-bottom: 105px; }
  .why { padding-bottom: 44px; }
  .why .card { row-gap: 32px; }
  .scope h2 { font-size: 24px; }
  .why .card { grid-template-columns: minmax(0, 1fr); }
  .why .img { min-height: 300px; }
  .why .txt { padding-top: 0; }
  .omnie { padding-top: 80px; }
  .kontakt-top { padding-top: 5rem; }
  .kcard { grid-template-columns: minmax(0, 1fr); }
  .kcard .photo { min-height: 300px; }
  .kcard .info { padding: 12px 12px 20px; }
  .kitem h3 { font-size: 20px; line-height: 1.1; }
  .kontakt-form .inner { padding: 0; }
  .kontakt-form h2 { font-size: 40px; line-height: 1.2; }
  .thanks h2 { font-size: 26px; line-height: 1.2; }
  .thanks .btn { padding-left: 12px; padding-right: 12px; }
  .legal { padding: 32px 0; }
  .legal .container { padding: 0 16px; }
  .legal-inner { padding: 104px 16px 16px; }
  .legal h2.legal-title { font-size: 32px; margin-bottom: 16px; }
  .fcols { padding-bottom: 0; }
  .footer-main { padding-bottom: 30px; }
  .fcols h2 { font-size: 20px; line-height: 1.2; }
  .fcols p { font-size: 16px; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: 20px; }
  .footer-bottom p { text-align: center; }
}

/* =================== BLOG (układ 1:1 z bloga Karola Chmielińskiego, kolory Dembińskiej) =================== */
.sec-tag { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; border: 1px solid rgba(239, 238, 237, .3); font: 600 12px/1 var(--sans); letter-spacing: 3px; text-transform: uppercase; color: var(--text); }
.sec-tag::before, .sec-tag::after { content: ""; width: 14px; height: 1px; background: currentColor; }
.blog-hero { background: var(--dark); padding: 190px 0 46px; }
.blog-hero h1 { margin-top: 24px; font-size: 64px; line-height: 1.15; color: var(--text); }
.blog-main { padding: 72px 0 120px; }
.blog-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); column-gap: 96px; align-items: start; }
.blog-side { position: sticky; top: 24px; }
.blog-side-title { font: 400 20px/1.25 var(--serif); color: var(--text); text-align: left; margin-bottom: 24px; }
.blog-filters { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(239, 238, 237, .15); }
.blog-filters li { border-bottom: 1px solid rgba(239, 238, 237, .15); }
.blog-filters button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; background: none; border: 0; cursor: pointer; font: 400 15px/1.4 var(--sans); color: rgba(239, 238, 237, .85); text-align: left; transition: color .2s; }
.blog-filters button:hover { color: var(--gold); }
.blog-filters button.is-active { font-weight: 600; color: var(--text); }
.cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; background: rgba(239, 238, 237, .08); font-size: 12px; color: rgba(239, 238, 237, .8); }
.blog-filters button.is-active .cnt { background: var(--gold); color: var(--black); font-weight: 600; }
.blog-select { display: none; width: 100%; padding: 14px 12px; font: 400 15px/1.4 var(--sans); color: var(--text); background: var(--dark); border: 1px solid rgba(239, 238, 237, .2); border-radius: 0; color-scheme: dark; margin-bottom: 24px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.post-card { display: flex; flex-direction: column; background: var(--dark); border: 1px solid rgba(239, 238, 237, .1); border-radius: 8px; overflow: hidden; transition: border-color .3s, transform .3s; }
.post-card[hidden] { display: none; }
.post-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.post-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .5s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { display: flex; flex-direction: column; gap: 16px; padding: 22px 22px 24px; flex: 1; }
.post-tag { display: inline-block; padding: 6px 10px; border: 1px solid rgba(239, 238, 237, .15); background: rgba(239, 238, 237, .05); font: 600 11px/1.3 var(--sans); letter-spacing: 1.5px; text-transform: uppercase; color: rgba(239, 238, 237, .8); }
.post-card h3 { font-size: 21px; line-height: 1.25; font-weight: 400; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--gold); }
.post-card p { font-size: 15px; line-height: 1.6; color: rgba(239, 238, 237, .7); text-align: left; hyphens: manual; }
.post-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(239, 238, 237, .1); font-size: 13px; color: rgba(239, 238, 237, .55); }
.post-card-foot a, .side-post .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gold); font-size: 13px; }
.post-card-foot svg, .side-post .more svg { width: 14px; height: 14px; }

.post-hero { background: var(--dark); padding: 150px 0 80px; text-align: center; }
.post-hero-tag { display: inline-block; padding: 6px 12px; border: 1px solid rgba(239, 238, 237, .3); font: 600 11px/1.3 var(--sans); letter-spacing: 1.5px; text-transform: uppercase; color: var(--text); }
.post-hero h1 { max-width: 820px; margin: 22px auto 22px; font-size: 44px; line-height: 1.2; color: var(--text); }
.post-hero-meta { display: flex; justify-content: center; gap: 24px; font-size: 13px; color: rgba(239, 238, 237, .65); }
.post-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-hero-meta svg { width: 14px; height: 14px; }
.post-main { padding: 72px 0 120px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 56px; align-items: start; }
.post-featured { border-radius: 8px; overflow: hidden; margin-bottom: 40px; }
.post-featured img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; object-position: 50% 20%; }
.post-title { font-size: 38px; line-height: 1.2; font-weight: 400; margin-bottom: 28px; }
.post-body { font-size: 16px; line-height: 1.75; color: rgba(239, 238, 237, .85); }
.post-body > * + * { margin-top: 18px; }
.post-body h2 { font-size: 26px; line-height: 1.3; font-weight: 400; color: var(--text); margin-top: 40px; padding-bottom: 12px; border-bottom: 1px solid rgba(239, 238, 237, .12); }
.post-body p { text-align: left; }
.post-body ul { padding-left: 22px; }
.post-body li + li { margin-top: 10px; }
.post-author { display: flex; gap: 20px; align-items: flex-start; margin-top: 56px; padding-top: 36px; border-top: 1px solid rgba(239, 238, 237, .12); }
.post-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.post-author-name { font: 400 20px/1.3 var(--serif); color: var(--gold); }
.post-author-role { font-size: 13px; color: rgba(239, 238, 237, .6); margin: 4px 0 10px; }
.post-author-bio { font-size: 14px; line-height: 1.6; color: rgba(239, 238, 237, .75); }
.post-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 28px; }
.side-title { font: 400 20px/1.3 var(--serif); color: var(--text); }
.side-line { width: 40px; height: 2px; background: var(--gold); margin: 14px 0 18px; }
.side-cats { list-style: none; margin: 0; padding: 0; }
.side-cats li { border-bottom: 1px solid rgba(239, 238, 237, .12); }
.side-cats a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 14px; color: rgba(239, 238, 237, .85); }
.side-cats a:hover { color: var(--gold); }
.side-post { display: flex; flex-direction: column; background: var(--dark); border: 1px solid rgba(239, 238, 237, .1); border-radius: 8px; overflow: hidden; transition: border-color .3s; }
.side-post:hover { border-color: var(--gold); }
.side-post-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.side-post-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.side-post-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
.side-post-title { font: 400 17px/1.3 var(--serif); color: var(--text); }
.side-post-foot { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(239, 238, 237, .55); }

@media (max-width: 1024px) {
  .blog-hero { padding-top: 140px; }
  .blog-hero h1 { font-size: 48px; }
  .blog-layout { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .blog-side { position: static; }
  .blog-filters { display: none; }
  .blog-select { display: block; }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-hero { padding-top: 130px; }
  .post-hero h1 { font-size: 36px; }
  .post-layout { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .post-side { position: static; }
}
@media (max-width: 767px) {
  .blog-hero { padding: 120px 0 40px; }
  .blog-hero h1 { font-size: 36px; }
  .blog-main, .post-main { padding: 48px 0 80px; }
  .posts-grid { grid-template-columns: minmax(0, 1fr); }
  .post-hero { padding: 110px 0 56px; }
  .post-hero h1 { font-size: 28px; }
  .post-title { font-size: 28px; }
  .post-body h2 { font-size: 22px; }
}
