:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --text: #f5f5f5;
  --muted: rgba(245, 245, 245, 0.68);
  --brand: #f4cd13;
  --brand-soft: rgba(244, 205, 19, 0.16);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Trebuchet MS", sans-serif;
  background: #030303;
  color: var(--text);
  overflow-x: hidden;
}

body.is-project-modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
  opacity: 0.22;
}

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

/* Wideo w tle */
.site-video-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #020202;
}

.site-video-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100vh;
  transform: translate(-50%, -50%);
  border: 0;
}

.site-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 2, 2, 0.7), rgba(2, 2, 2, 0.82)),
    radial-gradient(circle at center, rgba(244, 205, 19, 0.08), transparent 35%);
}

/* Efekty tła */
.bg-orbit {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

.bg-orbit-a {
  width: 320px;
  height: 320px;
  top: 6vh;
  left: -8vw;
  background: rgba(244, 205, 19, 0.18);
}

.bg-orbit-b {
  width: 240px;
  height: 240px;
  right: 4vw;
  bottom: 10vh;
  background: rgba(255, 255, 255, 0.07);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  opacity: 0.14;
}

/* Układ strony i nawigacja */
.page-content {
  position: relative;
  z-index: 2;
}

.wrap,
.topbar-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 24px;
}

.wrap {
  padding-top: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(5, 5, 5, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topbar-inner {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-sygnet {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(244, 205, 19, 0.22));
}

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-text strong,
.section-head h2,
.project h3,
.service strong,
.contact h2,
.footer {
  letter-spacing: -0.04em;
}

.brand-text strong {
  font-size: 0.96rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav a {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.25s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,0.04);
}

.mobile-menu-toggle {
  display: none;
}

/* Sekcja Hero */
.hero {
  padding: 72px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.panel {
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)),
    radial-gradient(circle at top right, rgba(244, 205, 19, 0.12), transparent 32%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.artwork {
  display: block;
  width: 100%;
  border-radius: calc(var(--radius-xl) - 10px);
  border: 1px solid rgba(255,255,255,0.08);
  background: #0b0b0b;
  object-fit: cover;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.hero-copy {
  padding: 44px;
  min-height: 560px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(244, 205, 19, 0.08), transparent 45%);
  transform: translateX(-70%);
  animation: sweep 10s linear infinite;
}

.eyebrow,
.section-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(244, 205, 19, 0.12);
  color: var(--brand);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 18px rgba(244, 205, 19, 0.9);
}

h1 {
  position: relative;
  margin: 20px 0 0;
  font-size: clamp(3rem, 7vw, 6.25rem);
  line-height: 0.92;
  max-width: 10ch;
  text-transform: uppercase;
}

.hero-copy p,
.section-head p,
.service p,
.project p,
.stat span,
.contact p,
.contact-item {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy p {
  position: relative;
  max-width: 62ch;
  margin: 24px 0 0;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
}

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button.primary {
  color: #111;
  background: linear-gradient(180deg, #ffd82a 0%, #f0c000 100%);
  box-shadow: 0 14px 36px rgba(244, 205, 19, 0.28);
}

.button.secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,0.02);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-meta {
  position: relative;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.meta-card,
.stat,
.service,
.project,
.contact-item {
  backdrop-filter: blur(10px);
}

.meta-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.24);
}

.meta-card strong,
.stat strong {
  display: block;
  color: var(--brand);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  margin-bottom: 6px;
}

.hero-aside {
  display: grid;
  gap: 18px;
}

.hero-bot-stage {
  min-height: 620px;
}

.hero-bot-stage.panel {
  overflow: visible;
}

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

.hero-aside .stats .stat {
  min-height: 220px;
}

.stat {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.stat strong {
  margin-bottom: 10px;
  color: var(--text);
}

/* Sekcje ogólne i Portfolio */
.section {
  padding: 32px 0 18px;
}

.portfolio-carousel {
  position: relative;
  margin-bottom: 30px;
}

.portfolio-carousel-slides {
  position: relative;
}

.portfolio-banner {
  position: relative;
  height: clamp(420px, 30vw, 470px);
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0;
  padding: clamp(26px, 5vw, 82px);
  border: 1px solid rgba(244, 205, 19, 0.22);
  border-radius: var(--radius-xl);
  background: #080808;
  box-shadow: var(--shadow);
}

.portfolio-banner[hidden] {
  display: none;
}

.portfolio-banner.is-entering {
  animation: portfolioBannerEnter 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes portfolioBannerEnter {
  from {
    opacity: 0.35;
    transform: translateY(8px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.portfolio-banner--reverse {
  justify-content: flex-end;
}

.portfolio-banner--reverse > img {
  object-position: center 62%;
}

.portfolio-banner--compact > img {
  object-position: center center;
}

.portfolio-carousel-controls {
  position: absolute;
  right: clamp(16px, 3vw, 34px);
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(12px);
}

.portfolio-carousel-arrow,
.portfolio-carousel-pagination button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.portfolio-carousel-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
}

.portfolio-carousel-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.portfolio-carousel-pagination button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
}

.portfolio-carousel-pagination button[aria-pressed="true"] {
  width: 24px;
  border-color: var(--brand);
  background: var(--brand);
}

.portfolio-carousel-arrow:hover,
.portfolio-carousel-pagination button:hover {
  border-color: var(--brand);
  background: rgba(244, 205, 19, 0.2);
}

.portfolio-carousel-arrow:focus-visible,
.portfolio-carousel-pagination button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.portfolio-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.78) 42%, rgba(5, 5, 5, 0.04) 100%);
  pointer-events: none;
}

.portfolio-carousel-slides > .portfolio-banner:first-child::after {
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.2) 0%, rgba(5, 5, 5, 0.1) 42%, rgba(5, 5, 5, 0) 100%);
}

