/* ==========================================================================
   LTCA Theme – Main Stylesheet
   Pixel-perfect recreation of ltca.pl layout
   Light (default) & Dark theme support
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */

:root {
  /* Typography */
  --font-primary: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.8125rem;  /* 13px */
  --font-size-base: 0.9375rem;/* 15px */
  --font-size-md: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.5rem;     /* 24px */
  --font-size-2xl: 2rem;      /* 32px */
  --font-size-3xl: 2.5rem;    /* 40px */
  --font-size-4xl: 3.5rem;    /* 56px */
  --font-size-5xl: 5rem;      /* 80px */

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1280px;
  --container-padding: 2rem;
  --header-height: 72px;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-theme: 400ms ease;
}

/* --------------------------------------------------------------------------
   Dark Theme
   -------------------------------------------------------------------------- */

[data-theme="dark"] {
  --color-bg: #060611;
  --color-bg-secondary: #0a0a1f;
  --color-bg-tertiary: #0f0f2a;
  --color-bg-card: rgba(255, 255, 255, 0.03);
  --color-bg-card-hover: rgba(255, 255, 255, 0.06);

  --color-text: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: rgba(255, 255, 255, 0.45);

  --color-accent: #3a4fd7;
  --color-accent-hover: #4a5fe7;
  --color-accent-light: rgba(58, 79, 215, 0.15);

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);

  --color-surface: rgba(255, 255, 255, 0.04);
  --color-surface-hover: rgba(255, 255, 255, 0.08);

  --color-map: rgba(255, 255, 255, 0.2);
  --color-map-hover: rgba(255, 255, 255, 0.4);

  --color-header-bg: rgba(6, 6, 17, 0.85);

  --hero-gradient: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(58, 79, 215, 0.12) 0%, transparent 70%);

  --glow-color: rgba(58, 79, 215, 0.3);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   Light Theme (Default)
   -------------------------------------------------------------------------- */

[data-theme="light"] {
  --color-bg: #ffffff;
  --color-bg-secondary: #f7f7fb;
  --color-bg-tertiary: #eff0f8;
  --color-bg-card: rgba(0, 0, 0, 0.02);
  --color-bg-card-hover: rgba(0, 0, 0, 0.04);

  --color-text: #101035;
  --color-text-secondary: rgba(16, 16, 53, 0.7);
  --color-text-muted: rgba(16, 16, 53, 0.45);

  --color-accent: #2B47D6;
  --color-accent-hover: #1e2b99;
  --color-accent-light: rgba(43, 71, 214, 0.08);

  --color-border: rgba(16, 16, 53, 0.1);
  --color-border-hover: rgba(16, 16, 53, 0.2);

  --color-surface: rgba(16, 16, 53, 0.03);
  --color-surface-hover: rgba(16, 16, 53, 0.06);

  --color-map: rgba(16, 16, 53, 0.3);
  --color-map-hover: rgba(16, 16, 53, 0.6);

  --color-header-bg: rgba(255, 255, 255, 0.9);

  --hero-gradient: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(43, 71, 214, 0.06) 0%, transparent 70%);

  --glow-color: rgba(43, 71, 214, 0.15);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-optical-sizing: auto;
  font-variation-settings: "wdth" 125;
  font-stretch: expanded;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color var(--transition-theme), color var(--transition-theme);
  overflow-x: clip;
  max-width: 100vw;
}

.site-main {
  overflow-x: clip;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   Utility: Container
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* --------------------------------------------------------------------------
   Utility: Buttons  (two canonical types: --action and --link)
   -------------------------------------------------------------------------- */


.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1.75rem !important;
  font-size: var(--font-size-sm) !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  border-radius: var(--radius-md) !important;
  transition: all var(--transition-base) !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  font-family: inherit !important;
  text-decoration: none !important;
  border: none !important;
}

/* ---- Type 1: Action button (navigate / submit / dropdown) ---- */
.btn--primary {
  background: linear-gradient(180deg, #2E2D2F 0%, #161517 100%) !important;
  color: #ffffff !important;
  border: 1px solid transparent !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 0 !important;
  border-top: 1px solid #3b3b3b !important;
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

.btn--primary:hover::after {
  opacity: 1;
}
.btn--link svg,
.btn--outline svg,
.btn--primary svg {
  transition: all var(--transition-base);
}
.btn--link:hover svg,
.btn--outline:hover svg,
.btn--primary:hover svg {
  transform: translateX(5px);
}

.btn--primary:hover {
  color: #ffffff !important;
  /* box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25) !important; */
  border-top: 1px solid #545454 !important;
}

[data-theme="light"] .btn--primary {
  background: linear-gradient(180deg, #273DDE 0%, #211CB7 100%) !important;
  border: 1px solid transparent !important;
}

[data-theme="light"] .btn--primary::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 100%);
}

[data-theme="light"] .btn--primary:hover {
  box-shadow: 0 4px 16px rgba(39, 61, 222, 0.30) !important;
}

/* Outline variant — same action style but with border visible by default */
.btn--outline {
  background: transparent;
  color: #D5D5D5;
  border: 1px solid rgba(255,255,255,0.25);
}

.btn--outline:hover {
  background: linear-gradient(180deg, #2E2D2F 0%, #161517 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .btn--outline {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

[data-theme="light"] .btn--outline:hover {
  background: linear-gradient(180deg, #273DDE 0%, #211CB7 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(39, 61, 222, 0.30);
}

/* ---- Type 2: Text-link button (expand / scroll / "see all") ---- */
.btn--link {
  background: none;
  border: none;
  padding: 0;
  color: #D5D5D5;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  font-size: var(--font-size-sm);
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-base);
}

.btn--link:hover {
  color: #ffffff;
}

[data-theme="light"] .btn--link {
  color: var(--color-accent);
}

[data-theme="light"] .btn--link:hover {
  color: #1e2b99;
}


/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: var(--space-5xl) 0;
  overflow: clip;
  transition: background-color var(--transition-theme);
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section__title {
  font-size: var(--font-size-3xl);
  font-weight: 500;
  margin-bottom: var(--space-3xl);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.section__title--left {
  text-align: left;
  font-weight: 200;
}

/* Global heading style: white in dark, accent in light, font-weight: 200 */
[data-theme="dark"] .section__title--center,
[data-theme="dark"] .section__title--left,
[data-theme="dark"] .page-title {
  color: #fff;
}

[data-theme="light"] .section__title--center,
[data-theme="light"] .section__title--left,
[data-theme="light"] .page-title {
  color: var(--color-accent);
}

.section__title--center {
  font-weight: 200;
}

/* Unified page-level heading (used on all standalone page templates) */
.page-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Legacy aliases — kept for backward compat but now use .page-title in templates */
.contact-page__title   { font-weight: 200; }
.contact-form-layout__title { font-weight: 200; }

.section__subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-top: calc(-1 * var(--space-2xl));
  margin-bottom: var(--space-3xl);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--color-header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-theme), border-color var(--transition-theme);
}

.site-header__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* ---- Logo ---- */

.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-header__logo:hover {
  opacity: 0.85;
}

.site-header__logo-img {
  height: 36px;
  width: auto;
  transition: filter var(--transition-theme);
}

/* In light mode, invert the white SVG logo to dark */
[data-theme="light"] .site-header__logo-img {
  filter: invert(1) brightness(0.15);
}

/* ---- Navigation ---- */

.site-header__nav {
  flex: 1;
  display: flex;
  justify-content: end;
}

.site-header__menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__menu-item {
  position: relative;
}

.site-header__menu-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.75rem;
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--color-text);
  transition: color var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  width: 100%;
}

.site-header__menu-link:hover,
.site-header__menu-item--has-children.is-open > .site-header__menu-link {
  color: var(--color-text);
}

/* Hover underline for all top-level menu items */
.site-header__menu-link {
  position: relative;
}

[data-theme="light"] .site-header__menu-link img {
  filter: invert(1);
}

.site-header__menu-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: var(--color-accent);
  border-radius: 1px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
[data-theme="dark"] .site-header__menu-link::after {
  background: var(--color-text);
}

.site-header__menu-link:hover::after,
.site-header__menu-item--has-children.is-open > .site-header__menu-link::after {
  opacity: 1;
}

/* Chevron rotation */
.site-header__chevron {
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.site-header__menu-item--has-children.is-open > .site-header__menu-link .site-header__chevron {
  transform: rotate(180deg);
}

/* Separator pipe before item — disabled */
.site-header__menu-item--sep {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ---- Hamburger ---- */

.site-header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.site-header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ---- Language Switcher ---- */

.lang-switch {
  position: relative;
  flex-shrink: 0;
}

.lang-switch__btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.6rem;
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  background: transparent;
}

.lang-switch__btn:hover {
  color: var(--color-text);
  border-color: var(--color-border-hover);
}

/* Hover underline on language switcher */
.lang-switch__btn {
  position: relative;
}

.lang-switch__btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.lang-switch__btn:hover::after,
.lang-switch.is-open .lang-switch__btn::after {
  opacity: 1;
}

.lang-switch__chevron {
  transition: transform var(--transition-fast);
}

.lang-switch.is-open .lang-switch__chevron {
  transform: rotate(180deg);
}

.lang-switch__flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-switch__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.35rem 0;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
  z-index: 1010;
}

.lang-switch.is-open .lang-switch__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switch__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.lang-switch__option:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.lang-switch__option--active {
  color: var(--color-text);
  font-weight: 500;
}

/* ---- Theme Toggle Switch ---- */

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-user-select: none;
  user-select: none;
}

.theme-toggle__icon {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

/* Highlight active icon: sun in light mode, moon in dark */
[data-theme="light"] .theme-toggle__icon--sun { color: var(--color-accent); }
[data-theme="dark"] .theme-toggle__icon--moon { color: var(--color-accent); }

.theme-toggle__track {
  position: relative;
  width: 36px;
  height: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base);
}

/* Dark mode → thumb on the right (moon side) */
[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(16px);
}

/* ---- Mega-Menu Panels ---- */

.mega-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-25px);
  transition: all var(--transition-base);
  z-index: 999;
  padding: var(--space-2xl) 0;
}

.site-header__menu-item--has-children.is-open > .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

.mega-menu__grid {
  display: grid;
  gap: var(--space-md);
  justify-content: center;
}

/* "O nas" – 4 columns */
.mega-menu--about .mega-menu__grid {
  grid-template-columns: repeat(4, 1fr);
}

/* "Usługi" – 3 columns */
.mega-menu--services .mega-menu__grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Individual mega-menu card */
.mega-menu__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  text-decoration: none;
}

.mega-menu__item:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.mega-menu__item-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
}

.mega-menu__arrow {
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition-fast);
}

.mega-menu__item:hover .mega-menu__arrow {
  opacity: 1;
  transform: translateX(0);
}

.mega-menu__item-desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ---- Fixed Social Sidebar ---- */

.social-fixed {
  position: fixed;
  right: 1.25rem;
  bottom: 30px;
  /* transform: translateY(-50%); */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 900;
}

.social-fixed__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.social-fixed__link:hover {
  color: var(--color-text);
  background: var(--color-surface-hover);
  border-color: var(--color-border-hover);
  transform: scale(1.1);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
  overflow: visible;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  max-height: clamp(380px, 46vw, 589px);
}

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
}

.hero__person-calendar{
  margin-top: 1rem;
  font-size: 10px !important;
}

/* ==========================================================================
   PAGE-LEVEL GLOWS – generated by JS, positioned every ~700px
   alternating left/right through entire body
   ========================================================================== */

/* Container for glow elements (injected by JS) */
.page-glows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: clip;
}

.page-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transition: all 2s ease;
  opacity: 0;
}
.page-glow--left {
  left: -15%;
  margin-left: -50%;
  /* animation: pageGlowPulseleft 30s ease-in-out infinite; */
}

@keyframes pageGlowPulseleft {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.7) translateX(30%);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05) translateX(-10%);
  }
}

.page-glow--right {
  right: -15%; 
  margin-right:-50%;
  /* animation: pageGlowPulseright 20s ease-in-out infinite; */
}

@keyframes pageGlowPulseright {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.7) translateX(10%);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2) translateX(-30%);
  }
}


/* Hero still keeps its own glow */
.hero::after {
  content: '';
  position: absolute;
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  top: -5%;
  right: -15%;
}

/* Remove section::after — glows are now body-wide via .page-glow */
.section::after {
  display: none;
}

/* Dark theme glows */
[data-theme="dark"] .hero::after {
  background: radial-gradient(ellipse at center, rgba(58, 79, 215, 0.35) 0%, rgba(58, 79, 215, 0.12) 40%, transparent 70%);
}

[data-theme="dark"] .page-glow {
  background: radial-gradient(ellipse at center, rgba(58, 79, 215, 0.38) 0%, rgba(58, 79, 215, 0.06) 40%, transparent 70%);
}

/* Light theme glows */
[data-theme="light"] .hero::after {
  background: radial-gradient(ellipse at center, rgba(43, 71, 214, 0.25) 0%, rgba(43, 71, 214, 0.05) 40%, transparent 70%);
}

[data-theme="light"] .page-glow {
  background: radial-gradient(ellipse at center, rgba(43, 71, 214, 0.35) 0%, rgba(43, 71, 214, 0.01) 40%, transparent 70%)
}

/* LTCA logo watermark background */
.hero__decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  width: 85%;
  pointer-events: none;
  z-index: 0;
}
.hero__decoration_service {
  position: absolute;
  top: 21%;
  left: 40%;
  transform: translate(0, -58%);
  width: 61%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.hero__logo-bg {
  width: 100%;
  height: auto;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 80%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 80%);
}

/* Dark: fill + stroke #1D2438 */
[data-theme="dark"] .hero__logo-bg path {
  fill: #1D2438;
  stroke: #1D2438;
  stroke-width: 0.3;
}

