:root {
  --bg-0: #0a0305;
  --bg-1: #12060a;
  --bg-2: #1a0810;
  --red-1: #3d0a12;
  --red-2: #7a0f1e;
  --red-3: #b3162b;
  --accent-1: #ff2d4a;
  --accent-2: #ff5c7a;
  --accent-3: #ff8fa3;
  --neon: #ff1a3c;
  --text: #f5e6e8;
  --muted: #c9a0a8;
  --line: rgba(255, 92, 122, 0.18);
  --glass: rgba(38, 10, 18, 0.54);
  --glass-strong: rgba(54, 12, 22, 0.72);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  --radius: 24px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg-0);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(122,15,30,.15), transparent 28%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 48%, var(--bg-0));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(255,45,74,.08), transparent 40%),
    radial-gradient(circle at 85% 40%, rgba(179,22,43,.07), transparent 30%);
}

a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: rgba(255,45,74,.26); }

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 5000;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text);
  background: #1c080e;
  border: 1px solid var(--line);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.narrow {
  width: min(900px, calc(100% - 32px));
}

.scene-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .24;
  background: var(--neon);
}
.bg-glow-a { top: -160px; right: -120px; }
.bg-glow-b { bottom: 10%; left: -250px; opacity: .14; }

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,.018) 0px,
    rgba(255,255,255,.018) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: .25;
  mix-blend-mode: soft-light;
}

.perspective-grid {
  position: absolute;
  left: 50%;
  bottom: -28vh;
  width: 180vw;
  height: 72vh;
  transform: translateX(-50%) perspective(600px) rotateX(66deg);
  transform-origin: center bottom;
  background-image:
    linear-gradient(rgba(255,45,74,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,45,74,.12) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 82%);
  animation: gridDrift 18s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 54px, 54px 0; }
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,143,163,.8);
  box-shadow: 0 0 12px rgba(255,45,74,.8);
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  from { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: .65; }
  80% { opacity: .45; }
  to { transform: translate3d(0, -120px, 0); opacity: 0; }
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(circle, rgba(255,45,74,.12), rgba(255,45,74,.03) 45%, transparent 72%);
  filter: blur(12px);
  transition: opacity .25s ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,92,122,.09);
  background: rgba(10,3,5,.64);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, var(--accent-3), var(--accent-1) 28%, var(--red-2) 58%, #17050a 72%);
  box-shadow:
    0 0 18px rgba(255,45,74,.65),
    inset 0 0 16px rgba(255,255,255,.12);
}

.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(40,8,14,.55);
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.site-nav {
  position: absolute;
  top: 74px;
  left: 16px;
  right: 16px;
  display: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(20,6,10,.96);
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: grid; }

.site-nav a {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  transition: color .25s var(--ease), background .25s var(--ease), text-shadow .25s var(--ease);
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255,45,74,.07);
  text-shadow: 0 0 18px rgba(255,45,74,.45);
  outline: none;
}

.header-cta { display: none; }

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  padding: 72px 0 90px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 50px;
  align-items: center;
}

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

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 8vw, 6.6rem);
  line-height: .92;
  letter-spacing: -.065em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.25;
}

.hero-text,
.section-heading > p:last-child,
.contact-copy > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.03rem;
}

.glitch-title {
  position: relative;
  text-shadow:
    0 0 36px rgba(255,45,74,.12),
    0 0 80px rgba(255,26,60,.08);
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.glitch-title:hover::before {
  opacity: .22;
  color: var(--accent-1);
  transform: translate(2px, -1px);
  clip-path: inset(15% 0 60% 0);
}

.glitch-title:hover::after {
  opacity: .16;
  color: var(--accent-3);
  transform: translate(-2px, 1px);
  clip-path: inset(62% 0 12% 0);
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  transition:
    transform .25s var(--ease),
    box-shadow .25s var(--ease),
    border-color .25s var(--ease),
    background .25s var(--ease);
  will-change: transform;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible {
  outline: 3px solid rgba(255,92,122,.25);
  outline-offset: 3px;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red-2), var(--red-3), var(--accent-1));
  background-size: 180% 180%;
  box-shadow:
    0 10px 30px rgba(179,22,43,.28),
    0 0 28px rgba(255,26,60,.12);
}
.button-primary:hover {
  background-position: 100% 50%;
  box-shadow:
    0 16px 38px rgba(179,22,43,.34),
    0 0 34px rgba(255,26,60,.2);
}

.button-ghost,
.button-outline {
  color: var(--text);
  background: rgba(255,255,255,.02);
  border-color: var(--line);
  box-shadow: inset 0 0 20px rgba(255,45,74,.02);
}
.button-ghost:hover,
.button-outline:hover {
  border-color: rgba(255,92,122,.38);
  background: rgba(122,15,30,.18);
  box-shadow: 0 0 28px rgba(255,26,60,.12);
}

.button-small {
  min-height: 44px;
  padding: 10px 16px;
  font-size: .92rem;
}

