:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fa;
  --color-text: #0f172a;
  --color-muted: #52606d;
  --color-border: #e5e7eb;
  --color-accent: #1e40af;
  --color-accent-hover: #1e3a8a;
  --max-width: 1080px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 20px rgba(15, 23, 42, 0.04);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s;
}

.nav a:hover {
  color: var(--color-accent);
}

.lang-switch {
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.lang-switch:hover {
  border-color: var(--color-accent);
}

/* Hero */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--color-border);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 820px;
}

.hero .lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 0 36px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}

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

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

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

.section-alt {
  background: var(--color-bg-alt);
  border-block: 1px solid var(--color-border);
}

.section h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.section-lead {
  font-size: 17px;
  color: var(--color-muted);
  max-width: 720px;
  margin: 0 0 48px;
}

/* Services grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
}

.card p {
  color: var(--color-muted);
  margin: 0 0 18px;
  font-size: 15px;
}

.tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tech-list li {
  font-size: 13px;
  color: var(--color-text);
  padding-left: 16px;
  position: relative;
}

.tech-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Prose / about */
.prose {
  max-width: 720px;
}

.prose p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0 0 18px;
}

/* Products */
.products {
  margin-top: 56px;
}

.products h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px;
}

.product-card {
  display: block;
  max-width: 520px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.product-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow);
}

.product-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.product-card p {
  color: var(--color-muted);
  font-size: 15px;
  margin: 0 0 14px;
}

.product-link {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 14px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.contact-grid h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 18px;
}

.contact-line .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  font-weight: 600;
}

.contact-line a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.contact-line a:hover {
  color: var(--color-accent);
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 0;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.site-footer strong {
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

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

.footer-copy {
  color: #94a3b8;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 640px) {
  .nav {
    gap: 14px;
  }

  .nav a:not(.lang-switch) {
    display: none;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .section {
    padding: 56px 0;
  }
}
