/* ============================================
   KANCELARIA CZERW — Premium Redesign 2026
   Styl: Classic Premium Law Firm
   Paleta:
     --navy:        #0D1B2A  (dark navy)
     --charcoal:    #1C1C1C  (topbar)
     --gold:        #C9A870  (główny akcent)
     --gold-dark:   #A8823E  (hover gold)
     --gold-light:  #E0C98A  (jasny złoty)
     --white:       #FFFFFF
     --bg-light:    #F5F3EF  (ciepły off-white)
     --bg-warm:     #EDEBE5  (sekcje tło)
     --text-dark:   #1A1A1A
     --text-mid:    #4A4A4A
     --text-muted:  #888888
     --border:      #E0DDDA
   Fonty: Oswald (hero) + Cormorant Garamond (nagłówki) + Inter (body)
   ============================================ */

:root {
  --navy:       #0D1B2A;
  --charcoal:   #1C1C1C;
  --gold:       #C9A870;
  --gold-dark:  #A8823E;
  --gold-light: #E0C98A;
  --gold-pale:  #F7F1E3;
  --white:      #FFFFFF;
  --bg-light:   #F5F3EF;
  --bg-warm:    #EDEBE5;
  --text-dark:  #1A1A1A;
  --text-mid:   #4A4A4A;
  --text-muted: #888888;
  --border:     #E0DDDA;
  --shadow-sm:  0 2px 8px rgba(13,27,42,0.08);
  --shadow-md:  0 6px 24px rgba(13,27,42,0.12);
  --shadow-lg:  0 16px 56px rgba(13,27,42,0.18);
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

p, blockquote, caption, figcaption { text-wrap: pretty; }

a {
  text-decoration-thickness: 1px !important;
  text-underline-offset: .1em;
  color: inherit;
  transition: color var(--transition);
}

strong { font-weight: 600; }
p:empty { display: block; height: 16px; }
.more-link { display: block; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  padding: 0 48px;
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ============================================
   HEADER — LOGO BAR (white) z danymi kontaktowymi
   ============================================ */
.header-container {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 150;
  box-shadow: 0 2px 16px rgba(13,27,42,0.12);
}

.header-logo-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-logo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  padding: 0;
}

/* Dane kontaktowe — prawa strona logo baru */
.header-contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  align-self: stretch;
  background: linear-gradient(160deg, #0D1B2A 0%, #152539 100%);
  padding: 0 32px 0 28px;
  position: relative;
  border-left: 1px solid rgba(201,168,112,0.25);
  box-shadow: -8px 0 24px rgba(13,27,42,0.12);
}

.header-contact-info::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.header-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.05em;
  padding: 6px 0;
}

.header-contact-item + .header-contact-item {
  border-top: 1px solid rgba(201,168,112,0.15);
}

.header-contact-item .fa {
  color: var(--gold);
  font-size: 11px;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.header-contact-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color var(--transition);
}

.header-contact-phone .fa {
  color: var(--gold);
  font-size: 13px;
}

.header-contact-phone:hover { color: var(--gold-dark); }

/* Logo — prawa strona */
.logo-mobile-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 76px;
  width: auto;
  display: block;
}

.header-logo-bar .logo img {
  filter: brightness(0) saturate(100%);
  opacity: 0.82;
}

.mobile-button {
  color: var(--navy);
  font-size: 26px;
  display: none;
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border: none;
  padding: 4px;
}

.mobile-button:hover { color: var(--gold); }
#myLinks { display: block; }

/* ============================================
   HEADER — GOLD NAV BAR
   ============================================ */
.header-nav-bar {
  background: var(--gold);
  position: relative;
}

.header-nav-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-dark);
}

.header-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0;
}

.mobile-container {
  display: flex;
  align-items: center;
  flex: 1;
}

/* ============================================
   NAVIGATION MENU
   ============================================ */
.menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.menu li {
  position: relative;
}

.menu li a {
  display: block;
  padding: 0 18px;
  height: 52px;
  line-height: 52px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.18);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.menu li:first-child a { border-left: 1px solid rgba(255,255,255,0.18); }

.menu li a:hover,
.menu li.current-menu-item a,
.menu li.current_page_item a {
  background: var(--gold-dark);
  color: var(--white);
}

/* HEADER PHONE (w złotym nav barze) */
.header-phone {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 16px;
}

.header-phone a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.header-phone a:hover {
  background: #0a1420;
  color: var(--gold-light);
}

.header-phone .fa { font-size: 11px; }

