:root {
  --navy:   #0b1f3a;
  --deep:   #071428;
  --teal:   #0e7fa3;
  --teal2:  #06b6d4;
  --gold:   #e8b84b;
  --gold2:  #fcd36a;
  --white:  #f0f6ff;
  --muted:  #94a3b8;
  --card:   rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--deep); color: var(--white); overflow-x: hidden; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(7,20,40,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--gold); }
.nav-logo span { color: var(--white); }
nav ul { list-style: none; display: flex; gap: 2rem; }
nav ul a {
  text-decoration: none; color: var(--muted);
  font-size: .88rem; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; transition: color .25s; position: relative;
}
nav ul a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--gold); transition: width .3s; }
nav ul a:hover, nav ul a.active { color: var(--white); }
nav ul a:hover::after, nav ul a.active::after { width: 100%; }
.ham { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.ham span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }

/* PAGES */
.page { display: none; animation: fadeUp .55s ease both; }
.page.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* HERO */
#home {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; padding: 8rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(14,127,163,.35) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(232,184,75,.12) 0%, transparent 60%),
    var(--deep);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .07;
  background-image: linear-gradient(var(--teal) 1px, transparent 1px),
                    linear-gradient(90deg, var(--teal) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(14,127,163,.18); border: 1px solid rgba(14,127,163,.4);
  padding: .35rem 1rem; border-radius: 99px;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal2); margin-bottom: 1.5rem;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal2); }

.hero-avatar {
  width: 160px; height: 160px; border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(232,184,75,.12), 0 20px 60px rgba(0,0,0,.5);
  object-fit: cover; margin: 0 auto 1.8rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a3a5c, #0e7fa3);
  font-size: 3.5rem; cursor: pointer; transition: transform .3s;
}
.hero-avatar:hover { transform: scale(1.04); }

h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.1; margin-bottom: .6rem; }
h1 .gold { color: var(--gold); }
.hero-role { font-size: 1.05rem; color: var(--teal2); font-weight: 500; letter-spacing: .04em; margin-bottom: 1.2rem; }
.hero-school { font-size: .9rem; color: var(--muted); margin-bottom: 2.5rem; }
.hero-school strong { color: var(--white); }

.hero-stats { display: flex; justify-content: center; gap: 3rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--gold); display: block; }
.stat-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .75rem 2rem; border-radius: 8px;
  font-size: .9rem; font-weight: 600; letter-spacing: .03em;
  cursor: pointer; text-decoration: none; border: none; transition: all .25s;
}
.btn-primary { background: var(--gold); color: var(--deep); }
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,184,75,.35); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.25); margin-left: .8rem; }
.btn-outline:hover { border-color: var(--teal2); color: var(--teal2); }

/* SECTIONS */
section { padding: 7rem 2rem 5rem; max-width: 1100px; margin: auto; }
.section-label { display: inline-block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal2); margin-bottom: .7rem; font-weight: 600; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.section-desc { color: var(--muted); max-width: 520px; line-height: 1.75; font-size: .95rem; }
.divider { width: 52px; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); margin: 1rem 0 2.5rem; border-radius: 2px; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; margin-top: 2rem; }
.about-photo-wrap { position: relative; }
.about-photo {
  width: 100%; aspect-ratio: 3/4; border-radius: 16px;
  background: linear-gradient(160deg, #1a3a5c 0%, #0e7fa3 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.about-deco { position: absolute; bottom: -16px; right: -16px; width: 80%; aspect-ratio: 1; border: 2px solid var(--gold); border-radius: 16px; opacity: .25; z-index: -1; }

.about-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 1.2rem; }
.about-card h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal2); margin-bottom: .5rem; }
.about-card p { font-size: .92rem; color: var(--muted); line-height: 1.7; }
.about-card strong { color: var(--white); }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.5rem; }
.info-item { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: .9rem 1.1rem; }
.info-item .lbl { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .2rem; }
.info-item .val { font-size: .9rem; font-weight: 500; color: var(--white); }

/* TABLE */
.table-section { margin-top: 2rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead { background: rgba(14,127,163,.2); }
thead th { padding: 1rem 1.25rem; text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal2); font-weight: 600; border-bottom: 1px solid var(--border); }
tbody tr { border-bottom: 1px solid var(--border); transition: background .2s; }
tbody tr:hover { background: rgba(255,255,255,.03); }
tbody td { padding: .9rem 1.25rem; color: var(--muted); }
tbody td:first-child { color: var(--white); font-weight: 500; }

.badge-pill { display: inline-block; padding: .2rem .75rem; border-radius: 99px; font-size: .75rem; }
.pill-green { background: rgba(16,185,129,.15); color: #34d399; border: 1px solid rgba(16,185,129,.3); }
.pill-blue  { background: rgba(14,127,163,.2);  color: var(--teal2); border: 1px solid rgba(14,127,163,.35); }
.pill-gold  { background: rgba(232,184,75,.15); color: var(--gold);  border: 1px solid rgba(232,184,75,.3); }
.pill-red   { background: rgba(239,68,68,.12);  color: #f87171;      border: 1px solid rgba(239,68,68,.25); }

/* KONTAK */
.kontak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; align-items: start; }
.kontak-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; }
.kontak-card h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; }
.contact-icon { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; background: rgba(14,127,163,.18); border: 1px solid rgba(14,127,163,.3); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact-text .lbl { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.contact-text .val { font-size: .9rem; font-weight: 500; margin-top: .15rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .4rem; text-transform: uppercase; letter-spacing: .06em; }
.form-group input, .form-group textarea {
  width: 100%; background: rgba(255,255,255,.05);
  border: 1px solid var(--border); border-radius: 8px;
  padding: .75rem 1rem; color: var(--white);
  font-family: inherit; font-size: .9rem;
  outline: none; transition: border-color .25s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* FOOTER */
footer { border-top: 1px solid var(--border); text-align: center; padding: 2rem; font-size: .82rem; color: var(--muted); }
footer strong { color: var(--gold); }

/* MOBILE */
@media (max-width: 768px) {
  nav ul { display: none; flex-direction: column; position: fixed; top: 56px; left: 0; right: 0; background: var(--deep); padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); gap: 1.2rem; }
  nav ul.open { display: flex; }
  .ham { display: flex; }
  .about-grid, .kontak-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  section { padding: 5rem 1.25rem 3rem; }
}