:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --border: #1f1f1f;
  --fg: #f4f6f5;
  --muted: #a1a8a5;
  --brand: #089f1b;
  --brand-deep: #108822;
  --glow: #00ff3b;
  --glow-border: #39ff56;
  --outline: #01e500;
  --on-brand: #111111;
  --page-bg: #ffffff;
  --page-fg: #111111;
  --topbar-fg: #149a4e;
  --container: 1240px;
  --gutter: 24px;
  --radius: 12px;
  --radius-pill: 999px;
  --t: 200ms;
  --font: Rubik, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.55 var(--font);
  color: var(--fg);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--glow); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 2px;
}
h1, h2, h3 { margin: 0 0 0.5em; font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 8px 12px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.accent { color: var(--glow); }
.muted { color: var(--muted); }
.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52rem;
  margin-bottom: 1.5rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--brand);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.brand-line {
  color: var(--glow);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.section-cta { margin-top: 1.5rem; }

/* Header */
.site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding-block: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--fg);
  text-decoration: none;
}
.logo:hover { color: var(--fg); }
.logo-mark,
.logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo__text { display: flex; flex-direction: column; gap: 2px; }
.logo__name {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}
.logo__tags {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-pill {
  display: none;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
  padding: 6px 8px;
  background: var(--brand);
  border-radius: var(--radius-pill);
}
.nav-pill a {
  color: var(--on-brand);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.nav-pill a:hover {
  background: rgba(0, 0, 0, 0.18);
  color: var(--on-brand);
}

.header-contacts {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.8rem;
  color: var(--topbar-fg);
}
.header-contacts a { color: var(--fg); }
.header-contacts__hours { color: var(--muted); }
.header-contacts__messengers {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
}
.icon-btn:hover {
  border-color: var(--glow-border);
  color: var(--glow);
}

.menu-toggle {
  margin-left: auto;
  padding: 10px 16px;
  border: 1px solid var(--glow-border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--fg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.mobile-nav[hidden] {
  display: none !important;
}
.mobile-nav a {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .nav-pill { display: flex; }
  .header-contacts { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  transition: background var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}
.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  border: 1px solid var(--brand);
}
.btn-primary:hover {
  background: var(--glow);
  color: var(--on-brand);
  box-shadow: 0 0 20px rgba(0, 255, 59, 0.25);
}
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--outline);
}
.btn-outline:hover {
  border-color: var(--glow);
  color: var(--glow);
}
.btn-block { width: 100%; }

/* Sections */
.section {
  position: relative;
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.section:last-of-type { border-bottom: 0; }
.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.88)),
    var(--section-bg) center / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}
.has-bg > .container { position: relative; z-index: 1; }

/* Hero */
.hero {
  padding-top: 56px;
  padding-bottom: 80px;
  min-height: clamp(28rem, 58vw, 46rem);
}
.hero__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 0.95fr 1.15fr; }
}
.hero__sub {
  font-size: 1.35rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.hero__bullets {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.hero__bullets li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
}
.hero__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7em;
  height: 0.7em;
  background: var(--glow);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(0, 255, 59, 0.08);
}