/* ============================================
   HERO / BANNER
   Całkowita wys. headera: 96 + 52 = 148px
   ============================================ */
.banner-container {
  margin-top: 148px;
  position: relative;
  overflow: hidden;
  background: var(--navy); /* eliminuje białe luki po bokach kontenera */
}

/* .container.banner — baner w kontenerze, bez horyzontalnego paddingu */
.container.banner {
  padding: 0;
  /* max-width: 1260px pozostaje z .container */
}

.banner {
  min-height: 580px;
  background:
    linear-gradient(
      to right,
      rgba(13,27,42,0)    0%,
      rgba(13,27,42,0)    42%,
      rgba(13,27,42,0.94) 52%,
      rgba(13,27,42,0.97) 100%
    ),
    url('./../images/banner.png') no-repeat left center;
  background-size: cover;
  display: flex;
  align-items: center;
}

/* Lewa połowa — przezroczysty spacer, zdjęcie widoczne */
.banner .image {
  flex: 1;
  min-height: 580px;
  display: block;
}

.banner .background {
  display: none;
}

/* Prawa połowa — panel z tekstem */
.banner .slogan {
  width: 50%;
  flex-shrink: 0;
  padding: 60px 48px 60px 44px;
  margin: 0;
  background: transparent;
  border-top: none;
  border-left: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.banner .slogan .hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
  display: block;
}

.banner .slogan h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.banner .slogan .hl {
  color: var(--gold-light);
}

.banner .slogan p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255,255,255,0.80);
  margin-bottom: 32px;
  text-align: left;
  padding: 0;
}

.action-button-container {
  padding: 0;
  display: flex;
  gap: 14px;
}

.action-button,
.banner .slogan .action-button-container .action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--gold);
  border: 2px solid var(--gold);
  color: var(--navy);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: none;
}

.action-button:hover,
.banner .slogan .action-button-container .action-button:hover {
  background: transparent;
  border-color: var(--gold-light);
  color: var(--gold-light);
  box-shadow: none;
}

/* ============================================
   SEKCJA — ozdobniki
   ============================================ */
.line {
  display: block;
  width: 52px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 18px;
  flex-shrink: 0;
  border: none;
}

/* ============================================
   SPECIALISATIONS — karty specjalizacji
   ============================================ */
.specialisation {
  background: var(--bg-light);
  padding: 88px 48px;
  display: flex;
  flex-direction: column;
}

.specialisation h4 {
  display: flex;
  flex-direction: column;
  margin: 0 0 52px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
  position: static;
}

.specialisation h4 .line {
  position: static;
  top: auto;
  left: auto;
}

.specialisation .specialisations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0;
  background: transparent;
  counter-reset: service-counter;
}

.specialisation a {
  text-decoration: none;
  display: flex;
  color: var(--white);
}

.specialisation .specialisations .box {
  counter-increment: service-counter;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 40px 36px 36px;
  background: var(--navy);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  border-bottom: 3px solid var(--gold-dark);
  min-height: 220px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition);
  box-shadow: 0 4px 20px rgba(13,27,42,0.18);
}

.specialisation .specialisations .box::after {
  content: counter(service-counter, decimal-leading-zero);
  position: absolute;
  top: -16px;
  right: 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 100px;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.specialisation .specialisations .box:hover {
  background: #112236;
  border-bottom-color: var(--gold-light);
  box-shadow: 0 12px 44px rgba(13,27,42,0.32);
  transform: translateY(-4px);
}

.specialisation .specialisations .box .icon-wrapper {
  width: 44px;
  height: 44px;
  background: rgba(201,168,112,0.12);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  flex-shrink: 0;
  transition: background var(--transition);
}

.specialisation .specialisations .box:hover .icon-wrapper {
  background: rgba(201,168,112,0.22);
}

.specialisation .specialisations .box .size-6 {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  flex-shrink: 0;
}

.specialisation .specialisations .box:hover .size-6 {
  stroke: var(--gold-light);
  fill: none;
}

.specialisation .specialisations .box h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
  text-align: left;
  text-transform: uppercase;
  line-height: 1.45;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.specialisation .specialisations .box .box-arrow {
  margin-top: auto;
  padding-top: 24px;
  font-size: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border-top: 1px solid rgba(201,168,112,0.18);
  transition: gap var(--transition), color var(--transition);
}

.specialisation .specialisations .box:hover .box-arrow {
  gap: 14px;
  color: var(--gold-light);
}

/* ============================================
   MOTIVATION — CTA z numerem
   ============================================ */
.motivation-container {
  background: var(--navy);
  padding: 76px 48px;
  position: relative;
  overflow: hidden;
}

.motivation-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}

