:root {
  --blue: #00aeef;
  --blue-2: #1777ff;
  --orange: #ff6b35;
  --green: #4dffb4;
  --bg: #000814;
  --bg-2: #000f24;
  --panel: rgba(0, 20, 50, .72);
  --panel-2: rgba(2, 14, 32, .9);
  --line: rgba(0, 174, 239, .16);
  --line-strong: rgba(0, 174, 239, .36);
  --text: #f0f6ff;
  --muted: rgba(183, 213, 243, .74);
  --dim: rgba(142, 178, 216, .52);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  overflow-x: hidden;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(0, 174, 239, .2), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(255, 107, 53, .14), transparent 30rem),
    linear-gradient(180deg, #000814 0%, #00050f 48%, #000814 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(0, 174, 239, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 174, 239, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 78%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

.page { width: 100%; max-width: 100vw; overflow: hidden; padding-top: 74px; }
.public-admin-bar .page { padding-top: 114px; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.breadcrumbs {
  color: rgba(229, 244, 255, .62);
  font-size: 13px;
  line-height: 1.4;
  padding: 18px 0 0;
}

.breadcrumbs__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  overflow-wrap: anywhere;
}

.breadcrumbs a {
  color: rgba(229, 244, 255, .76);
}

.breadcrumbs a:hover {
  color: var(--blue);
}

.breadcrumbs__sep {
  color: rgba(229, 244, 255, .34);
}

.public-edit-toolbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 107, 53, .5);
  background: #3d4a56;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

.public-edit-toolbar__main {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.public-edit-toolbar__main a,
.public-edit-toolbar__main button,
.public-edit-toolbar__user {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.public-edit-toolbar__main a {
  text-decoration: none;
}

.public-edit-toolbar__main form {
  display: contents;
}

.public-edit-toolbar__main button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.public-edit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.public-edit-toggle span {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .84);
  border-radius: 2px;
  background: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}

.public-edit-toggle.is-active span {
  background: var(--blue);
}

@media (max-width: 720px) {
  .public-edit-toolbar {
    overflow-x: auto;
    padding: 0 14px;
  }

  .public-edit-toolbar__main {
    flex: 0 0 auto;
    gap: 16px;
  }

  .public-edit-toolbar__main a,
  .public-edit-toolbar__main button,
  .public-edit-toolbar__user {
    font-size: 14px;
    white-space: nowrap;
  }
}

.public-admin-bar .site-header {
  top: 40px;
}

.public-edit-mode main > section,
.public-edit-mode main > article {
  position: relative;
  outline: 1px dashed rgba(0, 174, 239, .52);
  outline-offset: -6px;
}

.public-block-control {
  position: absolute;
  top: 10px;
  right: max(10px, calc((100vw - 1180px) / 2 + 10px));
  z-index: 20;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 20px);
  padding: 6px;
  border: 1px solid rgba(0, 174, 239, .32);
  border-radius: 12px;
  background: rgba(0, 8, 20, .94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
}

.public-block-control span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.public-edit-mode [data-inline-field],
.public-edit-mode [data-inline-entity-field] {
  position: relative;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 107, 53, .28);
  cursor: text;
  caret-color: var(--orange);
  transition: box-shadow .18s ease, background .18s ease, opacity .18s ease;
}

.public-edit-mode [data-inline-field]:hover,
.public-edit-mode [data-inline-field]:focus,
.public-edit-mode [data-inline-entity-field]:hover,
.public-edit-mode [data-inline-entity-field]:focus {
  outline: none;
  background: rgba(255, 107, 53, .08);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, .58);
}

.public-edit-mode [data-inline-field]:empty::before,
.public-edit-mode [data-inline-entity-field]:empty::before {
  content: "Введите текст";
  color: rgba(183, 213, 243, .46);
}

.public-edit-mode [data-inline-field].is-inline-saving,
.public-edit-mode [data-inline-entity-field].is-inline-saving {
  opacity: .62;
}

.public-edit-mode [data-inline-field].is-inline-saved,
.public-edit-mode [data-inline-entity-field].is-inline-saved {
  box-shadow: 0 0 0 2px rgba(77, 255, 180, .72);
}

.public-edit-mode [data-inline-field].is-inline-error,
.public-edit-mode [data-inline-entity-field].is-inline-error {
  box-shadow: 0 0 0 2px rgba(255, 84, 84, .82);
}

.public-edit-mode [data-inline-field].inline-edit-pulse,
.public-edit-mode [data-inline-entity-field].inline-edit-pulse {
  animation: inlineEditPulse .9s ease;
}

@keyframes inlineEditPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 107, 53, .28); }
  45% { box-shadow: 0 0 0 4px rgba(255, 107, 53, .74); }
}

.inline-image-control {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 6;
  border: 1px solid rgba(0, 174, 239, .55);
  border-radius: 8px;
  background: rgba(0, 8, 20, .82);
  color: #eaf7ff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 10px 12px;
  box-shadow: 0 12px 28px rgba(0, 174, 239, .18);
}

.inline-image-control:hover,
.inline-image-control:focus-visible {
  border-color: rgba(0, 174, 239, .9);
  outline: none;
}