/* Light: no fill, stroke #F3F5FD */
[data-theme="light"] .hero__logo-bg path {
  fill: none;
  stroke: #dde1ef;
  stroke-width: 0.3;
  filter: blur(0.2px);
}

.hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  max-height: clamp(380px, 46vw, 589px);
}

/* ---- Hero Carousel ---- */

.hero__carousel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Person label – positioned over the photo */
.hero__person-label {
  position: absolute;
  top: 35%;
  left: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.hero__person-label--fading {
  opacity: 0;
}

.hero__person-name {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--color-text);
}

.hero__person-title {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Team photo area */
.hero__team-photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(250px, 33vw, 420px);
  margin-top: auto;
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}

.hero__person {
  position: absolute;
  bottom: 0;
  transform-origin: bottom center;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, filter, opacity, z-index;
}

.hero__person-img {
  height: clamp(220px, 30vw, 380px);
  width: auto;
  object-fit: contain;
  display: block;
}

/* Active person – front & center, no blur */
.hero__person--active {
  z-index: 5;
  filter: none;
  transform: translateX(0) scale(1);
}

/* Inactive persons – blurred, darkened in dark mode */
[data-theme="dark"] .hero__person:not(.hero__person--active) {
  filter: blur(1.5px) contrast(1) brightness(0.6);
}

/* Inactive persons – blurred, brightened in light mode */
[data-theme="light"] .hero__person:not(.hero__person--active) {
  filter: blur(1.5px) contrast(0.5) brightness(1.4);
}

/* Wrap-around person: smooth fade out → teleport → fade in */
.hero__person--fading-out {
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
}

/* Positions for 6 persons around the active center.
   These are set via JS data-position attribute. */
.hero__person[data-position="0"] {
  /* Active center */
  left: 50%;
  transform: translateX(-50%) scale(1);
  z-index: 5;
}

.hero__person[data-position="1"] {
  /* Right near */
  left: 60%;
  transform: translateX(-50%) scale(0.88);
  z-index: 4;
}

.hero__person[data-position="2"] {
  /* Far right */
  left: 69%;
  transform: translateX(-50%) scale(0.78);
  z-index: 3;
}

.hero__person[data-position="3"] {
  /* Far far right / behind */
  left: 77%;
  transform: translateX(-50%) scale(0.7);
  z-index: 2;
}

.hero__person[data-position="4"] {
  /* Far left */
  left: 31%;
  transform: translateX(-50%) scale(0.78);
  z-index: 3;
}

.hero__person[data-position="5"] {
  /* Near left */
  left: 40%;
  transform: translateX(-50%) scale(0.88);
  z-index: 4;
}

/* Tagline */
.hero__tagline {
  padding-top: clamp(var(--space-sm), 2vw, var(--space-xl));
  padding-bottom: clamp(var(--space-md), 2.5vw, var(--space-2xl));
  text-align: center;
}

.hero__tagline h1 {
  font-size: clamp(1.5rem, 3vw, var(--font-size-3xl));
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hero__tagline-accent {
  font-weight: 500;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .hero__tagline-accent {
  background: linear-gradient(135deg, #ffffff, #c0c8ff);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */

.section--services {
  /* background removed — unified page bg */
}

.services {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.services__label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xl);
}

.services__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.services__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text-muted);
}

.services__item:hover {
  color: var(--color-text);
}

.services__item--active {
  color: var(--color-text);
}

.services__number {
  font-size: var(--font-size-3xl);
  font-weight: 500;
  line-height: 1;
  min-width: 60px;
  color: inherit;
  transition: color var(--transition-fast);
}

.services__item--active .services__number {
  color: var(--color-text);
}

.services__name {
  font-size: var(--font-size-base);
  font-weight: 500;
}

/* Service card */
.services__content {
  padding-top: var(--space-xl);
}

.services__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--transition-theme);
}

.services__card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.services__card-number {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--color-accent);
}

.services__card-title {
  font-size: var(--font-size-xl);
  font-weight: 500;
}

.services__card-desc {
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.services__card-btn {
  margin-top: var(--space-md);
}

/* ==========================================================================
   TEAM
   ========================================================================== */

.section--team {
  /* background removed — unified page bg */
}

/* Filter tabs */
.team-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--space-3xl);
}

.team-filter__btn {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-xs);
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.team-filter__btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.team-filter__btn--active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.team-filter__btn--active:hover {
  color: #ffffff;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4xl) var(--space-2xl);
  justify-items: center;
}

.team-section__cta {
  text-align: center;
  margin-top: var(--space-3xl);
}

.team-card {
  text-align: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 250px;
}

.team-card--hidden {
  opacity: 0;
  transform: translateY(16px);
}

.team-card__photo {
  width: 160px;
  height: 160px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.team-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg-tertiary) 100%);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
}

.team-card__name {
  font-size: var(--font-size-md);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.team-card__role {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}


/* ==========================================================================
   STATS
   ========================================================================== */

.section--stats {
  /* background removed — unified page bg */
  position: relative;
  overflow: hidden;
}

.section--stats::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.4;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3xl) var(--space-2xl);
  text-align: center;
  position: relative;
  z-index: 1;
}

.stats-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats-card__number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stats-card__number {
  font-size: var(--font-size-5xl);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stats-card__unit {
  font-size: var(--font-size-2xl);
  font-weight: 400;
  margin-left: 0.15em;
  line-height: 80%;
}

.stats-card__label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  line-height: 1.5;
}

/* ==========================================================================
   CLIENTS
   ========================================================================== */

.section--clients {
  /* background removed — unified page bg */
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  overflow: hidden;
  transition: max-height 0.5s ease;
}

/* Collapsed: show only 2 rows (2 × 70px item height + 2 × gap) */
.clients-grid--collapsed {
  max-height: 170px; /* (70 + 12) * 2 + 10 */
}

/* Expanded: no limit */
.clients-grid--expanded {
  max-height: 2000px;
}

.clients-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  padding: var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.clients-grid__item:hover {
  border-color: var(--color-border-hover);
  background: var(--color-bg-card-hover);
}

.clients-grid__logo {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

.clients-grid__logo-img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter var(--transition-fast);
}

.clients-grid__item:hover .clients-grid__logo-img {
  filter: grayscale(0) opacity(1);
}

/* Light theme: invert dark logos for visibility */
[data-theme="light"] .clients-grid__logo-img {
  filter: grayscale(1) opacity(0.6) invert(1);
}

[data-theme="light"] .clients-grid__item:hover .clients-grid__logo-img {
  filter: grayscale(0) opacity(1) invert(1);
}


.clients-grid__expand{
  text-align: center;
}
.clients-grid__expand .btn svg{
  transform: rotate(90deg);
  transition: all var(--transition-fast);
}
.clients-grid__expand .btn.btn--expanded svg{
  transform: rotate(-90deg);
}

.clients-grid__more {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-xl);
  cursor: pointer;
}

.clients-grid__more:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   AWARDS
   ========================================================================== */

.section--awards {
  /* background removed — unified page bg */
}

.awards-timeline {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.awards-year {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-2xl);
}

.awards-year__badge {
  position: relative;
}

.awards-year__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
  font-size: var(--font-size-xl);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg-card);
}

.awards-year__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.awards-year__source-logo {
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.awards-year__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.awards-year__list li {
  padding-left: 1rem;
  position: relative;
}

.awards-year__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.awards-year__list strong {
  color: var(--color-text);
}

.awards-year__extra {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  padding: var(--space-md);
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.awards-year__desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.awards-cta {
  text-align: center;
  margin-top: var(--space-3xl);
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
  padding-top: calc(var(--header-height) + var(--space-lg));
  padding-bottom: var(--space-sm);
}

.breadcrumbs__nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.breadcrumbs__link {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.breadcrumbs__link:hover {
  color: var(--color-accent);
}

.breadcrumbs__sep {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.breadcrumbs__current {
  color: var(--color-text-secondary);
}

/* ==========================================================================
   AWARDS PAGE (full subpage)
   ========================================================================== */

.section--awards-page {
  /* background removed — unified page bg */
  padding-top: var(--space-lg);
  padding-bottom: var(--space-5xl);
  position: relative;
}

.awards-page__empty {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
}

/* ---- Timeline ---- */

.awards-page__timeline {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---- Year block ---- */

.awards-page__year {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-2xl);
  position: relative;
  padding: 2.5rem 0;
}

/* Divider line between years */
.awards-page__year + .awards-page__year {
  border-top: 1px solid var(--color-border);
}

/* Year badge – left column */
.awards-page__year-badge {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.25rem;
  position: relative;
}

.awards-page__year-number {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  font-weight: 200;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1;
  z-index: 1;
}

[data-theme="light"] .awards-page__year-number {
  color: var(--color-accent);
}

/* Decorative circle behind year number */
/* .emp-detail__photo-col::before {
  content: '';
  position: absolute;
  top: 50px;
  right: -40%;
  transform: translate(-50%, 0%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  z-index: -1;
  background: var(--color-bg);
  box-shadow: 0 0 40px -7px var(--color-text);
  transition: all 0.3s ease;
}
/* Decorative circle behind year number */
/* .emp-detail__photo-col::after {
  content: '';
  position: absolute;
  top: 50px;
  right: 0%;
  transform: translate(0%, 0%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  z-index: -1;
  background: var(--color-bg);
  transition: all 0.3s ease;
}
[data-theme="light"] .emp-detail__photo-col::before, 
[data-theme="light"] .emp-detail__photo-col::after {
  display: none;
} */

.emp-detail__info-col{
  z-index: 1;
}
/* Decorative circle behind year number */
.circlesdeco::before,
.awards-page__year-number::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -50px;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: transparent;
  z-index: -1;

    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
    transition: all 0.3s ease;
}

/* Bracket/arc – semicircle on the right */
.circlesdeco::after,
.awards-page__year-number::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -35px;
  transform: translateY(-50%);
  width: 50px;
  height: 100px;
  border-radius: 0 100px 100px 0;
  border: 1.5px solid var(--color-border);
  border-left: none;
  background: transparent;
  z-index: -2;

    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
    transition: all 0.3s ease;
}

[data-theme="light"] .circlesdeco::before,
[data-theme="light"] .awards-page__year-number::before,
[data-theme="light"] .circlesdeco::after,
[data-theme="light"] .awards-page__year-number::after {
  background: #000000;
}

[data-theme="dark"] .circlesdeco::before,
[data-theme="dark"] .awards-page__year-number::before,
[data-theme="dark"] .circlesdeco::after,
[data-theme="dark"] .awards-page__year-number::after {
  background: #ffffff;
}
/* ---- Year content (right column) ---- */

.awards-page__year-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-left: 2rem;
}

/* ---- Organizer block ---- */

.awards-page__organizer {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.awards-page__organizer-logo {
  margin-bottom: 0.15rem;
}

.awards-page__organizer-logo img {
  height: auto;
  width: 150px;
  display: block;
  opacity: 0.85;
}

/* Dark theme: keep logos as-is (dark logos on dark bg — they have white versions) */
[data-theme="dark"] .awards-page__organizer-logo img {
  filter: none;
  opacity: 0.9;
}

/* Light theme: invert to make light logos visible on white bg */
[data-theme="light"] .awards-page__organizer-logo img {
  filter: invert(1) brightness(2);
  opacity: 0.85;
}

/* ---- Awards list ---- */

.awards-page__awards-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.awards-page__awards-list li {
  padding-left: 0;
}

.awards-page__awards-list li strong {
  color: var(--color-text);
  font-weight: 500;
  margin-right: 0.15em;
}

/* ==========================================================================
   TEAM PAGE (subpage listing)
   ========================================================================== */

.section--team-page {
  /* background removed — unified page bg */
  padding-top: var(--space-lg);
  padding-bottom: var(--space-5xl);
  position: relative;
}

.section--team-page::after {
  top: 5%;
  left: -18%;
}

/* .team-page__title — now use .page-title in template */
.team-page__title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Department section */
.team-page__department {
  margin-bottom: var(--space-4xl);
}

.team-page__department:last-child {
  margin-bottom: 0;
}

.team-page__dept-title {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2xl);
  text-align: center;
  letter-spacing: -0.02em;
}

/* Grid: extended dept (3 columns for partners/managers/experts) */
.team-page__grid--extended-dept {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4xl) var(--space-xl);
  justify-items: center;
}

/* Grid: compact dept (4 columns for other departments) */
.team-page__grid--compact-dept {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4xl) var(--space-xl);
  justify-items: center;
}

/* Compact card (all departments on listing) */
.team-card-cmp {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md);
  text-decoration: none;
  transition: transform var(--transition-slow), opacity 0.4s ease;
  max-width: 180px;
}

.team-card-cmp__photo {
  width: 130px;
  height: 130px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-md);
  background: var(--color-bg);
  border: 2px solid #302e30;
  box-shadow: 0 0px 10px 0px rgba(255, 255, 255, 0.25);
  transition: all var(--transition-fast);
}
.team-page__grid--extended-dept .team-card-cmp__photo {
  width: 200px;
  height: 200px;
}

[data-theme="light"] .team-card-cmp__photo {
  background: #EAEFF4;
  border: 2px solid transparent;
}

.team-card-cmp:hover .team-card-cmp__photo_before{
  transform: translateY(-4px);
}

.team-card-cmp:hover .team-card-cmp__photo picture{
  transform: translateY(-4px) translateX(-50%);
}
.team-card-cmp:hover .team-card-cmp__photo{
  box-shadow: 0 0px 20px 3px rgba(255, 255, 255, 0.25);
}

    .team-page__grid--extended-dept .team-card-cmp__photo,
    .team-page__grid--extended-dept .team-card-cmp__photo picture,
    .team-page__grid--extended-dept .team-card-cmp__photo_before{
      transition: all 0.5s ease-in-out;
    }
    .team-page__grid--extended-dept .team-card-cmp:hover .team-card-cmp__photo_before{
      transform: translateY(-8px);
    }
    .team-page__grid--extended-dept .team-card-cmp:hover .team-card-cmp__photo picture{
      transform: translateY(-8px) translateX(-50%);
    }
    .team-page__grid--extended-dept .team-card-cmp:hover .team-card-cmp__photo{
      box-shadow: 0 0px 20px 3px rgba(255, 255, 255, 0.25);
    }