.motivation-container::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold-dark);
}

.motivation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.motivation h5 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 46px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.motivation .hl {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 600;
}

.motivation a {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 20px 40px;
  border: 2px solid rgba(201,168,112,0.45);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  display: inline-block;
}

.motivation a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* ============================================
   LEGAL SERVICES — sekcja opisowa
   ============================================ */
.legal-services-container {
  background: var(--white);
  padding: 100px 48px;
}

.legal-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.legal-services h2 {
  display: flex;
  flex-direction: column;
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 28px 0;
  letter-spacing: 0.01em;
  position: static;
}

.legal-services h2 .line {
  position: static;
  top: auto;
  left: auto;
}

.legal-services p {
  font-size: 16px;
  line-height: 1.88;
  color: var(--text-mid);
  text-align: left;
  margin-bottom: 0;
}

.legal-services img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: var(--shadow-lg);
  border: none;
  border-radius: 0;
  margin: 0;
}

/* usuwa stare ciemne ramki */
.borders {
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-container {
  background: var(--navy);
  border-top: 4px solid var(--gold);
  padding-top: 56px;
  padding-bottom: 0;
  position: relative;
  border-left: none;
  border-right: none;
}

.footer {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 0 0 48px 0;
  flex-wrap: wrap;
}

.footer .bg-icon {
  display: none;
}

.footer-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 8px;
}

.footer-logo img {
  width: 160px;
  height: auto;
  display: block;
  opacity: 0.92;
  filter: brightness(0) invert(1);
}

.footer .contact {
  color: rgba(255,255,255,0.65);
  line-height: 2;
  font-size: 14px;
}

.footer .contact .title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
  display: block;
}

.footer .contact .mobile-block { display: inline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  color: rgba(255,255,255,0.3);
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold-light); }

/* ============================================
   STRONY WEWNĘTRZNE — container-page
   ============================================ */
.container-page {
  padding-top: 196px;
  padding-bottom: 80px;
  background: var(--white);
  overflow: hidden;
}

.container-page h1 {
  display: flex;
  flex-direction: column;
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 44px 0;
  letter-spacing: 0.01em;
  position: static;
}

.container-page h1 .line {
  position: static;
  top: auto;
  left: auto;
}

.container-page p {
  font-size: 16px;
  line-height: 1.88;
  color: var(--text-mid);
  text-align: left;
}

.container-page ul,
.container-page ol {
  list-style: inside;
  margin: 12px 0;
}

.container-page ul li,
.container-page ol li {
  line-height: 1.75;
  color: var(--text-mid);
}

.container-page a { display: inline-block; }
.container-page img { display: inline-block; }
.container-page figure { display: inline-block; }

/* ============================================
   PAGE HERO — nagłówek podstron
   ============================================ */
.page-hero {
  margin-top: 148px;
  background: linear-gradient(160deg, #0D1B2A 0%, #152539 100%);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.page-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.page-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 12px 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
}

.page-hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.55);
  margin: 0;
  letter-spacing: 0.03em;
}

/* ============================================
   O MNIE — layout dwukolumnowy
   ============================================ */
.about-page {
  background: var(--white);
  padding: 80px 0 100px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.about-image {
  position: sticky;
  top: 168px;
  align-self: start;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--gold);
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.about-content p {
  font-size: 16px;
  line-height: 1.88;
  color: var(--text-mid);
  margin-bottom: 20px;
}

.about-content h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--navy) !important;
  background: transparent !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 28px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
}

.about-content h2::before {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 18px;
  flex-shrink: 0;
}

.about-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  color: var(--gold-dark) !important;
  background: transparent !important;
  margin: 0 0 28px;
  letter-spacing: 0.02em;
}

/* usuwa inline background z bloków WP */
.about-content h2 mark,
.about-content h3 mark,
.about-content h2 span,
.about-content h3 span {
  background: transparent !important;
  color: inherit !important;
}

/* ============================================
   KONTAKT — formularz
   ============================================ */
.columns {
  display: flex;
  gap: 48px;
  margin-bottom: 64px;
  align-items: stretch;
}

.columns .col { flex: 1; }

.columns .col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.columns .col.form {
  font-family: 'Inter', sans-serif;
  padding: 48px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-md);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,112,0.14);
}

