* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #072511;
  --bg-secondary: #122332;
  --bg-card: #1a2f3d;
  --text-primary: #ffffff;
  --text-secondary: #b8bdc2;
  --text-hint: #889098;
  --accent-green: #00CD50;
  --accent-green-light: #38E169;
  --accent-green-dark: #007651;
  --border-color: #2a3947;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: url('../assets/images/bg-all.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  opacity: 0.95;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: rgba(18, 35, 50, 0.9);
  backdrop-filter: blur(10px);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

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

/* Hero Section */
.hero {
  padding: 4rem 0;
  text-align: center;
  margin-top: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--accent-green-light), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-image {
  max-width: 300px;
  margin: 2rem auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 205, 80, 0.3);
}

/* Features Section */
.features {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: rgba(26, 47, 61, 0.8);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 205, 80, 0.2);
  border-color: var(--accent-green);
}

.feature-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  border-radius: 12px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-green-light);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Content Pages */
.content-page {
  padding: 4rem 0;
  min-height: 80vh;
}

.content-card {
  background: rgba(26, 47, 61, 0.8);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  max-width: 900px;
  margin: 0 auto;
}

.content-card h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-green-light);
}

.content-card .last-updated {
  color: var(--text-hint);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.content-card h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.content-card h2:first-of-type {
  margin-top: 0;
}

.content-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content-card ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.content-card li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

/* Footer */
footer {
  background: rgba(18, 35, 50, 0.9);
  backdrop-filter: blur(10px);
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

footer p {
  color: var(--text-hint);
  font-size: 0.9rem;
}

footer a {
  color: var(--accent-green-light);
  text-decoration: none;
  margin: 0 1rem;
}

footer a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--accent-green);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--accent-green-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 205, 80, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .logo {
    font-size: 1.15rem;
    min-width: 0;
  }
  
  .logo span {
    word-break: break-word;
    line-height: 1.3;
  }
  
  nav ul {
    gap: 0.75rem;
    font-size: 0.9rem;
  }
  
  .content-card {
    padding: 2rem 1.5rem;
  }
  
  .content-card h1 {
    font-size: 2rem;
  }
  
  .content-card h2 {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

/* Маленькі екрани (мобільні) — щоб все вміщалося */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  header {
    padding: 1rem 0;
  }
  
  .logo {
    font-size: 0.95rem;
    gap: 8px;
  }
  
  .logo img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  
  nav ul {
    gap: 0.5rem;
    font-size: 0.85rem;
  }
  
  .hero {
    padding: 2rem 0;
    margin-top: 1rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-image {
    max-width: 200px;
    margin: 1rem auto;
  }
  
  .features {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: 1.35rem;
    margin-bottom: 2rem;
  }
  
  .feature-card {
    padding: 1.25rem;
  }
  
  .feature-card h3 {
    font-size: 1.2rem;
  }
  
  .feature-card p {
    font-size: 0.95rem;
  }
  
  .content-page {
    padding: 2rem 0;
  }
  
  .content-card {
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }
  
  .content-card h1 {
    font-size: 1.5rem;
  }
  
  .content-card h2 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
  }
  
  .content-card p,
  .content-card li {
    font-size: 0.95rem;
  }
  
  .content-card ul {
    margin-left: 1.25rem;
  }
  
  footer {
    padding: 1.5rem 0;
    margin-top: 2rem;
  }
  
  footer p {
    font-size: 0.85rem;
  }
  
  footer a {
    display: inline-block;
    margin: 0.25rem 0.5rem 0.25rem 0;
  }
}
