:root {
  --bg: #06030f;
  --card: #110a24;
  --ink: #eef2ff;
  --muted: #9288b4;
  --line: #251848;
  --primary: #f5720a;
  --primary-2: #ff9040;
  --accent: #38d4f5;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 114, 10, 0.14), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(56, 212, 245, 0.10), transparent 28%),
    radial-gradient(circle at 50% 80%, rgba(120, 40, 200, 0.10), transparent 35%),
    linear-gradient(180deg, #0a0520 0%, var(--bg) 45%, #030108 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 3, 15, 0.93);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent);
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  border-radius: 0.65rem;
  transition: background-color 220ms ease, transform 220ms ease;
}

nav a:hover,
nav a:focus-visible {
  background: #1e0e40;
  transform: translateY(-1px);
}

nav a.active {
  color: #06030f;
  background: linear-gradient(120deg, #38d4f5, #60e4ff);
  font-weight: 700;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: linear-gradient(145deg, rgba(17, 10, 36, 0.97), rgba(10, 5, 24, 0.95));
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 114, 10, 0.22), transparent 70%);
  right: -100px;
  top: -100px;
}

.hero h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  font-size: clamp(1.6rem, 3.8vw, 2.6rem);
  color: #e0f4ff;
}

.hero p {
  color: var(--muted);
  margin-top: 0;
}

.hero img {
  width: 100%;
  height: clamp(230px, 34vw, 360px);
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, #110a24 0%, #0a0520 100%);
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  padding: 0.5rem;
}

.cta-row {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0.7rem;
  padding: 0.65rem 0.92rem;
  transition: transform 170ms ease, filter 170ms ease;
}

.btn.primary {
  color: #06030f;
  background: linear-gradient(120deg, #f5720a, #ff9040);
}

.btn.ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.section-card {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  padding: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.section-card h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: #c4e8ff;
}

.section-card h1 {
  color: #e0f4ff;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.info-tile {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.85rem;
  background: #0a0420;
}

.info-tile h2,
.info-tile h3 {
  color: #c4e8ff;
}

.fact-list {
  margin: 0;
  padding-left: 1.2rem;
}

.fact-list li + li {
  margin-top: 0.55rem;
}

.conclusion {
  margin-top: 1.35rem;
  border: 1px solid var(--line);
  border-left: 6px solid var(--primary);
  border-radius: 0.85rem;
  background: #0d0820;
  padding: 1rem;
}

.conclusion h2 {
  color: #c4e8ff;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 1.4rem 1rem 2.2rem;
}

.reveal {
  animation: fadeUp 550ms ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal:nth-child(2) { animation-delay: 80ms; }
.reveal:nth-child(3) { animation-delay: 160ms; }
.reveal:nth-child(4) { animation-delay: 240ms; }

.atestat-table-wrap {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  padding: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.atestat-table-wrap h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: #c4e8ff;
}

.atestat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.atestat-table th,
.atestat-table td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.9rem;
  text-align: left;
}

.atestat-table thead th {
  background: linear-gradient(120deg, #f5720a, #ff9040);
  color: #06030f;
  font-weight: 700;
}

.atestat-table tbody tr:nth-child(even) {
  background: #0a0420;
}

.biblio-list {
  margin: 0;
  padding-left: 1.2rem;
}

.biblio-list li {
  margin-bottom: 0.7rem;
}

.biblio-list a {
  color: var(--primary-2);
  text-decoration: none;
  word-break: break-all;
}

.biblio-list a:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    width: 100%;
  }

  nav li {
    flex: 1;
  }

  nav a {
    width: 100%;
    text-align: center;
  }
}
