:root {
  --bg: #f6f8fb;
  --ink: #111827;
  --muted: #607086;
  --line: #dfe6ef;
  --card: #ffffff;
  --brand: #0f62fe;
  --brand-dark: #083b99;
  --accent: #17b26a;
  --shadow: 0 18px 50px rgba(15, 35, 70, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
}

.start-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 30% 20%, rgba(23, 178, 106, .32), transparent 26rem),
    radial-gradient(circle at 75% 75%, rgba(15, 98, 254, .32), transparent 25rem),
    #09111f;
  color: #fff;
}

.start-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  padding: 28px;
}

.start-orbit {
  position: absolute;
  width: min(78vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(255,255,255,.06);
}

.start-orbit::before,
.start-orbit::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 50%;
}

.start-orbit::after {
  inset: 28%;
  border-style: solid;
}

.start-content {
  position: relative;
  text-align: center;
  width: min(100%, 720px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.start-content h1 {
  margin: 0;
  font-size: clamp(3rem, 17vw, 7.6rem);
  font-weight: 900;
}

.start-slogan {
  margin: 14px auto 28px;
  max-width: 520px;
  color: rgba(255,255,255,.82);
  font-size: 1.08rem;
}

.enter-button,
.primary,
.secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 800;
  padding: 0 28px;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(15, 98, 254, .26);
}

.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
  box-shadow: none;
}

.enter-button {
  min-width: 170px;
  border: 1px solid rgba(255,255,255,.22);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 900;
  letter-spacing: .04em;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 12px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  border-radius: 8px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
  padding: 9px 12px;
}

.nav-links a.active,
.nav-links a:hover {
  background: #eaf1ff;
  color: var(--brand-dark);
}

.page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 22px 16px 48px;
}

.hero {
  display: grid;
  gap: 18px;
  align-items: center;
  margin: 8px 0 22px;
  padding: 28px 0;
}

.hero.compact {
  max-width: 760px;
}

.hero.about {
  grid-template-columns: 1.15fr .85fr;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4.2rem);
  line-height: 1.02;
}

.hero p {
  max-width: 670px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.panel,
.job-card,
.player-card,
.admin-card,
.services article,
.toolbar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid.single {
  grid-template-columns: 1fr;
}

label {
  display: grid;
  gap: 7px;
  color: #253247;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  padding: 13px 14px;
}

textarea {
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.check {
  display: flex;
  align-items: center;
  font-weight: 700;
  line-height: 1.4;
}

.check input {
  width: auto;
}

.form-note {
  color: var(--accent);
  font-weight: 800;
}

.cv-mail-card {
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  background: #f4f8ff;
  padding: 16px;
}

.cv-mail-card strong {
  display: block;
  margin-bottom: 6px;
}

.cv-mail-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.toolbar {
  padding: 12px;
  margin-bottom: 14px;
}

.job-list {
  display: grid;
  gap: 12px;
}

.job-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.job-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.job-card h2,
.player-card h2,
.admin-card h2,
.services h2 {
  margin: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border-radius: 999px;
  background: #eef4ff;
  color: var(--brand-dark);
  font-size: .82rem;
  font-weight: 800;
  padding: 7px 10px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.player-card {
  overflow: hidden;
}

.player-head {
  min-height: 130px;
  padding: 18px;
  background: linear-gradient(135deg, #101928, #0f62fe);
  color: #fff;
}

.rating {
  display: inline-grid;
  place-items: center;
  width: 54px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(255,255,255,.14);
  font-size: 1.25rem;
  font-weight: 900;
}

.player-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.select-profile,
.admin-card button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 800;
  padding: 11px 12px;
  cursor: pointer;
}

.clean-list {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.media-placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 8px;
  background: linear-gradient(135deg, #dde8f7, #ffffff);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  overflow: hidden;
}

.media-placeholder img,
.media-placeholder video,
.work-media-card img,
.work-media-card video {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.services,
.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.services article,
.admin-card {
  padding: 18px;
}

.admin-card {
  display: grid;
  gap: 12px;
}

.admin-workspace {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 14px;
  align-items: start;
}

.admin-menu {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 8px;
}

.admin-menu button {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: left;
  padding: 14px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 35, 70, .07);
}

.admin-menu button.active {
  background: #0f1b2d;
  color: #fff;
  border-color: #0f1b2d;
}

.admin-menu .admin-logout {
  margin-top: 8px;
  border-color: #ffd4d4;
  background: #fff6f6;
  color: #ad1f1f;
}

.admin-menu strong {
  color: inherit;
  font-size: 1.2rem;
}

.admin-section {
  display: grid;
  gap: 18px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.section-head h2 {
  margin: 0;
}

.inbox-layout {
  display: grid;
  grid-template-columns: minmax(240px, .85fr) minmax(0, 1.15fr);
  gap: 12px;
}

.inbox-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.mail-item {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  text-align: left;
  padding: 13px;
  cursor: pointer;
}

.mail-item.active,
.mail-item:hover {
  background: #eaf1ff;
  border-color: #b8cdf5;
}

.mail-item span,
.mail-item small {
  color: var(--muted);
}

.detail-pane {
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.detail-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.detail-head h2 {
  margin: 0 0 6px;
}

.detail-head span {
  color: var(--muted);
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-grid p,
.detail-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  margin: 0;
  padding: 12px;
}

.detail-grid strong {
  display: block;
  margin-bottom: 5px;
}

.detail-block {
  margin: 12px 0;
}

.detail-block h3 {
  margin: 0 0 8px;
}

.admin-subpanel {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.admin-subpanel h3 {
  margin: 0;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.admin-tabs button,
.row-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  padding: 10px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.admin-tabs button.active,
.row-actions button:hover {
  background: #eaf1ff;
  color: var(--brand-dark);
}

.admin-panel {
  display: grid;
  gap: 18px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 14px;
}

.admin-row h3 {
  margin: 0 0 6px;
}

.admin-row p {
  margin: 5px 0;
  color: var(--muted);
  line-height: 1.45;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.empty {
  color: var(--muted);
  font-weight: 700;
}

.contact-panel {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 18px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  margin: 0;
}

.contact-grid {
  display: grid;
  gap: 10px;
}

.contact-grid a,
.contact-grid div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.contact-grid span {
  color: var(--muted);
}

.work-gallery-section {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.work-gallery-section h2 {
  margin: 0;
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.work-media-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.work-media-card h3,
.work-media-card p {
  margin: 0;
  padding: 0 14px 14px;
}

.work-media-card h3 {
  padding-top: 14px;
}

.admin-gate {
  display: grid;
  justify-items: end;
  gap: 12px;
  margin-top: 18px;
}

.admin-gate-toggle {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.admin-gate-form {
  width: min(100%, 420px);
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow);
}

.hidden {
  display: none;
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 62px;
    display: none;
    flex-direction: column;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero.about,
  .split,
  .form-grid,
  .team-grid,
  .services,
  .admin-dashboard,
  .contact-panel,
  .admin-shell,
  .inbox-layout,
  .detail-grid,
  .work-gallery {
    grid-template-columns: 1fr;
  }

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

  .page {
    padding-top: 12px;
  }

  .job-top {
    display: grid;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .row-actions {
    justify-content: stretch;
  }

  .row-actions button {
    flex: 1;
  }
}
