:root {
  color-scheme: light;
  --ink: #101014;
  --muted: #5f6570;
  --line: rgba(16, 16, 20, 0.12);
  --paper: #f7fbff;
  --panel: rgba(255, 255, 255, 0.72);
  --purple: #812edb;
  --violet: #a848e8;
  --orange: #ff794c;
  --yellow: #ffb84d;
  --deep: #1b102c;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 16%, rgba(129, 46, 219, 0.12), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(255, 121, 76, 0.14), transparent 24%),
    linear-gradient(180deg, #eef6ff 0%, #ffffff 44%, #eef4ff 100%);
}

body.admin-body {
  background: #f5f7fb;
}

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

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

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.6));
  box-shadow: 0 24px 70px rgba(79, 71, 108, 0.22);
  backdrop-filter: blur(18px);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 24px clamp(20px, 5vw, 64px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 25%, #ff9b43 0 18%, transparent 19%),
    linear-gradient(135deg, #ff5b72 0 36%, #8d36e3 37% 70%, #36c8ff 71%);
  box-shadow: 0 7px 20px rgba(129, 46, 219, 0.28);
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 44px);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav a {
  color: #20242b;
}

.nav a:hover {
  color: var(--purple);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--violet));
  box-shadow: 0 12px 28px rgba(129, 46, 219, 0.24);
}

.btn.orange {
  background: linear-gradient(135deg, var(--orange), #a248e8);
}

.btn.ghost {
  color: var(--purple);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(129, 46, 219, 0.22);
  box-shadow: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  align-items: center;
  gap: 34px;
  min-height: 570px;
  padding: 52px clamp(20px, 5vw, 64px) 74px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--purple);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
}