.inline-image-panel {
  display: none;
  position: absolute;
  right: 18px;
  bottom: 58px;
  z-index: 7;
  width: min(320px, calc(100vw - 36px));
  border: 1px solid rgba(0, 174, 239, .35);
  border-radius: 8px;
  background: rgba(0, 15, 36, .96);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .35);
  padding: 12px;
}

.inline-image-panel.is-open {
  display: block;
}

.inline-image-panel__label {
  display: block;
  color: rgba(234, 247, 255, .78);
  font-size: 12px;
  margin-bottom: 8px;
}

.inline-image-panel__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.inline-image-panel__input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(116, 211, 255, .25);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit;
  font-size: 13px;
  padding: 9px 10px;
}

.inline-image-panel__save {
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #00101f;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 0 12px;
}

.inline-image-panel__status {
  min-height: 16px;
  color: rgba(234, 247, 255, .72);
  font-size: 12px;
  margin-top: 8px;
}

.inline-image-panel.is-error .inline-image-panel__status {
  color: #ff9b7b;
}

.inline-image-panel.is-saved .inline-image-panel__status {
  color: #72e7ff;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 8, 20, .84);
  backdrop-filter: blur(22px) saturate(145%);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}
.brand { display: flex; align-items: center; min-width: 0; }
.brand img {
  width: 168px;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(0, 174, 239, .36));
}
.brand-mini img { width: 88px; }
.nav-links, .actions { display: flex; align-items: center; gap: 18px; }
.nav-links { color: var(--muted); font-size: 13px; }
.nav-links a { position: relative; white-space: nowrap; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--blue);
  transition: right .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 174, 239, .08);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 174, 239, .7);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(0, 174, 239, .28), rgba(0, 15, 36, .98));
  box-shadow: 0 12px 34px rgba(0, 174, 239, .18);
  outline: none;
}
.btn-primary {
  border-color: transparent;
  color: #00101c;
  background: linear-gradient(135deg, var(--blue), #7de4ff);
  font-weight: 700;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  border-color: rgba(125, 228, 255, .82);
  color: #ffffff;
  background:
    linear-gradient(135deg, #006f9b, #00395f);
  box-shadow: 0 14px 38px rgba(0, 174, 239, .24);
}
.btn-orange {
  border-color: rgba(255, 107, 53, .46);
  color: #ffe4d9;
  background: rgba(255, 107, 53, .12);
}
.btn-orange:hover,
.btn-orange:focus-visible {
  border-color: rgba(255, 177, 143, .86);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 107, 53, .34), rgba(54, 16, 5, .96));
  box-shadow: 0 14px 38px rgba(255, 107, 53, .18);
}
.btn-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}
.icon-btn { width: 42px; height: 42px; padding: 0; border-radius: 12px; }
.burger, .mobile-menu { display: none; }

.hero { position: relative; min-height: 720px; padding: 70px 0 68px; overflow: hidden; }
.hero::before, .hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(0, 174, 239, .14);
  border-radius: 50%;
}
.hero::before { width: 360px; height: 360px; top: 132px; right: -120px; animation: spin 28s linear infinite; }
.hero::after { width: 240px; height: 240px; top: 208px; right: -72px; border-color: rgba(255, 107, 53, .12); animation: spin 22s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-grid { position: relative; z-index: 2; display: grid; gap: 28px; align-items: stretch; }
.hero-picture { min-height: 260px; }
.logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  overflow: hidden;
  background: transparent;
}
.logo-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  display: none;
}
.logo-stage img {
  position: relative;
  z-index: 2;
  width: min(820px, 86%);
  filter: none;
  animation: heroLogoFloat 6s ease-in-out infinite;
}
.neural-scene { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.neural-line {
  position: absolute;
  height: 1px;
  background-image: linear-gradient(90deg, rgba(0, 174, 239, 0), rgba(0, 174, 239, .45), rgba(255, 107, 53, .35), rgba(0, 174, 239, 0));
  background-size: 18px 1px;
  opacity: .55;
  animation: neuralDash 11s linear infinite;
  transform-origin: left center;
}
.nl-1 { left: 5%; top: 30%; width: 86%; transform: rotate(8deg); }
.nl-2 { left: 13%; top: 72%; width: 70%; transform: rotate(-18deg); animation-duration: 15s; }
.nl-3 { left: 28%; top: 50%; width: 56%; transform: rotate(90deg); opacity: .35; animation-duration: 18s; }
.neural-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(0, 174, 239, .14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: neuralOrbitSpin 34s linear infinite;
}
.no-1 { width: min(280px, 31vw); height: min(280px, 31vw); }
.no-2 { width: min(210px, 23vw); height: min(210px, 23vw); border-color: rgba(255, 107, 53, .12); animation-duration: 24s; animation-direction: reverse; }
.neuron { position: absolute; width: 9px; height: 9px; border-radius: 50%; animation: neuronPulse 2.8s ease-in-out infinite; }
.neuron.nb { background: var(--blue); box-shadow: 0 0 14px var(--blue), 0 0 34px rgba(0, 174, 239, .5); }
.neuron.no { background: var(--orange); box-shadow: 0 0 14px var(--orange), 0 0 34px rgba(255, 107, 53, .46); }
.n-1 { left: 9%; top: 17%; }
.n-2 { left: 21%; top: 64%; animation-delay: .45s; }
.n-3 { left: 50%; top: 11%; animation-delay: .9s; }
.n-4 { right: 15%; top: 28%; animation-delay: 1.35s; }
.n-5 { right: 8%; bottom: 22%; animation-delay: 1.8s; }
.particle { display: none; }
.p-1 { left: 18%; bottom: -42px; width: 86px; height: 86px; background: radial-gradient(circle, rgba(0, 174, 239, .34), transparent 68%); }
.p-2 { left: 68%; bottom: -30px; width: 62px; height: 62px; background: radial-gradient(circle, rgba(255, 107, 53, .28), transparent 68%); animation-delay: 4s; }
.p-3 { left: 44%; top: -42px; width: 74px; height: 74px; background: radial-gradient(circle, rgba(0, 174, 239, .22), transparent 68%); animation-delay: 8s; }
@keyframes neuralDash { to { background-position: 180px 0; } }
@keyframes neuralOrbitSpin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes neuronPulse { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.8); opacity: 1; } }
@keyframes particleFloat { 0%, 100% { transform: translateY(0) scale(.8); opacity: .12; } 50% { transform: translateY(-54px) scale(1.18); opacity: .5; } }
@keyframes gridDrift { to { background-position: 84px 42px; } }
@keyframes heroLogoFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-18px) scale(1.018); } }
.hero-description { max-width: 980px; margin: 0 auto; text-align: center; }
.hero-description .eyebrow {
  display: flex;
  width: fit-content;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--blue); }
