/* ==========================================================================
   Stackline — фирменная система стилей
   Dark minimal · acid lime · floating geometry · large typography
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #080908;
  --bg-soft: #10120f;
  --card: #151713;
  --raised: #1b1e18;
  --ink: #f5f6f1;
  --muted: #a0a39a;
  --faint: #686b64;
  --lime: #d5ff3f;
  --lime-soft: #e7ff8a;
  --lime-deep: #bce91f;
  --lime-dark: #5f7614;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glow: rgba(213, 255, 63, 0.12);
  --ok: #9fe870;
  --warn: #ffcc66;
  --danger: #ff7a6b;
  --info: #8fb8ff;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1240px;
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
  --header-h: 76px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 82% -8%, rgba(213, 255, 63, 0.07), transparent 65%),
    radial-gradient(700px 500px at 0% 40%, rgba(213, 255, 63, 0.035), transparent 70%);
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.65rem, 6.2vw, 5.4rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

::selection {
  background: var(--lime);
  color: #0b0d09;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  background: var(--lime);
  color: #0b0d09;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 800;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* --------------------------------- layout -------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  position: relative;
  padding: clamp(64px, 9vw, 132px) 0;
}

.section-tight {
  padding: clamp(40px, 5vw, 72px) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(32px, 4.5vw, 64px);
}

.section-head .lead {
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  max-width: 62ch;
}

.text-lime {
  color: var(--lime);
}

.text-muted {
  color: var(--muted);
}

.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* --------------------------------- buttons ------------------------------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  min-height: 50px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  --btn-bg: var(--lime);
  --btn-fg: #0b0d09;
  --btn-border: var(--lime);
  box-shadow: 0 10px 40px rgba(213, 255, 63, 0.16);
}

.btn-primary:hover {
  box-shadow: 0 16px 56px rgba(213, 255, 63, 0.28);
  background: #e2ff74;
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
  --btn-border: rgba(213, 255, 63, 0.55);
  background: rgba(213, 255, 63, 0.06);
}

.btn-small {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.link-arrow span {
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover {
  color: var(--lime);
  border-bottom-color: rgba(213, 255, 63, 0.4);
}

.link-arrow:hover span {
  transform: translateX(4px);
}

/* --------------------------------- header -------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled,
body.nav-open .site-header {
  background: rgba(8, 9, 8, 0.86);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(213, 255, 63, 0.18);
}

.brand-word {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
  color: var(--ink);
}

.brand:hover .brand-word {
  color: var(--lime);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav > a {
  position: relative;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-nav > a:hover,
.site-nav > a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
}

.site-nav > a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
}

.site-nav .nav-orders {
  color: var(--faint);
}

.site-nav .nav-cta {
  margin-left: 12px;
  padding: 12px 20px;
  min-height: 44px;
  color: #0b0d09;
}

.site-nav .nav-cta:hover {
  background: #e2ff74;
}

.site-nav .nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

body.nav-open .nav-toggle span:first-child {
  transform: translateY(3px) rotate(45deg);
}

body.nav-open .nav-toggle span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* --------------------------------- flashes -------------------------------- */

.flash-stack {
  position: fixed;
  z-index: 90;
  top: calc(var(--header-h) + 12px);
  right: 20px;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 40px));
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--lime);
  border-radius: 12px;
  background: rgba(21, 23, 19, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  font-size: 0.9rem;
  color: var(--ink);
  animation: flashIn 0.35s var(--ease) both;
}

.flash-error {
  border-left-color: var(--danger);
}

.flash-success {
  border-left-color: var(--ok);
}

.flash-info {
  border-left-color: var(--info);
}

.flash-text {
  flex: 1;
}

.flash-close {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}

.flash-close:hover {
  color: var(--ink);
}

/* --------------------------------- hero ---------------------------------- */

.hero {
  position: relative;
  padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 104px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.98fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(21, 23, 19, 0.6);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(213, 255, 63, 0.14);
  animation: pulseDot 3.4s ease-in-out infinite;
}

.hero h1 {
  max-width: 15ch;
}

.hero h1 .hl {
  color: var(--lime);
  text-shadow: 0 0 60px rgba(213, 255, 63, 0.28);
}

.hero-sub {
  margin: 26px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-facts span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.8;
}

.hero-stage {
  position: relative;
  min-height: clamp(400px, 44vw, 560px);
  isolation: isolate;
}

.stage-glow {
  position: absolute;
  inset: 4% -6% 0 -2%;
  background: radial-gradient(circle at 54% 48%, rgba(213, 255, 63, 0.3), rgba(213, 255, 63, 0.08) 40%, transparent 68%);
  filter: blur(28px);
  z-index: 0;
  animation: glowBreathe 9s ease-in-out infinite;
}

