/* АЛ ТЕРМО — стилі лендингу */
:root {
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: #30363d;
  --success: #3fb950;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--accent);
  background: rgba(88, 166, 255, 0.1);
}

/* Main content */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 720px;
}

section {
  margin-bottom: 2.5rem;
}

section h2 {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

section p {
  margin-bottom: 1rem;
  color: var(--text);
}

/* Cards / blocks */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--accent-hover);
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.footer-contacts a {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.footer-contacts a:hover {
  color: var(--accent);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.contact-block h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.contact-block p,
.contact-block a {
  color: var(--text-muted);
  text-decoration: none;
}

.contact-block a:hover {
  color: var(--accent);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Career list */
.job-list {
  list-style: none;
}

.job-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.job-list li:last-child {
  border-bottom: none;
}

.job-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.job-list a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .site-header,
  main {
    padding: 1rem;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