h1 { margin-bottom: 22px; font-size: 72px; line-height: .96; letter-spacing: 0; }
.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  min-width: 0;
}
h1 span, .grad {
  background: linear-gradient(135deg, var(--blue), #bff3ff 44%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title-plain {
  display: block;
  width: 100%;
  min-width: 0;
  background: none;
  color: var(--text);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.hero-highlight {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.hero-title-word,
.hero-highlight-line {
  display: inline;
}
.lead {
  max-width: 760px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 34px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; text-align: left; }
.stat, .service-card, .price-card, .case-card, .ai-card, .placeholder-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(0, 20, 50, .72), rgba(0, 7, 18, .78));
  box-shadow: var(--shadow);
}
.stat {
  position: relative;
  overflow: hidden;
  padding: 20px;
  cursor: default;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .055), transparent);
  pointer-events: none;
  transition: left .6s ease;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(0, 174, 239, .52); box-shadow: 0 20px 56px rgba(0, 174, 239, .14), var(--shadow); }
.stat:hover::before { left: 135%; }
.stat-1:hover { border-color: rgba(255, 107, 53, .44); box-shadow: 0 20px 56px rgba(255, 107, 53, .11), var(--shadow); }
.stat-2:hover { border-color: rgba(77, 255, 180, .4); box-shadow: 0 20px 56px rgba(77, 255, 180, .1), var(--shadow); }
.stat-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border: 1px solid rgba(0, 174, 239, .3);
  border-radius: 11px;
  background: rgba(0, 174, 239, .1);
  color: var(--blue);
  transition: background .24s ease, box-shadow .24s ease;
}
.stat-1 .stat-icon { border-color: rgba(255, 107, 53, .3); background: rgba(255, 107, 53, .1); color: var(--orange); }
.stat-2 .stat-icon { border-color: rgba(77, 255, 180, .28); background: rgba(77, 255, 180, .08); color: var(--green); }
.stat:hover .stat-icon { background: rgba(0, 174, 239, .2); box-shadow: 0 0 20px rgba(0, 174, 239, .3); }
.stat-1:hover .stat-icon { background: rgba(255, 107, 53, .2); box-shadow: 0 0 20px rgba(255, 107, 53, .3); }
.stat-2:hover .stat-icon { background: rgba(77, 255, 180, .16); box-shadow: 0 0 20px rgba(77, 255, 180, .26); }
.stat strong { display: block; margin-bottom: 6px; font-size: 18px; line-height: 1.2; }
.stat span { color: var(--dim); font-size: 13px; line-height: 1.45; }

