/* UplinkLab — сайт-візитка */

:root {
  --bg: #0f1419;
  --bg-card: #1a2332;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #00d4aa;
  --accent-hover: #00b894;
  --border: #30363d;
  --font: 'Manrope', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* Тонка акцентна смуга зверху */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  z-index: 101;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  margin-top: 7px;
}

.logo-img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

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

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 24px;
}

.lang-btn {
  padding: 6px 10px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.lang-btn:first-child {
  border-radius: 6px 0 0 6px;
  border-right: none;
}

.lang-btn:last-child {
  border-radius: 0 6px 6px 0;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

/* Hero */
.hero {
  padding: 80px 0 100px;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 212, 170, 0.06) 0%, transparent 60%);
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-subtitle {
  margin: 0 0 32px;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.section-text {
  margin: 0;
  color: var(--text-muted);
}

.section-text a {
  color: var(--accent);
  text-decoration: none;
}

.section-text a:hover {
  text-decoration: underline;
}

/* Contact */
.contact-intro {
  margin-bottom: 20px;
}

.btn-mail {
  margin-bottom: 16px;
}

.contact-email {
  margin: 0;
  font-size: 0.95rem;
}

.contact-email a {
  color: var(--text-muted);
}

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

/* R&D list */
.rnd-list,
.services-list {
  margin: 0;
  padding-left: 1.25em;
  color: var(--text-muted);
}

.rnd-list li,
.services-list li {
  margin-bottom: 8px;
}

.rnd-list li::marker,
.services-list li::marker {
  color: var(--accent);
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Mobile */
@media (max-width: 640px) {
  .lang-switcher {
    margin-left: auto;
    margin-right: 8px;
  }

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .nav-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 60px 0 80px;
  }
}
