:root {
  --color-primary: #3e62e5;
  --color-primary-dark: #2d4bb8;
  --color-bg-dark: #0f1729;
  --color-bg-light: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-text: #1a1a2e;
  --color-text-muted: #5a6178;
  --color-border: #e2e6ed;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  line-height: 1.6;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
}

.nav-logo img {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

/* Language switching */
html[lang="pl"] [lang="en"],
html[lang="en"] [lang="pl"] {
  display: none;
}

.lang-switch {
  margin-left: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Hero */
.hero {
  background: var(--color-bg-dark);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px 80px;
}

.hero-logo {
  border-radius: 24px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin-bottom: 40px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-align: center;
}

.about-text {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow 0.2s;
}

.service-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(62, 98, 229, 0.08);
  border-radius: 10px;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Footer */
.footer {
  background: var(--color-bg-dark);
  color: #fff;
  padding: 80px 0 40px;
  text-align: center;
}

.footer h2 {
  color: #fff;
}

.footer-text {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 28px;
  font-size: 1.0625rem;
}

.footer-contacts {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  margin-top: 48px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8125rem;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav {
    justify-content: center;
  }

  .lang-switch {
    margin-left: 0;
  }

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

  .section {
    padding: 64px 0;
  }

  .footer {
    padding: 64px 0 32px;
  }
}