.section { padding: 86px 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .7fr); gap: 42px; align-items: end; margin-bottom: 34px; }
.section-title { margin-bottom: 0; font-size: 44px; line-height: 1.06; letter-spacing: 0; }
.section-sub { color: var(--muted); line-height: 1.72; }
.empty-state {
  max-width: 640px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 14, 32, .74);
  padding: 24px;
}
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); line-height: 1.7; }
.services-grid, .price-grid, .featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card, .price-card { position: relative; min-height: 270px; padding: 24px; overflow: hidden; }
.service-card { display: flex; flex-direction: column; min-height: 430px; }
.service-card::after {
  content: attr(data-code);
  position: absolute;
  right: 18px;
  bottom: 12px;
  color: rgba(125, 228, 255, .06);
  font-size: 58px;
  font-weight: 900;
}
.orange-card { border-color: rgba(255, 107, 53, .2); background: linear-gradient(145deg, rgba(38, 17, 8, .82), rgba(0, 7, 18, .78)); }
.service-icon, .price-num, .step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--blue);
  background: rgba(0, 174, 239, .08);
  font-weight: 800;
}
.service-card h3, .price-card h3, .case-card h3, .featured-card h3 { margin-bottom: 12px; font-size: 23px; line-height: 1.18; }
.service-card p, .price-card p, .case-card p, .featured-card p { color: var(--muted); line-height: 1.65; }
.service-detail {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(125, 228, 255, .13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 174, 239, .08), rgba(255, 107, 53, .035)),
    rgba(2, 14, 32, .56);
}
.orange-card .service-detail {
  border-color: rgba(255, 107, 53, .18);
  background:
    linear-gradient(135deg, rgba(255, 107, 53, .09), rgba(0, 174, 239, .04)),
    rgba(14, 8, 16, .56);
}
.service-detail__intro {
  margin: 0;
  color: #d8e8f8 !important;
  font-size: 14px;
  line-height: 1.65;
}
.service-detail__block span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.orange-card .service-detail__block span { color: #ffb18f; }
.service-detail__block ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-detail__block li {
  position: relative;
  padding-left: 18px;
  color: #aebdd0;
  font-size: 13px;
  line-height: 1.5;
}
.service-detail__block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 14px rgba(0, 174, 239, .55);
}
.orange-card .service-detail__block li::before {
  background: var(--orange);
  box-shadow: 0 0 14px rgba(255, 107, 53, .45);
}
.service-detail__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-detail__pills span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(125, 228, 255, .18);
  border-radius: 999px;
  color: #caeafa;
  background: rgba(0, 174, 239, .08);
  font-size: 12px;
  font-weight: 700;
}
.orange-card .service-detail__pills span {
  border-color: rgba(255, 107, 53, .24);
  color: #ffd1bf;
  background: rgba(255, 107, 53, .09);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.service-card__footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}
.service-card__footer .tag-row {
  margin-top: 0;
}
.service-card__footer .btn {
  position: relative;
  z-index: 1;
  width: 100%;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(0, 174, 239, .24);
  border-radius: 999px;
  color: #9be8ff;
  background: rgba(0, 174, 239, .08);
  font-size: 12px;
}
.orange-tag { border-color: rgba(255, 107, 53, .3); color: #ffc2a8; background: rgba(255, 107, 53, .1); }
.service-card {
  --service-accent: #00aeef;
  --service-accent-rgb: 0, 174, 239;
  border-color: rgba(var(--service-accent-rgb), .24);
  background:
    radial-gradient(circle at 0 0, rgba(var(--service-accent-rgb), .1), transparent 34%),
    linear-gradient(145deg, rgba(var(--service-accent-rgb), .04), rgba(0, 7, 18, .82));
}
.service-card--theme-web { --service-accent: #00aeef; --service-accent-rgb: 0, 174, 239; }
.service-card--theme-telegram { --service-accent: #3b82f6; --service-accent-rgb: 59, 130, 246; }
.service-card--theme-intelligence { --service-accent: #9b7bff; --service-accent-rgb: 155, 123, 255; }
.service-card--theme-business { --service-accent: #ff6b35; --service-accent-rgb: 255, 107, 53; }
.service-card--theme-data { --service-accent: #36d6a3; --service-accent-rgb: 54, 214, 163; }
.service-card .service-icon {
  border-color: rgba(var(--service-accent-rgb), .38);
  color: var(--service-accent);
  background: rgba(var(--service-accent-rgb), .1);
  box-shadow: 0 0 22px rgba(var(--service-accent-rgb), .08);
}
.service-card .service-detail {
  border-color: rgba(var(--service-accent-rgb), .2);
  background:
    linear-gradient(135deg, rgba(var(--service-accent-rgb), .09), rgba(var(--service-accent-rgb), .025)),
    rgba(2, 14, 32, .58);
}
.service-card .service-detail__block span,
.service-card .price-line strong { color: var(--service-accent); }
.service-card .service-detail__block li::before {
  background: var(--service-accent);
  box-shadow: 0 0 14px rgba(var(--service-accent-rgb), .5);
}
.service-card .service-detail__pills span,
.service-card .tag {
  border-color: rgba(var(--service-accent-rgb), .28);
  color: var(--service-accent);
  background: rgba(var(--service-accent-rgb), .09);
}
.service-card__footer .btn {
  border-color: rgba(var(--service-accent-rgb), .36);
}
.service-card__footer .btn:hover,
.service-card__footer .btn:focus-visible {
  border-color: var(--service-accent);
  box-shadow: 0 0 0 3px rgba(var(--service-accent-rgb), .12);
}
.service-price { padding-top: 18px; }
.service-when, .price-when { margin: 0 0 14px; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.03); }
.service-when span, .price-when span, .price-line span { display: block; margin-bottom: 5px; color: var(--dim); font-size: 12px; }
.service-when b, .price-when b { line-height: 1.5; }
.price-line { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price-line strong { color: var(--blue); }
.service-fit__head {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(420px, 1fr);
  gap: 48px;
  align-items: start;
}
.service-fit__lead {
  max-width: 620px;
  margin-top: 24px;
  color: #dcecff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.45;
}
.service-fit__grid {
  display: grid;
  gap: 14px;
}
.service-fit-card {
  position: relative;
  min-height: 126px;
  padding: 22px 24px 22px 72px;
  border: 1px solid rgba(125, 228, 255, .13);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0 0, rgba(0, 174, 239, .12), transparent 36%),
    rgba(2, 14, 32, .58);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}
.service-fit-card span {
  position: absolute;
  left: 22px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 174, 239, .34);
  border-radius: 10px;
  color: var(--blue);
  background: rgba(0, 174, 239, .08);
  font-size: 13px;
  font-weight: 900;
}
.service-fit-card h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.22;
}
.service-fit-card p {
  margin: 0;
  color: #aebdd0;
  font-size: 15px;
  line-height: 1.62;
}
.service-detail-page {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: start;
}
.service-detail-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(125, 228, 255, .14);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 10% 0, rgba(0, 174, 239, .14), transparent 34%),
    linear-gradient(145deg, rgba(0, 20, 50, .7), rgba(0, 7, 18, .82));
  box-shadow: var(--shadow);
}
.service-detail-panel h3 {
  margin-bottom: 12px;
  font-size: 18px;
}
.service-detail-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-detail-panel li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.6;
}
.service-detail-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(125, 228, 255, .55);
  border-radius: 50%;
  background: rgba(0, 174, 239, .28);
}
.service-detail-page__outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.service-detail-page__outcomes span {
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  color: #e9f7ff;
  background: rgba(255, 255, 255, .035);
  font-weight: 800;
  line-height: 1.35;
}