.team-card-cmp:before {
  content: '';
  width: 120%;
  height: 120%;
  border: 1px solid #4a4a5c;
  border-radius: var(--radius-md);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%) scale(1.05);
  transition: all 0.5s ease;
  opacity: 0;
}
.team-page__grid--extended-dept .team-card-cmp:before {
  width: 130%;
}

.team-card-cmp:hover:before {
  opacity: 1;
  transform: translateX(-50%) translateY(-50%) scale(1);
}

[data-theme="light"] .team-card-cmp:before {
  border-color: var(--color-accent);
}

.team-card-cmp__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-cmp{
    position: relative;
}
.team-card-cmp__photo{
    position: relative;
    transition: all var(--transition-base);
}
.team-card-cmp__photo_before{
    width: 150px;
    height: 75px;
    position: absolute;
    top: -30px;
    z-index: 999;
    overflow: hidden;
    margin: var(--space-md);
    transition: all var(--transition-base);
}
.team-card-cmp__photo_before img,
.team-card-cmp__photo_before picture{
    width: 100%;
}

.team-page__grid--extended-dept .team-card-cmp__photo_before{
  width: 200px;
}
.team-card-cmp__photo picture{
  position: absolute;
  top: -32px;
  width: 150px;
  transform: translateX(-50%);
  transition: all var(--transition-base);
}

.team-page__grid--extended-dept .team-card-cmp__photo picture{
  width: 200px;
}

.team-card-cmp__placeholder {
  width: 100%;
  height: 100%;
}

.team-card-cmp__name {
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: 0.2rem;
  color: var(--color-text);
  line-height: 1.3;
}
[data-theme="light"] .team-card-cmp__name {
  color: var(--color-accent);
}

.team-card-cmp__position {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}


[data-theme="light"] .team-card-cmp__position {
  color: var(--color-text);
}

.team-card-cmp__more_about_me {
  font-size: 0.65rem;
  color: var(--color-text);
  line-height: 1.4;
  text-decoration: underline;
  transition: all var(--transition-slow);
  opacity: 0;
  margin-top: 20px;
  margin-bottom: -20px;
  transform: translateY(-10px);
}
.team-card-cmp:hover .team-card-cmp__more_about_me {
  opacity: 1;
  transform: translateY(0px);
}
.team-card-cmp__more_about_me:after {
  content: '>';
}

.team-card-cmp--hidden {
  opacity: 0 !important;
  transform: translateY(16px) !important;
  transition: opacity 0.4s ease, transform 0.4s ease !important;
}

/* No-link card (employees without bio) */
.team-card-cmp--no-link {
  cursor: default;
  text-decoration: none;
}
.team-card-cmp--no-link:hover .team-card-cmp__photo_before {
  transform: none;
}
.team-card-cmp--no-link:hover .team-card-cmp__photo picture {
  transform: translateX(-50%);
}
.team-card-cmp--no-link:hover .team-card-cmp__photo {
  box-shadow: 0 0px 10px 0px rgba(255, 255, 255, 0.25);
}
.team-card-cmp--no-link:before {
  display: none;
}

/* ==========================================================================
   EMPLOYEE DETAIL PAGE
   ========================================================================== */

.section--employee-detail {

  padding-top: var(--space-lg);
  padding-bottom: var(--space-5xl);
  position: relative;
}

.section--employee-detail::after {
  top: 5%;
  right: -18%;
  left: auto;
}

/* Layout */
/* ---- Employee Detail: shared base ---- */
.emp-detail {
  display: grid;
  gap: var(--space-3xl);
}

/* Extended layout (partners / managers / experts) */
.emp-detail--extended {
  grid-template-columns: 340px 1fr;
}

/* Compact layout (other departments) */
.emp-detail--compact {
  grid-template-columns: 260px 1fr;
}

/* ---- Photo column ---- */
.emp-detail__photo-col {
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
  align-self: start;
}

/* Base photo */
.emp-detail__photo {
  width: 100%;

}

.emp-detail__photo {
  position: relative;
  overflow: visible;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

[data-theme="light"] .emp-detail__photo {
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 95%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 95%);
}

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

/* Rectangular photo (extended) */
.emp-detail__photo--rect {
  z-index: 5;
  
}

/* Circular photo wrapper (compact) – matching team-page extended-dept card */
.emp-detail__circle-wrapper {
  position: relative;
  width: 200px;
  margin: 0 auto var(--space-lg);
}

.emp-detail__circle-before {
  width: 200px;
  height: 75px;
  position: absolute;
  top: -30px;
  z-index: 999;
  overflow: hidden;
  margin: var(--space-md);
  transition: all 0.5s ease-in-out;
}

.emp-detail__circle-before img,
.emp-detail__circle-before picture {
  width: 100%;
}

.emp-detail--compact .emp-detail__circle-before{
  left: -16px;
  top: -45px;
}
.emp-detail--compact .emp-detail__photo--circle{
  left: 50%;
  transform: translateX(-50%);
  top: 0px;
}

/* Circular photo (compact) */
.emp-detail__photo--circle {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  margin: 0 auto;
  border: 2px solid #302e30;
  box-shadow: 0 0px 10px 0px rgba(255, 255, 255, 0.25);
  overflow: hidden;
  -webkit-mask-image: none;
  mask-image: none;
  position: relative;
  transition: all 0.5s ease-in-out;
}

[data-theme="light"] .emp-detail__photo--circle {
  background: #EAEFF4;
  border: 2px solid transparent;
}

.emp-detail__photo--circle picture {
  position: absolute;
  top: -32px;
  width: 200px;
  transform: translateX(-50%);
  transition: all 0.5s ease-in-out;
}

.emp-detail__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

/* ---- Below-photo block (extended layout) ---- */
.emp-detail__below-photo {
  margin-bottom: var(--space-xl);
}