.stage-grid {
  position: absolute;
  inset: 8% 2% 4% 2%;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 55% 50%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 55% 50%, #000 20%, transparent 72%);
}

.stage-ring {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 74%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px dashed rgba(213, 255, 63, 0.16);
  border-radius: 50%;
  animation: spinSlow 70s linear infinite;
}

.stage-ring::after {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.stage-parallax {
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}

.tile {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 26%;
  background:
    radial-gradient(110% 85% at 22% 8%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, #e6ff8f 0%, var(--lime) 52%, var(--lime-deep) 100%);
  box-shadow:
    0 6px 0 #7f961f,
    0 11px 0 #6b7f19,
    0 17px 0 #536312,
    0 24px 0 #3d4a0c,
    0 36px 54px rgba(0, 0, 0, 0.55),
    inset 0 2px 8px rgba(255, 255, 255, 0.4),
    inset 0 -12px 24px rgba(76, 96, 16, 0.34);
  animation: tileFloat 9s ease-in-out infinite;
}

.tile svg {
  width: 58%;
  height: 58%;
  overflow: visible;
}

.tile svg path,
.tile svg circle,
.tile svg rect,
.tile svg line,
.tile svg ellipse {
  stroke: #0b0d09;
}

.tile-main {
  width: 57%;
  aspect-ratio: 1.16;
  left: 22%;
  top: 20%;
  z-index: 3;
  animation-duration: 11s;
}

.tile-main svg {
  width: 62%;
  height: 62%;
}

.tile-code,
.tile-db,
.tile-bolt,
.tile-globe {
  box-shadow:
    0 3px 0 #7f961f,
    0 6px 0 #6b7f19,
    0 9px 0 #536312,
    0 13px 0 #3d4a0c,
    0 20px 30px rgba(0, 0, 0, 0.55),
    inset 0 1px 5px rgba(255, 255, 255, 0.4),
    inset 0 -6px 12px rgba(76, 96, 16, 0.34);
}

.tile-code {
  width: 15%;
  aspect-ratio: 1;
  left: 2%;
  top: 10%;
  z-index: 4;
  animation-delay: -1.8s;
}

.tile-db {
  width: 15%;
  aspect-ratio: 1;
  right: 2%;
  top: 10%;
  z-index: 4;
  animation-delay: -4.2s;
}

.tile-bolt {
  width: 15%;
  aspect-ratio: 1;
  left: 6%;
  bottom: 9%;
  z-index: 4;
  animation-delay: -3s;
}

.tile-globe {
  width: 15%;
  aspect-ratio: 1;
  right: 6%;
  bottom: 9%;
  z-index: 4;
  animation-delay: -5.6s;
}

.stage-caption {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1%;
  translate: -50% 0;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 9, 8, 0.7);
  backdrop-filter: blur(8px);
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ------------------------------ услуги (карточки) ------------------------ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(27, 30, 24, 0.6), var(--card));
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(213, 255, 63, 0.32);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(213, 255, 63, 0.08);
}

.service-card-art {
  position: relative;
  aspect-ratio: 640 / 400;
  overflow: hidden;
}

.service-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card-art .art-svg {
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-card-art .art-svg {
  transform: scale(1.025);
}

.service-card:hover .service-card-art img {
  transform: scale(1.035);
}

.service-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 20px;
}