.process {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(420px, 1.1fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: start;
}
.process-intro { position: sticky; top: 92px; }
.process-intro .section-sub { max-width: 590px; margin-top: 18px; }
.process-outcome {
  margin: 28px 0 0;
  padding: 20px 22px;
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  color: #d7e8f8;
  background: rgba(255, 107, 53, .055);
  line-height: 1.65;
}
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 58px 1fr; gap: 16px; min-height: 138px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0, 20, 50, .44); }
.step h3 { margin-bottom: 6px; }
.step p { margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.about-studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: start; }
.about-points { display: grid; gap: 14px; }
.about-points div { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0, 20, 50, .46); }
.about-points b, .about-points span { display: block; }
.about-points span { margin-top: 6px; color: var(--muted); line-height: 1.55; }
.about-metrics-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.about-metrics-strip div { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0, 20, 50, .38); }
.about-metrics-strip strong { display: block; margin-bottom: 4px; font-size: 30px; color: var(--blue); }
.about-metrics-strip span { color: var(--muted); }

.portfolio-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .7fr); gap: 18px; align-items: start; }
.case-card { padding: 24px; }
.case-card.featured { display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.case-card__bottom { display: grid; gap: 16px; margin-top: auto; }
.case-card__insights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.case-card__insights, .ai-lines { align-items: stretch; }
.case-card__insights div {
  padding: 16px;
  border: 1px solid rgba(125, 228, 255, .13);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 174, 239, .075), rgba(255, 107, 53, .035));
}
.case-card__insights span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.case-card__insights p { margin: 0; color: #d5e4f5; font-size: 14px; line-height: 1.55; }
.case-stack { display: grid; gap: 18px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.metric { padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.03); }
.metric strong { display: block; font-size: 30px; color: var(--orange); }
.metric span { color: var(--dim); font-size: 13px; line-height: 1.35; }
.featured-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(0, 20, 50, .62), rgba(0, 7, 18, .72));
  transition: transform .18s ease, border-color .18s ease;
}
.featured-card:hover { transform: translateY(-3px); border-color: rgba(0, 174, 239, .56); }
.featured-wide { grid-column: span 2; }
.ai-card { padding: 28px; }
.ai-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ai-line { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.ai-line b { color: var(--orange); }
.ai-line span { color: var(--muted); line-height: 1.55; }

.faq-section .container { display: grid; grid-template-columns: minmax(240px, .45fr) minmax(0, 1fr); gap: 42px; align-items: start; }
.faq-head h2 { margin-bottom: 16px; font-size: 56px; line-height: .96; }
.faq-head p { color: var(--muted); line-height: 1.6; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0, 20, 50, .46); overflow: hidden; }
.faq-item summary { padding: 18px 20px; cursor: pointer; font-weight: 700; }
.faq-item p { margin: 0; padding: 0 20px 20px; color: var(--muted); line-height: 1.65; }

