:root {
  --purple-950: #1e0738;
  --purple-850: #32105a;
  --purple-700: #55228e;
  --violet: #7546c8;
  --gold: #f7dc45;
  --cyan: #20b8e9;
  --ink: #171421;
  --muted: #625d70;
  --line: #e8e3ef;
  --surface: #ffffff;
  --soft: #f8f6fb;
  --shadow: 0 24px 60px rgba(28, 10, 50, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--surface);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(30, 7, 56, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}
.brand img,
.footer img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  font-size: 14px;
}
.nav-links a:hover { color: var(--gold); }
.login-link {
  border: 1px solid rgba(247,220,69,0.5);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--gold);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.22);
  background: transparent;
  border-radius: 8px;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 720px;
  height: min(760px, calc(100vh - 20px));
  overflow: hidden;
  background: var(--purple-950);
}
.hero-slider {
  width: 100%;
  height: 100%;
}
.hero-slider,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--purple-950);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 700ms ease, transform 1200ms ease;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(30,7,56,0.92) 0%, rgba(30,7,56,0.72) 42%, rgba(30,7,56,0.26) 100%),
    linear-gradient(0deg, rgba(30,7,56,0.55), transparent 46%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 150px 0 110px;
  color: #fff;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}
.hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255,255,255,0.84);
  font-size: 20px;
  line-height: 1.6;
}
.hero-actions,
.directory-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-actions { margin-top: 34px; }
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
}
.btn.primary { background: var(--gold); color: var(--purple-950); }
.btn.secondary { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.28); }
.btn.renated { background: var(--purple-850); color: #fff; }
.btn.map-link {
  width: fit-content;
  margin: 8px 0 18px;
  background: var(--purple-850);
  color: #fff;
}
.slider-controls {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 44px;
  display: flex;
  gap: 10px;
}
.slider-btn {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,0.12);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.trust-band {
  width: min(1180px, calc(100% - 32px));
  margin: -48px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--line);
}
.trust-band div {
  background: #fff;
  padding: 24px;
}
.trust-band strong {
  display: block;
  margin-bottom: 6px;
  color: var(--purple-700);
  font-size: 13px;
  text-transform: uppercase;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 70px;
  align-items: center;
}
.section h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}
.section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.stats div,
.science-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}
.stats strong {
  display: block;
  color: var(--purple-700);
  font-size: 34px;
}
.stats span { color: var(--muted); font-weight: 700; }
.portrait-panel {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--soft);
}
.portrait-panel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.science {
  width: 100%;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, var(--purple-950), var(--purple-700));
  color: #fff;
}
.science .section-copy,
.science-head { max-width: 780px; }
.science h2,
.science h3 { color: #fff; }
.science-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}
.science-grid article {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}
.science p { color: rgba(255,255,255,0.78); }
.science .note {
  max-width: 860px;
  margin: 28px 0 0;
  font-size: 14px;
}

.media-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.media-strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}
.directory-tools {
  align-items: flex-end;
  margin-bottom: 20px;
}
label {
  display: grid;
  gap: 8px;
  color: var(--purple-850);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.directory-tools label { min-width: 190px; flex: 1; }
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
}
th,
td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--purple-850);
  background: var(--soft);
  font-size: 13px;
  text-transform: uppercase;
}
td { color: var(--muted); }
.directory-photo {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  background: var(--soft);
  border: 1px solid var(--line);
}
.directory-photo.placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 11px;
  text-align: center;
}
.renated-code {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  background: var(--purple-700);
  font-weight: 800;
}

.testimonials {
  width: 100%;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: var(--soft);
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.video-grid iframe,
.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow);
}

.location-contact {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 36px;
}
.location iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.contact-form {
  align-self: start;
  padding: 30px;
  border-radius: 8px;
  background: var(--purple-950);
  color: #fff;
  box-shadow: var(--shadow);
}
.contact-form h2 { margin: 0 0 22px; font-size: 32px; color: #fff; }
.contact-form label { color: #fff; margin-bottom: 14px; }
.contact-form textarea { resize: vertical; }
.form-status { min-height: 22px; margin: 14px 0 0; color: rgba(255,255,255,0.78); }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px max(16px, calc((100% - 1180px) / 2));
  color: #fff;
  background: var(--purple-950);
}
.footer p { margin: 6px 0 0; color: rgba(255,255,255,0.72); }

.admin-body {
  min-height: 100vh;
  background: var(--soft);
}
.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 80px;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.admin-topbar .brand { color: var(--purple-950); }
.admin-card,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.admin-card {
  max-width: 460px;
  margin: 70px auto;
  padding: 30px;
}
.admin-panel {
  padding: 26px;
  margin-bottom: 22px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.admin-grid .full { grid-column: 1 / -1; }
.admin-actions,
.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.admin-actions { margin-top: 18px; }
.record-actions { justify-content: flex-end; }
.record-actions form { margin: 0; }
.admin-success,
.admin-error {
  margin: 12px 0 0;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
}
.admin-success {
  color: #1b5f31;
  background: #e6f6eb;
}
.admin-error {
  color: #8d1b2d;
  background: #fde8ec;
}
.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.admin-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.admin-row img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  background: #fff;
}
.admin-row strong,
.admin-row span {
  display: block;
}
.admin-row span {
  color: var(--muted);
  font-size: 14px;
}
.hidden { display: none !important; }
.danger {
  background: #af2138;
  color: #fff;
}
.ghost {
  background: #fff;
  color: var(--purple-850);
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 24px;
    background: var(--purple-950);
  }
  .nav-links.open { display: flex; }
  .hero { min-height: 650px; height: 650px; }
  .hero-content { padding-top: 120px; }
  .trust-band,
  .split,
  .science-grid,
  .video-grid,
  .location-contact,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-grid .full { grid-column: auto; }
  .admin-row { grid-template-columns: 56px 1fr; }
  .admin-row img { width: 56px; height: 56px; }
  .record-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .media-strip { grid-template-columns: repeat(2, 1fr); }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .brand span { font-size: 14px; }
  .hero { min-height: 610px; height: 610px; }
  .hero p:not(.eyebrow) { font-size: 17px; }
  .stats { grid-template-columns: 1fr; }
  .section { padding: 66px 0; }
  .contact-form { padding: 22px; }
}