.service-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.service-card-index {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.service-card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.service-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.service-card-price {
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.service-card-price small {
  color: var(--faint);
  font-weight: 600;
  font-size: 0.72rem;
}

.service-card-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.service-card:hover .service-card-arrow {
  background: var(--lime);
  border-color: var(--lime);
  color: #0b0d09;
}

/* ------------------------------ process ---------------------------------- */

.process-block {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.process-visual {
  position: relative;
}

.process-visual img {
  width: 100%;
  height: auto;
}

.process-steps {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.process-step:first-child {
  padding-top: 0;
}

.process-step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.process-step::before {
  content: "0" counter(step);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.process-step:hover::before {
  background: var(--lime);
  border-color: var(--lime);
  color: #0b0d09;
}

.process-step h3 {
  margin-bottom: 6px;
  font-size: 1.12rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ------------------------------ tech strip -------------------------------- */

.tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-chip {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(21, 23, 19, 0.5);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.tech-chip:hover {
  border-color: rgba(213, 255, 63, 0.4);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ------------------------------ цитата/баннер ----------------------------- */

.callout {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 32px;
  padding: clamp(32px, 4.5vw, 56px);
  border: 1px solid rgba(213, 255, 63, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 340px at 88% 10%, rgba(213, 255, 63, 0.16), transparent 60%),
    linear-gradient(140deg, rgba(213, 255, 63, 0.06), rgba(21, 23, 19, 0.5));
}

.callout::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 340px;
  height: 340px;
  border: 1px dashed rgba(213, 255, 63, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.callout h2 {
  max-width: 20ch;
}

.callout p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 56ch;
}

.callout-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  position: relative;
  z-index: 1;
}

/* --------------------------------- FAQ ----------------------------------- */

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  list-style: none;
  transition: color 0.2s var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--lime);
}

.faq-icon {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  translate: -50% -50%;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon {
  background: var(--lime);
  border-color: var(--lime);
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
  background: #0b0d09;
}

.faq-item[open] .faq-icon::after {
  transform: rotate(0);
}

.faq-answer {
  max-width: 78ch;
  padding: 0 4px 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  animation: faqIn 0.3s var(--ease);
}

/* --------------------------------- footer -------------------------------- */

.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 18, 15, 0.4), rgba(8, 9, 8, 0.9));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-top: 56px;
  padding-bottom: 46px;
}

.footer-brand .brand {
  margin-bottom: 18px;
}

.footer-note {
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-meta {
  margin-top: 12px;
  color: var(--faint);
  font-size: 0.78rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer-title {
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col span {
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--lime);
}

.footer-muted {
  color: var(--faint) !important;
  font-size: 0.82rem !important;
}

.footer-cta {
  margin-top: 6px;
  color: var(--ink) !important;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.76rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal a:hover {
  color: var(--ink);
}

/* ------------------------------ reveal-анимации -------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------------ services page ---------------------------- */

.page-hero {
  position: relative;
  padding: clamp(44px, 6vw, 86px) 0 clamp(28px, 4vw, 52px);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -40%;
  width: 56vw;
  height: 56vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle, rgba(213, 255, 63, 0.14), transparent 66%);
  filter: blur(20px);
  pointer-events: none;
}

.page-hero .lead {
  margin-top: 22px;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.pill-lime {
  border-color: rgba(213, 255, 63, 0.35);
  background: rgba(213, 255, 63, 0.08);
  color: var(--lime);
}

.category-block {
  padding: clamp(40px, 5vw, 72px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.category-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  margin-bottom: 34px;
}

.category-visual {
  position: relative;
}

.category-visual img {
  width: 100%;
  height: auto;
}

.category-index {
  color: var(--lime);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.category-head h2 {
  margin-top: 12px;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
}

.category-tagline {
  margin-top: 14px;
  color: var(--muted);
  max-width: 52ch;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.feature-tag {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(140px, 0.5fr) auto;
  align-items: center;
  gap: 24px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s var(--ease), padding 0.25s var(--ease);
}

.service-row:hover {
  background: rgba(213, 255, 63, 0.025);
  padding-left: 12px;
  padding-right: 12px;
}

.service-row h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.service-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.service-more {
  margin-top: 8px;
}

.service-more summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--lime);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  list-style: none;
}

.service-more summary::-webkit-details-marker {
  display: none;
}

.service-more summary::after {
  content: "+";
  font-size: 0.95rem;
  line-height: 1;
}

.service-more[open] summary::after {
  content: "–";
}

.service-more p {
  max-width: 62ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.service-row-price {
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
}

.service-row-price small {
  display: block;
  color: var(--faint);
  font-weight: 600;
  font-size: 0.7rem;
  white-space: nowrap;
}

.service-row .link-arrow {
  font-size: 0.84rem;
  white-space: nowrap;
}

.category-included {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

.included-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.included-card h4 {
  margin-bottom: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.included-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.included-card li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.included-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--lime);
  opacity: 0.85;
}

.included-card.is-excluded li::before {
  background: var(--faint);
}

/* ------------------------------ pricing ---------------------------------- */

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.calculator {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(27, 30, 24, 0.65), var(--card));
  overflow: hidden;
}

.calc-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.calc-progress-step {
  position: relative;
  padding: 15px 18px;
  color: var(--faint);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calc-progress-step + .calc-progress-step {
  border-left: 1px solid var(--line);
}

.calc-progress-step.is-active {
  color: var(--lime);
}

.calc-progress-step.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--lime);
}

.calc-body {
  padding: clamp(20px, 3vw, 32px);
}

.calc-group + .calc-group {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.calc-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.calc-label small {
  color: var(--faint);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
}

.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calc-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.calc-tab:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.calc-tab.is-active {
  border-color: var(--lime);
  background: rgba(213, 255, 63, 0.1);
  color: var(--ink);
}

.calc-services {
  display: grid;
  gap: 8px;
}

.calc-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.calc-service:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.calc-service.is-active {
  border-color: rgba(213, 255, 63, 0.6);
  background: rgba(213, 255, 63, 0.07);
  color: var(--ink);
}

.calc-service b {
  font-weight: 700;
  font-size: 0.9rem;
}

.calc-service span {
  color: var(--faint);
  font-size: 0.78rem;
  white-space: nowrap;
}

.calc-service.is-active span {
  color: var(--lime);
}

.calc-questions {
  display: grid;
  gap: 22px;
}

.question-label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.question-hint {
  margin: -3px 0 9px;
  color: var(--faint);
  font-size: 0.76rem;
}

.question-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-pill,
.check-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.radio-pill input,
.check-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill:hover,
.check-pill:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.radio-pill:has(input:checked),
.check-pill:has(input:checked) {
  border-color: var(--lime);
  background: rgba(213, 255, 63, 0.1);
  color: var(--ink);
}

.radio-pill:has(input:focus-visible),
.check-pill:has(input:focus-visible) {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.question-number {
  display: flex;
  align-items: center;
  gap: 12px;
}

.question-number input[type="range"] {
  flex: 1;
  accent-color: var(--lime);
  height: 4px;
}

.question-number output {
  min-width: 42px;
  color: var(--lime);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.calc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(8, 9, 8, 0.55);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #55584f;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lime);
  background: rgba(8, 9, 8, 0.8);
}

.field-hint {
  color: var(--faint);
  font-size: 0.72rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.checkbox-row input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--lime);
}

.checkbox-row a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(213, 255, 63, 0.5);
  text-underline-offset: 3px;
}

.calc-errors {
  display: none;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 122, 107, 0.4);
  border-radius: 10px;
  background: rgba(255, 122, 107, 0.08);
  color: #ffb3a8;
  font-size: 0.85rem;
}

.calc-errors.is-visible {
  display: block;
}

/* Правая колонка сметы */
.estimate-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border: 1px solid rgba(213, 255, 63, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(213, 255, 63, 0.12), transparent 60%),
    var(--card);
  overflow: hidden;
}

.estimate-head {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line);
}

.estimate-head .eyebrow {
  margin-bottom: 10px;
}

.estimate-range {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.estimate-range.is-changing {
  animation: pricePulse 0.4s var(--ease);
}

.estimate-term {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.estimate-body {
  padding: 20px 24px;
  display: grid;
  gap: 18px;
}

.estimate-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
}

.estimate-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.estimate-list b {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.estimate-included {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.estimate-included h4 {
  margin-bottom: 9px;
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.estimate-included ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.estimate-included li::before {
  content: "— ";
  color: var(--lime);
}

.estimate-note {
  padding: 14px 24px 20px;
  color: var(--faint);
  font-size: 0.72rem;
  line-height: 1.55;
  border-top: 1px solid var(--line);
}

.manager-note {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 204, 102, 0.35);
  border-radius: 8px;
  background: rgba(255, 204, 102, 0.08);
  color: #ffd98f;
  font-size: 0.78rem;
}

.manager-note.is-visible {
  display: block;
}

/* Таблица цен */
.price-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.price-table th,
.price-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.price-table th {
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(21, 23, 19, 0.6);
}

.price-table td {
  color: var(--muted);
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.price-table tr:hover td {
  background: rgba(213, 255, 63, 0.03);
}

.price-table td:nth-child(2) {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.price-table td:last-child {
  text-align: right;
}

.price-table .is-preliminary {
  color: var(--warn);
  font-size: 0.68rem;
}

/* ------------------------------ about ------------------------------------ */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.about-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.about-copy p strong {
  color: var(--ink);
  font-weight: 700;
}

.about-visual {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.about-visual img {
  width: 100%;
  height: auto;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0 0;
}

.about-fact {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.about-fact b {
  display: block;
  margin-bottom: 4px;
  color: var(--lime);
  font-size: 1.05rem;
}

.about-fact span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.principle-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.principle-card:hover {
  border-color: rgba(213, 255, 63, 0.3);
  transform: translateY(-3px);
}

.principle-card .num {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.principle-card h3 {
  margin: 12px 0 8px;
  font-size: 1.02rem;
}

.principle-card p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

/* ------------------------------ contacts --------------------------------- */

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.contact-card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-list b {
  color: var(--ink);
  font-weight: 700;
}

.contact-list a:hover {
  color: var(--lime);
}

.form-card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(27, 30, 24, 0.6), var(--card));
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .field-full {
  grid-column: 1 / -1;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.form-foot .btn {
  min-width: 200px;
}

/* ------------------------------ order lookup ----------------------------- */

.order-lookup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.key-form {
  padding: clamp(24px, 3.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.key-form .field + .field {
  margin-top: 14px;
}

.key-hint {
  margin-top: 14px;
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.55;
}

.access-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.access-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.access-item:hover {
  border-color: rgba(213, 255, 63, 0.35);
  transform: translateY(-2px);
}

.access-item b {
  display: block;
  font-size: 0.95rem;
}

.access-item span {
  color: var(--faint);
  font-size: 0.78rem;
}

.key-callout {
  padding: 16px;
  border: 1px solid rgba(213, 255, 63, 0.4);
  border-radius: 12px;
  background: rgba(213, 255, 63, 0.07);
  margin-bottom: 20px;
}

.key-callout p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.key-value {
  display: block;
  padding: 10px 12px;
  border: 1px dashed rgba(213, 255, 63, 0.45);
  border-radius: 8px;
  background: rgba(8, 9, 8, 0.6);
  color: var(--lime);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.9rem;
  word-break: break-all;
  user-select: all;
}

/* ------------------------------ order page ------------------------------- */

.order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.order-head h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin-top: 8px;
}

.order-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.order-id b {
  color: var(--lime);
}

.order-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.order-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-new,
.status-clarification { color: var(--info); border-color: rgba(143, 184, 255, 0.35); }
.status-estimate_prep,
.status-estimate_ready { color: var(--warn); border-color: rgba(255, 204, 102, 0.35); }
.status-awaiting_approval,
.status-awaiting_payment { color: var(--warn); }
.status-in_progress { color: var(--lime); border-color: rgba(213, 255, 63, 0.4); }
.status-awaiting_client { color: var(--info); }
.status-internal_review { color: var(--info); }
.status-needs_fixes { color: var(--danger); border-color: rgba(255, 122, 107, 0.35); }
.status-done,
.status-completed { color: var(--ok); border-color: rgba(159, 232, 112, 0.35); }
.status-cancelled { color: var(--faint); }

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 24px;
  align-items: start;
  margin-top: 30px;
}

.order-stack {
  display: grid;
  gap: 20px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.panel-head h3 {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-head span {
  color: var(--faint);
  font-size: 0.76rem;
}

.panel-body {
  padding: 22px;
}

.order-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
}

.order-meta div {
  min-width: 0;
}

.order-meta dt {
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.order-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
  word-break: break-word;
}

.prose {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  white-space: pre-line;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  padding: 0 0 20px 24px;
  border-left: 1px solid var(--line);
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.timeline-time {
  color: var(--faint);
  font-size: 0.72rem;
  margin-bottom: 4px;
}

.timeline-text {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.timeline-text b {
  color: var(--ink);
}

.quote-card {
  padding: 18px;
  border: 1px solid rgba(213, 255, 63, 0.3);
  border-radius: 12px;
  background: rgba(213, 255, 63, 0.05);
}

.quote-card + .quote-card {
  margin-top: 12px;
}

.quote-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.quote-amount {
  color: var(--lime);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.quote-version {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-scope {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
  white-space: pre-line;
}

.quote-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.quote-actions form {
  display: contents;
}

.chat {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.msg {
  max-width: 88%;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raised);
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.55;
}

.msg-client {
  justify-self: end;
  border-color: rgba(213, 255, 63, 0.3);
  background: rgba(213, 255, 63, 0.08);
  color: var(--ink);
}

.msg-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 5px;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.msg-body {
  white-space: pre-line;
}

.chat-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.chat-form textarea {
  width: 100%;
  min-height: 84px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  resize: vertical;
}

.chat-form textarea:focus {
  outline: none;
  border-color: var(--lime);
}

.chat-form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.file-list {
  display: grid;
  gap: 8px;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.84rem;
}

.file-row a {
  color: var(--ink);
  font-weight: 600;
}

.file-row a:hover {
  color: var(--lime);
}

.file-row span {
  color: var(--faint);
  font-size: 0.72rem;
  white-space: nowrap;
}

.upload-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.upload-row input[type="file"] {
  flex: 1;
  min-width: 200px;
  color: var(--muted);
  font-size: 0.8rem;
}

.upload-row input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.side-stack {
  display: grid;
  gap: 16px;
}

/* На клиентской странице карточка сметы не должна наезжать на «Следующие шаги» */
.order-layout .side-stack .estimate-card {
  position: static;
}

.side-note {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.side-note h3 {
  margin-bottom: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.side-note p {
  color: var(--faint);
  font-size: 0.82rem;
  line-height: 1.6;
}

.next-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  counter-reset: ns;
}

.next-steps li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  counter-increment: ns;
}

.next-steps li::before {
  content: counter(ns);
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--lime);
  font-size: 0.62rem;
  font-weight: 800;
}

/* ------------------------------ legal ------------------------------------ */

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.legal-body {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.legal-body h2 {
  margin: 34px 0 12px;
  font-size: 1.25rem;
  color: var(--ink);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  max-width: 76ch;
}

.legal-body ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.legal-body li {
  margin-bottom: 6px;
}

.legal-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--faint);
  font-size: 0.8rem;
  line-height: 1.6;
}

.legal-aside b {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

/* ------------------------------ error ------------------------------------ */

.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding: 80px 0;
  text-align: center;
}

.error-code {
  color: var(--lime);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.error-page h1 {
  margin: 18px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.error-page p {
  max-width: 52ch;
  margin: 0 auto 26px;
  color: var(--muted);
}

/* ------------------------------ misc ------------------------------------- */

.empty-state {
  padding: 46px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--faint);
  font-size: 0.9rem;
}

.section-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 30px;
}

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 32px !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ============================== responsive =============================== */

@media (max-width: 1100px) {
  .site-nav > a {
    padding: 10px 9px;
    font-size: 0.86rem;
  }

  .site-nav .nav-orders {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-col:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .container {
    padding: 0 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: grid;
    gap: 2px;
    padding: 14px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 9, 8, 0.97);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav > a {
    padding: 13px 12px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .site-nav > a.is-active::after {
    display: none;
  }

  .site-nav .nav-orders {
    display: block;
  }

  .site-nav .nav-cta {
    margin: 8px 0 0;
    justify-content: center;
  }

  .section-head,
  .category-head,
  .process-block,
  .about-grid,
  .contacts-grid,
  .order-lookup,
  .order-layout,
  .pricing-layout,
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head {
    align-items: start;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .hero-stage {
    min-height: 440px;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  .tile-main {
    width: 54%;
    left: 23%;
    top: 20%;
  }

  .estimate-card {
    position: static;
  }

  .about-visual,
  .legal-aside {
    position: static;
  }

  .category-included {
    grid-template-columns: 1fr;
  }

  .price-table {
    min-width: 560px;
  }

  .callout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .callout-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col:last-child {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.1rem);
  }

  .hero-stage {
    min-height: 360px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-facts {
    gap: 8px 16px;
    font-size: 0.68rem;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card-art {
    aspect-ratio: 16 / 8.4;
  }

  .service-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
  }

  .service-row .link-arrow {
    grid-column: 1 / -1;
    justify-self: start;
    font-size: 0.8rem;
  }

  .service-row-price {
    text-align: right;
  }

  .process-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .process-step::before {
    width: 38px;
    height: 38px;
    font-size: 0.7rem;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .calc-fields,
  .form-grid,
  .about-facts,
  .order-meta {
    grid-template-columns: 1fr;
  }

  .calculator {
    border-radius: 18px;
  }

  .calc-progress-step {
    padding: 12px 10px;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .estimate-range {
    font-size: 1.55rem;
  }

  .callout-actions {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-head {
    flex-direction: column;
  }

  .msg {
    max-width: 94%;
  }

  .chat-form-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .chat-form-foot .btn {
    width: 100%;
  }

  .access-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================== keyframes =============================== */

@keyframes tileFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -13px;
  }
}

@keyframes glowBreathe {
  0%,
  100% {
    opacity: 0.85;
    scale: 1;
  }
  50% {
    opacity: 1;
    scale: 1.05;
  }
}

@keyframes spinSlow {
  to {
    rotate: 360deg;
  }
}

@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(213, 255, 63, 0.14);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(213, 255, 63, 0.04);
  }
}

@keyframes flashIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes pricePulse {
  0%,
  100% {
    opacity: 1;
    transform: none;
  }
  40% {
    opacity: 0.55;
    transform: translateY(-2px);
  }
}

@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* ------------------------------------------------------------------ */
/* Brand illustrations: inline SVG art and its slow motion layer       */
/* ------------------------------------------------------------------ */

.art-svg {
  display: block;
  width: 100%;
  height: auto;
}

.art-svg .sl-glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: artGlow 8s ease-in-out infinite;
}

.art-svg .sl-orbit {
  transform-box: fill-box;
  transform-origin: center;
  animation: artSpin 96s linear infinite;
}

.art-svg .sl-dash {
  animation: artDash 30s linear infinite;
}

.art-svg .sl-float {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}

.art-svg .sl-main {
  animation: artFloat 9s ease-in-out infinite;
}

.art-svg .sl-chip-a {
  animation: artFloat 7.4s ease-in-out -1.1s infinite;
}

.art-svg .sl-chip-b {
  animation: artFloat 8.6s ease-in-out -2.4s infinite;
}

.art-svg .sl-chip-c {
  animation: artFloat 7.9s ease-in-out -0.6s infinite;
}

.art-svg .sl-chip-d {
  animation: artFloat 9.4s ease-in-out -3.2s infinite;
}

@keyframes artGlow {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes artSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes artDash {
  to {
    stroke-dashoffset: -280;
  }
}

@keyframes artFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .stage-parallax,
  .tile,
  .stage-ring,
  .stage-glow {
    transform: none !important;
    translate: 0 0 !important;
    rotate: 0deg !important;
  }

  .art-svg .sl-glow,
  .art-svg .sl-orbit,
  .art-svg .sl-dash,
  .art-svg .sl-float,
  .art-svg .sl-main,
  .art-svg .sl-chip {
    animation: none !important;
    transform: none !important;
  }
}

/* ---------------------------------------------------------------------------
   Режим техработ, приём заказов и объявления
   --------------------------------------------------------------------------- */

.maintenance-bar {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(213, 255, 63, 0.22);
  background:
    radial-gradient(120% 220% at 18% 0%, rgba(213, 255, 63, 0.16), transparent 58%),
    linear-gradient(180deg, #121509 0%, #0a0c08 100%);
}
.maintenance-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(213, 255, 63, 0.10) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: maintSweep 7s linear infinite;
  pointer-events: none;
}
.maintenance-bar.is-unplanned {
  border-bottom-color: rgba(255, 138, 76, 0.28);
  background:
    radial-gradient(120% 220% at 18% 0%, rgba(255, 138, 76, 0.14), transparent 58%),
    linear-gradient(180deg, #170f09 0%, #0a0c08 100%);
}
.maintenance-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 75%);
  pointer-events: none;
}
.maintenance-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 74px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.maintenance-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(213, 255, 63, 0.35);
  background: rgba(213, 255, 63, 0.09);
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
}
.maintenance-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(213, 255, 63, 0.55);
  animation: maintPulse 2.2s ease-out infinite;
}
.is-unplanned .maintenance-badge {
  color: #ffb27a;
  border-color: rgba(255, 138, 76, 0.4);
  background: rgba(255, 138, 76, 0.1);
}
.is-unplanned .maintenance-badge i { background: #ff9a52; }
.maintenance-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.maintenance-copy strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.maintenance-copy span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}
.maintenance-side {
  flex: none;
  display: flex;
  align-items: center;
  gap: 18px;
}
.maintenance-until {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
}
.maintenance-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.25s, background 0.25s;
}
.maintenance-link:hover { border-color: rgba(213, 255, 63, 0.45); background: rgba(213, 255, 63, 0.08); }
.maintenance-link span { color: var(--lime); }

.ordering-bar {
  border-bottom: 1px solid rgba(255, 138, 76, 0.2);
  background: rgba(255, 138, 76, 0.07);
}
.ordering-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 11px;
  padding-bottom: 11px;
  font-size: 0.86rem;
  color: var(--text-soft);
}
.ordering-inner strong { color: #ffbd8f; }
.ordering-inner a { margin-left: auto; color: var(--lime); white-space: nowrap; }
.ordering-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff9a52;
  box-shadow: 0 0 12px rgba(255, 138, 76, 0.65);
}

.form-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 138, 76, 0.32);
  background: rgba(255, 138, 76, 0.08);
  color: #ffc8a3;
  font-size: 0.86rem;
  line-height: 1.45;
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  filter: saturate(0.4);
  box-shadow: none;
  transform: none;
}

.announcements-section { border-top: 1px solid var(--line); }
.announce-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.announce-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(213, 255, 63, 0.07), transparent 60%),
    var(--card);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.announce-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.18); }
.announce-card.is-important {
  border-color: rgba(255, 138, 76, 0.28);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(255, 138, 76, 0.09), transparent 60%),
    var(--card);
}
.announce-card.is-success {
  border-color: rgba(213, 255, 63, 0.24);
}
.announce-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.announce-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}
.is-important .announce-badge { color: #ffab70; }
.announce-date {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.announce-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--text);
}
.announce-card p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  white-space: pre-line;
}

@keyframes maintSweep {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}
@keyframes maintPulse {
  0% { box-shadow: 0 0 0 0 rgba(213, 255, 63, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(213, 255, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(213, 255, 63, 0); }
}

@media (max-width: 900px) {
  .maintenance-inner { flex-wrap: wrap; align-items: flex-start; gap: 12px; }
  .maintenance-copy { flex-basis: calc(100% - 180px); }
  .maintenance-side { width: 100%; justify-content: space-between; }
  .announce-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .maintenance-inner { min-height: 0; padding-top: 14px; padding-bottom: 14px; }
  .maintenance-copy { flex-basis: 100%; }
  .maintenance-side { flex-wrap: wrap; gap: 10px; }
  .announce-grid { grid-template-columns: 1fr; }
  .ordering-inner { flex-wrap: wrap; }
  .ordering-inner a { margin-left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .maintenance-bar::after, .maintenance-badge i { animation: none; }
}

/* -- новости: баннеры и страницы статьи ------------------------------- */
.announce-card.has-banner { padding-top: 0; }
.announce-media {
  display: block;
  margin: 0 -22px 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: #0d0f0b;
  line-height: 0;
}
.announce-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.announce-card.has-banner:hover .announce-media img { transform: scale(1.03); }
.announce-card h3 a { color: inherit; text-decoration: none; }
.announce-card h3 a:hover { color: var(--lime); }
.announce-more { margin-top: auto; }
.inline-link {
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(213, 255, 63, 0.35);
}
.inline-link:hover { border-bottom-color: var(--lime); }
.pill-warn {
  color: #ffab70;
  border-color: rgba(255, 138, 76, 0.35);
}
.news-grid { margin-top: 8px; }
.news-cover {
  margin: 0 0 26px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d0f0b;
  line-height: 0;
}
.news-cover img { display: block; width: 100%; height: auto; object-fit: cover; }
.news-body {
  max-width: 760px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-line;
}
.news-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.news-thumb {
  display: block;
  width: 96px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0d0f0b;
}

/* -- панель: редактирование новости ----------------------------------- */
.w-edit-row > td {
  background: rgba(255, 255, 255, 0.02);
  padding-top: 0;
  padding-bottom: 14px;
}
.w-edit-row details > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 4px 0;
  user-select: none;
}
.w-edit-row details[open] > summary { color: var(--text); }
.w-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
}
.w-check input { width: auto; }

/* -- онлайн-оплата ----------------------------------------------------- */
.pay-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(213, 255, 63, 0.28);
  background: rgba(213, 255, 63, 0.05);
}
.pay-amount { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.pay-warning {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 138, 76, 0.35);
  background: rgba(255, 138, 76, 0.08);
  color: #ffd0b0;
  font-size: 0.82rem;
  line-height: 1.55;
}
.pay-warning strong { color: #ffab70; }
.pay-history { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pay-history li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  font-size: 0.82rem;
  color: var(--muted);
}
.pay-status {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pay-status.is-ok { color: var(--lime); }
.pay-status.is-wait { color: #ffd166; }
.pay-status.is-fail { color: #ff8a4c; }

/* ---------- Запуск и проверка: диагностика ---------- */
.diag-group { margin-top: 18px; }
.diag-group:first-of-type { margin-top: 6px; }
.diag-group h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.diag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.diag-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}
.diag-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--faint);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}
.diag-dot.is-ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(159, 232, 112, 0.16); }
.diag-dot.is-warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(255, 204, 102, 0.16); }
.diag-dot.is-error { background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 122, 107, 0.18); }
.diag-main { min-width: 0; }
.diag-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 0.9rem;
}
.diag-tag {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.diag-tag.is-ok { color: var(--ok); border-color: rgba(159, 232, 112, 0.35); background: rgba(159, 232, 112, 0.08); }
.diag-tag.is-warn { color: var(--warn); border-color: rgba(255, 204, 102, 0.35); background: rgba(255, 204, 102, 0.08); }
.diag-tag.is-error { color: var(--danger); border-color: rgba(255, 122, 107, 0.4); background: rgba(255, 122, 107, 0.1); }
.diag-detail { margin-top: 4px; font-size: 0.84rem; color: var(--muted); overflow-wrap: anywhere; }
.diag-hint { margin-top: 5px; font-size: 0.8rem; color: var(--faint); }

/* Почта: быстрые провайдеры */
.w-form-preset { margin-bottom: 16px; }
.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.preset-row .btn {
  font-size: 0.78rem;
  padding: 7px 12px;
}