.emp-detail__below-photo .emp-detail__name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.emp-detail__below-photo .emp-detail__position {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

/* Contact inline (extended — phone/email stacked) */
.emp-detail__contact-inline {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.emp-detail__contact-item {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.emp-detail__contact-item:hover {
  color: var(--color-accent);
}

/* Social links */
.emp-detail__social {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.emp-detail__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.emp-detail__social-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}

/* CTA button (extended) */
.emp-detail__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-sm);
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  background: transparent;
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-top: var(--space-sm);
}

.emp-detail__cta-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* ---- Compact photo-col extras ---- */
.emp-detail--compact .emp-detail__photo-col {
  text-align: center;
  padding-top: 50px;
}

.emp-detail--compact .emp-detail__name {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.emp-detail__position--compact {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.emp-detail__email-compact {
  display: inline-block;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-decoration: none;
}

.emp-detail__email-compact:hover {
  color: var(--color-accent);
}

/* ---- Info column ---- */
.emp-detail__header {
  margin-bottom: var(--space-2xl);
}

/* Name / position (info-col context for extended — moved below photo, so these are fallback) */
.emp-detail__name {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.emp-detail__position {
  font-size: var(--font-size-lg);
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.emp-detail__department {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Section titles */
.emp-detail__section-title {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

/* Practice areas */
.emp-detail__practice {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  padding: var(--space-2xl);
  border: 1px solid #302e30;
  border-radius: var(--radius-md);
  box-shadow: 0 0px 10px 0px rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .emp-detail__practice {
  border: 1px solid var(--color-border);
  box-shadow: 0 0px 10px 0px rgba(255, 255, 255, 0.25);
}

.emp-detail__practice-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.emp-detail__practice-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  padding: var(--space-sm) 0;
}

.emp-detail__practice-list li svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Bio */
.emp-detail__bio {
  margin-bottom: var(--space-2xl);
}

.emp-detail__bio-content {
  font-size: var(--font-size-sm);
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.emp-detail__bio-content p {
  margin-bottom: var(--space-md);
}

.emp-detail__bio-content p:last-child {
  margin-bottom: 0;
}

.emp-detail__bio-content strong {
  color: var(--color-text);
  font-weight: 500;
}

.emp-detail__bio-content em {
  font-style: italic;
}

.emp-detail__bio-content u {
  text-underline-offset: 3px;
}

/* Calendar */
.emp-detail__calendar {
  margin-top: var(--space-2xl);
}

.emp-detail__calendar-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.calendesk-frame {
  width: 100%;
  display: block;
  border: none;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  height: 400px;
}

/* Default: show light, hide dark (site defaults to light theme) */
.calendesk-frame--light {
  display: block;
}

.calendesk-frame--dark {
  display: none;
}

/* Light/dark theme switching for CalenDesk iframes */
[data-theme="dark"] .calendesk-frame--light {
  display: none !important;
}

[data-theme="dark"] .calendesk-frame--dark {
  display: block !important;
}

[data-theme="light"] .calendesk-frame--light {
  display: block !important;
}

[data-theme="light"] .calendesk-frame--dark {
  display: none !important;
}

@media  (max-width: 768px) {
  .calendesk-frame {
    width: 100%;
    height: 1200px;
  }
  .emp-detail--compact .emp-detail__circle-before {
      left: -16px;
      top: -38px;
  }
}
@media  (max-width: 480px) {
  .emp-detail--compact .emp-detail__circle-before {
      left: -16px;
      top: -33px;
  }
}

/* ==========================================================================
   BOOKING (Umów spotkanie)
   ========================================================================== */

.section--booking {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
}

.section--booking .section__title {
  margin-bottom: var(--space-xl);
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */

.section--newsletter {
  /* background removed — unified page bg */
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.newsletter__title {
  margin-bottom: var(--space-md);
}

.newsletter__desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.newsletter__sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.newsletter__input-group {
  display: flex;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
  transition: border-color var(--transition-fast);
}

.newsletter__input-group:focus-within {
  border-color: var(--color-accent);
}

.newsletter__input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: none;
  background: transparent;
  color: var(--color-text);
  outline: none;
  font-size: var(--font-size-sm);
}

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

.newsletter__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  background: var(--color-accent);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.newsletter__btn:hover {
  background: var(--color-accent-hover);
}

/* ==========================================================================
   CONTACT INFO
   ========================================================================== */

.section--contact {
  /* background removed — unified page bg */
  position: relative;
  overflow: hidden;
}

/* Blue glow decoration in dark theme */
[data-theme="dark"] .section--contact::after {
  content: '';
  position: absolute;
  top: 0;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(58, 79, 215, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.contact-info {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

.contact-info__company {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  line-height: 1.35;
}

.contact-info__row {
  display: block;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.contact-info__link {
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.contact-info__link:hover {
  color: var(--color-accent);
}

.contact-info__sep {
  color: var(--color-text-muted);
  user-select: none;
}

.contact-info__addresses {
  margin-bottom: var(--space-lg);
}

.contact-info__address {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.contact-info__legal {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
    flex-direction: column;
    align-content: center;
}

.contact-info__legal-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.contact-info__copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 2px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.contact-info__copy-btn:hover {
  color: var(--color-accent);
}

.contact-info__copy-btn.is-copied {
  color: #22c55e;
}

.contact-info__btn {
    margin: 20px auto;
    font-size: var(--font-size-xs) !important;
    padding: 0.55rem 1.25rem !important;
    width: 100%;
}

/* ==========================================================================
   WRITE / CONTACT FORM
   ========================================================================== */

.section--write {
  /* background removed — unified page bg */
}

.write-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

/* Poland map */
.poland-map {
  max-width: 400px;
  margin: 0 auto;
}

.poland-map__svg {
  width: 100%;
  height: auto;
  color: var(--color-text);
}

.poland-map__dot {
  fill: var(--color-accent);
  opacity: 0.6;
}

.poland-map__dot--main {
  fill: var(--color-accent);
  opacity: 1;
}

.poland-map__label {
  fill: var(--color-text-secondary);
  font-size: 12px;
  font-family: var(--font-primary);
}

.poland-map__label--main {
  fill: var(--color-text);
  font-weight: 500;
  font-size: 13px;
}

/* Contact form */
.contact-form__row {
  margin-bottom: var(--space-md);
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-fast);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: var(--color-accent);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--color-text-muted);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
}

/* Checkbox */
.contact-form__row--checkbox {
  margin-top: var(--space-md);
}

.contact-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.contact-form__checkbox input {
  display: none;
}

.contact-form__checkbox-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-top: 1px;
  transition: all var(--transition-fast);
}

.contact-form__checkbox input:checked + .contact-form__checkbox-mark {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.contact-form__checkbox input:checked + .contact-form__checkbox-mark::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
}

.contact-form__checkbox a {
  color: var(--color-accent);
  text-decoration: underline;
}

.contact-form__submit {
  width: 100%;
  padding: 1rem;
  margin-top: var(--space-md);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: transparent;
  border-top: none;
  padding: var(--space-3xl) 0 var(--space-xl);
  transition: color var(--transition-theme);
  position: relative;
  overflow: visible;
}

/* Glow at bottom of footer */
.site-footer::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  height: 40vw;
  max-width: 800px;
  max-height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .site-footer::after {
  background: radial-gradient(ellipse at center, rgba(58, 79, 215, 0.25) 0%, rgba(58, 79, 215, 0.08) 40%, transparent 70%);
}

[data-theme="light"] .site-footer::after {
  background: radial-gradient(ellipse at center, rgba(43, 71, 214, 0.12) 0%, rgba(43, 71, 214, 0.04) 40%, transparent 70%);
}

/* Logo row with horizontal lines */
.site-footer__logo-row {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.site-footer__line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.site-footer__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-footer__logo-img {
  height: 28px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.site-footer__logo:hover .site-footer__logo-img {
  opacity: 1;
}

[data-theme="dark"] .site-footer__logo-img {
  filter: brightness(0) invert(1);
}

/* 3-column grid: 25% / 25% / 50% */
.site-footer__columns {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
}

.site-footer__col-title {
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__links li {
  list-style: none;
}

.site-footer__links a {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.site-footer__links a:hover {
  color: var(--color-text);
}

/* Wide column (social + contact) */
.site-footer__col--wide {
  text-align: right;
}

.site-footer__col--wide .site-footer__social {
  justify-content: flex-end;
}

.site-footer__social {
  display: flex;
  gap: 0.75rem;
  margin-bottom: var(--space-lg);
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.site-footer__social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.site-footer__contact-line {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.site-footer__contact-line a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.site-footer__contact-line a:hover {
  color: var(--color-text);
}

.site-footer__contact-line span {
  margin: 0 0.35rem;
  opacity: 0.4;
}

/* Bottom bar */
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
}

.site-footer__copy {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.site-footer__legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.site-footer__legal-links li {
  list-style: none;
}

.site-footer__legal-links a {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.site-footer__legal-links a:hover {
  color: var(--color-text);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --container-padding: 1.5rem;
  }

  .services {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
  }

  .newsletter {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .write-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__columns {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__col--wide {
    grid-column: 1 / -1;
    text-align: left;
  }

  .site-footer__col--wide .site-footer__social {
    justify-content: flex-start;
  }

  .awards-year {
    grid-template-columns: 80px 1fr;
    gap: var(--space-lg);
  }

  .awards-year__number {
    width: 72px;
    height: 72px;
    font-size: var(--font-size-lg);
  }

  /* Awards page tablet */
  .awards-page__year {
    grid-template-columns: 140px 1fr;
  }

  .awards-page__year-content {
    padding-left: 1rem;
  }

  /* Team page tablet */
  .team-page__grid--extended-dept {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-page__grid--compact-dept {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Employee detail tablet */
  .emp-detail--extended {
    grid-template-columns: 280px 1fr;
  }

  .emp-detail--compact {
    grid-template-columns: 220px 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --font-size-3xl: 1.75rem;
    --font-size-5xl: 3rem;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  /* Mobile menu */
  .site-header__hamburger {
    display: flex;
    order: 10;
  }

  .site-header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-bg);
    border-left: 1px solid var(--color-border);
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    transition: right var(--transition-base);
    z-index: 999;
    overflow-y: auto;
  }

  .site-header__nav.is-open {
    right: 0;
    padding: var(--space-md);
    padding-top: calc(var(--header-height) + var(--space-xl));
  }

  .site-header__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .site-header__menu-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .site-header__menu-link::after {
    display: none;
  }

  /* Mega-menu → stacked on mobile */
  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-bottom: none;
    padding: 0 0 0 var(--space-md);
    display: none;
  }

  .site-header__menu-item--has-children.is-open > .mega-menu {
    display: block;
    transform: none;
  }

  .mega-menu--about .mega-menu__grid,
  .mega-menu--services .mega-menu__grid {
    grid-template-columns: 1fr;
    padding: 20px 0;
  }

  .mega-menu__inner {
    padding: 0;
  }

  .mega-menu__item {
    padding: 5px 0;
  }

  .mega-menu__item-title {
    font-size: var(--font-size-sm);
    gap: 0.25rem;
  }

  .mega-menu__item-desc {
    display: none;
  }

  /* Separator – no longer used */

  /* Language switcher + theme toggle */
  .lang-switch {
    display: none;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .social-fixed {
    display: none;
  }

  /* ---- Hero mobile ---- */
  .hero {
    min-height: auto;
    overflow: hidden;
  }

  .hero__container {
    max-height: none;
  }

  .hero__tagline {
    order: -1;
    padding-top: var(--space-lg);
    padding-bottom: var(--space-xs);
  }

  .hero__tagline h1 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .hero__carousel {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .hero__person-label {
    position: relative;
    top: auto;
    left: auto;
    align-items: center;
    text-align: center;
    padding-bottom: var(--space-sm);
    order: 1;
  }

  .hero__decoration {
    width: 100%;
    top: calc(50% + 10vw);
    transform: translate(-50%, -50%);
  }

  .hero__person-name {
    font-size: var(--font-size-sm);
  }

  .hero__person-title {
    font-size: 0.65rem;
  }

  .hero__team-photo {
    height: clamp(200px, 50vw, 320px);
    width: 100%;
  }

  .hero__person-img {
    height: clamp(180px, 46vw, 290px);
  }

  /* Tighter positions on mobile */
  .hero__person[data-position="0"] { left: 50%; }
  .hero__person[data-position="1"] { left: 63%; }
  .hero__person[data-position="2"] { left: 74%; }
  .hero__person[data-position="3"] { left: 83%; }
  .hero__person[data-position="4"] { left: 26%; }
  .hero__person[data-position="5"] { left: 37%; }

  /* ---- Services mobile ---- */
  .services {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .services__sidebar {
    order: 1;
  }

  .services__content {
    order: 0;
    padding-top: 0;
  }

  .services__number {
    font-size: var(--font-size-2xl);
    min-width: 45px;
  }

  .services__name {
    font-size: var(--font-size-sm);
  }

  .services__card {
    padding: var(--space-lg);
  }

  .services__card-title {
    font-size: var(--font-size-lg);
  }

  .services__card-desc {
    font-size: var(--font-size-sm);
  }

  /* ---- Team mobile ---- */
  .team-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 0.4rem;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: var(--space-xl);
  }

  .team-filter::-webkit-scrollbar {
    display: none;
  }

  .team-filter__btn {
    flex-shrink: 0;
    font-size: 0.65rem;
    padding: 0.35rem 0.7rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: var(--space-lg) var(--space-sm);
  }

  .team-card__photo {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-sm);
  }
  

  .team-card__name {
    font-size: var(--font-size-xs);
  }

  .team-card__role {
    font-size: 0.6rem;
  }

  /* ---- Stats mobile ---- */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-lg);
  }

  .stats-card__number {
    font-size: var(--font-size-3xl);
  }

  .stats-card__label {
    font-size: var(--font-size-xs);
  }

  /* ---- Clients mobile ---- */
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .clients-grid__item {
    height: 50px;
    padding: var(--space-sm);
  }

  .clients-grid__logo {
    font-size: var(--font-size-xs);
  }

  /* ---- Awards mobile ---- */
  .awards-year {
    grid-template-columns: 70px 1fr;
    gap: var(--space-md);
  }

  .awards-year__number {
    width: 60px;
    height: 60px;
    font-size: var(--font-size-md);
  }

  .awards-year__list {
    font-size: var(--font-size-xs);
  }

  .awards-year__extra {
    font-size: 0.65rem;
  }

  /* ---- Awards page (subpage) mobile ---- */
  .awards-page__year {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding: 1.75rem 0;
  }

  .awards-page__year-badge {
    justify-content: flex-start;
    padding-left: 0.5rem;
  }

  .awards-page__year-number {
    font-size: 2rem;
  }

  .awards-page__year-number::before {
    width: 72px;
    height: 72px;
  }

  .awards-page__year-number::after {
    width: 44px;
    height: 88px;
    right: -22px;
  }

  .awards-page__year-content {
    padding-left: 0;
    gap: 1.25rem;
  }

  .awards-page__timeline {
    gap: 0;
  }

  .awards-page__organizer-logo img {
    height: auto;
  }

  .awards-page__awards-list {
    font-size: var(--font-size-xs);
  }

  /* ---- Team page mobile ---- */
  .team-page__title {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
  }

  .team-page__subtitle {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-2xl);
  }

  .team-page__dept-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-lg);
  }

  .team-page__department {
    margin-bottom: var(--space-3xl);
  }

  .team-page__grid--extended-dept {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4xl) var(--space-lg);
    padding-top: var(--space-2xl);
  }

  .team-page__grid--compact-dept {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3xl) var(--space-md);
  }

  .team-card-cmp__photo {
    width: 130px;
    height: 130px;
  }

  .team-card-cmp {
    padding: var(--space-lg) var(--space-sm);
  }

  .team-page__grid--extended-dept .team-card-cmp  {
    padding: var(--space-sm) var(--space-sm);
  }

  .team-card-cmp__photo_before{
    top: -22px;
  }
  .team-page__grid--extended-dept .team-card-cmp__photo_before{
    top: -38px;
  }

  /* ---- Employee detail mobile ---- */
  .emp-detail--extended,
  .emp-detail--compact {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .emp-detail__photo-col {
    position: static;
  }

  .emp-detail__photo--rect {
    max-width: 300px;
    margin: 0 auto;
  }

  .emp-detail__circle-wrapper {
    width: 150px;
  }

  .emp-detail__circle-before {
    width: 150px;
    top: -22px;
  }

  .emp-detail__photo--circle {
    width: 150px;
    height: 150px;
  }

  .emp-detail__photo--circle picture {
    width: 150px;
    top: -24px;
  }

  .emp-detail__below-photo {
    text-align: center;
  }

  .emp-detail__contact-inline {
    align-items: center;
  }

  .emp-detail__social {
    justify-content: center;
  }

  .emp-detail__cta-btn {
    margin: var(--space-sm) auto 0;
  }

  .emp-detail--compact .emp-detail__photo-col {
    text-align: center;
  }

  .emp-detail__name {
    font-size: 1.5rem;
    text-align: center;
  }

  .emp-detail__position {
    text-align: center;
  }

  .emp-detail__department {
    text-align: center;
  }

  

  .breadcrumbs {
    padding-top: calc(var(--header-height) + var(--space-md));
  }

  /* ---- Newsletter mobile ---- */
  .newsletter {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-xl);
  }

  .newsletter__title {
    font-size: var(--font-size-lg);
  }

  /* ---- Contact mobile ---- */
  .contact-info__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* ---- Write / Form mobile ---- */
  .write-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .poland-map {
    max-width: 280px;
  }

  /* ---- Footer mobile ---- */
  .site-footer__columns {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .site-footer__col--wide {
    text-align: left;
  }

  .site-footer__col--wide .site-footer__social {
    justify-content: flex-start;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .site-footer__legal-links {
    justify-content: center;
  }

  .site-footer::after {
    content: unset;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
    --font-size-5xl: 2.5rem;
    --font-size-3xl: 1.5rem;
  }

  .hero__tagline h1 {
    font-size: 1.2rem;
  }

  .hero__team-photo {
    height: clamp(160px, 45vw, 240px);
  }

  .hero__person-img {
    height: clamp(140px, 42vw, 220px);
  }

  .team-card-cmp__photo {
    width: 100px;
    height: 100px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3xl) var(--space-md);
  }

  .team-card__photo {
    width: 65px;
    height: 65px;
  }

  .team-card__name {
    font-size: 0.65rem;
  }

  .team-card__role {
    font-size: 0.55rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-card__number {
    font-size: var(--font-size-xl);
  }

  .stats-card__unit {
    font-size: var(--font-size-xl);
    font-weight: 400;
    margin-left: 0.15em;
  }

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

  .site-footer__columns {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__col--wide {
    text-align: center;
  }

  .site-footer__col--wide .site-footer__social {
    justify-content: center;
  }

  .awards-year {
    grid-template-columns: 60px 1fr;
    gap: var(--space-sm);
  }

  .awards-year__number {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-sm);
  }

  /* Awards page small mobile */
  .awards-page__year-number {
    font-size: 1.5rem;
  }

  .awards-page__year-number::before {
    width: 58px;
    height: 58px;
  }

  .awards-page__year-number::after {
    width: 36px;
    height: 72px;
    right: -31px;
  }

  /* Team page small mobile */
  .team-page__grid--extended-dept,
  .team-page__grid--compact-dept {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .team-card-cmp__photo {
    width: 100px;
    height: 100px;
  }

  .team-page__grid--extended-dept .team-card-cmp__photo {
    width: 100px;
    height: 100px;
  }

  .team-card-cmp__name {
    font-size: var(--font-size-xs);
  }

  .team-card-cmp__position {
    font-size: 0.65rem;
  }

  .team-page__title {
    font-size: 1.4rem;
  }

  /* Employee detail small mobile */
  .emp-detail__photo--rect {
    max-width: 250px;
  }

  .emp-detail__circle-wrapper {
    width: 120px;
  }

  .emp-detail__circle-before {
    width: 120px;
    top: -18px;
    height: 55px;
  }

  .emp-detail__photo--circle {
    width: 120px;
    height: 120px;
  }

  .emp-detail__photo--circle picture {
    width: 120px;
    top: -20px;
  }

  .emp-detail__name {
    font-size: 1.3rem;
  }

  .emp-detail__practice-list li {
    font-size: var(--font-size-xs);
    padding: var(--space-xs) var(--space-sm);
  }
}

/* ==========================================================================
   HISTORY PAGE
   ========================================================================== */

.section--history-page {
  padding: var(--space-3xl) 0 var(--space-5xl);
  /* background removed — unified page bg */
}

.history-page__layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
}

.history-page__main{
      margin-bottom: var(--space-2xl);
}

/* Centered timeline */
.history-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  padding-top: 50px;
  height: clamp(600px, 80vh, 800px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

/* Custom scrollbar — dark theme */
[data-theme="dark"] .history-timeline {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
[data-theme="dark"] .history-timeline::-webkit-scrollbar {
  width: 5px;
}
[data-theme="dark"] .history-timeline::-webkit-scrollbar-track {
  background: transparent;
}
[data-theme="dark"] .history-timeline::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
}
[data-theme="dark"] .history-timeline::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.35);
}

/* Custom scrollbar — light theme */
[data-theme="light"] .history-timeline {
  scrollbar-width: thin;
  scrollbar-color: rgba(16,16,53,0.15) transparent;
}
[data-theme="light"] .history-timeline::-webkit-scrollbar {
  width: 5px;
}
[data-theme="light"] .history-timeline::-webkit-scrollbar-track {
  background: transparent;
}
[data-theme="light"] .history-timeline::-webkit-scrollbar-thumb {
  background: rgba(16,16,53,0.15);
  border-radius: 10px;
}
[data-theme="light"] .history-timeline::-webkit-scrollbar-thumb:hover {
  background: rgba(16,16,53,0.3);
}

.history-timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
  /* height is set dynamically by JS to match scrollHeight */
}

/* Timeline line color overrides */
[data-theme="dark"] .history-timeline__line {
  background: #ffffff;
}

[data-theme="light"] .history-timeline__line {
  background: #2B47D6;
}

.history-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  opacity: 0.8;
  filter: blur(5px);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Fully visible in scroll container → sharp */
.history-timeline__item.is-visible {
  opacity: 1;
  filter: blur(0);
}
.history-timeline__item.is-visible .history-timeline__image img {
  transform: scale(1);
}
.history-timeline__item.history-timeline__item--left.is-visible .history-timeline__year {
  transform: scale(1);
}


.history-timeline__image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.history-timeline__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.history-timeline__item .history-timeline__image img {
  transform: scale(0.95);
}

/* Horizontal connector: dot → desc edge */
.history-timeline__item::before {
  content: '';
  position: absolute;
  top: 53px;
  height: 1px;
  background: var(--color-border);
  z-index: 0;
}

[data-theme="dark"] .history-timeline__item::before {
  background: #ffffff;
}

[data-theme="light"] .history-timeline__item::before {
  background: #2B47D6;
}

.history-timeline__item--left::before {
  /* left: calc(50% - var(--space-2xl) / 2 - var(--space-xl)); */
  left: 0;
  right: 50%;
}

.history-timeline__item--right::before {
  left: 50%;
  /* right: calc(50% - var(--space-2xl) / 2 - var(--space-xl)); */
  right: 0;
}

.history-timeline__dot {
  position: absolute;
  left: 50%;
  top: 46px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg-secondary);
  box-shadow: 0 0 0 2px var(--color-accent);
  z-index: 1;
  transform: translateX(-50%);
}

[data-theme="dark"] .history-timeline__dot {
  background: #ffffff;
  box-shadow: 0 0 0 2px #ffffff;
}

[data-theme="light"] .history-timeline__dot {
  background: #2B47D6;
  box-shadow: 0 0 0 2px #2B47D6;
}

/* Left-side items: content left, image/space right */
.history-timeline__item--left .history-timeline__content {
  text-align: right;
  padding-right: var(--space-xl);
}

.history-timeline__item--left .history-timeline__media {
  padding-left: var(--space-xl);
}

/* Right-side items: space/image left, content right */
.history-timeline__item--right .history-timeline__content {
  order: 2;
  text-align: left;
  padding-left: var(--space-xl);
}

.history-timeline__item--right .history-timeline__media {
  order: 1;
  text-align: right;
  padding-right: var(--space-xl);
}

.history-timeline__year {
  display: inline-block;
  font-size: var(--font-size-2xl);
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

[data-theme="dark"] .history-timeline__year {
  color: #ffffff;
}

[data-theme="light"] .history-timeline__year {
  color: #2B47D6;
}

.history-timeline__desc {
  color: var(--color-text-secondary);
  line-height: 1.75;
  font-size: var(--font-size-base);
}

.history-timeline__desc strong,
.history-timeline__desc b {
  color: var(--color-text);
  font-weight: 700;
}

/* Team panel (full width below timeline) */
.history-page__team-section {
  width: 100%;
}

.history-team-panel {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.history-team-panel__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.history-team-panel__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.history-team-panel__image.is-zoomed img {
  transform: scale(1.06);
}

.history-team-panel__label {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

/* .history-team-panel__title — now also receives .page-title */
.history-team-panel__title {
  font-size: var(--font-size-xl);
  font-weight: 200;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.01em;
}

.history-team-panel__desc {
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-base);
}

.history-team-panel__desc p {
  margin-bottom: var(--space-sm);
}

.history-team-panel__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: #D5D5D5;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  font-size: var(--font-size-sm);
  letter-spacing: 0.02em;
  transition: color var(--transition-base), gap var(--transition-base);
}

[data-theme="light"] .history-team-panel__cta {
  color: #2E2D2F;
}

.history-team-panel__cta:hover {
  gap: var(--space-md);
  color: #ffffff;
}

[data-theme="light"] .history-team-panel__cta:hover {
  color: #000000;
}

/* Awards section on history page */
.history-awards {
  margin-top: var(--space-3xl);
}

/* .history-awards__title — now also receives .page-title */
.history-awards__title {
  text-align: center;
  font-size: var(--font-size-2xl);
  font-weight: 200;
  margin-bottom: var(--space-2xl);
  letter-spacing: -0.02em;
}

.history-awards__cta {
  text-align: center;
  margin-top: var(--space-xl);
}

.history-awards__cta a {
  color: #D5D5D5;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  font-size: var(--font-size-sm);
  letter-spacing: 0.02em;
  transition: color var(--transition-base);
}

[data-theme="light"] .history-awards__cta a {
  color: #2E2D2F;
}

.history-awards__cta a:hover {
  color: #ffffff;
}

[data-theme="light"] .history-awards__cta a:hover {
  color: #000000;
}

/* History page mobile */
@media (max-width: 900px) {
  .history-timeline {
    height: auto;
    overflow-y: visible;
    overflow-x: visible;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50px, black calc(100% - 50px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 50px, black calc(100% - 50px), transparent 100%);
  }

  .history-timeline__item {
    grid-template-columns: 1fr;
    padding-left: 40px;
  }

  .history-timeline__line {
    left: 15px;
    transform: none;
  }

  .history-timeline__dot {
    left: 15px;
    transform: translateX(-50%);
  }

  .history-timeline__item--left .history-timeline__content,
  .history-timeline__item--right .history-timeline__content {
    text-align: left;
    padding: 0;
    order: 1;
  }

  .history-timeline__item--left .history-timeline__media,
  .history-timeline__item--right .history-timeline__media {
    padding: 0;
    text-align: left;
    order: 2;
  }

  .history-team-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .history-timeline__item--left::before, .history-timeline__item--right::before {
  /* left: calc(50% - var(--space-2xl) / 2 - var(--space-xl)); */
  left: 0;
  right: 50%;
}
  .section--history-page {
    padding: var(--space-2xl) 0 var(--space-3xl);
  }

  .history-timeline {
    padding-left: 0;
  }

  .history-timeline__dot {
    width: 12px;
    height: 12px;
  }

  .history-timeline__year {
    font-size: var(--font-size-xl);
  }
}

/* ==========================================================================
   ABOUT PAGE (O nas)
   ========================================================================== */

.section--about-page {
  padding: var(--space-3xl) 0 var(--space-5xl);
  /* background removed — unified page bg */
}

.about-page__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.about-page__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about-page__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-page__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-page__image.is-zoomed img {
  transform: scale(1.06);
}

.about-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 860px;
}

.about-nav__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-2xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.about-nav__card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  transform: translateX(6px);
  color: var(--color-text);
}

.about-nav__content {
  flex: 1;
  min-width: 0;
}

.about-nav__title {
  font-size: var(--font-size-l);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
}

.about-nav__desc {
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.about-nav__arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text-muted);
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.about-nav__card:hover .about-nav__arrow {
  color: #fff;
  transform: translateX(4px);
}

@media (max-width: 600px) {
  .section--about-page {
    padding: var(--space-2xl) 0 var(--space-3xl);
  }

  .about-page__layout {
    grid-template-columns: 1fr;
  }

  .about-page__nav-col {
    order: -1;
  }

  .about-nav__card {
    padding: var(--space-lg);
  }

  .about-nav__title {
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 900px) {
  .about-page__layout {
    grid-template-columns: 1fr;
  }

  .about-page__nav-col {
    order: -1;
  }
}

/* ==========================================================================
   SERVICES LISTING PAGE
   ========================================================================== */

.section--services-page {
  padding: var(--space-3xl) 0 var(--space-5xl);
}

.services-page__title {
  font-size: clamp(2rem, 4vw, var(--font-size-3xl));
  font-weight: 800;
  margin-bottom: var(--space-3xl);
  letter-spacing: -0.02em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.services-grid__card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--color-bg-card);
    color: var(--color-text-secondary);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    text-align: center;
    flex-direction: column;
    gap: var(--space-md);
}
.services-grid__name {
    position: relative;
    z-index: 1;
    font-size: var(--font-size-md);
    font-weight: 400;
    line-height: 1.25;
}
.services-grid__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.25);
    color: var(--color-text-secondary);
    background: var(--color-bg-card-hover);
}

.services-grid__name {
  position: relative;
  z-index: 1;
  font-size: var(--font-size-xl);
  font-weight: 700;
  line-height: 1.25;
  max-width: 70%;
}

.services-grid__arrow {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  opacity: 0.7;
  transition: opacity var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

.services-grid__card:hover .services-grid__arrow {
  opacity: 1;
  background: rgba(255,255,255,0.3);
  transform: translateX(4px);
}

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

@media (max-width: 600px) {
  .section--services-page {
    padding: var(--space-2xl) 0 var(--space-3xl);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid__card {
    min-height: 160px;
  }

  .services-page__title {
    font-size: var(--font-size-2xl);
  }
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.section--contact-page {
  padding: var(--space-3xl) 0 var(--space-4xl);
}

.contact-page__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-page__title {
  font-size: clamp(2rem, 4vw, var(--font-size-3xl));
  font-weight: 800;
  margin-bottom: var(--space-2xl);
  letter-spacing: -0.02em;
}

.contact-page__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.contact-page__cards label{
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

@media (max-width: 900px) {
  .hero__decoration_service {
    display: none;
  }
}

.contact-page__card {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-sm) 0;
}

.contact-page__card--small {
  padding: var(--space-xs) 0;
}

.contact-page__card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-page__logo {
  width: 44px;
  height: auto;
  opacity: 0.5;
}

.contact-page__logo--sm {
  width: 28px;
}

.contact-page__card-body {
  min-width: 0;
}

.contact-page__company {
  font-weight: 700;
  font-size: var(--font-size-base);
  margin-bottom: var(--space-sm);
}

.contact-page__phone,
.contact-page__email {
  display: block;
  color: var(--color-accent);
  font-weight: 600;
  font-size: var(--font-size-base);
  margin-bottom: var(--space-xs);
  transition: opacity var(--transition-fast);
}

.contact-page__phone:hover,
.contact-page__email:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.contact-page__address,
.contact-page__city {
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.6;
}
.contact-page__row{
  display: flex;
  justify-content: space-between;
}

.contact-page__label {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
}

/* Contact page — image column */
.contact-page__image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.contact-page__img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  z-index: 2;
}
[data-theme="dark"] .contact-page__img {
  filter: grayscale(100%);
}


.contact-page__watermark {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.03;
  min-height: 320px;
}

.contact-page__watermark-img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* Google Maps embed — toggle */
.contact-page__info .contact-map__toggle {
  margin-top: var(--space-lg);
}

.contact-map__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);
  color: var(--color-accent);
  font-weight: 600;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: border-color var(--transition-base), background var(--transition-base);
  justify-content: center;
}

.contact-map__toggle:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}

.contact-map__toggle[aria-expanded="true"] svg {
  transform: rotate(45deg);
}

.contact-map__toggle svg {
  transition: transform var(--transition-base);
}

.section--contact-map {
  padding: 0;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 480px;
  filter: saturate(0.8);
}

[data-theme="dark"] .contact-map iframe {
  filter: saturate(0.8) invert(0.92) hue-rotate(180deg);
}

/* Section 3: Form + Poland map */
.section--contact-form {
  padding: var(--space-4xl) 0 var(--space-5xl);
}

.contact-form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}
.contact-form-layout.contact-form-layout--single{
    grid-template-columns: 1fr;
    align-items: center;
}
.contact-form-layout.contact-form-layout--single .contact-form-layout__form{
    max-width: 500px;
    margin: 0 auto;
}

/* Map-left modifier: swap column order */
.contact-form-layout--map-left .contact-form-layout__map-pl {
  order: -1;
}

/* Fluent Forms overrides */
.contact-form-layout__form .fluentform .ff-el-input--content input,
.contact-form-layout__form .fluentform .ff-el-input--content textarea,
.fluentform .ff-el-input--content input,
.fluentform .ff-el-input--content textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  padding: var(--space-md);
  font-family: inherit;
  font-size: var(--font-size-base);
  transition: border-color var(--transition-base);
}

.contact-form-layout__form .fluentform .ff-el-input--content input:focus,
.contact-form-layout__form .fluentform .ff-el-input--content textarea:focus,
.fluentform .ff-el-input--content input:focus,
.fluentform .ff-el-input--content textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 58, 79, 215), 0.15);
}

.contact-form-layout__form .fluentform .ff-btn-submit,
.fluentform .ff-btn-submit {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
  font-family: inherit;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: background var(--transition-base), box-shadow var(--transition-base);
  width: 100%;
}

.contact-form-layout__form .fluentform .ff-btn-submit:hover,
.fluentform .ff-btn-submit:hover {
  box-shadow: 0 8px 24px rgba(var(--accent-rgb, 58, 79, 215), 0.35);
}

.contact-form-layout__placeholder {
  color: var(--color-text-muted);
  font-style: italic;
  padding: var(--space-xl);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  text-align: center;
}

/* Checkbox text truncation */
.contact-form-layout__form .ff-el-form-check label,
.fluentform .ff-el-form-check label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all var(--transition-base);
}

.ff-el-form-check-label{
  font-size: 0.8em;
}
.ff-el-form-check-label input[type="checkbox"]{
  margin-right: 0.5rem !important;
}

.contact-form-layout__form .ff-el-form-check label.is-expanded,
.fluentform .ff-el-form-check label.is-expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.contact-form-layout__form .ff-checkbox-expand,
.ff-checkbox-expand {
  display: inline-block;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: var(--font-size-xs);
  font-weight: 600;
  cursor: pointer;
  padding: var(--space-xs) 0;
  margin-top: var(--space-xs);
}

/* Poland map SVG */
.poland-map {
  max-width: 500px;
  margin: 0 auto;
}

.poland-map__svg {
  width: 100%;
  height: auto;
}

.poland-map__outline {
  transition: fill var(--transition-base);
}

.poland-map__city-bg {
  fill: var(--color-surface);
  stroke: var(--color-border);
  stroke-width: 1;
  transition: fill var(--transition-base), transform var(--transition-base);
}

.poland-map__city-dot {
  fill: #0802AF;
  transition: r var(--transition-base);
}

.poland-map__city-dot--main {
  fill: #0802AF;
  filter: drop-shadow(0 0 6px rgba(8, 2, 175, 0.5));
}

.poland-map__city-name {
  fill: var(--color-bg);
  font-size: 15px !important;
  font-weight: 400;
  text-anchor: middle;
  pointer-events: none;
}
.poland-map__city-bg{
  fill: var(--color-text);
  pointer-events: none;
  height: 30px !important;
  transform: translateY(10px) !important;
}


.poland-map__city:hover .poland-map__city-dot {
  r: 7;
}
.poland-map__city:hover .poland-map__city-bg,
.poland-map__city--active .poland-map__city-bg {
  fill: var(--color-bg);
}
.poland-map__city:hover .poland-map__city-name,
.poland-map__city--active .poland-map__city-name {
  fill: var(--color-text);
}

/* Scroll-reveal animation for cities */

.poland-map__city .poland-map__city-dot05{
  opacity: 0;
}

.poland-map__city .poland-map__city-dot{
  opacity: 0;
  r:0;
  transition: all 1s ease;
}

.poland-map--revealed .poland-map__city .poland-map__city-dot{
  opacity: 1;
  r:4;
}


.poland-map__city .poland-map__city-bg{
  opacity: 0;
  transition: all 1s ease;
}

.poland-map--revealed .poland-map__city .poland-map__city-bg{
  opacity: 1;
}

.poland-map__city .poland-map__city-name{
  opacity: 0;
  transition: all 1s ease;
}

.poland-map--revealed .poland-map__city .poland-map__city-name{
  opacity: 1;
}

.poland-map--revealed .poland-map__city:nth-child(1) .poland-map__city-bg{ transition-delay: 0.4s; }
.poland-map--revealed .poland-map__city:nth-child(2) .poland-map__city-bg{ transition-delay: 0.6s; }
.poland-map--revealed .poland-map__city:nth-child(3) .poland-map__city-bg{ transition-delay: 0.8s; }
.poland-map--revealed .poland-map__city:nth-child(4) .poland-map__city-bg{ transition-delay: 1.0s; }
.poland-map--revealed .poland-map__city:nth-child(5) .poland-map__city-bg{ transition-delay: 1.2s; }
.poland-map--revealed .poland-map__city:nth-child(6) .poland-map__city-bg{ transition-delay: 1.4s; }

.poland-map--revealed .poland-map__city:nth-child(1) .poland-map__city-name{ transition-delay: 0.8s; }
.poland-map--revealed .poland-map__city:nth-child(2) .poland-map__city-name{ transition-delay: 1.0s; }
.poland-map--revealed .poland-map__city:nth-child(3) .poland-map__city-name{ transition-delay: 1.2s; }
.poland-map--revealed .poland-map__city:nth-child(4) .poland-map__city-name{ transition-delay: 1.4s; }
.poland-map--revealed .poland-map__city:nth-child(5) .poland-map__city-name{ transition-delay: 1.6s; }
.poland-map--revealed .poland-map__city:nth-child(6) .poland-map__city-name{ transition-delay: 1.8s; }

.poland-map--revealed .poland-map__city:nth-child(1) .poland-map__city-dot{ transition-delay: 0s; }
.poland-map--revealed .poland-map__city:nth-child(2) .poland-map__city-dot{ transition-delay: 0.2s; }
.poland-map--revealed .poland-map__city:nth-child(3) .poland-map__city-dot{ transition-delay: 0.4s; }
.poland-map--revealed .poland-map__city:nth-child(4) .poland-map__city-dot{ transition-delay: 0.6s; }
.poland-map--revealed .poland-map__city:nth-child(5) .poland-map__city-dot{ transition-delay: 0.8s; }
.poland-map--revealed .poland-map__city:nth-child(6) .poland-map__city-dot{ transition-delay: 1.0s; }

.poland-map--revealed .poland-map__city:nth-child(1) .poland-map__city-dot05{ animation-delay: 2.0s; }
.poland-map--revealed .poland-map__city:nth-child(2) .poland-map__city-dot05{ animation-delay: 2.5s; }
.poland-map--revealed .poland-map__city:nth-child(3) .poland-map__city-dot05{ animation-delay: 3.0s; }
.poland-map--revealed .poland-map__city:nth-child(4) .poland-map__city-dot05{ animation-delay: 3.5s; }
.poland-map--revealed .poland-map__city:nth-child(5) .poland-map__city-dot05{ animation-delay: 4.0s; }
.poland-map--revealed .poland-map__city:nth-child(6) .poland-map__city-dot05{ animation-delay: 4.5s; }


.poland-map__cities .poland-map__city .poland-map__city-dot05 {animation: poloniumPulse 2.5s ease-in-out infinite;}

@keyframes poloniumPulse {
  0% {
    opacity: 0;
    r: 0;
  }
  50% {
    opacity: 0.5;
    r: 5;
  }
  100% {
    opacity: 0;
    r: 10;
  }
}

@media (max-width: 900px) {
  .contact-page__layout {
    grid-template-columns: 1fr;
  }

  .contact-page__watermark {
    display: none;
  }

  .contact-page__image {
    display: none;
  }

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

  .contact-form-layout__map-pl {
    order: 2;
  }
}

@media (max-width: 600px) {
  .section--contact-page {
    padding: var(--space-2xl) 0 var(--space-3xl);
  }

  .contact-page__title {
    font-size: var(--font-size-2xl);
  }

  .contact-map iframe {
    height: 320px;
  }

  .section--contact-form {
    padding: var(--space-2xl) 0 var(--space-3xl);
  }
}

/* ==========================================================================
   SINGLE SERVICE PAGE (single-usluga.php)
   ========================================================================== */

/* Light mode: override accent color with service color */
[data-theme="light"] .svc-page {
  --color-accent: var(--svc-color, #2B47D6);
  --color-accent-hover: var(--svc-color, #1e2b99);
  --color-accent-light: rgba(var(--svc-color-rgb, 43, 71, 214), 0.08);
}

/* Hero */
.section--svc-hero {
  position: relative;
  padding: var(--space-xl) 0 var(--space-xl);
  overflow: visible;
}

.svc-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 20% 50%, rgba(var(--svc-color-rgb), 0.10) 0%, transparent 60%);
  pointer-events: none;
}

[data-theme="dark"] .svc-hero__bg {
  background: radial-gradient(ellipse 90% 70% at 20% 50%, rgba(var(--svc-color-rgb), 0.15) 0%, transparent 60%);
}

/* Hero two-column grid */
.svc-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: end;
}

.svc-hero__content {
  align-self: center;
  max-width: 640px;
}

.svc-hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.svc-hero__desc {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.svc-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, #2E2D2F 0%, #161517 100%);
  color: #fff;
  font-weight: 500;
  font-size: var(--font-size-sm);
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition-base), gap var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  white-space: nowrap;
}

[data-theme="light"] .svc-hero__cta {
  background: var(--svc-color, linear-gradient(135deg, #273DDE 0%, #211CB7 100%));
}

.svc-hero__cta:hover {
  background: linear-gradient(135deg, #161517 0%, #1E1E1F 100%);
  gap: var(--space-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

[data-theme="light"] .svc-hero__cta:hover {
  background: var(--svc-color, linear-gradient(135deg, #211CB7 0%, #1B1889 100%));
  filter: brightness(0.85);
  box-shadow: 0 4px 16px rgba(var(--svc-color-rgb, 39, 61, 222), 0.30);
}

/* CTA dropdown */
.svc-hero__cta-wrap {
  position: relative;
  display: inline-block;
}

.svc-hero__cta-chevron {
  transition: transform var(--transition-base);
}

.svc-hero__cta-wrap[data-open="true"] .svc-hero__cta-chevron {
  transform: rotate(180deg);
}

.svc-hero__dropdown {
  position: absolute;
  top: calc(100% + var(--space-sm));
  left: 0;
  min-width: 320px;
  background: #1a191ad1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 20;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--transition-base), transform var(--transition-base);
  pointer-events: none;
  width: 50vw;
}

.svc-hero__dropdown:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.svc-hero__dropdown-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px var(--space-lg);
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
  color: var(--color-text);
}

.svc-hero__dropdown-item:last-child {
  border-bottom: none;
}

.svc-hero__dropdown-item:hover {
  background: rgba(var(--svc-color-rgb), 0.06);
  color: var(--color-text);
}

.svc-hero__dropdown-name {
  font-weight: 700;
  font-size: var(--font-size-base);
  grid-column: 1;
  grid-row: 1;
}

.svc-hero__dropdown-pos {
  font-size: var(--font-size-xs);
  color: var(--color-bg);
  grid-column: 1;
  grid-row: 2;
}

.svc-hero__dropdown-action {
  font-size: var(--font-size-sm);
  color: var(--color-bg);
  font-weight: 600;
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
}
[data-theme="dark"] .svc-hero__dropdown { background: var(--color-bg);border: 1px solid rgb(255 255 255 / 28%);}
[data-theme="dark"] .svc-hero__dropdown-item { color: var(--color-text);}
[data-theme="dark"] .svc-hero__dropdown-action { color: var(--color-accent);}
[data-theme="dark"] .svc-hero__dropdown-pos { color: var(--color-text-secondary);}

[data-theme="light"] .svc-hero__dropdown { background: var(--color-bg);border: 1px solid rgb(0 0 0 / 28%);}
[data-theme="light"] .svc-hero__dropdown-item { color: var(--color-text);}
[data-theme="light"] .svc-hero__dropdown-action { color: var(--color-accent);}
[data-theme="light"] .svc-hero__dropdown-pos { color: var(--color-text-secondary);}

/* Hero employees (right column) */
.svc-hero__employees {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  overflow: visible;
}

/* Single employee — center */
.svc-hero__employees--count-1 {
  justify-content: center;
}

/* Two employees */
.svc-hero__employees--count-2 {
  justify-content: center;
}

/* Three employees */
.svc-hero__employees--count-3 {
  justify-content: center;
}

.svc-hero__emp {
  position: relative;
  flex-shrink: 0;
  min-width: 0;
}

.svc-hero__emp-photo {
  position: relative;
  overflow: visible;
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
  height: 400px;
  width: 30vw;
}

[data-theme="light"] .svc-hero__emp-photo {
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 95%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 95%);
}

.svc-hero__emp-photo img {
  display: block;
  width: auto;
  object-fit: contain;
}

/* Label overlay at 70% from top of image */
.svc-hero__emp-label {
  position: absolute;
  top: 70%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
  z-index: 2;
  width: 75%;
}

.svc-hero__emp-name {
  font-weight: 700;
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: 1.25;
  text-align: right;
}

.svc-hero__emp-pos {
      color: var(--color-text);
    background: var(--color-bg);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  line-height: 1.3;
  text-align: right;
}
[data-theme="light"] .svc-hero__emp-label .svc-hero__emp-pos {
    color: var(--color-text);
    background: var(--color-bg);
    padding: 10px;
    width: 75%;
    margin-left: auto;
    text-wrap-style: balance;
    opacity: 0.6;
}
[data-theme="dark"] .svc-hero__emp-label .svc-hero__emp-pos {
    color: var(--color-text);
    background: var(--color-bg);
    padding: 10px;
    width: 75%;
    margin-left: auto;
    text-wrap-style: balance;
    opacity: 0.6;
}
.svc-hero__emp-label .svc-hero__emp-name{
  color: #ffffff; 
  wrap: nowrap; 
  background: var(--color-bg);
  padding: 10px;
}
.svc-hero__emp-label .svc-hero__emp-pos{width: auto; margin-left: auto;}
.svc-hero__emp-label .svc-hero__emp-name{margin-left: auto;}

/* ---- 1 person: centered, label left-aligned to photo, text-align right ---- */
.svc-hero__employees--count-1 .svc-hero__emp-label {
  left: 0;
}

/* ---- 2 persons ---- */
/* Left person: shifted down */
.svc-hero__employees--count-2 .svc-hero__emp--pos-0 {  
  margin-right: -40px;
  z-index: 10;
}

.svc-hero__employees--count-2 .svc-hero__emp--pos-0 .svc-hero__emp-label {
  left: 0;
}

/* Right person: shifted up */
.svc-hero__employees--count-2 .svc-hero__emp--pos-1 {  
  margin-left: -40px;
}

.svc-hero__employees--count-2 .svc-hero__emp--pos-1 .svc-hero__emp-label {
  right: 0;
}

/* ---- 3 persons ---- */
/* Left person: shifted down */
.svc-hero__employees--count-3 .svc-hero__emp--pos-0 {
  
  margin-right: -40px;
  z-index: 10;
}

.svc-hero__employees--count-3 .svc-hero__emp--pos-0 .svc-hero__emp-label {
  left: 0;
}

/* Middle person: no shift */
.svc-hero__employees--count-3 .svc-hero__emp--pos-1 {
  margin-left: -40px;
  margin-right: -40px;
  z-index: 8;
}

.svc-hero__employees--count-3 .svc-hero__emp--pos-1 .svc-hero__emp-label {
  left: 50%;
  transform: translateX(-50%);
}

/* Right person: shifted up */
.svc-hero__employees--count-3 .svc-hero__emp--pos-2 {  
  margin-left: -40px;
}

.svc-hero__employees--count-3 .svc-hero__emp--pos-2 .svc-hero__emp-label {
  right: 0;
}

/* Narrow screens: allow slight overlap */
@media (min-width: 960px) {
    .svc-hero__emp-photo {
    height: calc(400px + (100vw - 960px) / 2);
    width: 30vw;
    max-height: 600px;
    max-width: 420px;
  }
  .team-page__grid--extended-dept .team-card-cmp:before {
    width: 150%;
  }
  .svc-hero__employees.svc-hero__employees--count-1{

  }
  .svc-hero__employees--count-1 .svc-hero__emp-photo {
    width: 30vw;
    max-width: 420px;
  }
}
/* Narrow screens: allow slight overlap */
@media (max-width: 600px) {
  .svc-hero__employees--count-2,
  .svc-hero__employees--count-3 {
    gap: 0;
  }

  .svc-hero__emp-photo img {
   max-width: 40vw; 
  }
  .svc-hero__emp-label{
    max-width: 40vw;
  }
}
@media (max-width: 400px) {
  .svc-hero__emp-photo{
   height: 200px;
  }
  .svc-hero__employees {
        min-height: 300px;
    }
}

/* Contact social icons */
.svc-contact__socials {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.svc-contact__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.svc-contact__social:hover {
  background: var(--svc-color);
  color: #fff;
}

.svc-contact__phone,
.svc-contact__email {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-accent);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-xs);
  transition: opacity var(--transition-fast);
}

.svc-contact__phone:hover,
.svc-contact__email:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.svc-contact__phone svg,
.svc-contact__email svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* Scope tabs */
.section--svc-scope {
  --svc-color: var(--color-accent);
  --svc-color-rgb: 43, 71, 214;
  padding: var(--space-4xl) 0;
  /* background removed — unified page bg */
}

.svc-scope__heading {
  /* font-size: clamp(1.5rem, 3vw, var(--font-size-2xl));
  font-weight: 800;
  margin-bottom: var(--space-2xl);
  letter-spacing: -0.02em; */

  font-weight: 200;
  text-align: center;
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.svc-scope__layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-xl);
  align-items: center;
}

/* Tabs wrapper with arrows */
.svc-scope__tabs-wrap {
  position: relative;
  height: 100%;
  display: flex;
  gap: var(--space-sm);
  align-items: stretch;
  padding-left: 35px;
}


.svc-scope__tabs-wrap::before{
  content: '';
  position: absolute;
  height: 100%;
  aspect-ratio: 1/1;
  border: 1px solid var(--color-text);
  transform: translateX(calc( 80px - 100% ));
  border-radius: 50%;
  filter: blur(2px);
    -webkit-mask-image: linear-gradient(to bottom, 
    rgba(0,0,0,0) 0%, 
    rgba(0,0,0,1) 30%, 
    rgba(0,0,0,1) 70%, 
    rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, 
    rgba(0,0,0,0) 0%, 
    rgba(0,0,0,1) 10%, 
    rgba(0,0,0,1) 90%, 
    rgba(0,0,0,0) 100%);
}
.svc-scope__tabs-wrap::after{
  content: '';
  position: absolute;
  height: 90%;
  aspect-ratio: 1/1;
  border: 1px solid var(--color-text);
  transform: translateX(calc( 80px - 105% ));
  border-radius: 50%;
  top: 5%;
  -webkit-mask-image: linear-gradient(to bottom, 
    rgba(0,0,0,1) 0%, 
    rgba(0,0,0,1) 30%, 
    rgba(0,0,0,1) 70%, 
    rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, 
    rgba(0,0,0,1) 0%, 
    rgba(0,0,0,1) 30%, 
    rgba(0,0,0,1) 70%, 
    rgba(0,0,0,0) 100%);
}

/* Animated tab numbers column */
.svc-scope__tab-nums {
  position: relative;
  width: 0px;
  flex-shrink: 0;
  overflow: unset;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home .svc-scope__tab-nums {
  transform: translateX(40px);
}
.home .svc-scope__tabs-wrap::after{
    left:40px;
}
.home .svc-scope__tabs-wrap::before{
    left:40px;
}
.home .svc-scope__tabs-wrap{
    padding-left: 0;
}

.svc-scope__tab-num {
  position: absolute;
  font-weight: 400;
  font-size: 60px;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}

.svc-scope__tab-num--active {
  opacity: 1;
}

.svc-scope__tabs {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 320px;
  transform: translateX(15px);
  width: stretch;
}

.svc-scope__tabs .svc-scope__tab {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%) scale(1);
  transition: top 0.35s cubic-bezier(.4,0,.2,1),
              transform 0.3s ease,
              opacity 0.3s ease,
              background 0.3s ease,
              color 0.3s ease,
              border-color 0.3s ease;
}

.svc-scope__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-family: inherit;
  font-size: var(--font-size-base);
  transition: background var(--transition-fast), color var(--transition-fast);
  z-index: 10;
}

.svc-scope__arrow:hover {
  color: var(--color-accent);
}

.svc-scope__arrow--prev{
    /* margin-right: calc(-1 * var(--space-4xl)); */
    transform: translateX(45px);
    background: var(--color-bg);
    border-color: var(--color-map);
}
.svc-scope__arrow--next{
    /* margin-left: calc(-1 * var(--space-4xl)); */
    transform: translateX(-45px);
    background: var(--color-bg);
    border-color: var(--color-map);
}

/* Panels wrapper with flanking arrows */
.svc-scope__panels-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  height: 100%;
}

.svc-scope__panels-wrap > .svc-scope__panels {
  flex: 1;
  min-width: 0;
  z-index: 1;
}

.svc-scope__tab {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0 var(--space-md) var(--space-lg);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform 0.35s ease, opacity 0.35s ease;
  will-change: transform, opacity;
}

.svc-scope__tab:hover {
  background: none;
  color: var(--color-text);
}

.svc-scope__tab--active {
  background: none;
  border-color: none;
  color: var(--color-text);
}

.svc-scope__tab-name {
  font-weight: 400;
  transition: padding-left 0.35s cubic-bezier(.4,0,.2,1), opacity 0.35s ease;
  /* text-wrap-mode: nowrap; */
  opacity: 0.3;
  font-size: var(--font-size-sm);
  text-wrap-style: balance;
  min-width: calc(100% + 20px);
}

.svc-scope__tab--active .svc-scope__tab-name{
  opacity: 1;
}

/* ---- scope tab-name padding offset by tab count ----
   --scope-pad-step: base unit (20px) controlling left-indent.
   4–5 tabs  → start from 1× step
   2–3 tabs  → start from 2× step
   6+  tabs  → start from 0 (default)
   ---------------------------------------------------- */
.svc-scope__tabs {
  --scope-pad-step: 20px;
}

/* 4–5 tabs */
.svc-scope__tabs:has(.svc-scope__tab:nth-child(4)):not(:has(.svc-scope__tab:nth-child(6))) .svc-scope__tab-name {
  padding-left: var(--scope-pad-step);
}

/* 2–3 tabs */
.svc-scope__tabs:has(.svc-scope__tab:nth-child(2)):not(:has(.svc-scope__tab:nth-child(4))) .svc-scope__tab-name {
  padding-left: calc(2 * var(--scope-pad-step));
}
/* Panel */
.svc-scope__panel {
  padding: var(--space-xl) var(--space-2xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.svc-scope__panel[hidden] {
  display: none;
}

/* Panel fade animation */
.svc-scope__panel--entering {
  animation: svcPanelFadeIn 0.4s ease forwards;
}
.svc-scope__panel--leaving {
  animation: svcPanelFadeOut 0.25s ease forwards;
}
@keyframes svcPanelFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes svcPanelFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-12px); }
}

.svc-scope__panel-num {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--svc-color);
  opacity: 0.25;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

.svc-scope__panel-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.01em;
}

