:root {
  --bg: #070b12;
  --bg-2: #0f1724;
  --panel: rgba(17, 24, 34, 0.82);
  --line: rgba(160, 179, 205, 0.18);
  --text: #edf3ff;
  --muted: #9aa7bd;
  --accent: #9ad9ff;
  --accent-2: #7c9cff;
  --shadow: rgba(0, 0, 0, 0.35);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  background:
    radial-gradient(circle at top, rgba(124, 156, 255, 0.16), transparent 30%),
    radial-gradient(
      circle at 80% 15%,
      rgba(154, 217, 255, 0.18),
      transparent 28%
    ),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.masthead {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.brand {
  display: block;
  width: min(320px, 82vw);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(122, 160, 255, 0.18));
}

.intro {
  text-align: center;
  margin-bottom: 18px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.95;
}

.intro h1 {
  max-width: 660px;
  margin: 0 auto;
  font-size: clamp(2.2rem, 3.2vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-family: var(--serif);
  font-weight: 600;
}

.lead {
  width: min(780px, 100%);
  margin: 18px auto 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
}

.cta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.contact-bar {
  display: inline-flex;
  align-items: stretch;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  overflow: visible;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.contact-bar:hover,
.contact-bar:focus-within {
  border-color: rgba(154, 217, 255, 0.42);
  background: rgba(154, 217, 255, 0.025);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.18),
    0 0 22px rgba(124, 156, 255, 0.09);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-weight: 600;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(154, 217, 255, 0.5);
  background: rgba(154, 217, 255, 0.08);
  outline: none;
}

.button.primary {
  width: 160px;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07111d;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(124, 156, 255, 0.28);

  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: linear-gradient(135deg, #b8e8ff, #9aafff);
  filter: brightness(1.08);
  outline: none;
}

.email-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px 0 16px;
  border-left: 1px solid rgba(154, 217, 255, 0.14);
  border-radius: 0 999px 999px 0;
  background: rgba(255, 255, 255, 0.025);
}

.email-text {
  color: var(--text);
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  user-select: text;
  -webkit-user-select: text;
}

.copy-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(154, 217, 255, 0.28);
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(154, 217, 255, 0.12),
    rgba(124, 156, 255, 0.12)
  );
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.copy-button::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  padding: 7px 8px;
  border-radius: 7px;
  background: #1b2740;
  border: 1px solid #86cfff;
  color: #eaf6ff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.42),
    0 0 12px rgba(154, 217, 255, 0.12);
  transition: opacity 120ms ease;
}

.copy-button:hover::before,
.copy-button:focus-visible::before,
.copy-button.copied::before {
  opacity: 1;
}

.copy-button:hover,
.copy-button:focus-visible {
  border-color: rgba(154, 217, 255, 0.55);
  background: linear-gradient(
    135deg,
    rgba(154, 217, 255, 0.18),
    rgba(124, 156, 255, 0.18)
  );
  box-shadow: 0 10px 20px rgba(124, 156, 255, 0.16);
  outline: none;
}

.copy-button.copied {
  background: linear-gradient(
    135deg,
    rgba(80, 201, 136, 0.22),
    rgba(50, 168, 108, 0.22)
  );
  border-color: rgba(99, 233, 168, 0.8);
  color: #bff7d8;
  box-shadow: 0 10px 24px rgba(66, 209, 129, 0.18);
}

.copy-button svg {
  width: 16px;
  height: 16px;
}

.group {
  margin-top: 28px;
}

.group h2 {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.extra {
  margin-top: 28px;
  padding: 20px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 34, 0.8),
    rgba(10, 15, 22, 0.82)
  );
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.14);
}

.section-kicker {
  margin: 0 0 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.extra-grid {
  display: block;
}

.extra-card {
  display: block;
  padding: 18px 18px 16px;
  border: 1px solid rgba(154, 217, 255, 0.18);
  border-radius: 18px;
  background: rgba(154, 217, 255, 0.04);
  color: var(--text);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.extra-card:hover,
.extra-card:focus-visible {
  border-color: rgba(154, 217, 255, 0.42);
  background: rgba(154, 217, 255, 0.08);
  outline: none;
}

.extra-tag {
  display: inline-block;
  width: 80px;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 5px 9px;
  text-align: center;

  border-radius: 999px;
  background: rgba(124, 156, 255, 0.12);
  border: 1px solid rgba(124, 156, 255, 0.18);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.extra-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.04em;
}

.extra-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.extra-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 14px 30px var(--shadow);
}

.links li + li {
  border-top: 1px solid var(--line);
}

.links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  color: var(--text);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.links a:hover,
.links a:focus-visible {
  background: rgba(154, 217, 255, 0.07);
  color: var(--accent);
  outline: none;
}

.name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.name em {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.82rem;
}

.links small {
  color: var(--muted);
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer {
  margin-top: 36px;
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Styl dla kompaktowej siatki social mediów */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.social-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.social-grid a:hover {
  border-color: rgba(154, 217, 255, 0.4);
  background: rgba(154, 217, 255, 0.05);
}

.social-grid a:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}

.social-grid .name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.95rem;
}

.social-grid small {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
  text-align: right;
}

.language-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 11, 18, 0.88);
  box-shadow: 0 8px 24px var(--shadow);
  backdrop-filter: blur(10px);
}

.language-option {
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 0.72rem var(--sans);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.language-option:hover {
  color: var(--text);
}

.language-option[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(154, 217, 255, 0.22), rgba(124, 156, 255, 0.20));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(154, 217, 255, 0.26);
}

.language-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .language-switch {
    top: 10px;
    right: 10px;
  }

  .page {
    padding-top: 64px;
  }

  .brand {
    width: min(320px, 82vw);
    max-width: 100%;
    height: auto;
  }

  .contact-bar {
    width: min(100%, 390px);
  }

  .button.primary {
    min-width: 130px;
    padding-inline: 0.9rem;
  }

  .email-copy {
    flex: 1 1 auto;
    min-width: 0;
    gap: 6px;
    padding-inline: 10px 8px;
  }

  .email-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
  }

  .links a {
    align-items: flex-start;
    flex-direction: column;
  }

  .name {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .contact-bar {
    flex-wrap: wrap;
    border-radius: 18px;
  }

  .button.primary {
    width: 100%;
    border-radius: 18px 18px 0 0;
  }

  .email-copy {
    width: 100%;
    min-height: 44px;
    border-left: 0;
    border-top: 1px solid rgba(154, 217, 255, 0.14);
    border-radius: 0 0 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .contact-bar,
  .email-copy,
  .copy-button,
  .links a,
  .extra-card,
  .social-grid a {
    transition: none;
  }
}