/* Grids */
.grid-2, .grid-3, .grid-4, .grid-5 {
  display: grid;
  gap: 16px;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-5 { grid-template-columns: 1fr 1fr; }
@media (min-width: 600px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

.card, .tile, .service-row, figure, .why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card--feature { padding: 0; transition: border-color var(--t), box-shadow var(--t); }
.card--feature:hover {
  border-color: var(--glow-border);
  box-shadow: 0 0 24px rgba(0, 255, 59, 0.1);
}
.card--feature img {
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
}
.card--feature__body { padding: 14px 14px 16px; }
.card--feature h3 { margin-bottom: 0.35em; font-size: 1rem; }
.card--feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.tile { padding: 20px 16px; text-align: center; }
.tile img { width: 64px; height: 64px; margin: 0 auto 12px; object-fit: contain; }
.tile p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Services */
.services__title { max-width: 28ch; }
.services__lead { max-width: 60ch; }
.stack-gap { display: grid; gap: 20px; margin-bottom: 8px; }
.service-row {
  display: grid;
  gap: 20px;
  padding: 16px;
  background: rgba(10, 10, 10, 0.85);
}
@media (min-width: 700px) {
  .service-row { grid-template-columns: 300px 1fr; align-items: center; }
  .service-row--alt { grid-template-columns: 1fr 300px; }
  .service-row--alt img { order: 2; }
}
.service-row img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
}
.service-row p {
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 42ch;
}

/* Use cases */
.usecases__gallery figure { margin: 0; }
.usecases__gallery img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.usecases__gallery figcaption {
  padding: 10px 12px 14px;
  color: var(--muted);
  font-size: 0.85rem;
}
.usecases__copy {
  margin-top: 2rem;
  max-width: 48rem;
}
.usecases__q {
  color: var(--glow);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.usecases__copy p { color: var(--muted); }

/* Pricing */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 10, 10, 0.85);
}
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
th {
  background: rgba(8, 159, 27, 0.12);
  color: var(--brand);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(0, 255, 59, 0.03); }
td:last-child {
  color: var(--glow);
  font-weight: 600;
  white-space: nowrap;
}

/* Why convenient */
.why-card { position: relative; min-height: 260px; }
.why-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  aspect-ratio: 16/10;
}
.why-card__text {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92) 35%);
}
.why-card__text h3 { margin-bottom: 0.4em; }
.why-card__text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Portfolio */
.masonry {
  columns: 2;
  column-gap: 12px;
}
@media (min-width: 900px) { .masonry { columns: 3; } }
.masonry img {
  width: 100%;
  margin-bottom: 12px;
  break-inside: avoid;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Lead form */
.lead-form__grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .lead-form__grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}
.lead-form__promise {
  color: var(--glow);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.lead-form__side {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 3/4;
  object-fit: cover;
  max-height: 720px;
}
.form {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}
.form input,
.form textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}
.form input:focus,
.form textarea:focus {
  border-color: var(--glow-border);
  outline: none;
}
.form textarea { min-height: 120px; resize: vertical; }
.form .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}
.form .check input { margin-top: 3px; flex-shrink: 0; }
.form .check a { color: var(--glow); text-decoration: underline; }

.file-drop {
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  transition: border-color var(--t);
}
.file-drop.is-dragover { border-color: var(--glow); }
.file-drop__label {
  display: grid !important;
  gap: 6px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
}
.file-drop__title { color: var(--fg); font-weight: 600; }
.file-drop__hint { color: var(--muted); font-size: 0.85rem; }
.file-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.file-drop { position: relative; }
.file-drop__list {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 0.85rem;
}

/* About */
.about__grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1fr 1.15fr; align-items: start; }
}
.about__copy p { color: var(--muted); }
.about-collage {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}
.about-collage img:first-child {
  grid-row: span 2;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  aspect-ratio: auto;
}
.about-collage img {
  border-radius: 8px;
  border: 1px solid var(--border);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
@media (max-width: 700px) {
  .about-collage { grid-template-columns: 1fr 1fr; }
  .about-collage img:first-child {
    grid-column: span 2;
    grid-row: auto;
    aspect-ratio: 16/9;
  }
}

/* Steps */
.step { position: relative; padding-top: 24px; }
.step__ring {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1px solid var(--glow-border);
  display: grid;
  place-items: center;
  box-shadow: 0 0 18px rgba(0, 255, 59, 0.12);
}
.step__ring img { width: 48px; height: 48px; margin: 0; }
.step__num {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

/* FAQ */
.accordion details {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--surface);
  transition: border-color var(--t);
}
.accordion details[open] { border-color: var(--glow-border); }
.accordion summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  color: var(--glow);
  font-size: 1.25rem;
  line-height: 1;
}
.accordion details[open] summary { color: var(--glow); }
.accordion details[open] summary::after { content: "–"; }
.accordion p {
  padding: 0 18px 16px;
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}