.cta { padding: 70px 0 92px; }
.cta-panel { display: grid; grid-template-columns: 1fr minmax(320px, .75fr); gap: 32px; padding: 30px; border: 1px solid rgba(255, 107, 53, .22); border-radius: 28px; background: linear-gradient(145deg, rgba(0, 20, 50, .78), rgba(40, 13, 3, .62)); box-shadow: var(--shadow); }
.cta-panel h2 { font-size: 42px; line-height: 1.08; }
.form { display: grid; gap: 12px; }
.field { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: rgba(0, 8, 20, .72); outline: none; }
textarea.field { min-height: 112px; padding-top: 14px; resize: vertical; }
.field:focus { border-color: rgba(0, 174, 239, .72); box-shadow: 0 0 0 3px rgba(0,174,239,.1); }
.form-consent { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--muted); font-size: 12px; line-height: 1.45; }
.form-consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.form-status.is-success { color: var(--green); }
.form-status.is-error { color: #ffc2a8; }

.placeholder-hero { min-height: 560px; display: grid; align-items: center; }
.placeholder-panel { max-width: 820px; padding: 34px; }
.placeholder-panel h1 { font-size: 56px; }
.privacy-hero { padding-bottom: 28px; }
.privacy-hero .placeholder-panel { max-width: 980px; }
.privacy-hero .lead { margin-left: 0; margin-right: 0; }
.privacy-requisites {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.privacy-requisites div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(125, 228, 255, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
}
.privacy-requisites__wide { grid-column: span 2; }
.privacy-requisites span {
  color: var(--dim);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.privacy-requisites strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
}
.privacy-requisites a { color: var(--blue); }
.privacy-content { padding-top: 28px; }

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 5, 15, .72);
  font-size: 14px;
}
.site-footer h2,
.site-footer h3,
.site-footer p,
.site-footer a,
.site-footer span,
.site-footer strong,
.site-footer .btn {
  font-size: 14px;
}
.footer-layout { display: grid; gap: 24px; padding: 48px 0 28px; }
.footer-main { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 28px; }
.footer-brand p, .footer-cta p { color: var(--muted); line-height: 1.65; }
.footer-chat { color: var(--blue); font-weight: 700; }
.footer-col { display: grid; align-content: start; gap: 10px; color: var(--muted); }
.footer-col h3 { color: var(--text); }
.footer-col a:hover { color: var(--blue); }
.footer-cta, .footer-legal, .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}
.footer-cta h2,
.footer-legal strong {
  font-weight: 700;
}
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer-legal div { display: grid; gap: 4px; }
.footer-legal span, .footer-bottom { color: var(--dim); }
.footer-bottom div { display: flex; gap: 16px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) {
  .nav-links, .actions .btn:not(.burger) { display: none; }
  .burger { display: inline-flex; }
  .mobile-menu {
    display: none;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 0 18px;
    color: var(--muted);
  }
  .mobile-menu.is-open { display: grid; }
  h1 { font-size: 56px; }
  .hero-stats, .services-grid, .price-grid, .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head, .process, .service-fit__head, .service-detail-page, .about-studio-grid, .portfolio-grid, .cta-panel, .faq-section .container { grid-template-columns: 1fr; }
  .process-intro { position: static; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1180px); }
  .hero { min-height: auto; padding: 54px 0 56px; }
  .logo-stage { min-height: 220px; }
  .logo-stage img {
    width: min(100%, 340px);
    animation: none;
  }
  h1 { font-size: 42px; }
  .hero-description {
    max-width: 100%;
    overflow: visible;
  }
  .hero h1 {
    display: block;
    max-width: 100%;
    font-size: clamp(32px, 9.8vw, 38px);
    line-height: 1.04;
  }
  .hero-title-plain {
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.04;
    word-break: normal;
    hyphens: none;
  }
  .hero-title-word,
  .hero-highlight-line {
    display: block;
  }
  .hero-highlight {
    max-width: 100%;
    margin: 8px auto 0;
    font-size: clamp(28px, 8.5vw, 34px);
    word-break: normal;
    hyphens: auto;
  }
  .section-title, .cta-panel h2 { font-size: 32px; }
  .faq-head h2 { font-size: 42px; }
  .lead { font-size: 17px; }
  .hero-stats, .services-grid, .price-grid, .featured-grid, .about-metrics-strip, .metrics, .case-card__insights, .privacy-requisites, .ai-lines { grid-template-columns: 1fr; }
  .privacy-requisites__wide { grid-column: auto; }
  .service-fit__lead { font-size: 20px; }
  .service-fit-card { padding: 18px; }
  .service-fit-card span { position: static; margin-bottom: 12px; }
  .service-detail-page__outcomes { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-card__footer { margin-top: 24px; }
  .step { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; min-height: 0; padding: 18px; }
  .step-num { width: 38px; height: 38px; }
  .featured-wide { grid-column: auto; }
  .footer-main, .footer-cta, .footer-legal, .footer-bottom { grid-template-columns: 1fr; display: grid; }
  .footer-bottom div { flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .container { width: min(100% - 24px, 1180px); }
  .hero { padding-top: 38px; }
  .logo-stage { min-height: 190px; }
  .logo-stage img { width: min(100%, 310px); }
  .brand img { width: 142px; }
  .nav { gap: 12px; }
  .hero h1 { font-size: clamp(29px, 9.2vw, 34px); }
  .hero-title-plain { max-width: 100%; }
  .hero-highlight {
    max-width: 100%;
    font-size: clamp(25px, 8vw, 30px);
  }
  .lead { font-size: 16px; }
}

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

.page-hero,
.case-hero {
  padding: 82px 0 54px;
}

.page-hero-grid,
.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .72fr);
  gap: 32px;
  align-items: stretch;
}

.article-page-hero {
  grid-template-columns: minmax(0, 1fr);
}

.article-page-hero > div {
  max-width: 1040px;
}

.page-hero h1,
.case-hero h1 {
  max-width: 860px;
  margin-bottom: 20px;
  font-size: 58px;
  line-height: 1;
  letter-spacing: 0;
}