.pulse-button {
  animation: pulseGlow 3.2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 10px 30px rgba(179,22,43,.26), 0 0 24px rgba(255,26,60,.09); }
  50% { box-shadow: 0 14px 34px rgba(179,22,43,.36), 0 0 42px rgba(255,26,60,.2); }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid rgba(255,92,122,.12);
  background: rgba(255,255,255,.02);
  font-size: .84rem;
}

.hero-visual {
  min-height: 360px;
  display: grid;
  place-items: center;
  perspective: 1000px;
}

.holo-stage {
  position: relative;
  width: min(78vw, 430px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 34px rgba(255,26,60,.2));
}

.holo-stage::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,45,74,.12), transparent 62%);
  filter: blur(24px);
}

.holo-rings {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(255,92,122,.24);
  box-shadow:
    inset 0 0 20px rgba(255,45,74,.07),
    0 0 18px rgba(255,45,74,.06);
}

.ring-1 {
  transform: rotateX(70deg);
  animation: spinRingA 12s linear infinite;
}
.ring-2 {
  inset: 18%;
  transform: rotateY(70deg);
  animation: spinRingB 16s linear infinite reverse;
}
.ring-3 {
  inset: 24%;
  transform: rotateX(54deg) rotateY(30deg);
  animation: spinRingC 10s linear infinite;
}

@keyframes spinRingA {
  to { transform: rotateX(70deg) rotateZ(360deg); }
}
@keyframes spinRingB {
  to { transform: rotateY(70deg) rotateZ(360deg); }
}
@keyframes spinRingC {
  to { transform: rotateX(54deg) rotateY(30deg) rotateZ(360deg); }
}

.holo-cube {
  position: relative;
  width: 138px;
  height: 138px;
  transform-style: preserve-3d;
  animation: cubeFloat 11s linear infinite;
  will-change: transform;
}

@keyframes cubeFloat {
  0% { transform: rotateX(-18deg) rotateY(0deg) translateY(0); }
  50% { transform: rotateX(18deg) rotateY(180deg) translateY(-10px); }
  100% { transform: rotateX(-18deg) rotateY(360deg) translateY(0); }
}

.cube-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,92,122,.35);
  background:
    linear-gradient(145deg, rgba(179,22,43,.16), rgba(255,45,74,.04));
  backdrop-filter: blur(6px);
  box-shadow:
    inset 0 0 28px rgba(255,45,74,.06),
    0 0 20px rgba(255,26,60,.06);
  color: rgba(245,230,232,.9);
  font-weight: 900;
  letter-spacing: .16em;
  text-shadow: 0 0 18px rgba(255,45,74,.6);
}

.front { transform: translateZ(69px); }
.back { transform: rotateY(180deg) translateZ(69px); }
.right { transform: rotateY(90deg) translateZ(69px); }
.left { transform: rotateY(-90deg) translateZ(69px); }
.top { transform: rotateX(90deg) translateZ(69px); }
.bottom { transform: rotateX(-90deg) translateZ(69px); }

.holo-core {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 18px #fff,
    0 0 42px var(--accent-1),
    0 0 72px rgba(255,26,60,.8);
  animation: corePulse 2.8s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { transform: scale(.92); opacity: .86; }
  50% { transform: scale(1.08); opacity: 1; }
}

.holo-beam {
  position: absolute;
  bottom: 1%;
  width: 46%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,92,122,.7), transparent);
  box-shadow: 0 0 18px rgba(255,26,60,.45);
}

.hero-floor {
  position: absolute;
  left: 50%;
  bottom: 3%;
  width: min(70vw, 800px);
  height: 120px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255,26,60,.12), transparent 68%);
  filter: blur(10px);
}

.section {
  position: relative;
  padding: 86px 0;
}

.section-deep {
  background:
    linear-gradient(180deg, rgba(26,8,16,.55), rgba(10,3,5,.2));
  border-top: 1px solid rgba(255,92,122,.05);
  border-bottom: 1px solid rgba(255,92,122,.05);
}

.section-heading {
  margin-bottom: 34px;
}
.section-heading.centered { text-align: center; }
.section-heading.centered p { margin-left: auto; margin-right: auto; }

.feature-grid,
.audience-grid,
.calc-grid {
  display: grid;
  gap: 16px;
}

.holo-card,
.floating-panel,
.support-panel,
.calc-panel,
.contact-form,
.neon-quote {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    var(--glass);
  backdrop-filter: blur(18px);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255,255,255,.035);
}

.holo-card::before,
.floating-panel::before,
.calc-panel::before,
.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 10%, rgba(255,92,122,.07) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}

.holo-card:hover::before,
.floating-panel:hover::before,
.calc-panel:hover::before,
.contact-form:hover::before {
  transform: translateX(120%);
}

.holo-card {
  padding: 22px;
  border-radius: var(--radius);
  transition:
    transform .28s var(--ease),
    border-color .28s var(--ease),
    box-shadow .28s var(--ease);
}

