/* Variables */
[data-theme="light"] {
  --bg-deep: #f4f4f2;
  --bg-card: #ffffff;
  --bg-elevated: #ececea;
  --text: #141816;
  --text-muted: #4f5a52;
  --accent: #7a6210;
  --accent-hover: #5c4a0c;
  --accent-glow: rgba(122, 98, 16, 0.18);
  --forest: #2d5a3d;
  --forest-light: #3a6b4a;
  --header-bg: rgba(244, 244, 242, 0.92);
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-strong: rgba(0, 0, 0, 0.14);
  --surface-hover: rgba(0, 0, 0, 0.04);
  --surface-active: rgba(0, 0, 0, 0.07);
  --grain-opacity: 0.025;
  --footer-bg: #141816;
  --footer-text: #eceeea;
  --footer-muted: #9aa89c;
  --mobile-nav-bg: rgba(244, 244, 242, 0.82);
  --mobile-nav-border: rgba(0, 0, 0, 0.08);
  --overlay-bg: rgba(20, 24, 22, 0.35);
}

[data-theme="dark"] {
  --bg-deep: #0c0f0d;
  --bg-card: #141a16;
  --bg-elevated: #1a221c;
  --text: #e8ebe9;
  --text-muted: #8a9a8e;
  --accent: #c9a227;
  --accent-hover: #dbb42e;
  --accent-glow: rgba(201, 162, 39, 0.35);
  --forest: #2d5a3d;
  --forest-light: #4a7c59;
  --header-bg: rgba(12, 15, 13, 0.88);
  --shadow: rgba(0, 0, 0, 0.35);
  --shadow-strong: rgba(0, 0, 0, 0.45);
  --surface-hover: rgba(255, 255, 255, 0.04);
  --surface-active: rgba(255, 255, 255, 0.06);
  --grain-opacity: 0.04;
  --footer-bg: #080a09;
  --footer-text: #e8ebe9;
  --footer-muted: #7f8f83;
  --mobile-nav-bg: rgba(12, 15, 13, 0.88);
  --mobile-nav-border: rgba(255, 255, 255, 0.08);
  --overlay-bg: rgba(0, 0, 0, 0.45);
}

:root {
  --font-display: 'IBM Plex Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --radius: 0;
  --radius-lg: 0;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: 0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
address { font-style: normal; }

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background var(--transition), backdrop-filter var(--transition), padding var(--transition);
}
.header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  padding: 0.75rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.logo-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.logo-text {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}
.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-link:hover {
  color: var(--text);
}
.nav-link.active {
  color: var(--accent);
  font-weight: 600;
}
.nav-link--cta {
  color: var(--accent) !important;
  font-weight: 600;
  margin-left: 0.35rem;
}
.nav-link--cta:hover {
  color: var(--accent-hover) !important;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--footer-muted);
  transition: color var(--transition);
}
.theme-toggle:hover {
  color: var(--accent);
}
.theme-toggle--footer {
  margin-left: 0.25rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.nav-overlay {
  display: none;
}

.nav-close {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn--primary {
  background: var(--accent);
  color: var(--bg-card);
}
.btn--primary:hover {
  background: var(--accent-hover);
}
.btn--ghost {
  color: var(--text-muted);
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost:hover {
  color: var(--accent);
  background: none;
}
.btn--full { width: 100%; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--forest) 8%, transparent) 0%, transparent 50%),
    linear-gradient(225deg, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 45%);
}
.hero-mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35vh;
  background: linear-gradient(to top, var(--bg-deep) 0%, transparent 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23d5d8d3' fill-opacity='0.7' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,218.7C672,235,768,245,864,234.7C960,224,1056,192,1152,181.3C1248,171,1344,181,1392,186.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3Cpath fill='%232d5a3d' fill-opacity='0.1' d='M0,160L80,170.7C160,181,320,203,480,197.3C640,192,800,160,960,154.7C1120,149,1280,171,1360,181.3L1440,192L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'/%3E%3C/svg%3E") bottom center / cover no-repeat;
  opacity: 0.7;
}
[data-theme="dark"] .hero-mountains {
  background: linear-gradient(to top, var(--bg-deep) 0%, transparent 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%231a221c' fill-opacity='0.6' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,218.7C672,235,768,245,864,234.7C960,224,1056,192,1152,181.3C1248,171,1344,181,1392,186.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3Cpath fill='%232d5a3d' fill-opacity='0.15' d='M0,160L80,170.7C160,181,320,203,480,197.3C640,192,800,160,960,154.7C1120,149,1280,171,1360,181.3L1440,192L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'/%3E%3C/svg%3E") bottom center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  max-width: 22em;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions,
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}
.hero-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  transition: color var(--transition);
}
.hero-link:hover {
  color: var(--accent-hover);
}