/* Contacts */
.contacts__lead { max-width: 42rem; }
.contacts__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.75rem;
}
.contacts__grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 800px) {
  .contacts__grid { grid-template-columns: 0.85fr 1.35fr; }
}
.contacts__info {
  display: grid;
  gap: 16px;
}
.contacts__block {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 10, 10, 0.85);
}
.contacts__block h3 {
  margin-bottom: 0.35em;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}
.contacts__block p { margin: 0; }
.contacts__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 360px;
  background: var(--surface);
}
.contacts__map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  filter: grayscale(0.2) contrast(1.05);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 64px;
  background: var(--surface);
  font-size: 0.9rem;
}
.site-footer__grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 800px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1.4fr 1fr; }
}
.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer__legal a { color: var(--muted); }
.site-footer__legal a:hover { color: var(--glow); }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.footer-social a { color: var(--muted); font-weight: 600; }

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glow-border);
  background: rgba(10, 10, 10, 0.9);
  color: var(--glow);
}
.to-top[hidden] { display: none; }

@media (max-width: 390px) {
  :root { --gutter: 16px; }
  .hero__actions .btn { width: 100%; }
  .section { padding: 56px 0; }
}

/* Legal paper theme — scoped so home dark theme stays intact */
body.legal {
  color: var(--page-fg);
  background: var(--page-bg);
}
body.legal a:hover { color: var(--brand-deep); }

.legal-header {
  border-bottom: 1px solid #e5e7e6;
  background: var(--page-bg);
}
.legal-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding-block: 10px;
  flex-wrap: wrap;
}
.legal-header .logo { color: var(--page-fg); }
.legal-header .logo:hover { color: var(--page-fg); }
.legal-header .logo img {
  width: 40px;
  height: 40px;
}
.legal-header .logo__name {
  color: var(--page-fg);
  font-size: 1.05rem;
}
.legal-header__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--topbar-fg);
}
.legal-header__contacts a { color: var(--page-fg); }
.legal-header__contacts a:hover { color: var(--brand-deep); }
.legal-header__home {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brand-deep);
  white-space: nowrap;
}
.legal-header__home:hover { color: var(--brand); }

.legal-doc {
  max-width: 760px;
  padding: 40px var(--gutter) 64px;
  font-size: 16px;
  line-height: 1.6;
}
.legal-doc h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 0.35em;
  color: var(--page-fg);
}
.legal-doc h2 {
  font-size: 1.25rem;
  margin-top: 1.75em;
  margin-bottom: 0.65em;
  color: var(--page-fg);
}
.legal-doc p { color: #222; }
.legal-doc ul,
.legal-doc ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}
.legal-doc li { margin-bottom: 0.35em; }
.legal-meta {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.legal-operator {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7e6;
}
.legal-operator h2 { margin-top: 0; }
.legal-doc a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.legal .site-footer {
  color: var(--fg);
  background: var(--surface);
}
body.legal .site-footer a { color: var(--muted); text-decoration: none; }
body.legal .site-footer a:hover { color: var(--glow); }
body.legal .site-footer .muted { color: var(--muted); }

/* Motion — transform/opacity only; layout unchanged */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 300ms; }

.hero__copy.reveal { transition-duration: 0.7s; }
.hero__media.reveal { transition-duration: 0.8s; transition-delay: 120ms; }

.card--feature:hover,
.tile:hover,
.service-row:hover {
  border-color: rgba(57, 255, 86, 0.45);
  box-shadow: 0 0 24px rgba(0, 255, 59, 0.08);
}
.masonry img {
  transition: transform 0.35s ease, border-color var(--t);
}
.masonry img:hover {
  transform: translateY(-3px);
  border-color: var(--glow-border);
}

.to-top {
  transition: opacity 0.25s ease, transform 0.25s ease, border-color var(--t);
}
.to-top:not([hidden]) {
  animation: fadeInFab 0.3s ease both;
}
@keyframes fadeInFab {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal.is-in,
  .hero__copy.reveal,
  .hero__media.reveal,
  .masonry img,
  .to-top,
  .btn {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