.svc-scope__panel-desc {
  color: var(--color-text-secondary);
  line-height: 1.5;
  font-size: var(--font-size-sm);
  /* max-width: 560px; */
}

.svc-scope__panel-desc ul{
      padding: 1rem 0;
}
.svc-scope__panel-desc li{
    margin-left: 1rem;
    list-style: initial;
}

.svc-scope__panel-btn {
  margin-top: var(--space-lg);
}

/* Section shared heading */
.svc-section__heading {
  font-size: clamp(1.5rem, 3vw, var(--font-size-2xl));
  font-weight: 800;
  margin-bottom: var(--space-2xl);
  letter-spacing: -0.02em;
}

/* Awards section – styled like front-page awards (timeline with logo) */
.section--svc-awards {
  padding: var(--space-4xl) 0;
}

.svc-awards__timeline {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.svc-awards__year {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
  padding: 2.5rem 0;
}

.svc-awards__year + .svc-awards__year {
  border-top: 1px solid var(--color-border);
}

.svc-awards__year-badge {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.25rem;
  position: relative;
}

.svc-awards__year-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.svc-awards__year-logo img {

  width: auto;
  display: block;
  opacity: 0.85;
}

[data-theme="dark"] .svc-awards__year-logo img {
  filter: none;
  opacity: 0.9;
}

[data-theme="light"] .svc-awards__year-logo img {
  filter: invert(1) brightness(2);
  opacity: 0.85;
}

.svc-awards__year-name {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.svc-awards__year-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-left: 2rem;
}

.svc-awards__award-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.svc-awards__award-list li strong {
  color: var(--color-text);
  font-weight: 500;
  margin-right: 0.15em;
}

.svc-awards__years {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.section--svc-awards .awards-cta {
  text-align: center;
  margin-top: var(--space-3xl);
}

.svc-section__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  color: var(--color-accent);
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: gap var(--transition-base);
}

.svc-section__link:hover {
  gap: var(--space-md);
}

/* Features (Co nas wyróżnia) */
.section--svc-features {
  padding: var(--space-3xl) 0;
}

.svc-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3xl) var(--space-lg);
}