.hero-ticker {
  margin-bottom: 3rem;
  max-width: min(640px, 100%);
}
.hero-ticker__label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.hero-ticker__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}
.hero-ticker__track {
  display: flex;
  width: max-content;
  animation: hero-ticker-scroll 32s linear infinite;
}
.hero-ticker:hover .hero-ticker__track {
  animation-play-state: paused;
}
.hero-ticker__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}
.hero-ticker__list li {
  display: flex;
  align-items: center;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  padding: 0 1.35rem;
}
.hero-ticker__list li::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  margin-left: 1.35rem;
  background: var(--accent);
  opacity: 0.55;
  flex-shrink: 0;
}
.hero-ticker__list li:last-child::after {
  display: none;
}
@keyframes hero-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ticker__viewport {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-ticker__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.35rem 0;
  }
  .hero-ticker__list:last-child {
    display: none;
  }
  .hero-ticker__list li {
    white-space: normal;
    padding: 0;
  }
  .hero-ticker__list li::after {
    margin-left: 0.85rem;
  }
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  padding-top: 2rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 40px;
  background: var(--surface-active);
  z-index: 1;
}
.hero-scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent);
  animation: scroll-dot 2s ease infinite;
}
@keyframes scroll-dot {
  0%, 100% { opacity: 1; top: 8px; }
  50% { opacity: 0.3; top: 20px; }
}

/* Sections */
.section {
  padding: 7rem 0;
  position: relative;
}
.section-header + .services-grid,
.industry-clients + .services-grid {
  margin-top: 0;
}
.section-header {
  max-width: 600px;
  margin-bottom: 3rem;
}
.section-header--light .section-tag { color: var(--forest-light); }
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-header h2,
.section-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.section-header h2 em,
.section-header h1 em {
  font-style: normal;
  color: var(--accent);
}
.section-header p {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 1.05rem;
}

/* Nasze konta */
.accounts {
  background: none;
}

.accounts-grid,
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.projects-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.account-card {
  position: relative;
  padding: 2rem 0;
  overflow: hidden;
}
.account-card--featured {
  background: none;
}
.account-card__glow {
  display: none;
}
.account-card__header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
.account-card__avatar {
  display: flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 2.25rem;
}
.account-card__logo-link {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}
.account-card__logo {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
}
.account-card__header h3 a {
  transition: color var(--transition);
}
.account-card__header h3 a:hover {
  color: var(--accent);
}
.account-card__header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.account-card__handle-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
.account-card__handle-link:hover {
  color: var(--accent);
}
.account-card__platform-icon {
  flex-shrink: 0;
}
.account-card__handle {
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 0.15rem;
}
.account-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}
.account-card__stats {
  display: flex;
  gap: 2.5rem;
  padding: 1.5rem 0;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
.account-stat__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.account-stat__suffix {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
}
.account-stat__label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.35rem;
}
.account-card__platforms,
.account-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}
.account-card__platforms span,
.account-card__platforms a,
.account-card__tags span {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0;
  color: var(--text-muted);
}
.account-card__platforms a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  transition: color var(--transition);
}
.account-card__platforms a:hover {
  color: var(--accent);
}
.account-card__partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  position: relative;
  z-index: 1;
}
.account-card__partners-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.account-card__partner img {
  display: block;
  width: auto;
  max-width: 10rem;
  max-height: 3rem;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity var(--transition);
}
.account-card__partner:hover img {
  opacity: 1;
}

