:root {
  --bg: #f0e8d8;
  --card: #ffffff;
  --ink: #2c1a0e;
  --muted: #705040;
  --line: #d4bfa0;
  --primary: #8b3a2f;
  --primary-2: #a04535;
  --accent: #c09030;
  --shadow: 0 14px 36px rgba(60, 20, 10, 0.13);
}

* {
  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 0% 0%, rgba(192, 144, 48, 0.16), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(139, 58, 47, 0.15), transparent 35%),
    linear-gradient(180deg, #f7f0e3 0%, var(--bg) 45%, #f5ece0 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 240, 227, 0.9);
  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: #5a1a10;
}

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: #ead9be;
  transform: translateY(-1px);
}

nav a.active {
  color: #3e0e06;
  background: linear-gradient(120deg, #e8b96a, #d4956a);
  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(255, 255, 255, 0.92), rgba(244, 234, 218, 0.9));
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.hero::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(192, 144, 48, 0.24), transparent 70%);
  right: -90px;
  top: -90px;
}

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

.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, #fdf6ec 0%, #f5e9d5 100%);
  border-radius: 0.9rem;
  border: 1px solid #d4bfa0;
  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: #3e0e06;
  background: linear-gradient(120deg, #e8b96a, #d4956a);
}

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

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

.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(60, 20, 10, 0.08);
}

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

.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: #fdf8f2;
}

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

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

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

.site-footer {
  text-align: center;
  color: #8a6050;
  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(60, 20, 10, 0.08);
}

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

.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, #e8b96a, #d4956a);
  color: #3e0e06;
  font-weight: 700;
}

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

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

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

.biblio-list a {
  color: var(--primary);
  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;
  }
}
