:root {
  --bg: #050505;
  --bg-soft: #0b0b0c;
  --panel: rgba(18, 18, 19, 0.82);
  --panel-strong: #111112;
  --text: #f7f2df;
  --muted: #aaa69b;
  --line: rgba(255, 218, 92, 0.18);
  --yellow: #ffd43d;
  --yellow-strong: #ffbf00;
  --white-line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 213, 61, 0.08), transparent 34rem),
    linear-gradient(180deg, #050505 0%, #070707 52%, #030303 100%);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

#scene {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: #050505;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 14px auto 0;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.72);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(255, 212, 61, 0.24);
  background: rgba(5, 5, 5, 0.9);
  transform: translateY(-4px);
}

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

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.brand span {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 6px;
  color: #d8d2c0;
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.nav a:hover {
  color: var(--yellow);
  background: rgba(255, 212, 61, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--white-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--yellow);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 130px 0 64px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 212, 61, 0.75), transparent);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 5.2vw, 4.65rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.22;
}

.hero__lead {
  max-width: 650px;
  color: #d5cfbd;
  font-size: clamp(1.03rem, 2vw, 1.22rem);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(255, 212, 61, 0.36);
  border-radius: 7px;
  color: var(--text);
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button--primary {
  color: #111;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-strong));
  box-shadow: 0 14px 38px rgba(255, 196, 0, 0.18);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.04);
}

.button--compact {
  min-height: 46px;
  white-space: nowrap;
  background: rgba(255, 212, 61, 0.08);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin: 46px 0 0;
}

.hero__stats div {
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--white-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.hero__stats dt {
  color: var(--yellow);
  font-size: 1.32rem;
  font-weight: 900;
}

.hero__stats dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.hero__visual {
  position: relative;
  min-height: 560px;
}

.device {
  position: absolute;
  inset: 5% 0 0 auto;
  width: min(100%, 560px);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 212, 61, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 212, 61, 0.12), transparent 38%),
    rgba(12, 12, 12, 0.9);
  box-shadow: var(--shadow);
  animation: floatDevice 7s ease-in-out infinite;
}

.device__top {
  display: flex;
  gap: 8px;
  height: 42px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.device__top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.85;
}

.device__screen {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 478px;
  padding: 36px;
}

.device__screen::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.device__screen img {
  position: relative;
  z-index: 2;
  width: min(88%, 410px);
  border-radius: 8px;
  filter: drop-shadow(0 18px 42px rgba(255, 255, 255, 0.08));
}

.screen-grid {
  position: absolute;
  inset: auto 28px 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  gap: 10px;
}

.screen-grid span {
  display: block;
  height: 48px;
  border: 1px solid rgba(255, 212, 61, 0.2);
  border-radius: 6px;
  background: rgba(255, 212, 61, 0.045);
}

.screen-grid span:nth-child(3) {
  grid-column: span 2;
}

.floating-panel {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 4px;
  min-width: 148px;
  padding: 16px;
  border: 1px solid rgba(255, 212, 61, 0.26);
  border-radius: 8px;
  background: rgba(6, 6, 6, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.floating-panel span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.floating-panel strong {
  color: var(--yellow);
  font-size: 2rem;
}

.floating-panel--left {
  left: -16px;
  bottom: 120px;
}

.floating-panel--right {
  right: -12px;
  top: 116px;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0;
}

.section--band {
  width: 100%;
  padding: 104px max(16px, calc((100% - 1180px) / 2));
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(90deg, rgba(255, 212, 61, 0.04), transparent 30%, rgba(255, 255, 255, 0.025)),
    rgba(7, 7, 8, 0.78);
}

.section__head {
  margin-bottom: 38px;
}

.section__head--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

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

.service-card,
.price-card,
.timeline__item,
.project-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.16);
}

.service-card {
  position: relative;
  min-height: 270px;
  padding: 24px;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), transparent);
  transform: translateX(-30%);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.service-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.service-card__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 34px;
  border: 1px solid rgba(255, 212, 61, 0.3);
  border-radius: 6px;
  color: var(--yellow);
  font-weight: 900;
  background: rgba(255, 212, 61, 0.08);
}

.service-card p,
.timeline__item p,
.price-card li,
.project-card__body span,
.cta p {
  color: var(--muted);
  line-height: 1.7;
}

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

.project-card {
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
  transition-delay: var(--delay, 0ms);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 212, 61, 0.42);
}

.project-card__media {
  position: relative;
  min-height: 220px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 212, 61, 0.22), transparent 42%),
    linear-gradient(160deg, #141414, #070707);
  overflow: hidden;
  background-position: center;
  background-size: cover;
  transition: background-size 500ms ease, filter 180ms ease;
}