/* Industry sections */
.industry {
  background: none;
}
.industry--alt {
  background: none;
}

.industry-showcase {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
.industry-showcase--reverse {
  direction: rtl;
}
.industry-showcase--reverse > * {
  direction: ltr;
}

.industry-visual__inner {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.industry-visual__inner--attractions {
  background:
    linear-gradient(160deg, var(--bg-elevated) 0%, color-mix(in srgb, var(--forest) 18%, var(--bg-card)) 100%);
}
.industry-visual__inner--hospitality {
  background:
    linear-gradient(160deg, var(--bg-elevated) 0%, color-mix(in srgb, #6b5b95 14%, var(--bg-card)) 100%);
}
.industry-visual__label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 1rem 1.5rem;
  background: var(--bg-card);
}

.industry-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.industry-content > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}
.industry-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}
.industry-list li {
  font-size: 0.95rem;
  padding-left: 1.25rem;
  position: relative;
  color: var(--text);
}
.industry-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.industry-cta { margin-top: 0.5rem; }

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.highlights-grid--single {
  grid-template-columns: minmax(0, 320px);
}
.highlights-grid--triple {
  grid-template-columns: repeat(3, 1fr);
}
.highlight-card {
  padding: 0.75rem 0;
}
.highlight-card__index {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.highlight-card h4,
.highlight-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.highlight-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.highlight-card h4 a,
.highlight-card__title a {
  color: inherit;
  transition: color var(--transition);
}
.highlight-card h4 a:hover,
.highlight-card__title a:hover {
  color: var(--accent);
}

.industry-clients {
  margin-bottom: 3rem;
}
.industry-clients__header {
  margin-bottom: 2rem;
}
.industry-clients__header h3,
.industry-clients__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.industry-services {
  margin-top: 4rem;
  padding-top: 3.5rem;
}
.industry-services__header {
  margin-bottom: 2rem;
}
.industry-services__header h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.industry-services__header h3 em {
  font-style: normal;
  color: var(--accent);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  padding: 1.5rem 0;
}
.service-card__index {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.service-card h4,
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Contact */
.contact {
  background: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2,
.contact-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.contact-info h2 em,
.contact-info h1 em {
  font-style: normal;
  color: var(--accent);
}
.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-detail__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.contact-detail a {
  color: var(--accent);
  transition: opacity var(--transition);
}
.contact-detail a:hover { opacity: 0.8; }

.contact-form {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-form label span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: transparent;
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--text-muted) 40%, transparent);
  padding: 0.75rem 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.contact-form select {
  cursor: pointer;
  appearance: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234f5a52' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.5rem;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-bottom-color: var(--accent);
  background-color: transparent;
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.form-note {
  text-align: center;
  color: var(--forest-light);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  background: var(--footer-bg);
  color: var(--footer-text);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.logo--footer .logo-mark { font-size: 1.25rem; }
.logo--footer .logo-text { color: var(--footer-muted); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--footer-muted);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.footer-nav a {
  font-size: 0.8rem;
  color: var(--footer-muted);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--accent); }

/* Subpages */
.page-main {
  min-height: 100vh;
}
.page-section {
  padding-top: 8rem;
  padding-bottom: 5rem;
}
.page-section.section {
  padding-top: 8rem;
  padding-bottom: 5rem;
}
.page-cta {
  margin-top: 3rem;
}

.page-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 42rem;
  margin-bottom: 3.5rem;
}

.page-block {
  margin-bottom: 5rem;
}
.page-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.page-block__title em {
  font-style: normal;
  color: var(--accent);
}

.page-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}
.page-split__text {
  color: var(--text-muted);
  line-height: 1.65;
}

.service-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 5rem;
}
.service-detail {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.5rem 2rem;
  padding: 2.25rem 0;
}
.service-detail + .service-detail {
  border-top: 1px solid color-mix(in srgb, var(--text-muted) 18%, transparent);
}
.service-detail__index {
  grid-row: span 3;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding-top: 0.35rem;
}
.service-detail__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.service-detail__lead {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.service-detail__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-detail__list li {
  font-size: 0.92rem;
  padding-left: 1.1rem;
  position: relative;
  color: var(--text);
}
.service-detail__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.process-step {
  padding: 0;
}
.process-step__num {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.process-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.page-contact {
  padding-top: 4rem;
  padding-bottom: 5rem;
}
.page-contact .section-header {
  max-width: none;
  margin-bottom: 2.5rem;
}
.page-contact .contact-grid {
  margin-top: 0;
}

.contact-form__branza {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-form__branza-value {
  padding: 0;
  background: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* Strona główna */
.home-branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.home-branch__index {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.home-branch__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.home-branch__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.home-branch .industry-list {
  margin-bottom: 1.5rem;
}
.home-branch__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--transition);
}
.home-branch__link:hover {
  color: var(--accent-hover);
}

.home-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3.5rem;
  margin-bottom: 3rem;
}
.home-service__index {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}
.home-service__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.home-service p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.home-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
}

.section-header .page-lead {
  margin-bottom: 0;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .projects-row { grid-template-columns: 1fr; }
  .industry-showcase,
  .industry-showcase--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .page-split { grid-template-columns: 1fr; }
  .home-branches { grid-template-columns: 1fr; gap: 2.5rem; }
  .home-services { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail__index { grid-row: auto; margin-bottom: 0.25rem; }
}

@media (max-width: 768px) {
  body.nav-open { overflow: hidden; }
  body.nav-open .header { z-index: 160; }
  body.nav-open .nav-toggle {
    visibility: hidden;
    pointer-events: none;
  }

  .nav-toggle { display: flex; z-index: 170; }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: var(--overlay-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), visibility var(--transition);
  }
  .nav-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    cursor: pointer;
  }

  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 170;
    width: 2.75rem;
    height: 2.75rem;
    color: #141816;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
    transition: opacity var(--transition), visibility var(--transition), color var(--transition);
  }
  .nav-close:not([hidden]) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-close:hover,
  .nav-close:focus,
  .nav-close:focus-visible,
  .nav-close:active {
    color: #7a6210;
    background: transparent;
    outline: none;
    transform: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 160;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    color: #141816;
    border-left: none;
    box-shadow: -6px 0 28px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: stretch;
    padding: 4.75rem 1.25rem 2rem;
    gap: 0.15rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }

  .nav-link {
    display: block;
    padding: 0.9rem 0;
    margin: 0;
    border-radius: 0;
    font-size: 0.95rem;
    color: #4f5a52;
    -webkit-tap-highlight-color: transparent;
    transition: color var(--transition);
  }
  .nav-link:hover,
  .nav-link:focus,
  .nav-link:focus-visible,
  .nav-link:active {
    color: #141816;
    background: transparent;
    outline: none;
  }
  .nav-link.active {
    color: #7a6210;
    font-weight: 600;
    background: transparent;
  }
  .nav-link--cta {
    margin-left: 0;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: none;
    border-radius: 0;
    color: #7a6210;
  }
  .nav-links .theme-toggle {
    margin-left: 0;
    margin-top: 0.25rem;
    width: 100%;
    justify-content: flex-start;
    padding: 0.9rem 0;
    margin-inline: 0;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0.01em;
    color: #4f5a52;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-links .theme-toggle:hover,
  .nav-links .theme-toggle:focus,
  .nav-links .theme-toggle:focus-visible,
  .nav-links .theme-toggle:active {
    color: #141816;
    background: transparent;
    outline: none;
  }

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

  .highlights-grid { grid-template-columns: 1fr; }
  .highlights-grid--triple { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .account-card__stats { flex-direction: column; gap: 1.25rem; }

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

  .footer-inner { flex-direction: column; text-align: center; }
}

/* Legal & form privacy */
.legal-content {
  max-width: 42rem;
}
.legal-body h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}
.legal-body p,
.legal-body li {
  color: var(--text-muted);
  line-height: 1.7;
}
.legal-body ul {
  margin: 0.5rem 0 1rem 1.25rem;
}
.legal-body a {
  color: var(--accent);
}
.legal-body code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  background: var(--bg-elevated);
}
.legal-back {
  margin-top: 3rem;
}
.form-privacy {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.75rem;
}
.form-privacy a {
  color: var(--accent);
}