.portfolio-banner--reverse::after {
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.78) 0%, rgba(5, 5, 5, 0.56) 42%, rgba(5, 5, 5, 0.02) 100%);
}

.portfolio-banner--compact::after {
  display: none;
}

.portfolio-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.portfolio-banner-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.portfolio-banner-copy span {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.portfolio-banner-copy p {
  margin: 14px 0 0;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.portfolio-banner--compact .portfolio-banner-copy {
  position: absolute;
  top: 50%;
  left: clamp(26px, 5vw, 82px);
  width: min(40%, 620px);
  max-width: none;
  text-align: left;
  transform: translateY(-50%);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(1.7rem, 3vw, 3rem);
  text-transform: uppercase;
}

.section-head p {
  margin: 0;
  max-width: 58ch;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  margin: 14px 0 12px;
  border-radius: 999px;
}

.marquee-track {
  display: flex;
  gap: 44px;
  white-space: nowrap;
  padding: 16px 0;
  animation: marquee 24s linear infinite;
  color: rgba(255,255,255,0.88);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
}

.marquee-track span {
  color: var(--brand);
}

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

.project {
  grid-column: span 4;
  padding: 24px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.project .artwork {
  height: 220px;
  margin-bottom: 2px;
}

.project.featured .artwork {
  height: 276px;
}

.project.featured {
  grid-column: span 8;
  min-height: 320px;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project small,
.project-topline span {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.project h3 {
  margin: 10px 0 0;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  text-transform: uppercase;
}

.project p {
  margin: 12px 0 0;
  max-width: 48ch;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.project[role="button"] {
  cursor: pointer;
}

.project[role="button"]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.project-modal {
  width: min(92vw, 880px);
  max-width: none;
  max-height: min(88vh, 900px);
  padding: 0;
  overflow: visible;
  border: 0;
  color: var(--text);
  background: transparent;
}

.project-modal[open] {
  animation: projectModalEnter 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.project-modal::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(10px);
  animation: projectBackdropEnter 0.24s ease both;
}

.project-modal-card {
  max-height: min(88vh, 900px);
  overflow-y: auto;
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid rgba(244, 205, 19, 0.2);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(244, 205, 19, 0.12), transparent 34%),
    linear-gradient(160deg, rgba(18, 18, 18, 0.98), rgba(5, 5, 5, 0.98));
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.project-modal-banner {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-height: 210px;
  overflow: hidden;
  margin: calc(clamp(22px, 5vw, 42px) * -1) calc(clamp(22px, 5vw, 42px) * -1) 24px;
  padding: clamp(22px, 5vw, 38px);
  border-bottom: 1px solid rgba(244, 205, 19, 0.2);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: #080808;
}

.project-modal-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.64) 58%, rgba(5, 5, 5, 0.18));
  pointer-events: none;
}

.project-modal-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.project-modal-banner > div,
.project-modal-banner .project-modal-close {
  position: relative;
  z-index: 1;
}

.project-modal-banner > div {
  align-self: flex-end;
  min-width: 0;
}

.project-modal-banner > div > span {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(244, 205, 19, 0.24);
  border-radius: 999px;
  background: rgba(244, 205, 19, 0.12);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-modal-banner h2 {
  margin: 12px 0 0;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.project-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.project-modal-header h2 {
  margin: 12px 0 0;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.project-modal-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.project-modal-close:hover {
  border-color: rgba(244, 205, 19, 0.5);
  color: var(--brand);
}

.project-modal-description {
  max-width: 72ch;
  margin: 22px 0 28px;
  color: var(--muted);
  line-height: 1.75;
}

.project-modal-gallery-section {
  margin-top: 0;
}

.project-modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project-gallery-item {
  min-width: 0;
  margin: 0;
}

.project-gallery-preview {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  cursor: zoom-in;
}

.project-gallery-preview:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.project-gallery-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.45;
  overflow: hidden;
  border: 1px solid rgba(244, 205, 19, 0.2);
  border-radius: var(--radius-md);
  background: #0b0b0b;
  object-fit: cover;
}

.gallery-preview {
  width: min(96vw, 1500px);
  height: min(94vh, 1000px);
  max-width: none;
  max-height: none;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(244, 205, 19, 0.3);
  border-radius: var(--radius-xl);
  background: #090909;
  color: var(--text);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.8);
}

.gallery-preview[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  animation: projectModalEnter 0.2s ease both;
}

.gallery-preview::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

.gallery-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gallery-preview-header h2 {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
}

.gallery-preview-stage {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
}

.gallery-preview-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-preview-nav {
  position: absolute;
  z-index: 1;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(244, 205, 19, 0.36);
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.82);
  color: var(--text);
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-preview-nav:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.gallery-preview-nav[data-gallery-preview-direction="-1"] {
  left: 12px;
}

.gallery-preview-nav[data-gallery-preview-direction="1"] {
  right: 12px;
}

.gallery-preview-counter {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.85rem;
}

.project-gallery-item figcaption {
  display: grid;
  gap: 3px;
  padding: 9px 2px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
}

.project-gallery-item figcaption small {
  color: var(--muted);
  font-size: 0.68rem;
}

.project-modal-section {
  margin-top: 26px;
}

.project-modal-section h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-architecture {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: architecture-step;
}

.project-architecture li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 16px;
  border: 1px solid rgba(244, 205, 19, 0.2);
  border-radius: var(--radius-md);
  background: rgba(244, 205, 19, 0.06);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  counter-increment: architecture-step;
}

.project-architecture li::before {
  content: counter(architecture-step, decimal-leading-zero);
  position: absolute;
  top: -10px;
  left: 12px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #111;
  color: var(--brand);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.project-architecture li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -22px;
  color: var(--brand);
  transform: translate(50%, -50%);
}

.project-challenges {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-challenges li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.project-challenges li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px rgba(244, 205, 19, 0.55);
}

.project-modal-tags {
  margin-top: 26px;
}

.project-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.project-modal-actions [hidden] {
  display: none;
}

@keyframes projectModalEnter {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes projectBackdropEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.service {
  padding: 24px;
}

.service strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact {
  padding: 44px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
}

.contact h2 {
  margin-top: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  text-transform: uppercase;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
}

/* Contact Bot & Panel czatu */
.contact-bot {
  --bot-motion-scale: 1;
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translate3d(var(--bot-offset-x, 0px), var(--bot-offset-y, 0px), 0) scale(var(--bot-scale, 1)) rotate(var(--bot-tilt, 0deg));
  transform-origin: 50% 50%;
  transition: opacity 0.22s ease, transform 0.32s ease;
  will-change: transform, opacity;
}

.contact-bot.is-hidden {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  visibility: hidden;
}

.contact-bot.is-small {
  width: auto;
  height: auto;
  position: fixed;
  right: 24px;
  bottom: 24px;
  top: auto;
  inset: auto 24px 24px auto;
  justify-items: end;
}

.contact-bot.is-big {
  --bot-motion-scale: 6.818;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  right: auto;
  top: auto;
  bottom: auto;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}

.contact-bot-toggle,
.contact-bot-panel,
.contact-bot-music-opt-in {
  pointer-events: auto;
}

.contact-bot-music-opt-in {
  position: absolute;
  z-index: 3;
  top: calc(50% + 230px);
  left: 50%;
  padding: 11px 16px;
  border: 1px solid rgba(244, 205, 19, 0.48);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.94);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4), 0 0 20px rgba(244, 205, 19, 0.14);
  color: var(--brand);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transform: translateX(-50%);
}

.contact-bot-music-opt-in[hidden] {
  display: none;
}

.contact-bot-music-opt-in:hover,
.contact-bot-music-opt-in:focus-visible {
  border-color: var(--brand);
  background: rgba(244, 205, 19, 0.16);
  color: #fff;
}

.contact-bot-music-opt-in:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.contact-bot.is-small .contact-bot-music-opt-in {
  top: auto;
  right: 0;
  bottom: 76px;
  left: auto;
  transform: none;
}

.contact-bot-toggle {
  position: relative;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, rgba(244, 205, 19, 0.18), transparent 42%),
    rgba(8,8,8,0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(244, 205, 19, 0.16);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transform-origin: 50% 50%;
}

.contact-bot-toggle::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.contact-bot-toggle img {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(244, 205, 19, 0.24));
}

.contact-bot-music-note {
  position: absolute;
  z-index: 0;
  color: var(--brand);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 18px rgba(244, 205, 19, 0.58);
  visibility: hidden;
}

.contact-bot-music-note-one {
  top: 24%;
  left: 18%;
}

.contact-bot-music-note-two {
  top: 16%;
  right: 20%;
}

.contact-bot-music-note-three {
  right: 16%;
  bottom: 20%;
}

.contact-bot-music-note-four {
  bottom: 17%;
  left: 22%;
}

.contact-bot.is-mood-wiggle .contact-bot-music-note {
  opacity: 1;
  visibility: visible;
}

.contact-bot.is-mood-wiggle .contact-bot-music-note-one {
  animation: botMusicNoteOne 1.15s ease-in-out infinite;
}

.contact-bot.is-mood-wiggle .contact-bot-music-note-two {
  animation: botMusicNoteTwo 1.35s ease-in-out 0.12s infinite;
}

.contact-bot.is-mood-wiggle .contact-bot-music-note-three {
  animation: botMusicNoteOne 1.25s ease-in-out 0.24s infinite;
}

.contact-bot.is-mood-wiggle .contact-bot-music-note-four {
  animation: botMusicNoteTwo 1.4s ease-in-out 0.08s infinite;
}

.contact-bot.is-big .contact-bot-music-note {
  font-size: 68px;
}

.contact-bot.is-big .contact-bot-music-note-one {
  top: 21%;
  left: 17%;
}

.contact-bot.is-big .contact-bot-music-note-two {
  top: 14%;
  right: 19%;
}

.contact-bot.is-big .contact-bot-music-note-three {
  right: 13%;
  bottom: 17%;
}

.contact-bot.is-big .contact-bot-music-note-four {
  bottom: 15%;
  left: 19%;
}

.contact-bot.is-small .contact-bot-music-note {
  font-size: 14px;
  text-shadow: 0 0 8px rgba(244, 205, 19, 0.48);
}

.contact-bot.is-small .contact-bot-music-note-one {
  top: 17%;
  left: 12%;
}

.contact-bot.is-small .contact-bot-music-note-two {
  top: 13%;
  right: 14%;
}

.contact-bot.is-small .contact-bot-music-note-three {
  right: 12%;
  bottom: 14%;
}

.contact-bot.is-small .contact-bot-music-note-four {
  bottom: 12%;
  left: 15%;
}

@keyframes botMusicNoteOne {
  0%, 100% { transform: translate3d(0, 5px, 0) rotate(-12deg) scale(0.82); }
  50% { transform: translate3d(-6px, -15px, 0) rotate(10deg) scale(1.12); }
}

@keyframes botMusicNoteTwo {
  0%, 100% { transform: translate3d(0, -4px, 0) rotate(10deg) scale(0.9); }
  50% { transform: translate3d(7px, -17px, 0) rotate(-12deg) scale(1.14); }
}

.contact-bot-bubble {
  position: absolute;
  right: 72px;
  bottom: 14px;
  min-width: 104px;
  max-width: 160px;
  padding: 8px 12px;
  border-radius: 16px 16px 16px 4px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10, 10, 10, 0.92);
  color: rgba(255,255,255,0.9);
  font-size: 0.76rem;
  line-height: 1.25;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(244, 205, 19, 0.12);
  opacity: 0;
  transform: translateX(10px) translateY(6px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.contact-bot-bubble.is-visible,
.contact-bot.is-idle .contact-bot-bubble,
.contact-bot.is-speaking .contact-bot-bubble {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

.contact-bot-bubble.is-fading {
  opacity: 0;
  transform: translateX(8px) translateY(8px) scale(0.95);
}

.contact-bot-bubble.is-quiet {
  opacity: 0;
  transform: translateX(10px) translateY(6px) scale(0.9);
}

.contact-bot-bubble::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 12px;
  width: 12px;
  height: 12px;
  background: inherit;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transform: rotate(-45deg);
}

.contact-bot.is-big .contact-bot-toggle {
  width: 450px;
  height: 450px;
  border-radius: 136px;
  border-width: 7px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(244, 205, 19, 0.24);
}

.contact-bot.is-big .contact-bot-toggle::before {
  inset: 68px;
  border-radius: 109px;
  border-width: 7px;
}

.contact-bot.is-big .contact-bot-toggle img {
  width: 232px;
  height: 232px;
}

.contact-bot.is-big .contact-bot-bubble {
  top: 30%;
  right: -168px;
  bottom: auto;
  min-width: 140px;
  max-width: 260px;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 6px;
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(-50%) translateX(16px) scale(0.92);
}

.contact-bot.is-big .contact-bot-bubble::after {
  left: -6px;
  top: 50%;
  right: auto;
  bottom: auto;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
  transform: translateY(-50%) rotate(-45deg);
}

.contact-bot.is-big .contact-bot-bubble.is-visible,
.contact-bot.is-big.is-idle .contact-bot-bubble,
.contact-bot.is-big.is-speaking .contact-bot-bubble {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
}

.contact-bot.is-big .contact-bot-bubble.is-fading {
  opacity: 0;
  transform: translateY(-50%) translateX(10px) scale(0.96);
}

.contact-bot.is-big .contact-bot-bubble.is-quiet {
  opacity: 0;
  transform: translateY(-50%) translateX(16px) scale(0.92);
}

.contact-bot.is-idle-mumble .contact-bot-bubble {
  animation: botMumble 1.1s ease-in-out infinite;
}

.contact-bot.is-mood-bounce .contact-bot-toggle img {
  animation: botBounceFun 1.35s ease both;
}

.contact-bot.is-mood-tilt .contact-bot-toggle img {
  animation: botTiltHopFun 0.8s ease both;
}

.contact-bot.is-mood-glide .contact-bot-toggle img {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  animation: botPatrolFun 3s ease-in-out both;
}

.contact-bot.is-mood-glide .contact-bot-bubble {
  animation: botPatrolBubble 3s ease-in-out both;
}

.contact-bot.is-mood-glide .contact-bot-reaction {
  opacity: 0 !important;
  visibility: hidden !important;
}

.contact-bot.is-mood-wiggle .contact-bot-toggle img {
  animation: botWiggleFun 4.5s ease-in-out both;
}

.contact-bot.is-mood-hide .contact-bot-toggle img {
  animation: botHideInSquare 1s ease both;
}

.contact-bot.is-mood-goal .contact-bot-toggle img {
  filter: drop-shadow(0 10px 24px rgba(244, 205, 19, 0.48));
}

.contact-bot.is-gag-watch .contact-bot-toggle img {
  animation: none;
  transition: transform 0.16s ease;
  filter: drop-shadow(0 10px 22px rgba(244, 205, 19, 0.36));
}

.contact-bot-reaction {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(244, 205, 19, 0.42);
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 18px rgba(244, 205, 19, 0.2);
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.45);
}

.contact-bot-reaction-eyes,
.contact-bot-reaction-hand,
.contact-bot-reaction-symbol {
  top: -14px;
  right: -12px;
}

.contact-bot-reaction-symbol {
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.94);
  color: var(--brand);
  font-size: 1.15rem;
  font-weight: 900;
}

