/*
Theme Name: Kancelaria Sugier
Theme URI: https://kancelariasugier.pl
Author: Kancelaria Radcy Prawnego Piotr Sugier
Description: Lekki, responsywny motyw kancelarii – granatowy system wizualny, 6 filarów praktyki, wysoka czytelność i konwersja.
Version: 1.0.0
Text Domain: kancelariasugier
*/

/* =========================================================
   1. TOKENS / DESIGN SYSTEM
   ========================================================= */

:root {
  --ks-navy-950: #081321;
  --ks-navy-900: #0E1B2E;
  --ks-navy-800: #142A47;
  --ks-navy-700: #17345C;
  --ks-blue-600: #245B91;
  --ks-blue-500: #2E6CA7;

  --ks-gold-500: #B79A72;
  --ks-gold-400: #C9B18F;
  --ks-gold-100: #F1E9DE;

  --ks-white: #FFFFFF;
  --ks-bg: #F7F9FC;
  --ks-bg-warm: #F7F3EE;
  --ks-surface: #FFFFFF;

  --ks-ink: #111827;
  --ks-text: #334155;
  --ks-muted: #667085;
  --ks-soft-text: #8B95A5;

  --ks-line: #E5EAF0;
  --ks-line-strong: #CBD5E1;

  --ks-success: #1D7A53;
  --ks-danger: #B42318;

  --ks-shadow-sm: 0 6px 20px rgba(14, 27, 46, 0.06);
  --ks-shadow-md: 0 18px 48px rgba(14, 27, 46, 0.10);
  --ks-shadow-lg: 0 30px 80px rgba(14, 27, 46, 0.16);

  --ks-radius-sm: 10px;
  --ks-radius-md: 16px;
  --ks-radius-lg: 24px;
  --ks-radius-xl: 32px;
  --ks-radius-pill: 999px;

  --ks-container: 1180px;
  --ks-gutter: 24px;

  --ks-font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ks-font-serif: Georgia, "Times New Roman", serif;

  --ks-transition: 180ms ease;
}

/* =========================================================
   2. RESET / BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  font-family: var(--ks-font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ks-ink);
  background: var(--ks-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--ks-gold-100);
  color: var(--ks-navy-900);
}

/* =========================================================
   3. ACCESSIBILITY
   ========================================================= */

:focus-visible {
  outline: 3px solid rgba(36, 91, 145, 0.30);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 99999;
  padding: 10px 14px;
  background: var(--ks-white);
  color: var(--ks-navy-900);
  border-radius: var(--ks-radius-sm);
  box-shadow: var(--ks-shadow-md);
  transform: translateY(-150%);
  transition: transform var(--ks-transition);
}

.skip-link:focus {
  transform: translateY(0);
}

/* =========================================================
   4. LAYOUT HELPERS
   ========================================================= */

.ks-container,
.site-width,
.wrap {
  width: min(100% - (2 * var(--ks-gutter)), var(--ks-container));
  margin-inline: auto;
}

.ks-section {
  padding: 88px 0;
}

.ks-section--compact {
  padding: 58px 0;
}

.ks-section--soft {
  background: var(--ks-bg);
}

.ks-section--warm {
  background: var(--ks-bg-warm);
}

.ks-section--navy {
  color: var(--ks-white);
  background:
    radial-gradient(circle at 85% 15%, rgba(183, 154, 114, 0.16), transparent 30%),
    linear-gradient(135deg, var(--ks-navy-900), var(--ks-navy-700));
}

.ks-grid {
  display: grid;
  gap: 24px;
}

.ks-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ks-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ks-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ks-stack > * + * {
  margin-top: 18px;
}

/* =========================================================
   5. TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--ks-navy-900);
  line-height: 1.15;
}

h1,
h2 {
  font-family: var(--ks-font-serif);
  font-weight: 500;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
}

h2 {
  font-size: clamp(34px, 4vw, 52px);
}

h3 {
  font-size: 22px;
  font-weight: 750;
}

h4 {
  font-size: 18px;
  font-weight: 750;
}

p {
  margin: 0 0 1em;
  color: var(--ks-text);
}

.ks-lead {
  max-width: 760px;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: #4B5A6D;
}

.ks-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #8A6842;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ks-eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--ks-gold-500);
}

.ks-section--navy .ks-eyebrow {
  color: var(--ks-gold-400);
}

.ks-section--navy h1,
.ks-section--navy h2,
.ks-section--navy h3,
.ks-section--navy h4 {
  color: var(--ks-white);
}

.ks-section--navy p,
.ks-section--navy .ks-lead {
  color: #C8D1DC;
}

.ks-section-head {
  max-width: 800px;
  margin-bottom: 38px;
}

.ks-section-head h2 + p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ks-muted);
}

/* =========================================================
   6. BUTTONS
   ========================================================= */