.project-card--steel .project-card__media {
  background:
    linear-gradient(135deg, rgba(180, 196, 210, 0.2), transparent 42%),
    linear-gradient(160deg, #16191b, #070707);
}

.project-card--white .project-card__media {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(160deg, #171717, #050505);
}

.project-card--has-image .project-card__media {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.62)),
    var(--project-image);
}

.project-card--has-image:hover .project-card__media {
  background-size: 108%;
}

.project-card--has-image .project-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(255, 212, 61, 0.18), transparent 44%),
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.16), transparent 24rem);
  pointer-events: none;
}

.project-card__media > span {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.82);
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1;
}

.project-card__browser {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
  height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 212, 61, 0.22) 18%, transparent 18% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  transition: opacity 220ms ease, transform 220ms ease;
}

.project-card--has-image .project-card__browser {
  opacity: 0;
  transform: translateY(14px);
}

.project-card__browser i {
  position: absolute;
  right: 18px;
  left: 42%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.project-card__browser i:nth-child(1) {
  top: 24px;
}

.project-card__browser i:nth-child(2) {
  top: 46px;
  left: 52%;
}

.project-card__browser i:nth-child(3) {
  top: 68px;
  left: 47%;
}

.project-card__body {
  padding: 24px;
}

.project-card__body p {
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card__body h3 {
  margin-bottom: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.tags small {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #d9d2be;
  background: rgba(255, 255, 255, 0.04);
}

.project-card__body a {
  display: inline-flex;
  color: var(--yellow);
  font-weight: 900;
}

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

.timeline__item {
  min-height: 258px;
  padding: 24px;
}

.timeline__item span {
  display: block;
  margin-bottom: 42px;
  color: var(--yellow);
  font-size: 0.92rem;
  font-weight: 900;
}

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

.price-card {
  min-height: 430px;
  padding: 28px;
}

.price-card--featured {
  border-color: rgba(255, 212, 61, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 212, 61, 0.13), rgba(255, 255, 255, 0.03)),
    var(--panel-strong);
  transform: translateY(-14px);
}

.price-card__label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 212, 61, 0.22);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.price-card__price {
  margin: 18px 0 28px;
  color: var(--yellow);
  font-size: 2rem;
  font-weight: 900;
}

.price-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 24px;
}

.price-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.cta {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 42px;
  padding: 84px 0 0;
}

.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(255, 212, 61, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 212, 61, 0.12), transparent 34%),
    rgba(10, 10, 10, 0.88);
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: #eee4c8;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 14px 15px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.38);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 212, 61, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 212, 61, 0.08);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 40px;
  color: var(--muted);
}

.footer p {
  margin: 0;
  font-weight: 900;
}

.footer a {
  color: var(--yellow);
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatDevice {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 120px;
  }

  .hero__visual {
    min-height: 500px;
  }

  .device {
    position: relative;
    inset: auto;
    width: 100%;
  }

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

  .project-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card--featured {
    transform: none;
  }

  .cta__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .brand span {
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(255, 212, 61, 0.22);
    border-radius: 8px;
    background: rgba(5, 5, 5, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    justify-content: flex-start;
    min-height: 46px;
  }

  .hero {
    width: calc(100% - 24px);
    padding-top: 112px;
  }

  h1 {
    font-size: clamp(2.05rem, 11vw, 3.55rem);
  }

  .hero__stats,
  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 420px;
  }

  .device {
    min-height: 390px;
  }

  .device__screen {
    min-height: 346px;
    padding: 24px;
  }

  .screen-grid {
    display: none;
  }

  .floating-panel {
    min-width: 132px;
    padding: 13px;
  }

  .floating-panel--left {
    left: 8px;
    bottom: 34px;
  }

  .floating-panel--right {
    right: 8px;
    top: 42px;
  }

  .section,
  .cta {
    width: calc(100% - 24px);
  }

  .section,
  .section--band {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .section__head--split {
    display: grid;
    align-items: start;
  }

  .button,
  .hero__actions .button {
    width: 100%;
  }

  .project-card__media {
    min-height: 190px;
  }

  .footer {
    width: calc(100% - 24px);
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body.admin-bar .site-header {
  top: 32px;
}

.nav li {
  list-style: none;
  margin: 0;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.wp-page-content {
  max-width: 900px;
}

.wp-page-content > *:last-child {
  margin-bottom: 0;
}

.wp-page-content a {
  color: var(--yellow);
  font-weight: 800;
}

.single-project__image {
  overflow: hidden;
  margin: 0 0 28px;
  border: 1px solid rgba(255, 212, 61, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.single-project__image img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 760px) {
  .nav__menu {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
  }
}
