@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap");

:root {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent-primary: #0284c7;
  --accent-hover: #0369a1;
  --accent-light: #e0f2fe;
  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

#biurostrefapl-header,
#biurostrefapl-root,
#biurostrefapl-footer,
.page-content,
.biurostrefapl-header,
.biurostrefapl-footer,
main,
section,
article {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
a,
span,
div,
td,
th {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.font-serif-editorial {
  font-family: "Playfair Display", Georgia, serif;
}

.font-mono-tech {
  font-family: "JetBrains Mono", monospace;
}

.hero-clamp-title {
  font-size: clamp(1.75rem, 4.5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-clamp-title {
  font-size: clamp(1.5rem, 3.2vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.monumental-stat {
  font-size: clamp(2.25rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.swiss-grid-bg {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.14) 1px, transparent 1px);
}

.blueprint-grid-bg {
  background-size: 32px 32px;
  background-image:
    linear-gradient(to right, rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.12) 1px, transparent 1px);
}

.bg-overlay-card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: biuroTicker 36s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes biuroTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.Writing-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

@media (max-width: 1023px) {
  .Writing-vertical {
    writing-mode: horizontal-tb;
  }
}

.hp-field-trap {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.cookie-banner-floating {
  position: fixed;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 9999;
  display: none;
  max-width: calc(100vw - 1.5rem);
}

.cookie-banner-floating.is-visible {
  display: block;
}

.toast-container-fixed {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  left: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 26rem;
  margin-left: auto;
  pointer-events: none;
}

.toast-item-card {
  pointer-events: auto;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #334155;
  border-left: 4px solid #0284c7;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.35);
  transition: all 0.3s ease;
}

.form-loader-overlay {
  display: none;
}

.form-loader-overlay.active {
  display: flex;
}

.field-error-border {
  border-color: #e11d48 !important;
  background-color: #fff1f2 !important;
}

.slide-item {
  display: none;
}

.slide-item.active {
  display: grid;
}

.tab-panel-item {
  display: none;
}

.tab-panel-item.active {
  display: block;
}

.accordion-content-box {
  display: none;
}

.accordion-content-box.open {
  display: block;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

.lightbox-modal {
  display: none;
}

.lightbox-modal.active {
  display: flex;
}

.custom-scrollbar::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

.biuro-iti {
  display: block;
  width: 100%;
  --iti-border-color: #cbd5e1;
  --iti-dialcode-color: #64748b;
  --iti-dropdown-bg: #ffffff;
  --iti-hover-color: #f0f9ff;
  --iti-arrow-padding: 4px;
}

.biuro-iti .iti__selected-country {
  border-radius: 0.75rem 0 0 0.75rem;
}

.biuro-iti .iti__selected-country:hover {
  background-color: #f0f9ff;
}

.biuro-iti .iti__dropdown-content {
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 20px 40px -12px rgba(15, 23, 42, 0.25),
    0 8px 10px -6px rgba(15, 23, 42, 0.1);
  max-width: min(22rem, calc(100vw - 2rem));
  overflow: hidden;
  font-family: inherit;
  z-index: 60;
}

.biuro-iti .iti__search-input {
  font-size: 0.8125rem;
}

.biuro-iti .iti__search-input:focus-visible {
  outline-color: #0284c7;
}

.biuro-iti .iti__country-list {
  scrollbar-width: thin;
}

.biuro-iti .iti__country.iti__highlight {
  background-color: #f0f9ff;
}

.biuro-iti .iti__dial-code {
  color: #64748b;
}

.iti--fullscreen-popup .iti__dropdown-content {
  border-radius: 0;
  max-width: 100%;
  border-left: 0;
  border-right: 0;
}