.svc-features__item {
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base), transform var(--transition-base);
  padding-top: var(--space-3xl);
  text-align: center;
  position: relative;
}

.svc-features__icon {
  width: 100px;
  height: 100px;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-right: auto;
  position: absolute;
}

.svc-features__icon img {
  width: auto;
  height: 100px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--transition-base);
}

.svc-features__item:hover .svc-features__icon img {
  opacity: 1;
}

.svc-features__item:hover {
  border-color: rgba(var(--svc-color-rgb), 0.3);
  transform: translateY(-2px);
}

.svc-features__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--svc-color);
}

.svc-features__desc {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: var(--font-size-base);
}

/* FAQ */
.section--svc-faq {
  padding: var(--space-4xl) 0;
}

.svc-faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 860px;
  margin: 0 auto;
}

.svc-faq__item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.svc-faq__item[open] {
  border-color: rgba(var(--svc-color-rgb), 0.3);
}

.svc-faq__question {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--font-size-base);
  list-style: none;
  user-select: none;
  transition: background var(--transition-fast);
}

.svc-faq__question:hover {
  background: var(--color-surface);
}

.svc-faq__question::-webkit-details-marker {
  display: none;
}

.svc-faq__num {
  font-weight: 800;
  color: var(--svc-color);
  min-width: 32px;
  font-variant-numeric: tabular-nums;
}