.holo-card:hover {
  transform: translateY(-6px) translateZ(0);
  border-color: rgba(255,92,122,.34);
  box-shadow:
    0 26px 70px rgba(0,0,0,.52),
    0 0 34px rgba(255,26,60,.10),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.holo-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.holo-icon,
.card-kicker,
.panel-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  font-weight: 800;
  letter-spacing: .08em;
}

.holo-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,92,122,.22);
  background: rgba(179,22,43,.12);
  box-shadow: inset 0 0 18px rgba(255,45,74,.05);
}

.card-kicker,
.panel-label {
  margin-bottom: 12px;
  font-size: .74rem;
  text-transform: uppercase;
}

.audience-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.floating-panel {
  margin-top: 22px;
  border-radius: 26px;
}

.panel-heading {
  padding: 22px 22px 12px;
}

.table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,92,122,.25) transparent;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid rgba(255,92,122,.09);
}

th {
  color: var(--muted);
  background: rgba(255,255,255,.015);
  font-size: .88rem;
}

td {
  color: #ead6da;
}

tbody tr {
  transition: background .2s var(--ease);
}
tbody tr:hover {
  background: rgba(179,22,43,.07);
}

.support-panel {
  margin-top: 22px;
  padding: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255,45,74,.10), transparent 28%),
    var(--glass-strong);
}
.support-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.calc-panel {
  padding: 24px;
  border-radius: 24px;
}
.calc-panel ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.calc-panel li + li { margin-top: 10px; }

.neon-quote {
  margin: 0;
  padding: 28px;
  border-radius: 26px;
  font-size: clamp(1.2rem, 3.6vw, 1.9rem);
  line-height: 1.5;
  letter-spacing: -.02em;
  box-shadow:
    0 0 0 1px rgba(255,45,74,.04),
    0 0 34px rgba(255,26,60,.07),
    inset 0 0 34px rgba(255,45,74,.025);
}
.neon-quote::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,92,122,.14), transparent 28%, transparent 70%, rgba(179,22,43,.10));
  mix-blend-mode: screen;
}

.contact-grid {
  display: grid;
  gap: 28px;
}

.contact-data {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  color: var(--muted);
  font-size: .92rem;
}

.contact-form {
  padding: 22px;
  border-radius: 24px;
}

.field + .field { margin-top: 16px; }

.field label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255,92,122,.16);
  border-radius: 13px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(10,3,5,.56);
  outline: none;
  transition:
    border-color .2s var(--ease),
    box-shadow .2s var(--ease),
    background .2s var(--ease);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(255,92,122,.46);
  background: rgba(18,6,10,.88);
  box-shadow:
    0 0 0 4px rgba(255,45,74,.08),
    0 0 26px rgba(255,26,60,.05);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #ff6a7d;
}

.field-error {
  min-height: 20px;
  margin: 6px 0 0;
  color: #ff9aaa;
  font-size: .86rem;
}

.button-full {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
}
.form-status.success { color: #ffb3c0; }

.site-footer {
  position: relative;
  z-index: 2;
  padding: 34px 0;
  border-top: 1px solid rgba(255,92,122,.08);
  background: rgba(8,2,4,.92);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--muted);
}

.footer-inner p { margin: 0; }
.footer-inner a:last-child { color: var(--text); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .8s var(--ease),
    transform .8s var(--ease);
  will-change: opacity, transform;
}

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

@media (min-width: 680px) {
  .section { padding: 104px 0; }

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

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

  .contact-form { padding: 28px; }
}

@media (min-width: 920px) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    display: flex;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav a {
    padding: 10px 11px;
  }

  .header-cta {
    display: inline-flex;
  }

  .hero {
    min-height: calc(100vh - 74px);
    padding: 96px 0 110px;
  }

  .hero-grid {
    grid-template-columns: 1.08fr .92fr;
    gap: 54px;
  }

  .hero-visual {
    min-height: 520px;
  }

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

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

  .contact-grid {
    grid-template-columns: .92fr 1.08fr;
    gap: 56px;
    align-items: start;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1280px) {
  .container {
    width: min(1180px, calc(100% - 64px));
  }
}

@media (max-width: 679px) {
  .hero-visual {
    min-height: 300px;
  }

  .holo-stage {
    width: min(84vw, 340px);
  }

  .holo-cube {
    width: 112px;
    height: 112px;
  }

  .front { transform: translateZ(56px); }
  .back { transform: rotateY(180deg) translateZ(56px); }
  .right { transform: rotateY(90deg) translateZ(56px); }
  .left { transform: rotateY(-90deg) translateZ(56px); }
  .top { transform: rotateX(90deg) translateZ(56px); }
  .bottom { transform: rotateX(-90deg) translateZ(56px); }

  .perspective-grid {
    opacity: .5;
  }

  .cursor-glow {
    display: none;
  }
}

@media (hover: none) {
  .cursor-glow { display: none; }
  .holo-card:hover,
  .button:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* === CMS additions: portfolio + advertising === */
[hidden] { display: none !important; }

.portfolio-section {
  overflow: hidden;
}

.portfolio-grid {
  display: grid;
  gap: 18px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.035);
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,92,122,.34);
  box-shadow: 0 26px 70px rgba(0,0,0,.52), 0 0 34px rgba(255,26,60,.1);
}

