:root {
  --bg: #080910;
  --panel: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f7f7fb;
  --muted: #a9b0c4;
  --accent: #00f5d4;
  --hot: #ff4d8d;
  --radius: 8px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 245, 212, 0.18), transparent 28rem),
    radial-gradient(circle at 84% 20%, rgba(255, 77, 141, 0.18), transparent 24rem),
    linear-gradient(135deg, #080910 0%, #17112a 48%, #101522 100%);
  letter-spacing: 0;
}

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

button,
input,
textarea {
  font: inherit;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 16, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 800;
  white-space: nowrap;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 34px);
  color: var(--muted);
}

nav a:hover,
.admin-link:hover {
  color: var(--accent);
}

.admin-link {
  color: var(--muted);
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 7vw, 108px) clamp(20px, 5vw, 84px) clamp(40px, 6vw, 72px);
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(44px, 6.8vw, 104px);
  line-height: 0.98;
  letter-spacing: 0;
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-text {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-actions,
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.button.primary {
  border-color: transparent;
  color: #06100e;
  background: linear-gradient(135deg, var(--accent), var(--hot));
  font-weight: 800;
}

.hero-visual {
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transform: scale(1.08);
  animation: floatVisual 8s ease-in-out infinite alternate;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(20px, 5vw, 84px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.stat,
.service-card,
.project-card {
  background: rgba(9, 10, 18, 0.72);
}

.stat {
  padding: 26px;
}

.stat strong {
  display: block;
  color: var(--accent);
  font-size: clamp(28px, 4vw, 52px);
}

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

.section {
  padding: clamp(70px, 9vw, 128px) clamp(20px, 5vw, 84px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.section h2,
.contact h2,
.admin-top h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

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

.service-card,
.project-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-card h3,
.project-card h3 {
  margin: 0 0 16px;
  font-size: 24px;
}

.service-card p,
.project-card p,
.timeline p,
.contact p,
.admin-top p {
  color: var(--muted);
  line-height: 1.75;
}

.project-card {
  background:
    linear-gradient(145deg, rgba(0, 245, 212, 0.12), rgba(255, 77, 141, 0.1)),
    rgba(9, 10, 18, 0.78);
}

.tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 13px;
}

.process {
  background: rgba(255, 255, 255, 0.035);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline div {
  padding: 24px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.timeline span {
  display: block;
  margin-bottom: 16px;
  color: var(--hot);
  font-weight: 900;
}

.timeline strong {
  display: block;
  font-size: 20px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: center;
  margin: 0 clamp(20px, 5vw, 84px) clamp(32px, 5vw, 70px);
  padding: clamp(32px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.contact-panel {
  display: grid;
  gap: 12px;
}

.contact-panel a {
  overflow-wrap: anywhere;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.16);
}

.admin-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.admin-top,
.login-panel,
.editor fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 28px;
}

.login-panel,
.editor fieldset {
  margin-top: 18px;
  padding: 22px;
}

.editor fieldset {
  display: grid;
  gap: 16px;
}

.editor legend {
  padding: 0 10px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

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

.repeat-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.form-status {
  color: var(--accent);
}

@keyframes floatVisual {
  from {
    transform: scale(1.08) translate3d(-8px, -8px, 0);
  }
  to {
    transform: scale(1.12) translate3d(8px, 10px, 0);
  }
}

@media (max-width: 980px) {
  .hero,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 320px;
  }

  .stats,
  .service-grid,
  .project-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  .hero h1 {
    font-size: 44px;
  }

  .stats,
  .service-grid,
  .project-grid,
  .timeline,
  .two-cols,
  .repeat-row {
    grid-template-columns: 1fr;
  }

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