.form-textarea { min-height: 130px; resize: vertical; }

.wpcf7-acceptance {
  color: var(--text-muted);
  font-size: 13px;
}

.wpcf7-acceptance input {
  margin-right: 8px;
  accent-color: var(--gold);
}

.form-submit,
.wpcf7 input[type="submit"],
.wpcf7-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 10px;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.form-submit:hover,
.wpcf7 input[type="submit"]:hover,
.wpcf7-submit:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.wpcf7-not-valid {
  border-color: #DC2626 !important;
  background-color: #FEF2F2 !important;
}

.wpcf7-not-valid-tip {
  color: #DC2626;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.wpcf7-validation-errors,
.wpcf7-response-output.wpcf7-validation-errors {
  color: #DC2626;
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  padding: 12px 16px;
  margin-top: 14px;
  font-size: 14px;
}

.wpcf7-response-output {
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  padding: 14px 16px;
  margin-top: 14px;
  font-size: 14px;
}

.wpcf7-response-output[aria-hidden="true"] { display: none; }

.wpcf7-response-output.wpcf7-mail-sent-ok {
  color: #059669;
  background-color: #ECFDF5;
  border: 1px solid #A7F3D0;
}

/* IKONY KONTAKTU */
.contact-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.contact-icons .icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 28px;
  background: var(--white);
  border-top: 4px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.contact-icons .icon-col:hover {
  border-top-color: var(--gold);
  background: var(--bg-light);
}

.contact-icons .icon-col svg {
  height: 38px;
  width: 38px;
  margin-bottom: 20px;
}

.contact-icons .icon-col svg path {
  fill: var(--gold);
}

.contact-icons .icon-col h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-icons .icon-col p {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

.contact-icons .icon-col p.or {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 6px 0;
}

/* ============================================
   USŁUGI — lista serwisów
   ============================================ */
.service-boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
}

.service-box-link {
  display: block;
  text-decoration: none;
}

.service-box {
  background: var(--white);
  color: var(--navy);
  padding: 0 32px;
  display: flex;
  align-items: center;
  min-height: 76px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--border);
  border-left: 5px solid transparent;
  transition: background var(--transition), border-color var(--transition), padding-left var(--transition);
}

.service-box:first-of-type,
.service-boxes .service-box-link:first-child .service-box {
  border-top: 1px solid var(--border);
}

.service-box-link:hover .service-box {
  background: var(--bg-light);
  border-left-color: var(--gold);
  padding-left: 40px;
  cursor: pointer;
}

.service-box p {
  text-align: left;
  margin: 0;
}

/* ============================================
   POSTY / BLOG
   ============================================ */
.container-page .posts {
  display: flex;
  flex-direction: column;
}

.pagination-list {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  list-style: none !important;
  gap: 6px;
  margin-top: 40px;
}

.pagination-list li { color: var(--text-muted) !important; }