.portfolio-visual {
  position: relative;
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  color: var(--text);
  text-decoration: none;
  background-image:
    linear-gradient(135deg, rgba(255,45,74,.24), rgba(10,3,5,.34)),
    radial-gradient(circle at 25% 30%, rgba(255,92,122,.34), transparent 30%),
    linear-gradient(135deg, #240810, #0c0407 62%);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.portfolio-visual::before,
.portfolio-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.portfolio-visual::before {
  inset: 14% 12%;
  border: 1px solid rgba(255,143,163,.18);
  transform: perspective(500px) rotateX(58deg) rotateZ(-8deg);
  box-shadow: 0 0 34px rgba(255,26,60,.08), inset 0 0 30px rgba(255,45,74,.04);
}

.portfolio-visual::after {
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(transparent, rgba(5,1,3,.88));
}

.portfolio-index,
.portfolio-result {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255,143,163,.18);
  background: rgba(10,3,5,.72);
  backdrop-filter: blur(12px);
}

.portfolio-index {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--accent-2);
  font-weight: 900;
}

.portfolio-result {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 800;
}

.portfolio-body {
  padding: 22px;
}

.portfolio-body p {
  margin-bottom: 18px;
  color: var(--muted);
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-2);
  font-weight: 800;
  text-decoration: none;
}

.portfolio-link:hover { color: var(--text); }

.promo-section {
  padding-top: 12px;
  padding-bottom: 12px;
}

.promo-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 26px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(255,92,122,.28);
  border-radius: 30px;
  background:
    radial-gradient(circle at 5% 0%, rgba(255,92,122,.24), transparent 34%),
    radial-gradient(circle at 95% 100%, rgba(179,22,43,.26), transparent 38%),
    linear-gradient(135deg, rgba(61,10,18,.92), rgba(12,4,7,.94));
  box-shadow: 0 24px 80px rgba(0,0,0,.42), 0 0 50px rgba(255,26,60,.08), inset 0 1px 0 rgba(255,255,255,.05);
}

.promo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(255,255,255,.025) 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, rgba(255,255,255,.02) 50%, transparent 50.3%);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
}

.promo-orb {
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  top: -120px;
  border-radius: 50%;
  border: 1px solid rgba(255,143,163,.18);
  box-shadow: inset 0 0 50px rgba(255,45,74,.12), 0 0 80px rgba(255,26,60,.08);
}

.promo-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255,143,163,.2);
  border-radius: 999px;
  color: var(--accent-3);
  background: rgba(255,45,74,.08);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.promo-copy { position: relative; z-index: 1; }
.promo-copy h2 {
  max-width: 850px;
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 4vw, 3.35rem);
}
.promo-copy p {
  max-width: 740px;
  margin-bottom: 0;
  color: var(--muted);
}

.promo-action {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.promo-inline-button {
  width: auto;
  border-radius: 999px;
  white-space: nowrap;
}

.promo-note {
  color: var(--muted);
  font-size: .82rem;
}

@media (min-width: 680px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 920px) {
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promo-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 36px 40px;
  }
  .promo-action { align-items: flex-end; }
  .promo-note { text-align: right; }
}


/* ===== Custom logo from admin ===== */
.brand-orb.has-custom-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;

  border-radius: 10px;

  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  box-shadow: none;
}

