:root {
  --bg: #07111d;
  --bg-2: #0d1727;
  --panel: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .11);
  --text: #edf3ff;
  --muted: #afbdd8;
  --accent: #72d8ff;
  --accent-2: #9176ff;
  --ok: #8ff0b5;
  --warn: #ffd58f;
  --shadow: 0 20px 60px rgba(0, 0, 0, .35);
  --radius: 24px;
  --sidebar: 310px;
  --transition: .28s ease;
  --content-max: 1400px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  overflow-x: hidden
}

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

img {
  display: block;
  max-width: 100%
}

button,
input,
textarea {
  font: inherit
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .28;
  pointer-events: none;
  z-index: 0
}

.orb-1 {
  width: 360px;
  height: 360px;
  top: -80px;
  left: -70px;
  background: #48d9ff
}

.orb-2 {
  width: 320px;
  height: 320px;
  top: 180px;
  right: -80px;
  background: #806eff
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 90%);
  pointer-events: none;
  z-index: 0
}

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: 100vh
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 16px 24px 22px;
  border-right: 1px solid var(--line);
  background: rgba(6, 12, 22, .76);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none
}

.brand-card,
.mini-panel,
.panel,
.topbar,
.section-shell,
.topic-card,
.email-card,
.gallery-preview {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px)
}

.brand-card,
.mini-panel,
.panel,
.section-shell,
.topic-card,
.email-card {
  padding: 22px
}

.brand-photo {
  width: 94px;
  height: 94px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .14);
  margin-bottom: 16px
}

.brand-copy h1 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.05
}

.brand-copy h1 span {
  color: var(--accent)
}

.brand-text {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65
}

.side-nav,
.top-nav {
  display: flex;
  gap: 10px
}

.side-nav {
  flex-direction: column
}

.side-nav a,
.top-nav a,
.social-list a,
.mini-list a {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  transition: var(--transition);
  border: 1px solid transparent;
  display: block
}

.side-nav a:hover,
.top-nav a:hover,
.social-list a:hover,
.mini-list a:hover,
.side-nav a.active,
.top-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border-color: rgba(114, 216, 255, .22);
  transform: translateY(-1px)
}

.mini-panel__title {
  margin: 0 0 10px;
  font-weight: 700
}

.mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px
}

.social-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.main-content {
  padding: 24px
}

.main-inner {
  max-width: var(--content-max);
  margin: 0 auto
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 16px;
  margin-bottom: 24px
}

.top-nav {
  flex-wrap: wrap
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px
}

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

.hero h2 {
  margin: 0 0 16px;
  font-size: 48px;
  line-height: 1.02;
  max-width: 16ch
}

.lead {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 64ch;
  line-height: 1.8;
  font-size: 1.05rem
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

.btn {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: none;
  cursor: pointer
}

.btn:hover {
  transform: translateY(-2px)
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05121e;
  font-weight: 800
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text)
}

.hero-media-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04)
}

.hero-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: .85rem
}

.panel h3,
.section-head h3,
.topic-content h3,
.email-card h3 {
  margin: 0 0 14px;
  font-size: 1.42rem
}

.panel p,
.section-head p,
.topic-content p,
.email-card p {
  color: var(--muted);
  line-height: 1.78
}

.panel {
  margin-bottom: 24px
}

.section-shell {
  margin-bottom: 24px
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px
}

.section-count {
  color: var(--muted);
  font-size: .95rem
}

.topics {
  display: grid;
  gap: 18px
}

.topic-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: stretch
}

.topic-thumb {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  width: 200px;
  min-width: 200px;
  height: 150px;
  min-height: 150px
}

.topic-thumb img {
  width: 200px;
  height: 150px;
  object-fit: cover
}

.topic-content {
  display: flex;
  flex-direction: column;
  justify-content: center
}

.topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem
}

.topic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px
}

.topic-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  transition: var(--transition)
}

