/* АДАТАІКС — спільні стилі */
@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: #0d1117;
  --bg-card: #161b22;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: #30363d;
  --success: #3fb950;
}

* {
  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;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-hover);
}

/* Header */
.site-header {
  background: rgba(13, 17, 23, 0.9);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.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(--text);
  letter-spacing: 0.02em;
}
.logo span {
  color: var(--accent);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
}
.nav-list a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  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%;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.3;
}
h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin: 2rem 0 1rem; color: var(--text); }
h3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  max-width: 72ch;
}

.lead {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* Sections */
.section {
  margin-bottom: 3rem;
}

.card-grid {
  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: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.card h3 {
  margin-top: 0;
  color: var(--accent);
}

code, .mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  background: rgba(88, 166, 255, 0.15);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent);
}

/* Footer with contacts */
.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;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.footer-brand span { color: var(--accent); }

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}
.footer-contacts a,
.footer-contacts span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.footer-contacts a:hover {
  color: var(--accent);
}

/* Hero on home */
.hero {
  text-align: center;
  padding: 3rem 0 4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}
.hero .lead {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ accordion style */
.faq-list {
  list-style: none;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  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;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item div {
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Contact form / info */
.contact-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 1.5rem;
  max-width: 500px;
}
.contact-block p {
  margin-bottom: 0.5rem;
}
.contact-block a {
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Page title */
.page-title {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 640px) {
  .site-header { padding: 1rem; }
  main { padding: 1rem; }
  .hero h1 { font-size: 1.75rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