.ks-btn,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: var(--ks-radius-pill);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  transition:
    background-color var(--ks-transition),
    color var(--ks-transition),
    border-color var(--ks-transition),
    transform var(--ks-transition),
    box-shadow var(--ks-transition);
}

.ks-btn:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

.ks-btn--primary,
.wp-block-button:not(.is-style-outline) .wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  background: var(--ks-navy-700);
  color: var(--ks-white);
  box-shadow: 0 8px 20px rgba(23, 52, 92, 0.12);
}

.ks-btn--primary:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--ks-blue-600);
  box-shadow: 0 12px 28px rgba(23, 52, 92, 0.16);
}

.ks-btn--secondary,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: var(--ks-white);
  color: var(--ks-navy-900);
  border-color: var(--ks-line-strong);
}

.ks-btn--secondary:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--ks-navy-700);
}

.ks-btn--light {
  background: var(--ks-white);
  color: var(--ks-navy-900);
}

.ks-btn--gold {
  background: var(--ks-gold-500);
  color: var(--ks-navy-950);
}

.ks-btn--full {
  width: 100%;
}

/* =========================================================
   7. TOPBAR + HEADER
   ========================================================= */

.ks-topbar {
  background: var(--ks-navy-900);
  color: #D7DFE9;
  font-size: 13px;
}

.ks-topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ks-topbar__left,
.ks-topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ks-topbar a {
  color: var(--ks-white);
}

.ks-topbar a:hover {
  color: var(--ks-gold-400);
}

.ks-meta-dot::before {
  content: "•";
  margin-right: 8px;
  color: var(--ks-gold-500);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 234, 240, 0.95);
}

.ks-header__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.custom-logo-link,
.ks-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.custom-logo {
  width: auto;
  max-height: 58px;
}

.ks-logo__placeholder {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #D8DDE5;
  border-radius: 14px;
  background: var(--ks-bg);
  color: var(--ks-navy-900);
  font-family: var(--ks-font-serif);
  font-size: 22px;
  font-weight: 700;
}

.ks-logo__text strong {
  display: block;
  color: var(--ks-navy-900);
  font-size: 16px;
  letter-spacing: 0.03em;
}

.ks-logo__text span {
  display: block;
  margin-top: 3px;
  color: var(--ks-muted);
  font-size: 12px;
}

.ks-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 750;
}

.ks-nav > li {
  position: relative;
  list-style: none;
}

.ks-nav > li > a {
  position: relative;
  display: block;
  padding: 30px 0;
  color: var(--ks-navy-900);
}

.ks-nav > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 22px;
  width: 0;
  height: 2px;
  background: var(--ks-gold-500);
  transition: width var(--ks-transition);
}

.ks-nav > li:hover > a,
.ks-nav > li.current-menu-item > a,
.ks-nav > li.current-menu-ancestor > a {
  color: var(--ks-blue-600);
}

.ks-nav > li:hover > a::after,
.ks-nav > li.current-menu-item > a::after,
.ks-nav > li.current-menu-ancestor > a::after {
  width: 100%;
}

.ks-header__cta {
  flex: 0 0 auto;
}

/* Mega menu */
.ks-mega-menu,
.ks-nav .sub-menu {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  width: min(700px, 90vw);
  margin: 0;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 10px);
  list-style: none;
  background: var(--ks-white);
  border: 1px solid var(--ks-line);
  border-radius: 18px;
  box-shadow: var(--ks-shadow-lg);
  transition:
    opacity var(--ks-transition),
    transform var(--ks-transition),
    visibility var(--ks-transition);
}

.ks-nav li:hover > .ks-mega-menu,
.ks-nav li:hover > .sub-menu,
.ks-nav li:focus-within > .ks-mega-menu,
.ks-nav li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.ks-mega-menu a,
.ks-nav .sub-menu a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--ks-navy-900);
}

.ks-mega-menu a:hover,
.ks-nav .sub-menu a:hover {
  background: var(--ks-bg);
}

.ks-mega-menu strong {
  display: block;
  font-size: 14px;
}