@media (max-width: 640px) {
  .brand-orb.has-custom-logo {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
}

/* Увеличенный логотип */
.brand-orb.has-custom-logo {
  width: 78px !important;
  height: 52px !important;
  flex: 0 0 78px !important;
  background-size: contain !important;
}

.site-header .brand {
  gap: 14px;
}

.site-footer .brand-orb.has-custom-logo {
  width: 92px !important;
  height: 60px !important;
  flex-basis: 92px !important;
}

@media (max-width: 768px) {
  .brand-orb.has-custom-logo {
    width: 64px !important;
    height: 42px !important;
    flex-basis: 64px !important;
  }

  .site-footer .brand-orb.has-custom-logo {
    width: 72px !important;
    height: 48px !important;
    flex-basis: 72px !important;
  }
}


/* =========================================
   MOBILE OPTIMIZATION — MAIN PAGE
   ========================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

/* Планшеты */
@media (max-width: 900px) {
  .container {
    width: min(100% - 32px, 1200px);
  }

  .site-header .container,
  .header-inner {
    gap: 16px;
  }

  .hero,
  .hero-inner,
  .hero-grid {
    grid-template-columns: 1fr !important;
  }

  .services-grid,
  .pricing-grid,
  .portfolio-grid,
  .projects-grid,
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

/* Телефоны */
@media (max-width: 640px) {

  body {
    font-size: 15px;
    line-height: 1.55;
  }

  .container {
    width: calc(100% - 24px);
    margin-inline: auto;
  }

  /* HEADER */
  .site-header {
    padding: 10px 0;
  }

  .site-header .container,
  .header-inner,
  .nav-wrap {
    min-width: 0;
  }

  .brand {
    min-width: 0;
    gap: 10px !important;
  }

  .brand-orb.has-custom-logo {
    width: 74px !important;
    height: 44px !important;
    flex: 0 0 74px !important;
    background-size: contain !important;
  }

  .brand-text {
    font-size: .9rem;
    white-space: nowrap;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav a:not(.button):not(.btn) {
    display: none;
  }

  .site-nav .button,
  .site-nav .btn,
  .nav-cta {
    min-height: 40px;
    padding: 10px 13px !important;
    font-size: .78rem !important;
    border-radius: 10px;
  }

  /* HERO */
  .hero {
    min-height: auto !important;
    padding: 52px 0 42px !important;
  }

  .hero-inner,
  .hero-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .hero-copy,
  .hero-content {
    max-width: 100% !important;
  }

  .hero h1,
  .hero-title {
    font-size: clamp(2.2rem, 12vw, 4rem) !important;
    line-height: .98 !important;
    letter-spacing: -.055em !important;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero p,
  .hero-subtitle,
  .hero-description {
    font-size: .98rem !important;
    line-height: 1.6;
    max-width: 100% !important;
    margin-top: 18px;
  }

  .hero-actions,
  .cta-row,
  .hero-buttons {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100%;
    margin-top: 24px;
  }

  .hero-actions a,
  .hero-actions button,
  .cta-row a,
  .cta-row button,
  .hero-buttons a,
  .hero-buttons button {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    text-align: center;
  }

  .hero-visual,
  .hero-card,
  .hero-scene {
    width: 100% !important;
    min-height: 260px !important;
    max-height: 420px;
    overflow: hidden;
    border-radius: 20px;
  }

  /* SECTION SPACING */
  section,
  .section {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  .section-head,
  .section-title,
  .section-header {
    margin-bottom: 26px !important;
  }

  .section-head h2,
  .section-title h2,
  .section-header h2 {
    font-size: clamp(1.9rem, 9vw, 2.7rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -.04em;
  }

  .section-head p,
  .section-title p,
  .section-header p {
    font-size: .92rem !important;
    line-height: 1.55;
  }

  /* GRIDS */
  .services-grid,
  .pricing-grid,
  .portfolio-grid,
  .projects-grid,
  .features-grid,
  .cards-grid,
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* CARDS */
  .service-card,
  .price-card,
  .pricing-card,
  .portfolio-card,
  .project-card,
  .feature-card,
  .card {
    padding: 18px !important;
    border-radius: 18px !important;
    min-width: 0;
  }

  .service-card h3,
  .price-card h3,
  .pricing-card h3,
  .portfolio-card h3,
  .project-card h3 {
    font-size: 1.15rem !important;
    line-height: 1.25;
  }

  .service-card p,
  .price-card p,
  .pricing-card p,
  .portfolio-card p,
  .project-card p {
    font-size: .88rem !important;
    line-height: 1.55;
  }

  /* PRICE */
  .price,
  .pricing-price,
  .price-value {
    font-size: clamp(2rem, 12vw, 3.1rem) !important;
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .price-card ul,
  .pricing-card ul {
    padding-left: 18px;
  }

  .price-card li,
  .pricing-card li {
    margin-bottom: 8px;
  }

  /* PORTFOLIO */
  .portfolio-card img,
  .project-card img,
  .portfolio-media img,
  .project-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
  }

  .portfolio-card .button,
  .project-card .button,
  .portfolio-card .btn,
  .project-card .btn {
    width: 100%;
    justify-content: center;
  }

  /* AD BANNER */
  .ad-banner,
  .promo-banner,
  .advertising-banner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 20px !important;
    border-radius: 18px !important;
    text-align: left;
  }

  .ad-banner h3,
  .promo-banner h3,
  .advertising-banner h3 {
    font-size: 1.45rem !important;
    line-height: 1.15;
  }

  .ad-banner .button,
  .promo-banner .button,
  .advertising-banner .button,
  .ad-banner .btn,
  .promo-banner .btn,
  .advertising-banner .btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  /* FORMS */
  form,
  .contact-form {
    width: 100%;
  }

  input,
  textarea,
  select,
  button {
    max-width: 100%;
  }

  input,
  textarea,
  select {
    width: 100%;
    min-height: 48px;
    font-size: 16px !important;
    padding: 12px 13px !important;
    border-radius: 12px !important;
  }

  textarea {
    min-height: 120px;
  }

  form .row,
  .form-row,
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  form button,
  .contact-form button {
    width: 100%;
    min-height: 48px;
  }

  /* FOOTER */
  .site-footer {
    padding-top: 40px !important;
    padding-bottom: 28px !important;
  }

  .footer-grid,
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .site-footer .brand-orb.has-custom-logo {
    width: 92px !important;
    height: 54px !important;
    flex-basis: 92px !important;
  }

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

  /* LONG TEXT SAFETY */
  h1,
  h2,
  h3,
  p,
  a,
  span {
    overflow-wrap: break-word;
  }

  /* TOUCH */
  a,
  button,
  input,
  select,
  textarea {
    -webkit-tap-highlight-color: transparent;
  }

  button,
  .button,
  .btn {
    touch-action: manipulation;
  }
}

/* Очень маленькие экраны */
@media (max-width: 390px) {
  .container {
    width: calc(100% - 18px);
  }

  .brand-orb.has-custom-logo {
    width: 64px !important;
    height: 38px !important;
    flex-basis: 64px !important;
  }

  .hero {
    padding-top: 42px !important;
  }

  .hero h1,
  .hero-title {
    font-size: clamp(2rem, 13vw, 3rem) !important;
  }

  .service-card,
  .price-card,
  .pricing-card,
  .portfolio-card,
  .project-card,
  .feature-card,
  .card {
    padding: 15px !important;
  }
}


/* =====================================================
   MITA-X — REAL MOBILE FIX
   ===================================================== */

@media (max-width: 679px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
  }

  .container {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* HEADER */
  .site-header {
    padding: 8px 0 !important;
    backdrop-filter: blur(18px);
  }

  .header-inner {
    min-height: 58px !important;
    gap: 10px !important;
  }

  .brand {
    min-width: 0;
    gap: 8px !important;
  }

  .brand-orb.has-custom-logo {
    width: 88px !important;
    height: 42px !important;
    flex: 0 0 88px !important;
    background-size: contain !important;
    background-position: left center !important;
  }

  .brand-text {
    display: none !important;
  }

  .header-cta {
    display: none !important;
  }

  .nav-toggle {
    display: grid !important;
    width: 44px !important;
    height: 44px !important;
    margin-left: auto;
    place-items: center;
    padding: 10px !important;
  }

  .site-nav {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 12px !important;
    border-radius: 16px !important;
    background: rgba(10, 3, 5, .97) !important;
    backdrop-filter: blur(20px);
  }

  .site-nav a {
    display: flex !important;
    min-height: 44px;
    align-items: center;
    padding: 10px 12px !important;
    border-radius: 10px;
  }

  /* HERO */
  .hero {
    min-height: auto !important;
    padding: 48px 0 52px !important;
  }

  .hero-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .hero-copy {
    width: 100% !important;
    min-width: 0;
  }

  .hero .eyebrow {
    margin-bottom: 14px !important;
    font-size: .72rem !important;
    line-height: 1.4;
  }

  .glitch-title {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: clamp(2.15rem, 11vw, 3.4rem) !important;
    line-height: .98 !important;
    letter-spacing: -.055em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none;
  }

  .glitch-title::before,
  .glitch-title::after {
    display: none !important;
  }

  .hero-text {
    width: 100% !important;
    max-width: none !important;
    margin-top: 18px !important;
    font-size: .96rem !important;
    line-height: 1.6 !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 10px !important;
    margin-top: 24px !important;
  }

  .hero-actions .button {
    width: 100% !important;
    min-height: 50px;
    justify-content: center !important;
    text-align: center;
    padding: 13px 16px !important;
  }

  .hero-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin-top: 18px !important;
  }

  .hero-meta span {
    padding: 7px 9px !important;
    font-size: .68rem !important;
  }

  /* 3D HERO */
  .hero-visual {
    min-height: 260px !important;
    height: 260px !important;
    margin-top: 4px !important;
  }

  .holo-stage {
    width: 250px !important;
    height: 250px !important;
    transform: scale(.9);
  }

  .holo-cube {
    width: 92px !important;
    height: 92px !important;
  }

  .front  { transform: translateZ(46px) !important; }
  .back   { transform: rotateY(180deg) translateZ(46px) !important; }
  .right  { transform: rotateY(90deg) translateZ(46px) !important; }
  .left   { transform: rotateY(-90deg) translateZ(46px) !important; }
  .top    { transform: rotateX(90deg) translateZ(46px) !important; }
  .bottom { transform: rotateX(-90deg) translateZ(46px) !important; }

  .hero-floor {
    opacity: .45;
  }

  /* SECTIONS */
  .section {
    padding: 58px 0 !important;
  }

  .section-heading {
    margin-bottom: 24px !important;
  }

  .section-heading .eyebrow {
    margin-bottom: 10px !important;
    font-size: .7rem !important;
  }

  .section-heading h2 {
    max-width: 100% !important;
    font-size: clamp(1.85rem, 8.5vw, 2.7rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -.04em !important;
  }

  .section-heading > p:last-child {
    max-width: 100% !important;
    margin-top: 14px !important;
    font-size: .92rem !important;
    line-height: 1.6 !important;
  }

  /* ABOUT / AUDIENCE */
  .feature-grid,
  .audience-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .holo-card {
    min-height: 0 !important;
    padding: 18px !important;
    border-radius: 16px !important;
  }

  .holo-card:hover {
    transform: none !important;
  }

  .holo-card h3 {
    font-size: 1.05rem !important;
    line-height: 1.3;
  }

  .holo-card p {
    font-size: .87rem !important;
    line-height: 1.55 !important;
  }

  .holo-icon {
    margin-bottom: 28px !important;
  }

  .audience-card {
    min-height: 120px !important;
  }

  /* PORTFOLIO */
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .portfolio-card {
    border-radius: 18px !important;
    overflow: hidden;
  }

  .portfolio-visual {
    min-height: 210px !important;
    aspect-ratio: 16 / 10 !important;
  }

  .portfolio-body {
    padding: 18px !important;
  }

  .portfolio-body h3 {
    font-size: 1.3rem !important;
  }

  .portfolio-body p {
    font-size: .88rem !important;
    line-height: 1.55;
  }

  /* PRICE PANELS */
  .floating-panel {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .panel-heading {
    display: block !important;
    margin-bottom: 14px !important;
  }

  .panel-heading h3 {
    margin-top: 6px;
    font-size: 1.2rem !important;
  }

  /* PRICE TABLE - превращаем таблицу в мобильные карточки */
  .table-wrap {
    overflow: visible !important;
  }

  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap th,
  .table-wrap td {
    display: block !important;
    width: 100% !important;
  }

  .table-wrap thead {
    display: none !important;
  }

  .table-wrap tbody {
    display: grid !important;
    gap: 12px;
  }

  .table-wrap tr {
    padding: 14px !important;
    border: 1px solid rgba(255, 92, 122, .12) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.025);
  }

  .table-wrap td {
    padding: 7px 0 !important;
    border: 0 !important;
    font-size: .88rem !important;
    line-height: 1.45;
  }

  .table-wrap td:first-child {
    padding-top: 0 !important;
    font-size: 1rem !important;
  }

  .table-wrap td:nth-child(3) {
    color: #fff;
    font-weight: 800;
  }

  /* PROMO / AD */
  .promo-banner {
    grid-template-columns: 1fr !important;
    padding: 22px !important;
    gap: 22px !important;
    border-radius: 20px !important;
  }

  .promo-copy h2 {
    font-size: clamp(1.7rem, 8vw, 2.3rem) !important;
    line-height: 1.08 !important;
  }

  .promo-copy p {
    font-size: .9rem !important;
    line-height: 1.55 !important;
  }

  .promo-action {
    width: 100%;
    align-items: stretch !important;
  }

  .promo-inline-button {
    width: 100% !important;
    min-height: 50px;
    justify-content: center !important;
  }

  .promo-note {
    text-align: center !important;
  }

  .promo-orb {
    width: 180px !important;
    height: 180px !important;
    right: -70px !important;
    top: -70px !important;
  }

  /* CALCULATOR */
  .calc-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .calc-panel {
    padding: 18px !important;
    border-radius: 18px !important;
  }

  /* CONTACTS */
  .contact-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  .contact-form {
    padding: 18px !important;
    border-radius: 18px !important;
  }

  .field-grid {
    grid-template-columns: 1fr !important;
  }

  .field input,
  .field textarea,
  .field select {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 16px !important;
  }

  .field textarea {
    min-height: 120px !important;
  }

  .button-full {
    min-height: 50px;
  }

  /* FOOTER */
  .site-footer {
    padding: 28px 0 !important;
  }

  .footer-inner {
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .site-footer .brand-orb.has-custom-logo {
    width: 105px !important;
    height: 48px !important;
    flex-basis: 105px !important;
  }

  /* эффекты на мобильном уменьшаем */
  .cursor-glow {
    display: none !important;
  }

  .perspective-grid {
    opacity: .26 !important;
  }

  .particles {
    opacity: .45 !important;
  }

  .bg-glow {
    transform: scale(.75);
  }
}

/* Маленькие телефоны */
@media (max-width: 390px) {

  .container {
    width: calc(100% - 18px) !important;
  }

  .brand-orb.has-custom-logo {
    width: 76px !important;
    height: 36px !important;
    flex-basis: 76px !important;
  }

  .hero {
    padding-top: 38px !important;
  }

  .glitch-title {
    font-size: clamp(1.95rem, 10.7vw, 2.7rem) !important;
  }

  .hero-visual {
    height: 225px !important;
    min-height: 225px !important;
  }

  .holo-stage {
    transform: scale(.78);
  }

  .section {
    padding: 48px 0 !important;
  }

  .holo-card,
  .floating-panel,
  .calc-panel,
  .contact-form {
    padding: 15px !important;
  }
}


/* ===== MOBILE WIDTH FIX ===== */

@media (max-width: 680px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    margin: 0 !important;
  }

  .site-shell,
  .page-shell,
  main,
  section,
  .section,
  .container,
  .hero,
  .hero-grid,
  .hero-copy,
  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .container {
    width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin: 0 auto !important;
  }

  .hero {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hero-grid {
    display: block !important;
  }

  .hero-copy {
    padding: 0 !important;
    overflow: visible !important;
  }

  .glitch-title,
  .hero h1,
  .hero-title {
    width: 100% !important;
    max-width: 100% !important;

    font-size: clamp(2.1rem, 11vw, 3.1rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.05em !important;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .hero-text,
  .hero-description,
  .hero p {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 0.96rem !important;
    line-height: 1.55 !important;
    overflow-wrap: break-word !important;
  }

  .hero-actions {
    width: 100% !important;
  }

  .hero-actions .button,
  .hero-actions .btn,
  .hero-actions a {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-meta {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .hero-meta span {
    max-width: 100%;
  }

  .hero-visual {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .feature-grid,
  .audience-grid,
  .portfolio-grid,
  .pricing-grid,
  .contact-grid,
  .calc-grid {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
  }

  .holo-card,
  .portfolio-card,
  .floating-panel,
  .calc-panel,
  .contact-form,
  .promo-banner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  img,
  svg,
  canvas,
  video {
    max-width: 100% !important;
  }
}

/* Pixel / iPhone narrow screens */
@media (max-width: 430px) {
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .glitch-title,
  .hero h1,
  .hero-title {
    font-size: clamp(1.95rem, 10vw, 2.65rem) !important;
  }
}


/* ==================================================
   MITA — CUSTOM LOGO + CLEAN MOBILE
   ================================================== */

.brand-orb.has-custom-logo {
  width: 105px;
  height: 46px;
  flex: 0 0 105px;
  border-radius: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  box-shadow: none;
}

@media (max-width: 679px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    min-width: 320px;
  }

  .container {
    width: calc(100% - 28px);
    max-width: 100%;
    margin-inline: auto;
  }

  /* ШАПКА */

  .header-inner {
    min-height: 64px;
  }

  .brand {
    min-width: 0;
  }

  .brand-orb.has-custom-logo {
    width: 84px;
    height: 38px;
    flex: 0 0 84px;
  }

  .brand-text {
    display: none;
  }

  .nav-toggle {
    margin-left: auto;
    flex: 0 0 44px;
  }

  /* HERO */

  .hero {
    min-height: auto;
    padding: 46px 0 58px;
    overflow: hidden;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: 100%;
    min-width: 0;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero .eyebrow {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: .72rem;
    line-height: 1.45;
    letter-spacing: .10em;
  }

  .glitch-title {
    width: 100%;
    max-width: 100%;
    margin-bottom: 18px;

    font-size: clamp(2.15rem, 10.5vw, 3.15rem);
    line-height: 1;
    letter-spacing: -.05em;

    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    text-wrap: wrap;
  }

  .glitch-title::before,
  .glitch-title::after {
    display: none;
  }

  .hero-text {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    font-size: .95rem;
    line-height: 1.6;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 24px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    text-align: center;
  }

  .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
    margin-top: 18px;
  }

  .hero-meta span {
    font-size: .68rem;
    white-space: nowrap;
  }

  /* На телефоне 3D-графика не мешает первому экрану */

  .hero-visual {
    min-height: 250px;
    height: 250px;
    overflow: hidden;
  }

  .holo-stage {
    width: min(75vw, 270px);
    transform: scale(.82);
  }

  /* ОБЩИЕ СЕКЦИИ */

  .section {
    padding: 58px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2 {
    max-width: 100%;
    font-size: clamp(1.9rem, 8.5vw, 2.65rem);
    line-height: 1.06;
    letter-spacing: -.04em;
  }

  .section-heading > p:last-child {
    max-width: 100%;
    font-size: .92rem;
    line-height: 1.6;
  }

  /* КАРТОЧКИ */

  .feature-grid,
  .audience-grid,
  .portfolio-grid,
  .calc-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .holo-card,
  .portfolio-card,
  .floating-panel,
  .calc-panel,
  .contact-form {
    width: 100%;
    min-width: 0;
  }

  .holo-card {
    padding: 18px;
  }

  /* ПОРТФОЛИО */

  .portfolio-visual {
    min-height: 200px;
  }

  .portfolio-body {
    padding: 18px;
  }

  /* РЕКЛАМНЫЙ БАННЕР */

  .promo-banner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .promo-action {
    width: 100%;
  }

  .promo-inline-button {
    width: 100%;
    justify-content: center;
  }

  /* ФОРМА */

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

  input,
  textarea,
  select {
    max-width: 100%;
    font-size: 16px;
  }

  /* ТАБЛИЦА ЦЕН */

  .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap table {
    min-width: 620px;
  }

  /* ФОН — легче для телефона */

  .cursor-glow {
    display: none;
  }

  .perspective-grid {
    opacity: .35;
  }
}

@media (max-width: 390px) {

  .container {
    width: calc(100% - 20px);
  }

  .brand-orb.has-custom-logo {
    width: 76px;
    height: 34px;
    flex-basis: 76px;
  }

  .hero {
    padding-top: 36px;
  }

  .glitch-title {
    font-size: 2rem;
    line-height: 1.02;
  }

  .hero-visual {
    height: 220px;
    min-height: 220px;
  }
}