.case-summary,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(0, 20, 50, .72), rgba(0, 7, 18, .78));
  box-shadow: var(--shadow);
}

.case-summary {
  padding: 24px;
}

.case-summary dl,
.case-summary dd {
  margin: 0;
}

.case-summary dl {
  display: grid;
  gap: 16px;
}

.case-summary div {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.case-summary div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.case-summary dt {
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-summary dd {
  color: var(--muted);
  line-height: 1.55;
}

.filter-row,
.portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row {
  margin-top: 24px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0, 174, 239, .06);
  font-size: 13px;
}

.filter-chip.active {
  color: #00101c;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), #7de4ff);
  font-weight: 800;
}

.service-page-grid .service-card {
  min-height: 620px;
}

.portfolio-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  min-height: 310px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 86% 8%, rgba(0, 174, 239, .16), transparent 28%),
    linear-gradient(145deg, rgba(0, 20, 50, .72), rgba(0, 7, 18, .78));
  box-shadow: var(--shadow);
}

.portfolio-item::after {
  content: "";
  position: absolute;
  inset: auto -24px -46px 38%;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(0, 174, 239, .18), rgba(255, 107, 53, .12));
  filter: blur(34px);
  pointer-events: none;
}

.portfolio-item.large {
  grid-column: span 2;
  min-height: 360px;
}

.portfolio-item > * {
  position: relative;
  z-index: 1;
}

.portfolio-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.portfolio-number {
  color: rgba(244, 248, 255, .16);
  font-size: 52px;
  font-weight: 900;
  line-height: .82;
}

.portfolio-item h2,
.portfolio-item h3 {
  margin: 18px 0 10px;
  font-size: 30px;
  line-height: 1.08;
}

.portfolio-item p {
  color: var(--muted);
  line-height: 1.65;
}

.portfolio-stack,
.case-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-stack {
  margin-top: 18px;
}

.portfolio-stack span,
.case-stack-pills span {
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(0, 174, 239, .18);
  border-radius: 999px;
  color: rgba(244, 248, 255, .82);
  background: rgba(0, 174, 239, .06);
  font-size: 12px;
  line-height: 1.1;
}

.portfolio-result {
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 107, 53, .22);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 107, 53, .065);
  line-height: 1.55;
}

.portfolio-result strong {
  color: var(--orange);
}

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

.public-search-section {
  padding-top: 56px;
}

.public-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  max-width: 860px;
  margin-bottom: 56px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
}

.public-search-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.public-search-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(0, 15, 36, .82);
  color: var(--text);
  font: inherit;
}

.public-search-form input:focus {
  outline: 2px solid rgba(0, 174, 239, .38);
  border-color: rgba(0, 174, 239, .58);
}

.public-search-results__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.public-search-result {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
}

.public-search-result__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-search-result h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
}

.public-search-result h3 a {
  color: var(--text);
  text-decoration: none;
}

.public-search-result h3 a:hover {
  color: var(--blue);
}

.public-search-result p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.public-search-result .btn {
  width: fit-content;
  margin-top: auto;
}

.mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-metric {
  min-width: 112px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}

.mini-metric strong {
  display: block;
  color: var(--orange);
  font-size: 24px;
}

.mini-metric span {
  color: var(--dim);
  font-size: 12px;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .42fr);
  gap: 22px;
  align-items: start;
}

.story-block {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(0, 20, 50, .52);
}

.story-block h2 {
  font-size: 30px;
}

.story-block p,
.story-block li {
  color: var(--muted);
  line-height: 1.68;
}

.story-block li + li {
  margin-top: 8px;
}

.case-stack-pills {
  margin: 22px 0;
}

.case-solution-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.case-solution-list li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border: 1px solid rgba(0, 174, 239, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
}

.case-solution-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  box-shadow: 0 0 18px rgba(0, 174, 239, .38);
}

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

.sticky-panel {
  position: sticky;
  top: 96px;
}

.timeline {
  display: grid;
  gap: 14px;
  padding-left: 20px;
}

.contacts-hero {
  min-height: 640px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.contact-card {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 20, 50, .46);
}

.contact-card strong {
  color: var(--text);
}

.contact-card span {
  color: var(--muted);
  font-size: 13px;
}

.contact-form {
  padding: 24px;
}

.admin-body {
  background: #000814;
}

.admin-login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px;
}

.admin-login-panel {
  display: grid;
  gap: 24px;
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(0, 20, 50, .82), rgba(0, 7, 18, .9));
  box-shadow: var(--shadow);
}

.admin-login-panel h1 {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.08;
}

.admin-login-panel p {
  color: var(--muted);
  line-height: 1.62;
}

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

.sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
  padding: 10px 8px;
  border-right: 1px solid var(--line);
  background: rgba(0, 7, 18, .92);
  overflow: hidden;
}

.side-brand {
  margin-bottom: 8px;
}

.side-nav,
.quick-list {
  display: grid;
  gap: 4px;
}

.side-nav a,
.quick-item {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
  align-items: center;
  font-size: 12px;
}