/* Chatbot — delikatny panel z prawej */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mds-chat {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 10001;
  font-size: 0.95rem;
}

.mds-chat__fab {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-card) 92%, var(--accent) 8%);
  color: var(--accent);
  box-shadow: 0 4px 24px color-mix(in srgb, var(--shadow-strong) 55%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.mds-chat__fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--shadow-strong) 70%, transparent);
}

.mds-chat--open .mds-chat__fab {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

.mds-chat__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(26rem, calc(100vw - 2rem));
  height: min(36rem, calc(100dvh - 2.5rem));
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--bg-card) 94%, white 6%);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--shadow-strong) 45%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

[data-theme="dark"] .mds-chat__panel {
  background: color-mix(in srgb, var(--bg-card) 88%, black 12%);
}

.mds-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1rem;
  flex-shrink: 0;
}

.mds-chat__title {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mds-chat__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--text-muted);
  opacity: 0.7;
  transition: opacity var(--transition), color var(--transition);
}

.mds-chat__close:hover {
  opacity: 1;
  color: var(--text);
}

.mds-chat__verify,
.mds-chat__chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 1.5rem 1.5rem;
}

.mds-chat__intro {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.mds-chat__human {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  line-height: 1.55;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.mds-chat__human input {
  margin-top: 0.25rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.mds-chat__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.mds-chat__start {
  width: 100%;
  padding: 0.95rem 1.25rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
  transition: background var(--transition), color var(--transition);
}

.mds-chat__start:hover {
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-elevated));
  color: var(--accent);
}

.mds-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 1.25rem;
  padding: 0.25rem 0.15rem 0.5rem 0;
}