.contact-bot.is-reaction-eyes .contact-bot-reaction-eyes,
.contact-bot.is-reaction-hand .contact-bot-reaction-hand,
.contact-bot.is-reaction-question .contact-bot-reaction-question,
.contact-bot.is-reaction-exclamation .contact-bot-reaction-exclamation {
  opacity: 1;
  visibility: visible;
}

.contact-bot.is-reaction-eyes .contact-bot-reaction-eyes {
  animation: botReactionEyes 1.9s ease-in-out infinite;
}

.contact-bot.is-reaction-hand .contact-bot-reaction-hand {
  animation: botReactionHandWave 0.85s ease-in-out both;
}

.contact-bot.is-reaction-question .contact-bot-reaction-question,
.contact-bot.is-reaction-exclamation .contact-bot-reaction-exclamation {
  animation: botReactionBubble 1.25s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.contact-bot.is-big .contact-bot-reaction {
  width: 48px;
  height: 48px;
  font-size: 1.55rem;
}

.contact-bot.is-big .contact-bot-reaction-eyes,
.contact-bot.is-big .contact-bot-reaction-hand,
.contact-bot.is-big .contact-bot-reaction-symbol {
  top: calc(50% - 132px);
  right: calc(50% - 132px);
}

@keyframes botReactionEyes {
  0% { opacity: 0; transform: translateY(8px) scale(0.45); }
  22% { opacity: 1; transform: translateY(-3px) scale(1.18); }
  42% { opacity: 1; transform: translateY(0) scale(1); }
  70% { opacity: 1; transform: translateY(0) scale(1.32); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes botReactionHandWave {
  0% { opacity: 0; transform: translateY(8px) scale(0.45) rotate(0); }
  20% { opacity: 1; transform: translateY(-3px) scale(1.16) rotate(-22deg); }
  38% { opacity: 1; transform: translateY(0) scale(1) rotate(24deg); }
  56% { opacity: 1; transform: translateY(0) scale(1) rotate(-22deg); }
  74% { opacity: 1; transform: translateY(0) scale(1) rotate(20deg); }
  88% { opacity: 1; transform: translateY(0) scale(1) rotate(-14deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes botReactionBubble {
  0% { opacity: 0; transform: translateY(16px) scale(0.2) rotate(-12deg); }
  58% { opacity: 1; transform: translateY(-5px) scale(1.22) rotate(5deg); }
  78% { opacity: 1; transform: translateY(0) scale(0.94) rotate(-2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

.contact-bot.is-nervous .contact-bot-toggle img {
  animation: botMoonwalkFun 0.55s ease both;
}

.contact-bot.is-peeking .contact-bot-toggle img {
  animation: botPeekFun 1.25s ease-in-out infinite;
}

.contact-bot.is-fleeing .contact-bot-toggle img {
  animation: botVanishPuff 0.48s ease both;
}

.contact-bot.is-idle-bounce .contact-bot-toggle img {
  animation: botBounceFun 1.1s ease both;
}

.contact-bot.is-idle-spin .contact-bot-toggle img {
  animation: botSpinHopFun 1.2s ease both;
}

.contact-bot.is-idle-sneak .contact-bot-toggle img {
  animation: botMoonwalkFun 0.95s ease both;
}

.contact-bot.is-idle-peek .contact-bot-toggle img {
  animation: botPeekFun 1.2s ease both;
}

.contact-bot.is-idle-squash .contact-bot-toggle img {
  animation: botIdleSquash 1s ease both;
}

.contact-bot.is-idle-flip .contact-bot-toggle img {
  animation: botSpinHopFun 0.9s ease both;
}

/* Okno panelu czatu i kalendarza */
.contact-bot-panel {
  position: fixed;
  right: 24px;
  bottom: 102px;
  width: min(92vw, 380px);
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 8, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(244, 205, 19, 0.18);
  backdrop-filter: blur(20px);
  display: grid;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.95);
  transform-origin: bottom right;
  pointer-events: none;
  z-index: 60;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.28s;
}

.contact-bot-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.contact-bot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-bot-head strong {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--brand);
}

.contact-bot-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-bot-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--brand);
}

.contact-bot-messages {
  display: grid;
  gap: 10px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.bubble {
  margin: 0;
  padding: 11px 14px;
  border-radius: 16px;
  line-height: 1.45;
  font-size: 0.88rem;
}

.bubble-bot {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bubble-user {
  background: rgba(244, 205, 19, 0.14);
  border: 1px solid rgba(244, 205, 19, 0.3);
  color: #fff6c7;
  justify-self: end;
}

.contact-bot-scenario,
.contact-bot-form {
  display: grid;
  gap: 10px;
}

.contact-bot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-chip {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: 0.2s ease;
}

.quick-chip:hover,
.quick-chip.is-active {
  border-color: var(--brand);
  background: rgba(244, 205, 19, 0.15);
  color: #fff;
}

.bot-calendar {
  display: grid;
  gap: 8px;
}

.bot-calendar-label {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.calendar-step,
.calendar-time-picker {
  display: grid;
  gap: 8px;
}

.calendar-step,
.calendar-time-picker {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
}

.calendar-step.is-visible,
.calendar-time-picker.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.calendar-step[hidden],
.calendar-time-picker[hidden] {
  display: none;
}

.calendar-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 205, 19, 0.35) transparent;
}

.calendar-day,
.calendar-slot {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: 0.2s ease;
}

.calendar-day {
  flex: 1 0 auto;
  text-transform: capitalize;
}

.calendar-day:hover,
.calendar-slot:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.calendar-day.is-selected,
.calendar-slot.is-selected {
  border-color: rgba(244, 205, 19, 0.45);
  background: rgba(244, 205, 19, 0.14);
  color: #fff6c7;
  font-weight: 600;
}

.calendar-digital-clock {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(100%, 280px);
  justify-self: center;
  padding: 18px;
  border: 1px solid rgba(244, 205, 19, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 55%),
    #0b0b0b;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.32), 0 12px 30px rgba(0, 0, 0, 0.25);
}

.calendar-clock-indicator {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px rgba(244, 205, 19, 0.65);
}

.calendar-time-display {
  color: #fff3a6;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.6rem, 11vw, 3.4rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-shadow: 0 0 22px rgba(244, 205, 19, 0.28);
  font-variant-numeric: tabular-nums;
}

.calendar-time-label {
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.calendar-time-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.calendar-time-input {
  min-width: 76px;
  padding: 9px 10px;
  border: 1px solid rgba(244, 205, 19, 0.42);
  border-radius: 10px;
  background-color: #11100b;
  color: #fff3a6;
  color-scheme: dark;
  font: inherit;
  font-size: 1.1rem;
  text-align: center;
}

.calendar-time-input option {
  background-color: #11100b;
  color: #fff3a6;
}

.calendar-time-input option:disabled {
  color: rgba(255, 243, 166, 0.35);
}

.calendar-time-separator {
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 700;
}

.calendar-time-input:focus {
  outline: 1px solid var(--brand);
  border-color: var(--brand);
}

.calendar-time-input:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.contact-bot-form :disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.contact-bot-form input:disabled,
.contact-bot-form textarea:disabled {
  background: rgba(255, 255, 255, 0.02);
}

.contact-bot-form input,
.contact-bot-form textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  resize: none;
}

.contact-bot-form input::placeholder,
.contact-bot-form textarea::placeholder {
  color: rgba(245, 245, 245, 0.45);
}

.contact-bot-form input:focus,
.contact-bot-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.07);
}

.contact-bot-send {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(244, 205, 19, 0.4);
  background: linear-gradient(180deg, #ffd82a 0%, #f0c000 100%);
  color: #111;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-bot-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(244, 205, 19, 0.25);
}

/* Przycisk głośnika w dolnym lewym rogu */
.floating-sound-btn {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 50;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 10, 0.85);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(244, 205, 19, 0.1);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.floating-sound-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 205, 19, 0.45);
  background: rgba(20, 20, 20, 0.92);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(244, 205, 19, 0.22);
}

.floating-sound-btn .sound-icon-on {
  display: none;
}

.floating-sound-btn .sound-icon-off {
  display: block;
  opacity: 0.75;
}

.floating-sound-btn.is-unmuted {
  border-color: rgba(244, 205, 19, 0.4);
}

.floating-sound-btn.is-unmuted .sound-icon-on {
  display: block;
  color: var(--brand);
}

.floating-sound-btn.is-unmuted .sound-icon-off {
  display: none;
}

/* Stopka i animacje wjazdów */
.footer {
  padding: 30px 0 46px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  font-size: 0.92rem;
}

.reveal,
.reveal-item {
  opacity: 0;
  transform: translateY(26px);
}

.reveal.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.is-visible:nth-child(2) { transition-delay: 0.08s; }
.reveal-item.is-visible:nth-child(3) { transition-delay: 0.16s; }
.reveal-item.is-visible:nth-child(4) { transition-delay: 0.24s; }

.parallax-card {
  transition: transform 0.18s ease;
}

/* Keyframes */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes sweep {
  from { transform: translateX(-70%); }
  to { transform: translateX(140%); }
}

@keyframes botBounceFun {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(calc(-12px * var(--bot-motion-scale, 1))) scale(1.04); }
  55% { transform: translateY(0) scale(0.98); }
  75% { transform: translateY(calc(-5px * var(--bot-motion-scale, 1))) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes botWiggleFun {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  12% { transform: translateY(calc(-2px * var(--bot-motion-scale, 1))) rotate(-10deg); }
  24% { transform: translateY(0) rotate(10deg); }
  36% { transform: translateY(calc(-1px * var(--bot-motion-scale, 1))) rotate(-8deg); }
  48% { transform: translateY(0) rotate(8deg); }
  60% { transform: translateY(calc(-2px * var(--bot-motion-scale, 1))) rotate(-10deg); }
  72% { transform: translateY(0) rotate(10deg); }
  84% { transform: translateY(calc(-1px * var(--bot-motion-scale, 1))) rotate(-8deg); }
  94% { transform: translateY(0) rotate(8deg); }
}

@keyframes botHideInSquare {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  25% {
    transform: translate3d(calc(-8px * var(--bot-motion-scale, 1)), calc(3px * var(--bot-motion-scale, 1)), 0) scale(0.88);
    opacity: 0.92;
  }
  55% {
    transform: translate3d(calc(-2px * var(--bot-motion-scale, 1)), calc(6px * var(--bot-motion-scale, 1)), 0) scale(0.56);
    opacity: 0.42;
  }
  78% {
    transform: translate3d(calc(4px * var(--bot-motion-scale, 1)), calc(-2px * var(--bot-motion-scale, 1)), 0) scale(0.72);
    opacity: 0.8;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes botSpinHopFun {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  45% { transform: translateY(calc(-14px * var(--bot-motion-scale, 1))) rotate(210deg) scale(1.04); }
  70% { transform: translateY(0) rotate(330deg) scale(0.98); }
  100% { transform: translateY(0) rotate(360deg) scale(1); }
}

@keyframes botPeekFun {
  0% { transform: translateX(0) scale(1); }
  28% { transform: translateX(calc(-14px * var(--bot-motion-scale, 1))) scale(0.98); }
  55% { transform: translateX(calc(6px * var(--bot-motion-scale, 1))) scale(1.02); }
  100% { transform: translateX(0) scale(1); }
}

@keyframes botPatrolFun {
  0% {
    opacity: 1;
    transform: perspective(420px) translate3d(0, 0, 0) rotateY(0deg) scale(1);
    filter: blur(0);
  }
  20% {
    opacity: 1;
    transform: perspective(420px) translate3d(0, 0, 0) rotateY(180deg) scale(0.94);
    filter: blur(0);
  }
  42% {
    opacity: 0.72;
    transform: perspective(420px) translate3d(calc(12px * var(--bot-motion-scale, 1)), 0, 0) rotateY(180deg) scale(0.72);
    filter: blur(1px);
  }
  58% {
    opacity: 0;
    transform: perspective(420px) translate3d(calc(18px * var(--bot-motion-scale, 1)), 4px, 0) rotateY(180deg) scale(0.42);
    filter: blur(7px);
  }
  72% {
    opacity: 0;
    transform: perspective(420px) translate3d(calc(18px * var(--bot-motion-scale, 1)), 4px, 0) rotateY(180deg) scale(0.42);
    filter: blur(7px);
  }
  90% {
    opacity: 0.82;
    transform: perspective(420px) translate3d(0, -3px, 0) rotateY(350deg) scale(1.04);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: perspective(420px) translate3d(0, 0, 0) rotateY(360deg) scale(1);
    filter: blur(0);
  }
}

@keyframes botPatrolBubble {
  0%, 20% {
    opacity: 1;
    visibility: visible;
  }
  42% {
    opacity: 0.72;
    visibility: visible;
  }
  58%, 72% {
    opacity: 0;
    visibility: hidden;
  }
  90%, 100% {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes botTiltHopFun {
  0% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(calc(-10px * var(--bot-motion-scale, 1))) rotate(-12deg); }
  62% { transform: translateY(calc(-2px * var(--bot-motion-scale, 1))) rotate(9deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes botMoonwalkFun {
  0% { transform: translateX(0) skewX(0deg); }
  25% { transform: translateX(calc(-10px * var(--bot-motion-scale, 1))) skewX(-7deg); }
  50% { transform: translateX(calc(8px * var(--bot-motion-scale, 1))) skewX(5deg); }
  75% { transform: translateX(calc(-5px * var(--bot-motion-scale, 1))) skewX(-3deg); }
  100% { transform: translateX(0) skewX(0deg); }
}

@keyframes botVanishPuff {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
  45% {
    opacity: 0.95;
    transform: translateY(calc(-8px * var(--bot-motion-scale, 1))) scale(1.08);
    filter: blur(1px);
  }
  100% {
    opacity: 0;
    transform: translateY(calc(14px * var(--bot-motion-scale, 1))) scale(0.82);
    filter: blur(8px);
  }
}

@keyframes botIdleSquash {
  0%, 100% { transform: translateY(0) scale(1); }
  35% { transform: translateY(calc(-8px * var(--bot-motion-scale, 1))) scale(1.08, 0.92); }
  62% { transform: translateY(0) scale(0.95, 1.05); }
}

@keyframes botMumble {
  0%, 100% { transform: translateX(0) translateY(0); opacity: 1; }
  40% { transform: translateX(-4px) translateY(-2px); opacity: 0.9; }
  70% { transform: translateX(2px) translateY(0); opacity: 1; }
}

/* Media Queries */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .contact-bot,
  .contact-bot::before,
  .contact-bot-toggle {
    animation: none !important;
  }

  .portfolio-banner.is-entering {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .project,
  .project.featured,
  .services {
    grid-column: span 12;
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1280px) {
  .wrap,
  .topbar-inner {
    padding-left: 34px;
    padding-right: 34px;
  }

  .hero {
    padding: 78px 0 34px;
  }

  .hero-grid {
    grid-template-columns: 1.42fr 0.9fr;
    gap: 30px;
  }

  .hero-copy {
    padding: 46px;
    min-height: 590px;
  }

  h1 {
    font-size: clamp(2.9rem, 4.6vw, 5.4rem);
    max-width: 9.5ch;
    line-height: 0.94;
  }

  .hero-copy p {
    max-width: 62ch;
    font-size: 1.04rem;
  }

  .hero-meta {
    gap: 18px;
  }

  .meta-card {
    padding: 22px;
  }

  .section {
    padding: 44px 0 26px;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .section-head p {
    max-width: 72ch;
  }

  .marquee {
    margin: 22px 0 18px;
  }

  .grid-projects {
    gap: 20px;
  }

  .project {
    padding: 26px;
    min-height: 290px;
  }

  .project .artwork {
    height: 224px;
  }

  .project.featured {
    min-height: 370px;
  }

  .project.featured .artwork {
    height: 286px;
  }

  .services {
    gap: 24px;
  }

  .service {
    padding: 30px;
  }

  .contact {
    padding: 46px;
    gap: 24px;
  }
}

@media (min-width: 1700px) {
  :root {
    --max: 1560px;
  }

  .wrap,
  .topbar-inner {
    padding-left: 46px;
    padding-right: 46px;
  }

  .hero {
    padding: 88px 0 42px;
  }

  .hero-grid {
    grid-template-columns: 1.48fr 0.88fr;
    gap: 34px;
  }

  .hero-copy {
    min-height: 640px;
    padding: 52px;
  }

  h1 {
    font-size: clamp(3.1rem, 4.4vw, 5.8rem);
  }

  .hero-copy p {
    font-size: 1.08rem;
  }

  .project.featured {
    min-height: 400px;
  }

  .project.featured .artwork {
    height: 304px;
  }

  .services,
  .grid-projects {
    gap: 22px;
  }
}

@media (min-width: 2000px) {
  :root {
    --max: 1660px;
  }

  .hero-copy {
    min-height: 690px;
    padding: 58px;
  }

  h1 {
    font-size: clamp(3.3rem, 4.1vw, 6.2rem);
  }

  .section {
    padding: 50px 0 30px;
  }
}

@media (max-width: 720px) {
  .hero-bot-stage {
    display: none;
  }

  .contact-bot.is-small {
    right: 14px;
    bottom: 14px;
  }

  .contact-bot-panel {
    right: 14px;
    bottom: 84px;
    width: calc(100vw - 28px);
  }

  .contact-bot-toggle {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .contact-bot-toggle img {
    width: 32px;
    height: 32px;
  }

  .floating-sound-btn {
    left: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .wrap,
  .topbar-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav {
    display: none;
  }

  .topbar-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .brand-text strong {
    font-size: 0.82rem;
    letter-spacing: 0.16em;
  }

  .brand-text span {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .mobile-menu-toggle {
    display: flex;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .mobile-menu-toggle.is-mobile-open span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-toggle.is-mobile-open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.is-mobile-open span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav,
  .nav.is-mobile-open {
    display: grid;
    grid-template-columns: 1fr;
    flex: 0 0 100%;
    width: 100%;
    justify-content: stretch;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 0.28s ease, opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav.is-mobile-open {
    max-height: 19rem;
    padding-top: 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 14px;
  }

  .project-modal,
  .project-modal-card {
    max-height: 88vh;
  }

  .project-modal-banner {
    min-height: 180px;
  }

  .project-modal-banner h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .project .artwork {
    height: auto;
    aspect-ratio: 1.45;
  }

  .project.featured .artwork {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .project-architecture {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .gallery-preview {
    padding: 12px;
    height: min(94vh, calc((96vw - 26px) / var(--gallery-preview-ratio, 1.5) + 110px));
  }

  .portfolio-banner {
    height: clamp(300px, 78vw, 360px);
  }

  .portfolio-carousel-controls {
    right: 12px;
    bottom: 12px;
  }

  .portfolio-banner {
    padding-bottom: 72px;
  }

  .portfolio-banner::after,
  .portfolio-banner--reverse::after {
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.48));
  }

  .project-architecture li {
    min-height: 64px;
  }

  .project-architecture li:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -16px;
    transform: translateX(50%) rotate(90deg);
  }

  .hero {
    padding-top: 30px;
  }

  .hero-copy,
  .contact {
    padding: 24px;
  }

  .hero-copy {
    min-height: auto;
  }

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

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .project-modal-gallery {
    grid-template-columns: 1fr;
  }
}