:root {
  --bg: #050608;
  --panel: #0f1620;
  --panel-2: #151e2b;
  --line: #2b3747;
  --orange: #e58a1f;
  --gold: #f2cf72;
  --red: #a91f2d;
  --text: #fff;
  --soft: #d8e0ed;
  --muted: #99a7bb;
  --shadow: 0 28px 70px rgba(0,0,0,.46);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 82% 4%, rgba(229,138,31,.15), transparent 28%), var(--bg);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px clamp(16px, 4vw, 42px);
  background: rgba(5,6,8,.92);
  border-bottom: 1px solid rgba(229,138,31,.55);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 248px; }
.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
  background: #050608;
  box-shadow: 0 0 0 2px var(--orange), 0 0 28px rgba(229,138,31,.28);
}
.brand strong { display: block; font-family: Georgia, serif; font-size: 17px; }
.brand small { display: block; color: var(--gold); font-size: 11px; text-transform: uppercase; font-weight: 900; }
.nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.nav a {
  white-space: nowrap;
  padding: 10px 12px;
  border: 1px solid rgba(242,207,114,.16);
  background: #121a26;
  border-radius: 4px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.nav a:hover { color: var(--gold); border-color: var(--orange); }
.ghost-btn, .secondary-btn, .primary-btn, .carousel-controls button {
  border-radius: 4px;
  border: 1px solid var(--orange);
  min-height: 42px;
  padding: 0 15px;
  color: var(--gold);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.primary-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--orange); color: #07090d; }
.secondary-btn { color: var(--gold); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 70px) 38px;
}
.kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 970px;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(42px, 7.4vw, 92px);
  line-height: .92;
}
.lead {
  max-width: 780px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.65;
  margin: 22px 0 28px;
}
.hero-actions, .article-actions, .admin-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.logo-stage {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.logo-stage img {
  width: min(370px, 82vw);
  height: min(370px, 82vw);
  object-fit: contain;
  filter: drop-shadow(0 28px 45px rgba(0,0,0,.72));
  animation: logoFloat 5s ease-in-out infinite;
}
.logo-ring {
  position: absolute;
  width: 390px;
  max-width: 86vw;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(242,207,114,.22);
  background: radial-gradient(circle, rgba(229,138,31,.18), transparent 62%);
  animation: pulse 3.8s ease-in-out infinite;
  z-index: -1;
}
.scan-line {
  position: absolute;
  width: 88%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(242,207,114,.9), transparent);
  animation: scan 3.3s ease-in-out infinite;
  opacity: .65;
}
@keyframes logoFloat { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes pulse { 0%,100% { transform: scale(.92); opacity: .6; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes scan { 0% { transform: translateY(-160px); opacity: 0; } 20%,80% { opacity: .75; } 100% { transform: translateY(160px); opacity: 0; } }
.ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  overflow: hidden;
  background: var(--orange);
  color: #08090b;
}
.ticker > span {
  padding: 12px 18px;
  background: #08090b;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.ticker-track { display: flex; gap: 34px; width: max-content; padding-left: 18px; animation: ticker 48s linear infinite; }
.ticker-track button {
  border: 0;
  background: transparent;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.dashboard-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dashboard-strip article { background: #0b1018; padding: 18px clamp(14px, 3vw, 28px); }
.dashboard-strip strong { display: block; color: var(--gold); font-family: Georgia, serif; font-size: 34px; line-height: 1; }
.dashboard-strip span { color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; }
.section { padding: 54px clamp(18px, 5vw, 70px); }
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}
.section-head.compact { display: block; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-controls button { width: 46px; padding: 0; font-size: 28px; line-height: 1; }
.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, .58fr);
  gap: 18px;
}
.carousel {
  min-height: 570px;
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity .45s ease, transform .6s ease;
}
.slide.active { opacity: 1; pointer-events: auto; transform: translateX(0); }
.slide-media { min-width: 0; background: #080b10; }
.slide-media img { width: 100%; height: 100%; min-height: 570px; object-fit: cover; display: block; }
.slide-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 46px);
  background: linear-gradient(155deg, #121a26, #07090d 82%);
  border-left: 1px solid rgba(229,138,31,.45);
}
.badge {
  align-self: flex-start;
  color: #08090b;
  background: var(--orange);
  padding: 8px 10px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.slide h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: .98;
}
.slide p { color: var(--soft); font-size: 17px; line-height: 1.58; margin: 0; }
.slide-list { display: grid; gap: 12px; align-content: start; }
.slide-selector {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  text-align: left;
  min-height: 84px;
  padding: 14px;
  background: #111925;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.slide-selector.active { border-left: 4px solid var(--orange); background: #172232; }
.slide-selector span { color: var(--orange); font-weight: 900; }
.slide-selector strong { font-size: 14px; line-height: 1.25; }
.tool-grid, .forms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.forms-grid { grid-template-columns: .78fr 1.22fr; align-items: start; }
.field, .form-card, .automation-card {
  display: block;
  padding: 18px;
  background: #0d141e;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.field span, .form-card label { display: block; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; margin-bottom: 8px; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #070a10;
  color: #fff;
  border-radius: 4px;
}
textarea { resize: vertical; }
.automation-card strong, .form-card h3 { display: block; margin: 0 0 8px; color: var(--gold); font-family: Georgia, serif; font-size: 24px; }
.automation-card span, .form-card p, .form-card small { color: var(--soft); line-height: 1.55; }
.automation-card button { margin-top: 12px; margin-right: 8px; }
.form-card label { margin-top: 14px; text-transform: none; font-size: 13px; }
.form-card button { margin-top: 14px; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.news-card {
  display: grid;
  grid-template-rows: 210px 1fr;
  min-height: 470px;
  background: #0d141e;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.card-img { background: #080b10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.news-card:hover .card-img img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.card-body span { color: var(--orange); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.card-body h3 { margin: 0; font-family: Georgia, serif; font-size: 24px; line-height: 1.06; }
.card-body p { color: var(--soft); line-height: 1.55; margin: 0; }
.mini-actions { margin-top: auto; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.mini-actions small { color: var(--muted); }
.mini-actions button {
  border: 1px solid var(--orange);
  background: transparent;
  color: var(--gold);
  border-radius: 4px;
  padding: 8px 10px;
  font-weight: 900;
  font-size: 12px;
}
.editorial-system {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
}
.editorial-system article {
  background: linear-gradient(155deg, #111925, #080b10);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  padding: 28px;
}
.editorial-system h2 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 34px; }
.editorial-system p { color: var(--soft); line-height: 1.65; }
.article-modal, .admin-modal {
  border: 0;
  background: transparent;
  width: min(980px, calc(100% - 28px));
  max-height: 92vh;
}
.admin-modal { width: min(620px, calc(100% - 28px)); }
.article-modal::backdrop, .admin-modal::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(7px); }
.article-box, .admin-box {
  position: relative;
  color: var(--text);
  background: #0d131c;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.article-box > img { width: 100%; max-height: 390px; object-fit: cover; background: #080b10; display: block; }
.article-content { padding: clamp(22px, 4vw, 42px); }
.article-content h2 { margin: 0 0 18px; font-family: Georgia, serif; font-size: clamp(32px, 5vw, 58px); line-height: 1; }
.article-content p { color: var(--soft); font-size: 17px; line-height: 1.78; }
.close {
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(5,6,8,.8);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
}
.admin-box { padding: 28px; }
.admin-box img { width: 78px; height: 78px; object-fit: contain; background: #050608; border-radius: 50%; }
.admin-box h2 { font-family: Georgia, serif; font-size: 32px; margin: 14px 0; }
.admin-box label { display: block; color: var(--soft); margin: 14px 0; }
.hint, .login-error { color: var(--muted); font-size: 13px; }
.login-error { color: #ff7676; min-height: 20px; }
.admin-stats { display: grid; gap: 10px; margin: 16px 0; }
.admin-stats span { background: #070a10; border: 1px solid var(--line); padding: 12px; border-radius: 4px; }
@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav { grid-column: 1 / -1; }
  .hero, .featured-layout, .tool-grid, .forms-grid, .editorial-system { grid-template-columns: 1fr; }
  .slide { grid-template-columns: 1fr; overflow-y: auto; }
  .slide-media img { min-height: 310px; max-height: 410px; }
  .slide-copy { border-left: 0; border-top: 1px solid rgba(229,138,31,.45); }
  .dashboard-strip { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section, .hero { padding-left: 16px; padding-right: 16px; }
  .logo-stage { min-height: 330px; }
  .dashboard-strip, .news-grid { grid-template-columns: 1fr; }
  .carousel { min-height: 720px; }
  .section-head { grid-template-columns: 1fr; }
}
