@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-dark: #0f1419;
  --bg-card: #1a2332;
  --bg-card-hover: #243044;
  --accent: #00d4aa;
  --accent-dim: #00a884;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: #30363d;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  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;
  font-family: 'JetBrains Mono', monospace;
}

.logo:hover {
  color: var(--white);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--accent);
  background: rgba(0, 212, 170, 0.08);
}

/* Main content */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  width: 100%;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2rem; }
h3 { font-size: 1.25rem; margin-top: 1.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  max-width: 65ch;
}

p.lead {
  font-size: 1.2rem;
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0 4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.hero h1 {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lead {
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Sections */
.section {
  margin-bottom: 3rem;
}

.section ul, .section ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--text-muted);
}

.section li {
  margin-bottom: 0.5rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: background 0.2s, border-color 0.2s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-dim);
}

.card h3 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* FAQ */
.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item .answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: -1px;
  padding-top: 1rem;
  margin-left: 0;
}

/* Contact block */
.contact-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

.contact-block p {
  margin-bottom: 0.5rem;
}

.contact-block a {
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.footer-contacts a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contacts a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

/* Page title */
.page-title {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: var(--accent-dim);
  text-decoration: none;
  color: var(--bg-dark);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(0, 212, 170, 0.1);
  color: var(--accent);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-contacts {
    justify-content: center;
  }
}
