:root {
  --bg: #f0f0f2;
  --card: #ffffff;
  --ink: #111111;
  --muted: #555560;
  --line: #8b1a1a;
  --primary: #1a1a1a;
  --primary-2: #2e2e2e;
  --accent: #c49a00;
  --shadow: 0 14px 36px rgba(10, 5, 5, 0.15);
}

* {
  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(196, 154, 0, 0.07), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(139, 26, 26, 0.07), transparent 35%),
    linear-gradient(180deg, #f8f8fa 0%, var(--bg) 50%, #eaeaee 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 2px solid var(--line);
  background: rgba(248, 248, 250, 0.95);
  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.04em;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 1rem;
}

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.5rem;
  transition: background-color 220ms ease, transform 220ms ease;
}

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

nav a.active {
  background: linear-gradient(120deg, #c49a00, #8b6800);
  color: #fdf5dc;
  font-weight: 700;
}

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

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #d8d8dc;
  border-top: 4px solid var(--line);
  border-radius: 1.1rem;
  background: linear-gradient(145deg, #ffffff, #f4f4f8);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(196, 154, 0, 0.18), 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);
  color: var(--primary);
}

.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, #f8f8fa 0%, #ebebef 100%);
  border-radius: 0.9rem;
  border: 1px solid #d8d8dc;
  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.6rem;
  padding: 0.65rem 0.92rem;
  transition: transform 170ms ease, filter 170ms ease;
}

.btn.primary {
  color: #fdf5dc;
  background: linear-gradient(120deg, #c49a00, #8b6800);
}

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

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

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

.section-card h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--primary);
}

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

.info-tile {
  border: 1px solid #d8d8dc;
  border-top: 3px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.85rem;
  background: #f8f8fc;
}

.info-tile h2,
.info-tile h3 {
  color: var(--primary);
}

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

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

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

.conclusion h2 {
  color: var(--line);
}

.site-footer {
  text-align: center;
  color: #666672;
  padding: 1.4rem 1rem 2.2rem;
  border-top: 1px solid #d8d8dc;
  margin-top: 1rem;
}

.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 #d8d8dc;
  border-radius: 1rem;
  background: var(--card);
  padding: 1rem;
  box-shadow: 0 6px 16px rgba(10, 5, 5, 0.09);
}

.atestat-table-wrap h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

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

.atestat-table th,
.atestat-table td {
  border: 1px solid #d8d8dc;
  padding: 0.65rem 0.9rem;
  text-align: left;
}

.atestat-table thead th {
  background: linear-gradient(120deg, #1a1a1a, #2e2e2e);
  color: #c49a00;
  font-weight: 700;
  letter-spacing: 0.03em;
}

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

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

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

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