.svc-faq__q-text {
  flex: 1;
}

.svc-faq__chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--transition-base);
}

.svc-faq__item[open] .svc-faq__chevron {
  transform: rotate(180deg);
}

.svc-faq__answer {
  padding: 0 var(--space-xl) var(--space-xl) calc(32px + var(--space-xl) + var(--space-md));
  color: var(--color-text-secondary);
  line-height: 1.8;
  font-size: var(--font-size-base);
}

.svc-faq__answer p {
  margin-bottom: var(--space-sm);
}

.svc-faq__answer p:last-child {
  margin-bottom: 0;
}

/* Successes – styled like homepage "LTCA w liczbach" */
.section--svc-successes {
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.section--svc-successes::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.4;
}

.svc-successes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3xl) var(--space-2xl);
  text-align: center;
  position: relative;
  z-index: 1;
}

.svc-successes__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  transition: none;
}

.svc-successes__item:hover {
  border-color: transparent;
}

.svc-successes__number {
  display: block;
  font-size: var(--font-size-5xl);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--svc-color);
}

.svc-successes__number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.svc-successes__unit {
  font-size: var(--font-size-2xl);
  font-weight: 400;
  color: var(--svc-color);
  margin-left: 0.15em;
}

.svc-successes__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  line-height: 1.5;
}

/* Trusted logos */
.section--svc-trusted {
  padding: var(--space-4xl) 0;
}

.svc-trusted__sub {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  font-size: var(--font-size-base);
}

.svc-trusted__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

.svc-trusted__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-sm);
  min-height: 64px;
}

.svc-trusted__item img {
  max-height: 40px;
  width: auto;
  max-width: 100%;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity var(--transition-base), filter var(--transition-base);
}

.svc-trusted__item:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

[data-theme="dark"] .svc-trusted__item img {
  filter: grayscale(100%) brightness(2);
  opacity: 0.4;
}

[data-theme="dark"] .svc-trusted__item:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* Contact cards */
.section--svc-contact {
  padding: var(--space-4xl) 0 var(--space-5xl);
}

.svc-contact__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.svc-contact__card {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);

  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base);
  margin: 0 auto;
  width: 100%;
}
.svc-contact__card_one{
  /* width: 50%; */
}

.svc-contact__card:hover {
  border-color: rgba(var(--svc-color-rgb), 0.2);
}

.svc-contact__photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(var(--svc-color-rgb), 0.15);
}
@media (max-width: 900px) {
  .svc-contact__photo {
    width: 150px;
    height: 150px;
  }
}