.ks-mega-menu span {
  display: block;
  margin-top: 4px;
  color: var(--ks-muted);
  font-size: 12px;
  line-height: 1.45;
}

.ks-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ks-line);
  border-radius: 12px;
  background: var(--ks-white);
  color: var(--ks-navy-900);
}

/* =========================================================
   8. HERO
   ========================================================= */

.ks-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 60px;
  color: var(--ks-white);
  background:
    radial-gradient(circle at 82% 18%, rgba(183, 154, 114, 0.18), transparent 28%),
    radial-gradient(circle at 65% 82%, rgba(36, 91, 145, 0.22), transparent 32%),
    linear-gradient(135deg, var(--ks-navy-950), var(--ks-navy-700));
}

.ks-hero::after {
  content: "";
  position: absolute;
  inset: auto -100px -180px auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ks-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 54px;
  align-items: center;
}

.ks-hero h1 {
  color: var(--ks-white);
}

.ks-hero .ks-lead {
  color: #D6DEE9;
}

.ks-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ks-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 26px;
  color: #BAC5D3;
  font-size: 14px;
}

.ks-hero__trust span::before {
  content: "•";
  margin-right: 8px;
  color: var(--ks-gold-400);
}

.ks-portrait {
  position: relative;
  min-height: 600px;
}

.ks-portrait__frame {
  position: absolute;
  inset: 0 22px 0 0;
  overflow: hidden;
  border-radius: var(--ks-radius-xl);
  background:
    linear-gradient(145deg, #D8DEE7, #EEF1F5);
  box-shadow: var(--ks-shadow-lg);
}

.ks-portrait__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.ks-portrait__placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 40px;
  color: #5D6979;
  text-align: center;
}

.ks-portrait__caption {
  position: absolute;
  left: 0;
  bottom: 28px;
  z-index: 2;
  max-width: 310px;
  padding: 18px 20px;
  background: var(--ks-white);
  color: var(--ks-navy-900);
  border: 1px solid var(--ks-line);
  border-radius: 18px;
  box-shadow: var(--ks-shadow-md);
}

.ks-portrait__caption strong {
  display: block;
  font-size: 18px;
}

.ks-portrait__caption span {
  display: block;
  margin-top: 4px;
  color: var(--ks-muted);
  font-size: 13px;
}

/* =========================================================
   9. TRUST STATS
   ========================================================= */

.ks-stats {
  border-bottom: 1px solid var(--ks-line);
  background: var(--ks-white);
}

.ks-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ks-stat {
  padding: 26px 18px;
  border-right: 1px solid var(--ks-line);
}

.ks-stat:last-child {
  border-right: 0;
}

.ks-stat strong {
  display: block;
  color: var(--ks-navy-900);
  font-size: 19px;
}

.ks-stat span {
  display: block;
  margin-top: 3px;
  color: var(--ks-muted);
  font-size: 13px;
}

/* =========================================================
   10. PRACTICE CARDS – 6 FILARÓW
   ========================================================= */

.ks-practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ks-practice-card {
  position: relative;
  min-height: 250px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: var(--ks-white);
  border: 1px solid var(--ks-line);
  border-radius: var(--ks-radius-lg);
  overflow: hidden;
  transition:
    transform var(--ks-transition),
    box-shadow var(--ks-transition),
    border-color var(--ks-transition);
}

.ks-practice-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(183, 154, 114, 0.18);
  border-radius: 50%;
}

.ks-practice-card:hover {
  transform: translateY(-4px);
  border-color: #CFD8E3;
  box-shadow: var(--ks-shadow-md);
}

.ks-practice-card__number {
  color: #8A6842;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.ks-practice-card h3 {
  margin-top: 18px;
  margin-bottom: 10px;
  line-height: 1.28;
}

.ks-practice-card p {
  margin-bottom: 22px;
  color: var(--ks-muted);
  font-size: 15px;
}

.ks-practice-card__link {
  margin-top: auto;
  color: var(--ks-navy-700);
  font-size: 14px;
  font-weight: 800;
}

.ks-practice-card:hover .ks-practice-card__link {
  color: var(--ks-blue-600);
}

/* =========================================================
   11. FEATURE / PRACTICE DETAIL SECTIONS
   ========================================================= */

.ks-feature {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.ks-feature__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ks-feature-box {
  padding: 20px;
  border: 1px solid var(--ks-line);
  border-radius: 18px;
  background: var(--ks-white);
}

.ks-section--navy .ks-feature-box {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
}

.ks-feature-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ks-navy-900);
}