.side-nav a.active,
.quick-item:hover {
  color: var(--text);
  border-color: rgba(0, 174, 239, .42);
  background: rgba(0, 174, 239, .1);
}

.nav-mark {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 8, 20, .84);
}

.admin-search {
  flex: 1;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(0, 20, 50, .62);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.avatar,
.admin-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #00101c;
  background: linear-gradient(135deg, var(--blue), #7de4ff);
  font-weight: 900;
}

.admin-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0;
  padding: 30px 20px 54px;
}

.admin-title-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.admin-title-row h1 {
  margin-bottom: 10px;
  max-width: 100%;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.admin-title-row p {
  color: var(--muted);
}

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

.admin-editor-grid {
  display: grid;
  grid-template-columns: minmax(360px, .85fr) minmax(520px, 1.35fr);
  gap: 20px;
  align-items: start;
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.admin-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(0, 20, 50, .72), rgba(0, 7, 18, .78));
  box-shadow: var(--shadow);
}

.admin-narrow {
  max-width: 620px;
  margin-left: 0;
  margin-right: auto;
}

.editor-card {
  padding: 24px;
  border-radius: 18px;
}

.editor-card h2 {
  margin-bottom: 22px;
  font-size: 26px;
  line-height: 1.16;
}

.editor-blocks-card {
  min-height: 480px;
}

.kpi-top,
.compact-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.kpi-label,
.kpi-note {
  color: var(--muted);
}

.kpi-value {
  margin: 14px 0 6px;
  font-size: 38px;
  font-weight: 900;
}

.kpi-empty {
  color: var(--dim);
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-align: left;
}

.admin-empty-cell {
  color: var(--dim);
  text-align: center;
}

.admin-empty-panel {
  min-height: 96px;
  display: grid;
  align-items: center;
  padding: 18px;
  border: 1px dashed rgba(0, 174, 239, .22);
  border-radius: var(--radius);
  color: var(--dim);
  background: rgba(255, 255, 255, .02);
}

.admin-table th {
  color: var(--blue);
  font-size: 12px;
}

.status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(0, 174, 239, .3);
  border-radius: 999px;
  color: #9be8ff;
  background: rgba(0, 174, 239, .08);
  font-size: 12px;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.inline-create-form {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}

.admin-form label,
.field-editor {
  display: grid;
  gap: 8px;
}

.admin-form label span {
  color: var(--muted);
  font-size: 13px;
}

.field-label {
  color: var(--muted);
  font-size: 13px;
}

.prompt-variables {
  display: grid;
  gap: 10px;
}

.variable-row {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) minmax(280px, 1fr);
  gap: 12px;
  align-items: end;
}

.code-field {
  min-height: 150px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
}

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

.field-editor {
  margin: 8px 0;
}

.field-editor label {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}

.admin-block-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-block-list.single-column {
  grid-template-columns: 1fr;
}

.admin-block-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}

.admin-block-row span {
  display: block;
  margin-top: 4px;
  color: var(--dim);
  font-size: 12px;
}

.admin-block-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.admin-block-actions form {
  margin: 0;
}

.block-editor-card {
  max-width: 980px;
  margin-left: 0;
  margin-right: auto;
}

.prompt-editor-card {
  max-width: 1120px;
  margin-left: 0;
  margin-right: auto;
}

.seo-editor-card {
  grid-column: 1 / -1;
  max-width: 1120px;
  margin-left: 0;
  margin-right: auto;
}

.checkbox-field {
  display: flex !important;
  min-height: 48px;
  align-items: center;
  gap: 10px;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.prompt-field {
  min-height: 150px;
  line-height: 1.6;
}

.prompt-field-large {
  min-height: 240px;
}

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

.flash {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(0, 174, 239, .08);
}

.flash-success {
  border-color: rgba(77, 255, 180, .34);
  background: rgba(77, 255, 180, .08);
}

.flash-error {
  border-color: rgba(255, 107, 53, .4);
  background: rgba(255, 107, 53, .1);
}

@media (max-width: 1040px) {
  .page-hero-grid,
  .case-hero-grid,
  .case-detail-grid {
    grid-template-columns: 1fr;
  }

  .page-hero h1,
  .case-hero h1 {
    font-size: 46px;
  }

  .contact-cards,
  .result-cards {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    max-height: none;
  }

  .admin-content {
    width: 100%;
    padding: 28px 18px 44px;
  }

  .admin-editor-grid,
  .admin-block-list {
    grid-template-columns: 1fr;
  }

  .span-3,
  .span-4,
  .span-8,
  .span-12 {
    grid-column: span 12;
  }
}

@media (max-width: 720px) {
  .page-hero,
  .case-hero {
    padding: 52px 0 36px;
  }

  .page-hero h1,
  .case-hero h1 {
    font-size: 36px;
  }

  .portfolio-list,
  .public-search-results__list,
  .portfolio-item.large {
    display: grid;
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .public-search-form {
    grid-template-columns: 1fr;
  }

  .admin-title-row,
  .admin-topbar,
  .kpi-top,
  .compact-head,
  .admin-block-row,
  .form-grid,
  .variable-row,
  .two-columns {
    display: grid;
    grid-template-columns: 1fr;
  }
}
/* Accessibility utility for bot traps and screen-reader-only labels. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
