:root {
  --ink-950: #08111f;
  --ink-900: #0d1a2f;
  --ink-700: #21385b;
  --ink-500: #4b6485;
  --sky-500: #2d86cc;
  --sky-400: #56a6e2;
  --teal-500: #1f8f96;
  --amber-400: #f6b340;
  --paper: #f5f8fc;
  --white: #ffffff;
  --line: rgba(23, 48, 84, 0.14);
  --shadow-lg: 0 20px 42px rgba(9, 22, 42, 0.16);
  --shadow-md: 0 14px 28px rgba(11, 28, 52, 0.12);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", "Franklin Gothic Book", "Trebuchet MS", sans-serif;
  color: var(--ink-900);
  background:
    radial-gradient(circle at 100% 0%, rgba(70, 160, 226, 0.15), transparent 35%),
    radial-gradient(circle at 0% 12%, rgba(31, 143, 150, 0.12), transparent 30%),
    linear-gradient(160deg, #edf4fb, #dce8f6 56%, #f2f5fa);
  line-height: 1.6;
}

a {
  color: var(--sky-500);
  text-decoration: none;
}

a:hover {
  color: var(--ink-700);
}

.page-shell {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1.1rem auto 2.5rem;
}

.topbar {
  position: sticky;
  top: 0.7rem;
  z-index: 20;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
  padding: 0.8rem 1rem;
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: grid;
  gap: 0.1rem;
}

.brand a {
  color: var(--ink-900);
}

.brand-name {
  font-family: "Rockwell", "Clarendon", "Georgia", serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-500);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-900);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.main-nav {
  margin-top: 0.75rem;
}

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

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-700);
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.55rem 0.88rem;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.main-nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 98, 161, 0.3);
  background: rgba(86, 166, 226, 0.12);
  color: var(--ink-900);
}

.main-nav a.active {
  color: var(--white);
  background: linear-gradient(120deg, var(--ink-700), var(--sky-500));
  box-shadow: 0 8px 16px rgba(25, 73, 125, 0.26);
}

.hero {
  margin-top: 1rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(112deg, rgba(9, 22, 41, 0.78), rgba(13, 36, 63, 0.54) 38%, rgba(19, 98, 152, 0.34)),
    url("../Budapest.jpg") center/cover no-repeat;
  min-height: 350px;
  display: grid;
  align-items: end;
}

.hero-content {
  max-width: 700px;
  padding: 2.2rem;
  color: var(--white);
}

.hero-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.hero h1 {
  margin: 0.4rem 0 0.6rem;
  font-family: "Rockwell", "Clarendon", "Georgia", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
}

.hero p {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 56ch;
}

.hero-cta {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.button.primary {
  background: linear-gradient(115deg, var(--amber-400), #ffcc69);
  color: var(--ink-950);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

main {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  padding: 1.35rem;
}

.panel h2,
.panel h3 {
  margin-top: 0;
  color: var(--ink-900);
  font-family: "Rockwell", "Clarendon", "Georgia", serif;
}

.panel p:last-child {
  margin-bottom: 0;
}

.grid-3,
.grid-2,
.grid-auto {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(236, 245, 255, 0.8));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 22px rgba(13, 38, 67, 0.16);
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-family: "Rockwell", "Clarendon", "Georgia", serif;
  color: var(--ink-900);
}

.pill {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a4f86;
  background: rgba(45, 134, 204, 0.14);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.stat {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.stat strong {
  display: block;
  color: var(--ink-900);
  font-size: 1.35rem;
  line-height: 1.1;
}

.stat span {
  color: var(--ink-500);
  font-size: 0.86rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.72rem;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.timeline li {
  border-left: 3px solid rgba(45, 134, 204, 0.5);
  padding-left: 0.85rem;
}

.office {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  background: var(--white);
}

.office h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.footer {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-500);
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.84rem;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal.delay-1 {
  animation-delay: 0.1s;
}

.reveal.delay-2 {
  animation-delay: 0.18s;
}

.reveal.delay-3 {
  animation-delay: 0.26s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .grid-3,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: calc(100% - 1rem);
    margin-top: 0.7rem;
  }

  .topbar {
    border-radius: 18px;
    top: 0.4rem;
  }

  .menu-button {
    display: inline-flex;
  }

  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.35rem;
  }

  .main-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: 310px;
  }

  .hero-content {
    padding: 1.3rem;
  }

  .grid-2,
  .grid-3,
  .stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