.ks-section--navy .ks-feature-box strong {
  color: var(--ks-white);
}

.ks-feature-box span {
  display: block;
  color: var(--ks-muted);
  font-size: 14px;
}

.ks-section--navy .ks-feature-box span {
  color: #C4CEDB;
}

/* =========================================================
   12. PROCESS
   ========================================================= */

.ks-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ks-process-step {
  padding-top: 18px;
  border-top: 2px solid var(--ks-navy-900);
}

.ks-process-step__number {
  color: #8A6842;
  font-size: 13px;
  font-weight: 800;
}

.ks-process-step h3 {
  margin-top: 12px;
  margin-bottom: 8px;
  font-size: 18px;
}

.ks-process-step p {
  color: var(--ks-muted);
  font-size: 14px;
}

/* =========================================================
   13. TRUST / WHY US
   ========================================================= */

.ks-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ks-trust-box {
  padding: 25px;
  background: var(--ks-white);
  border: 1px solid var(--ks-line);
  border-radius: 18px;
}

.ks-trust-box h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.ks-trust-box p {
  margin-bottom: 0;
  color: var(--ks-muted);
}

/* =========================================================
   14. TEAM / PROFILE
   ========================================================= */

.ks-profile {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: center;
}

.ks-profile__image {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--ks-line);
  border-radius: 28px;
  background: #E8EDF3;
}

.ks-profile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ks-profile__quote {
  margin: 0 0 24px;
  font-family: var(--ks-font-serif);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.35;
  color: var(--ks-navy-900);
}

/* =========================================================
   15. REVIEWS
   ========================================================= */

.ks-reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ks-review {
  padding: 24px;
  background: var(--ks-white);
  border: 1px solid var(--ks-line);
  border-radius: 20px;
}

.ks-review__stars {
  margin-bottom: 14px;
  color: #9A7448;
  letter-spacing: 0.15em;
}

.ks-review p {
  color: #374151;
}

.ks-review__source {
  color: var(--ks-muted);
  font-size: 12px;
}

/* =========================================================
   16. KNOWLEDGE / BLOG CARDS
   ========================================================= */

.ks-articles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ks-article-card {
  padding: 24px;
  background: var(--ks-white);
  border: 1px solid var(--ks-line);
  border-radius: 18px;
  transition:
    transform var(--ks-transition),
    box-shadow var(--ks-transition);
}

.ks-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ks-shadow-sm);
}

.ks-article-card__category {
  color: #8A6842;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.ks-article-card h3 {
  margin: 10px 0;
  font-size: 19px;
}

.ks-article-card p {
  color: var(--ks-muted);
  font-size: 14px;
}

/* =========================================================
   17. FORMS
   ========================================================= */

.ks-contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}

.ks-form,
.wpcf7 form,
.wpforms-container form {
  padding: 28px;
  background: var(--ks-white);
  border: 1px solid var(--ks-line);
  border-radius: var(--ks-radius-lg);
  box-shadow: var(--ks-shadow-sm);
}

.ks-form label,
.wpcf7 label,
.wpforms-field-label {
  display: block;
  margin: 15px 0 7px;
  color: var(--ks-navy-900);
  font-size: 13px;
  font-weight: 800;
}

.ks-form input,
.ks-form select,
.ks-form textarea,
.wpcf7 input:not([type="submit"]),
.wpcf7 select,
.wpcf7 textarea,
.wpforms-container input:not([type="submit"]),
.wpforms-container select,
.wpforms-container textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ks-ink);
  background: var(--ks-white);
  border: 1px solid #CBD3DE;
  border-radius: 12px;
  transition:
    border-color var(--ks-transition),
    box-shadow var(--ks-transition);
}

.ks-form input:focus,
.ks-form select:focus,
.ks-form textarea:focus,
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus,
.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
  outline: none;
  border-color: var(--ks-blue-600);
  box-shadow: 0 0 0 3px rgba(36, 91, 145, 0.12);
}

.ks-form textarea,
.wpcf7 textarea,
.wpforms-container textarea {
  min-height: 135px;
  resize: vertical;
}

.ks-form-note {
  margin-top: 12px;
  color: var(--ks-muted);
  font-size: 12px;
}

/* =========================================================
   18. PAGE HERO / SUBPAGES
   ========================================================= */