.svc-contact__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.svc-contact__name {
  display: block;
  font-weight: 700;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.svc-contact__role {
  display: block;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.svc-contact__phone,
.svc-contact__email {
  display: block;
  color: var(--color-accent);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-xs);
  transition: opacity var(--transition-fast);
}

.svc-contact__phone:hover,
.svc-contact__email:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Responsive: Single service */
@media (max-width: 768px) {
  .svc-successes__unit{
      font-size: 15px;
  }
}
@media (max-width: 900px) {
  .svc-hero__content{
    text-align: center;
    max-width: 100%;
  }
  .svc-hero__desc{
    width: 100%;
    display: block;
    max-width: 100%;
  }
  .svc-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .svc-hero__grid_containerfix {
    width: calc(100vw - var(--space-3xl)) !important;
  }

  .svc-hero__employees {
    justify-content: center; 
    width: calc(100vw - var(--space-2xl));
  }

  .svc-scope__layout {
    grid-template-columns: 1fr;
  }

  .svc-scope__tabs-wrap {
    padding-left: 0;
    flex-direction: column;
    position: static;
    /* overflow: hidden; */
  }

  .svc-scope__tabs-wrap::before,
  .svc-scope__tabs-wrap::after {
    width: 150%;
    height: auto;
    transform: translateX(-50%) translateY(-95%);
    left: 50% !important;
  }

  .svc-scope__tab-nums {
    position: relative;
    left: 50%;
    transform: translateX(-50%) !important;
    height: 50px;
  }

  .svc-scope__tabs {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    min-height: auto;
    top: 0;
    overflow: visible;
    position: relative;
    width: 100%;
    justify-content: center;
    align-items: center;
    touch-action: pan-y;
    transform: none;
  }

  .svc-scope__tabs .svc-scope__tab {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: var(--space-sm) var(--space-md) !important;
    white-space: nowrap;
  }

  .svc-scope__tabs .svc-scope__tab--active {
    opacity: 1;
    transform: scale(1);
  }

  .svc-scope__tab-name {
    padding-left: 0 !important;
  }

  .svc-scope__arrow {
    display: flex;
    width: 36px;
    height: 36px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
  }

  .svc-scope__arrow--prev {
    left: -10px;
  }

  .svc-scope__arrow--next {
    right: -10px;
  }

  .svc-scope__panels-wrap {
    display: block;
    position: relative;
  }

  .svc-scope__tab {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
  }

  .svc-successes__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .svc-awards__year {
    grid-template-columns: 1fr 1fr;
  }

  .svc-awards__year-logo img {
    max-width: 150px;
  }

  .circlesdeco::before, .awards-page__year-number::before{
    right: -30px;
    width: 30px;
    height: 30px;
  }
  .circlesdeco::after, .awards-page__year-number::after {
    right: -25px;
    width: 25px;
    height: 50px;
  }

  .svc-awards__year-content {
    padding-left: 1rem;
  }

  .svc-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .svc-trusted__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .svc-hero__emp-photo {
    width: 45vw;
    height: 40vh;
  }
  .section--svc-hero{
    padding: var(--space-xl) 0 var(--space-4xl);
  }
  .svc-hero__cta-wrap{
    display: block;
  }
  .svc-hero__dropdown{
    width: 80%;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%) !important;
  }
  .svc-hero__dropdown-pos{
    text-align: left;
  }

  .section--svc-scope .section__title{
    position: absolute;
    transform: translateY(-220px) translateX(-50%);
    left: 50%;
    width: 100%;
  }
  .section--svc-scope .svc-scope__layout{
    margin-top: 80px;
  }
  .svc-scope__tab{
    display: none !important;
  }
  .svc-scope__tab.svc-scope__tab--active{
    display: block !important;
  }
  .svc-scope__panel-title{
    font-size: var(--font-size-md);
  }
}
@media (min-width: 400px) {
  .section--svc-scope .section__title{
    text-wrap-mode: nowrap;
  }
}
@media (min-width: 900px) and (max-width: 1000px) {
  .section--svc-scope .section__title{
    font-size: var(--font-size-2xl);
  }
}
@media (max-width: 600px) {

.svc-hero__employees--count-2 .svc-hero__emp--pos-0 {transform: translateY(0);margin-left: -10px;        max-width: 40vw;}
.svc-hero__employees--count-2 .svc-hero__emp--pos-1 {transform: translateY(0);margin-left: 10px;        max-width: 40vw;}
.svc-hero__employees--count-3 .svc-hero__emp--pos-0 {transform: translateY(0);margin-left: -10px;        max-width: 40vw;}
.svc-hero__employees--count-3 .svc-hero__emp--pos-1 {transform: translateY(0);margin-left: 0px;        max-width: 40vw;}
.svc-hero__employees--count-3 .svc-hero__emp--pos-2 {transform: translateY(0);margin-left: 10px;        max-width: 40vw;}

  .section--svc-hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
  }

  .svc-hero__title {
    font-size: 2rem;
  }

  .svc-hero__desc {
    font-size: var(--font-size-base);
  }

  .svc-hero__emp-photo {
    width: 50vw;
    height: 300px;
  }

  .svc-hero__dropdown {
    min-width: 260px;
    width: calc(100vw - var(--space-xl));
    position: relative;
    margin-top: 15px;
  }
  .svc-hero__dropdown-name{font-size: var(--font-size-sm);}
  .svc-hero__dropdown-pos{font-size: var(--font-size-xs);}

.svc-hero__dropdown-item{ 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.svc-hero__dropdown-action {
    align-self: end;
}

  .svc-successes__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  

  .svc-successes__number {
    font-size: var(--font-size-2xl);
  }

  .svc-awards__year {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .svc-awards__year-badge {
    justify-content: flex-start;
  }

  .svc-awards__year-content {
    padding-left: 0;
  }

  .svc-features__grid {
    grid-template-columns: 1fr;
  }

  .svc-trusted__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .svc-contact__cards {
    grid-template-columns: 1fr;
  }

  .svc-scope__panel {
    padding: var(--space-lg) var(--space-2xl);
  }

  .section--svc-scope,
  .section--svc-awards,
  .section--svc-features,
  .section--svc-faq,
  .section--svc-successes,
  .section--svc-trusted,
  .section--svc-contact {
    padding: var(--space-2xl) 0;
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  padding: var(--space-lg) 0;
  animation: cookieSlideUp 0.35s ease-out;
}

@keyframes cookieSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.cookie-banner__inner {
  max-width: var(--container-max-width, 1200px);
  margin: 0 auto;
  padding: 0 var(--container-padding, 2rem);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 240px;
}

.cookie-banner__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cookie-banner__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.cookie-banner__categories {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.cookie-banner__cat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--font-size-sm);
  cursor: pointer;
  white-space: nowrap;
}

.cookie-banner__cat small {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.cookie-banner__cat input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
  margin: 0 auto;
}

.cookie-banner__btn {
  padding: 0.6rem 1.2rem;
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner__categories {
    justify-content: center;
  }

  .cookie-banner__actions {
    justify-content: center;
  }
}

/* ==========================================================================
   FAQ answer updated padding
   ========================================================================== */

.svc-faq__answer {
  padding: var(--space-md) var(--space-xl) var(--space-xl) calc(32px + var(--space-xl) + var(--space-md));
}

/* ==========================================================================
   SEKCJA: OPIS
   ========================================================================== */

.section--svc-opis {
  padding: var(--space-4xl) 0;
}

.svc-opis__content {
  max-width: 800px;
  margin: var(--space-xl) auto 0;
  line-height: 1.8;
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
}

.svc-opis__content p { margin-bottom: var(--space-md); }
.svc-opis__content p:last-child { margin-bottom: 0; }

.svc-opis__btn-wrap {
  text-align: center;
  margin-top: var(--space-xl);
}

@media (max-width: 768px) {
.svc-opis__content p {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
}
}

/* ==========================================================================
   SEKCJA: PROCES (timeline)
   ========================================================================== */

.section--svc-process {
  padding: var(--space-4xl) 0;
}

.svc-process__list {
  list-style: none;
  margin: var(--space-2xl) auto 0;
  padding: 0;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  position: relative;
}

.svc-process__list::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.svc-process__item {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  position: relative;
}

.svc-process__circle {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.svc-process__num {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.svc-process__body {
  padding-top: var(--space-sm);
  flex: 1;
}

.svc-process__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.svc-process__content {
  font-size: var(--font-size-base);
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.svc-process__content p { margin-bottom: var(--space-sm); }
.svc-process__content p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .svc-process__list::before {
    left: 22px;
  }

  .svc-process__circle {
    width: 44px;
    height: 44px;
  }

  .svc-process__item {
    gap: var(--space-md);
  }
}

/* ==========================================================================
   Mobile — additional 480px rules
   ========================================================================== */

@media (max-width: 480px) {
  .team-page__grid--extended-dept .team-card-cmp__photo picture {
    width: 150px;
  }
  .team-page__grid--extended-dept .team-card-cmp__photo_before{
    width: 150px;
  }

  .newsletter__btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
  }

  .svc-faq__answer {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

/* ==========================================================================
   Blog section (service pages)
   ========================================================================== */

.section--svc-blog {
  padding-top: var(--space-3xl, 4rem);
  padding-bottom: var(--space-3xl, 4rem);
}

.svc-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl, 2rem);
  margin-bottom: var(--space-xl, 2rem);
}

.svc-blog__card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.svc-blog__card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

.svc-blog__card-img-link {
  display: block;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  position: relative;
}

.svc-blog__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.svc-blog__card:hover .svc-blog__card-img {
  transform: scale(1.05);
}

.svc-blog__card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-lg, 1.5rem);
  gap: var(--space-sm, 0.5rem);
}
.svc-blog__card-categories{
  font-size: var(--font-size-xs);
  gap: var(--space-xs);
  display: flex;
  flex-direction: row;
  position: absolute;
  top: 10px;
  left: 10px;
      z-index: 9999;
}
.svc-blog__card-categories span{
  font-size: var(--font-size-xs);
  padding: var(--space-xs) var(--space-sm);
  color: var(--color-text-muted);
  background-color: var(--color-bg);
  text-wrap-mode: nowrap;
  transition: all 0.3s ease-in-out;
}
.svc-blog__card-img-link a:hover span, .svc-blog__card:hover a span,
.svc-blog__card-img-link:hover span, .svc-blog__card a:hover{
  color: var(--color-text);
}

.svc-blog__card-title {
  font-size: var(--font-size-md);
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.svc-blog__card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.svc-blog__card-title a:hover {
  
}

.svc-blog__card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm, 0.5rem);
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
}

.svc-blog__card-date::after {
  content: '·';
  margin-left: var(--space-sm, 0.5rem);
}

.svc-blog__card-link {
  margin-top: auto;
  align-self: flex-start;
  padding-top: 20px;
  width: 100%;
}

.svc-blog__card-link svg {
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.svc-blog__card-link:hover svg {
  transform: translateX(4px);
}

.svc-blog__more {
  text-align: center;
}

@media (max-width: 900px) {
  .svc-blog__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg, 1.5rem);
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .svc-blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   FIX: Hero dark mode btn--primary → use light-mode style
   ========================================================================== */

[data-theme="dark"] .hero .btn--primary {
  background: linear-gradient(180deg, #273DDE 0%, #211CB7 100%) !important;
  border: 1px solid transparent !important;
  border-top: 1px solid transparent !important;
}

[data-theme="dark"] .hero .btn--primary:hover {
  box-shadow: 0 4px 16px rgba(39, 61, 222, 0.30) !important;
  border-top: 1px solid transparent !important;
}

/* ==========================================================================
   FIX: Cookie banner on mobile — keep within viewport
   ========================================================================== */

@media (max-width: 480px) {
  .cookie-banner {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
  }

  .cookie-banner__inner {
    padding: 0 var(--space-md, 1rem);
    gap: var(--space-md, 1rem);
  }

  .cookie-banner__actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-banner__actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   FIX: Service contact buttons — prevent clipping on mobile
   ========================================================================== */

@media (max-width: 600px) {
  .svc-contact__card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .svc-contact__info {
    width: 100%;
    align-items: center;
  }

  .svc-contact__info .btn {
    width: 100%;
    text-align: center;
    white-space: normal;
    word-break: break-word;
  }
  input[type=checkbox]{
    height: 15px;
    width: 15px;
  }
}

/* ==========================================================================
   FIX: History timeline — more contrasting scrollbar
   ========================================================================== */

[data-theme="dark"] .history-timeline {
  scrollbar-color: rgba(255,255,255,0.45) rgba(255,255,255,0.08);
}
[data-theme="dark"] .history-timeline::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.45);
}
[data-theme="dark"] .history-timeline::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.6);
}
[data-theme="dark"] .history-timeline::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.08);
}

[data-theme="light"] .history-timeline {
  scrollbar-color: rgba(16,16,53,0.35) rgba(16,16,53,0.06);
}
[data-theme="light"] .history-timeline::-webkit-scrollbar-thumb {
  background: rgba(16,16,53,0.35);
}
[data-theme="light"] .history-timeline::-webkit-scrollbar-thumb:hover {
  background: rgba(16,16,53,0.5);
}
[data-theme="light"] .history-timeline::-webkit-scrollbar-track {
  background: rgba(16,16,53,0.06);
}

/* History scroll hint tooltip */
.history-timeline__scroll-hint {
  text-align: center;
  padding: var(--space-sm) 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0.7;
  animation: scrollHintPulse 2s ease-in-out infinite;
}

.history-timeline__scroll-hint svg {
  flex-shrink: 0;
}

@keyframes scrollHintPulse {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(3px); }
}

/* Contact form "Umów spotkanie" button under form */
.contact-form__book-btn {
  text-align: center;
  margin-top: var(--space-xl);
}



/* Główne style dla dokumentów prawnych */

article h1 {
    font-size: 2.2em;
    margin-bottom: 30px;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 15px;
}

article h2 {
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 15px;
}

article p {
    margin-bottom: 15px;
    text-align: justify;
}

article ul, article ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

article li {
    margin-bottom: 10px;
}

article a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

article a:hover {
    text-decoration: underline;
}

article strong {
    
}