h1,
.page-title {
  margin: 0;
  max-width: min(100%, 620px);
  font-size: clamp(3rem, 6.2vw, 5.55rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 950;
}

.hero p {
  max-width: 520px;
  margin: 22px 0 24px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

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

.hero-art {
  position: relative;
  min-height: 425px;
}

.glow-card {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(92%, 440px);
  height: 300px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 22% 20%, #62e6ff, transparent 18%),
    radial-gradient(circle at 68% 25%, #ff7a33, transparent 24%),
    radial-gradient(circle at 72% 76%, #8f2deb, transparent 32%),
    linear-gradient(135deg, #f5f8ff, #ffcad8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 24px 60px rgba(51, 37, 78, 0.2);
}

.device {
  position: absolute;
  border: 10px solid #11131b;
  border-radius: 9px;
  background: #11131b;
  box-shadow: 0 22px 40px rgba(19, 20, 28, 0.24);
}

.device::before {
  content: "";
  display: block;
  height: 100%;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0 14%, transparent 15%),
    radial-gradient(circle at 65% 36%, #f47b70, transparent 15%),
    radial-gradient(circle at 46% 48%, #6245e8, transparent 20%),
    linear-gradient(135deg, #20142e 0 48%, #f4f5f7 49%);
}

.desktop {
  width: 360px;
  height: 230px;
  right: 24px;
  bottom: 44px;
}

.tablet {
  width: 255px;
  height: 160px;
  right: 0;
  bottom: 0;
}

.phone {
  width: 96px;
  height: 170px;
  left: 22px;
  bottom: 20px;
  border-width: 8px;
}

.float-block {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  box-shadow: 0 16px 35px rgba(129, 46, 219, 0.25);
  transform: rotate(-9deg);
}

.float-one {
  left: 30px;
  bottom: 180px;
}

.float-two {
  left: 96px;
  bottom: 92px;
  width: 64px;
  height: 64px;
  transform: rotate(3deg);
}

.float-three {
  right: -20px;
  bottom: 318px;
  width: 38px;
  height: 38px;
}

.section {
  padding: 28px clamp(20px, 5vw, 64px) 54px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section h2,
.admin-panel h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 950;
}

.section-link {
  color: var(--purple);
  font-weight: 850;
  font-size: 0.92rem;
}

.portfolio-grid,
.pricing-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.work-card,
.price-card,
.service-card {
  border-radius: var(--radius);
}

.thumb {
  position: relative;
  overflow: hidden;
  height: 185px;
  border-radius: var(--radius);
  background: var(--work-gradient);
  box-shadow: 0 14px 30px rgba(43, 41, 52, 0.14);
}

.thumb::after {
  content: "";
  position: absolute;
  width: 82px;
  height: 82px;
  inset: 50% auto auto 50%;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(0, 0, 0, 0.42));
  transform: translate(-50%, -50%) rotate(35deg);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.work-card h3,
.price-card h3 {
  margin: 14px 0 4px;
  font-size: 1rem;
}

.work-card p,
.price-card p,
.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.mini-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 10px clamp(20px, 5vw, 64px) 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
}

.stat strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.price-card,
.service-card,
.content-panel {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.price-card strong {
  display: block;
  margin: 12px 0;
  color: var(--purple);
  font-size: 2rem;
}

.service-card {
  min-height: 120px;
  font-weight: 850;
}

.custom-list {
  display: grid;
  gap: 16px;
}

.footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 38px;
  padding: 54px clamp(20px, 5vw, 64px) 34px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 121, 76, 0.28), transparent 20%),
    linear-gradient(135deg, #25113e, #842ee0);
}

.footer h3 {
  margin: 0 0 14px;
  text-transform: uppercase;
  font-size: 0.96rem;
}

.footer a,
.footer p {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links {
  display: grid;
  gap: 9px;
}

.newsletter {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.newsletter input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 12px;
  color: #fff;
  background: transparent;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.newsletter button {
  width: 44px;
  border: 0;
  color: var(--purple);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.78rem;
  font-weight: 900;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.85rem;
}

.page-main {
  padding: 46px clamp(20px, 5vw, 64px) 70px;
}

.page-title {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
}

.page-lede {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.08rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  margin-top: 28px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea,
.admin-field input,
.admin-field textarea,
.editor-item input,
.editor-item textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 14px;
  background: #fff;
}

.contact-form textarea,
.admin-field textarea {
  min-height: 112px;
  resize: vertical;
}

.admin-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px;
  color: #fff;
  background: #17111f;
}

.admin-sidebar .brand {
  margin-bottom: 28px;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav a {
  padding: 11px 12px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.76);
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-content {
  padding: 28px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-panel {
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

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

.admin-field.full {
  grid-column: 1 / -1;
}

.admin-field label {
  display: block;
  margin-bottom: 7px;
  color: #4a505b;
  font-size: 0.85rem;
  font-weight: 800;
}

.editor-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.editor-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafbff;
}

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

.notice {
  margin-top: 12px;
  color: #546070;
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 18px, 720px);
    margin: 9px auto;
    border-radius: 15px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 18px;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 34px 18px 46px;
  }

  h1,
  .page-title {
    font-size: clamp(2.45rem, 10.7vw, 3.35rem);
    line-height: 0.92;
  }

  .hero-art {
    min-height: 340px;
  }

  .glow-card {
    width: 100%;
    height: 235px;
  }

  .desktop {
    width: min(84vw, 318px);
    height: 198px;
    right: 18px;
    bottom: 44px;
  }

  .tablet {
    width: min(62vw, 238px);
    height: 146px;
  }

  .phone {
    left: 0;
  }

  .portfolio-grid,
  .pricing-grid,
  .services-grid,
  .footer,
  .contact-grid,
  .admin-layout,
  .admin-grid,
  .editor-row {
    grid-template-columns: 1fr;
  }

  .mini-band {
    grid-template-columns: 1fr;
    margin-inline: 18px;
  }

  .section,
  .page-main,
  .footer {
    padding-inline: 18px;
  }

  .copyright,
  .admin-field.full {
    grid-column: auto;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }
}

@media (max-width: 520px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar .btn {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}