.ks-page-hero {
  padding: 68px 0;
  color: var(--ks-white);
  background:
    radial-gradient(circle at 80% 20%, rgba(183, 154, 114, 0.16), transparent 28%),
    linear-gradient(135deg, var(--ks-navy-950), var(--ks-navy-700));
}

.ks-page-hero h1 {
  max-width: 900px;
  color: var(--ks-white);
}

.ks-page-hero p {
  max-width: 760px;
  margin-top: 18px;
  color: #D0D9E4;
  font-size: 19px;
}

/* =========================================================
   19. WORDPRESS CONTENT / ARTICLE
   ========================================================= */

.entry-content,
.ks-content {
  max-width: 820px;
  margin-inline: auto;
}

.entry-content > * + *,
.ks-content > * + * {
  margin-top: 1.25em;
}

.entry-content h2,
.ks-content h2 {
  margin-top: 2.1em;
  font-size: clamp(30px, 3.2vw, 40px);
}

.entry-content h3,
.ks-content h3 {
  margin-top: 1.8em;
}

.entry-content a,
.ks-content a {
  color: var(--ks-blue-600);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol,
.ks-content ul,
.ks-content ol {
  padding-left: 1.4em;
}

.entry-content blockquote,
.ks-content blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  border-left: 4px solid var(--ks-gold-500);
  background: var(--ks-bg-warm);
  border-radius: 0 14px 14px 0;
  color: var(--ks-navy-900);
  font-family: var(--ks-font-serif);
  font-size: 20px;
}

.entry-content table,
.ks-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td,
.ks-content th,
.ks-content td {
  padding: 12px 14px;
  border: 1px solid var(--ks-line);
  text-align: left;
}

.entry-content th,
.ks-content th {
  background: var(--ks-bg);
  color: var(--ks-navy-900);
}

/* Gutenberg */
.wp-block-image img {
  border-radius: 18px;
}

.wp-block-separator {
  border-color: var(--ks-line);
}

.wp-block-pullquote {
  border-top: 3px solid var(--ks-gold-500);
  border-bottom: 3px solid var(--ks-gold-500);
}

/* =========================================================
   20. CTA BAND
   ========================================================= */

.ks-cta-band {
  padding: 36px 0;
  color: var(--ks-white);
  background: var(--ks-navy-700);
}

.ks-cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ks-cta-band h3 {
  color: var(--ks-white);
}

.ks-cta-band p {
  margin: 4px 0 0;
  color: #D3DBE6;
}

/* =========================================================
   21. FOOTER
   ========================================================= */

.site-footer {
  padding: 52px 0 28px;
  color: #D4DCE6;
  background: var(--ks-navy-950);
}

.ks-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}

.site-footer h4 {
  margin-bottom: 12px;
  color: var(--ks-white);
}

.site-footer p,
.site-footer a {
  color: #AEB9C7;
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--ks-white);
}

.ks-footer-legal {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #223047;
  color: #8290A2;
  font-size: 12px;
}

/* =========================================================
   22. MOBILE CONTACT BAR
   ========================================================= */

.ks-mobile-contact {
  display: none;
}

/* =========================================================
   23. UTILITIES
   ========================================================= */

.ks-text-center {
  text-align: center;
}

.ks-text-muted {
  color: var(--ks-muted);
}

.ks-mt-0 {
  margin-top: 0 !important;
}

.ks-mb-0 {
  margin-bottom: 0 !important;
}

.ks-hidden {
  display: none !important;
}

/* =========================================================
   24. RESPONSIVE
   ========================================================= */

@media (max-width: 1080px) {
  .ks-nav {
    gap: 20px;
  }

  .ks-logo__text {
    display: none;
  }
}