.topic-link-publi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 42px;
  padding: 10px 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  transition: var(--transition);
}

.publication-place {
  font-size: 0.9rem;
  line-height: 2;
}

.publication-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topic-link:hover {
  transform: translateY(-2px);
  border-color: rgba(114, 216, 255, .24)
}

.preview-wrap {
  display: grid;
  gap: 10px
}

.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px
}

.preview-top strong {
  font-size: .98rem
}

.preview-controls {
  display: flex;
  gap: 8px
}

.preview-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition)
}

.preview-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(114, 216, 255, .24)
}

.gallery-preview {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border-radius: 20px
}

.preview-track {
  display: flex;
  width: 100%;
  transition: transform .35s ease
}

.preview-slide {
  min-width: 100%;
  display: grid;
  gap: 12px;
  padding: 12px
}

.preview-slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line)
}

.preview-caption {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6
}

.preview-dots {
  display: flex;
  gap: 8px;
  justify-content: center
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, .22)
}

.preview-dot.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2))
}

.email-card {
  max-width: 900px
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px
}

label {
  font-weight: 700
}

input,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  padding: 14px 16px;
  outline: none
}

input:focus,
textarea:focus {
  border-color: rgba(114, 216, 255, .5);
  box-shadow: 0 0 0 3px rgba(114, 216, 255, .12)
}

.helper {
  color: var(--muted);
  font-size: .95rem
}

.note {
  margin-top: 12px;
  color: var(--warn);
  font-size: .95rem
}

.success {
  color: var(--ok)
}

.footer {
  padding: 6px 0px 0px;
  color: var(--muted);
  text-align: center
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease
}

.reveal.is-visible {
  opacity: 1;
  transform: none
}

@media (max-width:1320px) {
  .topic-card {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 16px
  }

  .preview-wrap {
    grid-column: 1 / -1
  }
}

@media (max-width:1100px) {
  .layout {
    grid-template-columns: 1fr
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    overflow: visible
  }

  .hero {
    grid-template-columns: 1fr
  }
}

@media (max-width:820px) {
  .main-content {
    padding: 16px
  }

  .topbar {
    padding: 10px 12px
  }

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

  .section-head {
    grid-template-columns: 1fr
  }

  .topic-card {
    grid-template-columns: 1fr
  }

  .topic-thumb {
    min-height: 200px
  }
}

@media (max-width:560px) {

  .brand-card,
  .mini-panel,
  .panel,
  .section-shell,
  .topic-card,
  .email-card {
    padding: 18px
  }

  .hero h2 {
    max-width: 100%
  }

  .top-nav {
    grid-template-columns: 1fr 1fr
  }

  .preview-top {
    flex-direction: column;
    align-items: flex-start
  }

  .hero-actions,
  .topic-actions {
    flex-direction: column;
    align-items: stretch
  }

  .btn,
  .topic-link {
    width: 100%
  }
}

.sidebar::-webkit-scrollbar {
  display: none
}

.profile-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 22px;
  align-items: start
}

.profile-card__media {
  display: flex;
  justify-content: center
}

.profile-card__image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .14)
}

.profile-card__content p {
  color: var(--muted);
  line-height: 1.85;
  margin: 0 0 14px
}

@media (max-width:820px) {
  .profile-card {
    grid-template-columns: 1fr
  }

  .profile-card__media {
    justify-content: flex-start
  }
}

@media (max-width:560px) {
  .hero h2 {
    font-size: 38px
  }

  .topic-thumb,
  .topic-thumb img {
    width: 100%;
    height: auto;
    min-width: 0
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-copy .lead {
  max-width: 100%;
  width: 100%;
  text-align: justify;
}

.hero-copy h2 {
  width: 100%;
  text-align: center;
  max-width: 100%;
}

.topic-card {
  align-items: center;
}

.topic-thumb {
  align-self: center;
  justify-self: center;
}

#emailStatus {
  margin-top: 12px
}