.pagination-list li a {
  color: inherit !important;
  padding: 7px 13px;
  border: 1px solid var(--border);
  display: block;
  font-size: 14px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.pagination-list li a:hover {
  background: var(--navy);
  color: var(--white) !important;
  border-color: var(--navy);
}

.pagination-list li.active {
  color: var(--navy) !important;
  font-weight: 700;
}

.post-small-box {
  background: var(--bg-light);
  padding: 20px 28px;
  color: var(--text-dark);
  margin-bottom: 2px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  border-left: 5px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.post-small-box ul {
  display: flex;
  list-style: none !important;
  margin: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.post-small-box ul li {
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  color: var(--text-muted);
}

.container-page a { text-decoration: none !important; }

.post-small-box:hover {
  background: var(--white);
  border-left-color: var(--gold);
}

/* ============================================
   GUTENBERG CONTENT
   ============================================ */
.alignleft  { float: left;  margin-right: 24px; }
.alignright { float: right; margin-left: 24px;  }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.wp-block-columns {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.wp-block-column { flex: 1; }

/* ============================================
   FOCUS STYLES
   ============================================ */
:where(.wp-site-blocks *:focus) {
  outline-width: 2px;
  outline-style: solid;
  outline-color: var(--gold);
}

.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
  margin-bottom: 3px;
}

.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
  outline-offset: 4px;
}

.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  outline-offset: 0;
}

/* ============================================
   RESPONSIVE — 1200px
   ============================================ */
@media (max-width: 1200px) {
  .banner .slogan h2 { font-size: 44px; }
  .legal-services { gap: 56px; }
  .motivation h5 { font-size: 38px; }
  .motivation a { font-size: 28px; }
}

/* ============================================
   RESPONSIVE — 1180px
   ============================================ */
@media (max-width: 1180px) {
  .motivation {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }
}

/* ============================================
   RESPONSIVE — 992px (tablet)
   ============================================ */
@media (max-width: 992px) {
  .header-phone { display: none; }
  .header-contact-info { display: none; } /* chowamy dane kontaktowe na mobile */

  .header-logo-inner { height: 72px; }

  /* Na mobile: logo po lewej, hamburger po prawej */
  .logo-mobile-container {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }

  .logo img { height: 54px; }

  .mobile-button { display: inline-block; }
  #myLinks { display: none; }

  .header-nav-bar { background: var(--charcoal); }
  .header-nav-bar::after { display: none; }

  .header-nav-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 0;
  }

  .mobile-container {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .menu li a {
    height: auto;
    line-height: 1.4;
    padding: 13px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    background: var(--charcoal);
    text-align: center;
    justify-content: center;
  }

  .menu li:first-child a { border-left: none; }

  .menu li a:hover,
  .menu li.current-menu-item a {
    background: var(--gold);
    color: var(--navy);
  }

  /* header: 72px logo + 52px nav = 124px */
  .banner-container { margin-top: 124px; }
  .container-page { padding-top: 164px !important; }
  .page-hero { margin-top: 124px; }

  .banner {
    flex-direction: column;
    align-items: stretch;
    background:
      linear-gradient(rgba(13,27,42,0.72) 0%, rgba(13,27,42,0.78) 100%),
      url('./../images/banner.png') no-repeat left center;
    background-size: cover;
  }

  .banner .image { display: none; }

  .banner .slogan {
    width: 100%;
    border-left: none;
    border-top: 4px solid var(--gold);
    padding: 48px 32px;
  }

  .banner .slogan h2 { font-size: 38px; }
}

/* ============================================
   RESPONSIVE — 920px
   ============================================ */
@media (max-width: 920px) {
  .specialisation .specialisations {
    grid-template-columns: 1fr;
  }

  .legal-services {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-services img {
    width: 100%;
    max-width: 460px;
  }

  .columns {
    flex-direction: column;
    gap: 32px;
  }

  .contact-icons {
    grid-template-columns: 1fr;
  }

  .contact-icons .icon-col {
    border-top: none;
    border-left: 4px solid transparent;
  }

  .contact-icons .icon-col:hover {
    border-top-color: transparent;
    border-left-color: var(--gold);
  }
}

/* ============================================
   RESPONSIVE — 768px (mobile)
   ============================================ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .about-page { padding: 40px 0 60px; }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-image {
    position: static;
    width: 100%;
  }
  .about-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    object-position: top;
  }
  .topbar-inner { padding: 0 20px; }

  .topbar { display: none; }
  .header-container { top: 0; }
  .banner-container { margin-top: 72px; }
  .container-page { padding-top: 96px !important; }
  .page-hero { margin-top: 72px; }

  .banner { min-height: auto; }

  .banner .slogan {
    width: 100%;
    padding: 40px 20px;
    border-left: none;
    border-top: 4px solid var(--gold);
  }

  .banner .slogan h2 { font-size: 32px; }
  .banner .slogan p { font-size: 14px; }
  .action-button { padding: 13px 28px; font-size: 11px; }

  .specialisation { padding: 64px 20px; }
  .specialisation h4 { font-size: 32px; }

  .motivation-container { padding: 56px 20px; }
  .motivation h5 { font-size: 28px; }
  .motivation a { font-size: 22px; padding: 14px 28px; }

  .legal-services-container { padding: 64px 20px; }
  .legal-services h2 { font-size: 32px; }

  .footer { flex-direction: column; gap: 32px; }
  .footer-logo { margin-right: 0; margin-top: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer .contact .mobile-block { display: block; }

  .mobile-block { display: block; }

  .columns .col.form { padding: 32px 24px; }

  .service-boxes { padding: 0; }
  .service-box { font-size: 19px; }

  .mobile-map { padding-bottom: 140% !important; }

  .container-page h1 { font-size: 34px; }
}

/* ============================================
   RESPONSIVE — 480px
   ============================================ */
@media (max-width: 480px) {
  .banner .slogan h2 { font-size: 26px; }
  .specialisation .specialisations .box { padding: 28px 20px; }
  .contact-icons .icon-col { padding: 36px 20px; }
}