@media (max-width: 980px) {
  :root {
    --ks-gutter: 20px;
  }

  .ks-topbar {
    display: none;
  }

  .ks-nav,
  .ks-header__cta {
    display: none;
  }

  .ks-mobile-toggle {
    display: inline-flex;
  }

  .ks-header__inner {
    min-height: 72px;
  }

  .custom-logo {
    max-height: 50px;
  }

  .ks-hero__grid,
  .ks-feature,
  .ks-profile,
  .ks-contact-grid {
    grid-template-columns: 1fr;
  }

  .ks-portrait {
    min-height: 520px;
  }

  .ks-practice-grid,
  .ks-reviews,
  .ks-articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ks-process,
  .ks-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ks-stat:nth-child(2) {
    border-right: 0;
  }

  .ks-stat:nth-child(-n+2) {
    border-bottom: 1px solid var(--ks-line);
  }

  .ks-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --ks-gutter: 18px;
  }

  html {
    scroll-padding-top: 84px;
  }

  body {
    padding-bottom: 74px;
  }

  .ks-section {
    padding: 62px 0;
  }

  .ks-section--compact {
    padding: 46px 0;
  }

  h1 {
    font-size: clamp(42px, 12vw, 52px);
  }

  h2 {
    font-size: clamp(32px, 9vw, 40px);
  }

  .ks-hero {
    padding: 50px 0 38px;
  }

  .ks-hero__grid {
    gap: 34px;
  }

  .ks-hero__actions {
    align-items: stretch;
  }

  .ks-hero__actions .ks-btn {
    flex: 1 1 auto;
  }

  .ks-hero__trust {
    gap: 12px;
    flex-direction: column;
  }

  .ks-portrait {
    min-height: 470px;
  }

  .ks-portrait__frame {
    inset: 0;
  }

  .ks-portrait__caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
  }

  .ks-practice-grid,
  .ks-feature__items,
  .ks-reviews,
  .ks-articles,
  .ks-process,
  .ks-trust-grid,
  .ks-stats__grid,
  .ks-footer-grid,
  .ks-grid--2,
  .ks-grid--3,
  .ks-grid--4 {
    grid-template-columns: 1fr;
  }

  .ks-stat {
    border-right: 0;
    border-bottom: 1px solid var(--ks-line);
  }

  .ks-stat:last-child {
    border-bottom: 0;
  }

  .ks-cta-band__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .ks-mobile-contact {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    gap: 8px;
    padding: 9px 12px;
    background: var(--ks-white);
    border-top: 1px solid var(--ks-line);
  }

  .ks-mobile-contact a {
    flex: 1;
  }

  .entry-content,
  .ks-content {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}


/* =========================================================
   26. COLLABORATORS
   ========================================================= */

.ks-collaborators {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ks-collaborator-card {
  overflow: hidden;
  background: var(--ks-white);
  border: 1px solid var(--ks-line);
  border-radius: var(--ks-radius-lg);
  box-shadow: var(--ks-shadow-sm);
}

.ks-collaborator-card__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #E8EDF3;
}

.ks-collaborator-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.ks-collaborator-card__body {
  padding: 22px;
}

.ks-collaborator-card h3 {
  margin-bottom: 4px;
  font-size: 21px;
}

.ks-collaborator-card__title {
  display: block;
  color: var(--ks-muted);
  font-size: 14px;
}

.ks-collaborator-card__cooperation {
  margin-top: 14px;
  color: var(--ks-navy-700);
  font-size: 13px;
  font-weight: 800;
}

.ks-collaborator-card__description {
  margin-top: 12px;
  margin-bottom: 0;
  color: var(--ks-muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .ks-collaborators {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .ks-collaborators {
    grid-template-columns: 1fr;
  }
}

/* FIX: desktop mega menu descriptions */
@media (min-width: 981px) {
  .ks-nav .sub-menu {
    width: 760px;
    padding: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ks-nav .sub-menu li {
    margin: 0;
  }

  .ks-nav .sub-menu li > a {
    min-height: 84px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    line-height: 1.25;
    white-space: normal;
  }

  .ks-nav .sub-menu li > a strong {
    display: block;
    margin: 0;
    color: var(--ks-navy-900);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
  }

  .ks-nav .sub-menu .ks-menu-description {
    display: block;
    margin: 2px 0 0;
    color: var(--ks-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
  }

  .ks-nav .sub-menu li > a:hover .ks-menu-description {
    color: #536174;
  }
}


/* Mapa Google w sekcji kontaktowej */
.ks-contact-map {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--ks-line);
  border-radius: var(--ks-radius-lg);
  box-shadow: var(--ks-shadow-sm);
  background: var(--ks-white);
}

.ks-contact-map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

@media (max-width: 720px) {
  .ks-contact-map iframe {
    height: 260px;
  }
}

/* Aktywna kategoria na stronie Wiedza */
.ks-practice-card--active {
  border-color: var(--ks-blue-600);
  box-shadow: 0 0 0 2px rgba(36, 91, 145, 0.10), var(--ks-shadow-md);
  background: #F8FBFF;
}

.ks-practice-card--active .ks-practice-card__number,
.ks-practice-card--active .ks-practice-card__link {
  color: var(--ks-blue-600);
}