.mds-chat__msg {
  max-width: 85%;
  padding: 0.9rem 1.1rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.92rem;
}

.mds-chat__msg--assistant {
  align-self: flex-start;
  background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
  color: var(--text);
}

.mds-chat__msg--user {
  align-self: flex-end;
  background: color-mix(in srgb, var(--forest) 14%, var(--bg-elevated));
  color: var(--text);
}

[data-theme="dark"] .mds-chat__msg--user {
  background: color-mix(in srgb, var(--forest-light) 22%, var(--bg-elevated));
}

.mds-chat__status {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.mds-chat__status a {
  color: var(--accent);
}

.mds-chat__form {
  display: flex;
  gap: 0.65rem;
  align-items: flex-end;
  flex-shrink: 0;
  padding-top: 0.25rem;
}

.mds-chat__input {
  flex: 1;
  min-height: 3.25rem;
  max-height: 7rem;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
  background: color-mix(in srgb, var(--bg-deep) 50%, transparent);
  resize: none;
  transition: background var(--transition);
}

.mds-chat__input::placeholder {
  color: color-mix(in srgb, var(--text-muted) 75%, transparent);
}

.mds-chat__input:focus {
  outline: none;
  background: color-mix(in srgb, var(--bg-elevated) 60%, transparent);
}

.mds-chat__send {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transition: background var(--transition), color var(--transition);
}

.mds-chat__send:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent-hover);
}

.mds-chat--loading .mds-chat__send {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 480px) {
  .mds-chat {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .mds-chat__panel {
    width: calc(100vw - 1.5rem);
    height: min(34rem, calc(100dvh - 1.5rem));
  }

  .mds-chat__verify,
  .mds-chat__chat {
    padding-inline: 1.15rem;
  }
}
