:root {
  --ink: #14181f;
  --ink-soft: #2a313c;
  --muted: #5c6570;
  --paper: #eef1f4;
  --paper-2: #e4e8ed;
  --surface: #ffffff;
  --accent: #c41e3a;
  --accent-ink: #9e1830;
  --line: rgba(20, 24, 31, 0.1);
  --shadow: 0 18px 50px rgba(20, 24, 31, 0.08);
  --radius: 1.25rem;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --max: 70rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

.saas-wrap {
  position: relative;
}

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

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.brand-word b {
  color: var(--accent);
}

.nav-desktop {
  display: none;
  gap: 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.nav-desktop a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.4rem;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0.75rem 0 1rem;
}

.mobile-menu.is-open {
  display: grid;
  gap: 0.35rem;
}

.mobile-menu a,
.mobile-menu button {
  padding: 0.7rem 0;
  font-weight: 600;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

@media (min-width: 900px) {
  .burger {
    display: none;
  }
  .nav-desktop {
    display: flex;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-text {
  background: transparent;
  border-color: transparent;
  color: var(--ink-soft);
  padding-inline: 0.5rem;
}

.btn-text:hover {
  color: var(--accent);
  transform: none;
}

.btn-sm {
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: 6.5rem 0 2.5rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 50% 72%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    var(--paper);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 1.5rem;
}

.hero-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0 auto;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero-line {
  display: block;
}

.hero-line--accent {
  color: var(--accent);
}

.hero-lead {
  margin: 1.15rem auto 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Typewriter (hero + section heads) */
[data-typewriter].is-typing,
[data-typewriter].is-typed {
  white-space: pre-wrap;
}

[data-typewriter].is-typing::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.08em;
  vertical-align: -0.05em;
  background: currentColor;
  animation: typeCaret 0.7s steps(1) infinite;
}

.hero-line[data-typewriter].is-typing::after {
  width: 0.12em;
  height: 0.85em;
  background: var(--accent);
}

@keyframes typeCaret {
  50% {
    opacity: 0;
  }
}

.section-head h2.is-heading-in {
  animation: headingRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes headingRise {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-typewriter].is-typing::after {
    animation: none;
    display: none;
  }
  .section-head h2.is-heading-in {
    animation: none;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-devices {
  position: relative;
  width: min(100% - 1rem, 56rem);
  margin: 1.5rem auto 0;
  z-index: 0;
}

.hero-devices-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(90%, 40rem);
  height: 55%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, #d7dde5);
  filter: blur(8px);
  z-index: -1;
}

.hero-devices img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  animation: devicesIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes devicesIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-head p {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.section-head--pricing {
  max-width: none;
}

.section-head--pricing .pricing-lead {
  white-space: nowrap;
  font-size: clamp(0.78rem, 2.1vw, 1.05rem);
}

.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.band-accent {
  background: linear-gradient(135deg, #1a1f26 0%, #2d1016 100%);
  color: #fff;
}

.band-accent .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.launch-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .launch-row {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }
}

.launch-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.launch-points li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.launch-points li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

/* —— Integrations feature strips —— */
.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-row {
  display: grid;
  gap: 0.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 720px) {
  .feature-row {
    grid-template-columns: 12rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}

.feature-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.feature-row p {
  margin: 0;
  color: var(--muted);
}

.soon {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

/* —— Services with device mockups —— */
.service-stack {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: calc(var(--radius) + 0.35rem);
  background:
    radial-gradient(circle at 1px 1px, rgba(20, 24, 31, 0.06) 1px, transparent 0) 0 0 / 18px 18px,
    #f5f6f8;
  border: 1px solid var(--line);
  overflow: hidden;
}

@media (min-width: 860px) {
  .service-card {
    grid-template-columns: minmax(14rem, 0.95fr) 1.15fr;
    gap: 2rem;
    min-height: 20rem;
  }

  .service-card:nth-child(even) .service-copy {
    order: 2;
  }

  .service-card:nth-child(even) .service-mock {
    order: 1;
  }
}

.service-copy h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.service-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
}

.service-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-weight: 700;
  color: var(--ink-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  padding-bottom: 0.1rem;
}

.service-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.service-link.is-muted {
  border-bottom: 0;
  color: var(--muted);
  font-weight: 600;
  cursor: default;
}

.service-mock {
  display: grid;
  place-items: center;
  min-height: 14rem;
}

.service-mock img {
  width: min(100%, 28rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 35px rgba(20, 24, 31, 0.14));
  transition: transform 0.35s ease;
}

.service-mock--phone img {
  width: min(100%, 15rem);
}

.service-mock--kiosk img {
  width: min(100%, 16rem);
}

.service-card:hover .service-mock img {
  transform: translateY(-4px);
}

/* —— Functional CTA banner —— */
.func-banner {
  margin: 0;
  padding: 3.5rem 0;
  background: var(--accent);
  color: #fff;
  text-align: center;
}

.func-banner-inner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
}

.func-banner-inner p {
  margin: 0.75rem auto 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.92);
}

.func-banner-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.35rem;
}

.func-banner-arrow {
  position: absolute;
  left: -2rem;
  top: -0.35rem;
  font-size: 1.6rem;
  transform: rotate(12deg);
  opacity: 0.95;
}

.func-banner .btn-light {
  color: var(--accent-ink);
  min-width: 10rem;
}

/* —— Functional modal —— */
.func-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.func-modal[hidden] {
  display: none !important;
}

.func-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 18, 0.55);
  backdrop-filter: blur(4px);
}

.func-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
  max-height: min(90vh, 52rem);
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.func-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
}

.func-modal .func-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.func-modal-dialog > h2 {
  margin: 0;
  padding-right: 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
}

.func-modal .func-lead {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.func-modal .func-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.95rem;
  margin: 1.15rem 0 0.5rem;
  padding: 0.85rem 0;
  border-block: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 700;
}

.func-modal .func-toc a:hover {
  color: var(--accent);
}

.func-modal .func-block {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.func-modal .func-block h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.func-modal .func-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.func-modal .func-block li {
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding-left: 0.85rem;
  border-left: 3px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.func-modal-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

body.func-modal-open,
body.auth-modal-open {
  overflow: hidden;
}

/* —— Auth modal (регистрация / вход) —— */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 18, 0.55);
  backdrop-filter: blur(4px);
  /* Закрытие только крестиком — клик по фону игнорируется */
  pointer-events: auto;
}

.auth-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 26rem);
  max-height: min(92vh, 44rem);
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  border-radius: calc(var(--radius) + 0.25rem);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.auth-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  z-index: 3;
  flex-shrink: 0;
}

.auth-modal-close:hover {
  border-color: var(--ink);
}

.auth-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 1.5rem 1.35rem 1.35rem;
  -webkit-overflow-scrolling: touch;
}

.auth-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-modal-body > h2 {
  margin: 0;
  padding-right: 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  letter-spacing: -0.03em;
}

.auth-lead {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 1.1rem 0 1rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 55%, transparent);
}

.auth-tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 2.35rem;
  cursor: pointer;
}

.auth-tab.is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.auth-form {
  display: grid;
  gap: 0.75rem;
}

.auth-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.auth-message {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.9rem;
}

.auth-message.is-err {
  color: #b42318;
}

.auth-message.is-ok {
  color: #027a48;
}

button.service-link {
  font: inherit;
  background: transparent;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  cursor: pointer;
  text-align: left;
}

/* —— Capabilities grid —— */
.cap-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .cap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cap-item {
  padding: 1.25rem 0;
  border-top: 2px solid var(--ink);
}

.cap-item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.cap-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* —— Pricing (cards = interactive choice) —— */
.billing-toggle {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--paper-2);
  margin-bottom: 1.75rem;
  gap: 0.2rem;
}

.billing-toggle button {
  border: 0;
  background: transparent;
  min-height: 2.4rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--muted);
  cursor: pointer;
}

.billing-toggle button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.price-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.price-card:hover {
  transform: translateY(-3px);
}

.price-card.is-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, #fff5f6 100%);
}

.price-card .eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-card h3 {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.price-card .amount {
  margin: 1rem 0 0.35rem;
  font-family: var(--font-body);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.price-card .amount small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.price-card .amount[data-year] {
  display: none;
}

body.billing-year .price-card .amount[data-month] {
  display: none;
}

body.billing-year .price-card .amount[data-year] {
  display: block;
}

.price-card ul {
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  color: var(--ink-soft);
  flex: 1;
}

.price-card li {
  padding-left: 1.1rem;
  position: relative;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* —— Cases / demo shot —— */
.case-demo {
  display: grid;
  gap: 1.1rem;
  justify-items: center;
  text-align: center;
}

.case-demo-copy {
  max-width: 36rem;
}

.case-demo-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  letter-spacing: -0.02em;
}

.case-demo-copy p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.case-shot {
  display: block;
  width: min(100%, 52rem);
  border-radius: 1.15rem;
  overflow: hidden;
  background: #121212;
  box-shadow:
    0 22px 56px rgba(12, 14, 18, 0.2),
    0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}

.case-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.case-demo-cta {
  margin: 0;
  font-weight: 700;
}

.case-demo-cta a:hover {
  color: var(--accent);
}

/* —— Steps —— */
.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step {
  display: grid;
  gap: 0.4rem;
  padding: 1.25rem 0 1.25rem 3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* —— FAQ —— */
.faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 46rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  padding: 0.2rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.contact-meta {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.5rem;
  color: var(--ink-soft);
}

.contact-meta a {
  color: var(--accent-ink);
  font-weight: 700;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-color: var(--accent);
}

#form-message {
  min-height: 1.25rem;
  margin: 0.4rem 0 0.8rem;
  font-size: 0.92rem;
}

#form-message.is-ok {
  color: #1f7a45;
}

#form-message.is-err {
  color: var(--accent-ink);
}

/* —— Footer —— */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h4 {
  margin: 0 0 0.6rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

/* —— Motion —— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-devices img,
  .reveal,
  .price-card,
  .btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .reveal {
    opacity: 1;
  }
}

/* —— Catalog demo (landing) —— */
.catalog-demo-page {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(196, 30, 58, 0.08), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(20, 24, 31, 0.06), transparent 55%),
    var(--paper);
  transition: background 0.35s ease, color 0.35s ease;
}

html[data-catalog-theme="dark"] .catalog-demo-page {
  --ink: #f0f0f0;
  --ink-soft: #d4d4d4;
  --muted: #9c9c9c;
  --paper: #141414;
  --paper-2: #1c1c1c;
  --surface: #222222;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 10% -8%, rgba(196, 30, 58, 0.18), transparent 58%),
    radial-gradient(720px 420px at 100% 0%, rgba(255, 255, 255, 0.04), transparent 55%),
    var(--paper);
}

html[data-catalog-theme="dark"] .catalog-demo-page .site-header {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom-color: var(--line);
}

html[data-catalog-theme="dark"] .catalog-demo-page .site-header.is-scrolled {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

html[data-catalog-theme="dark"] .catalog-demo-page .catalog-demo-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

html[data-catalog-theme="dark"] .catalog-demo-page .catalog-demo-modal-panel {
  background: var(--surface);
  color: var(--ink);
}

html[data-catalog-theme="dark"] .catalog-demo-page .site-footer {
  color: var(--muted);
  border-top-color: var(--line);
}

.catalog-theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
}

.catalog-theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.catalog-theme-toggle .icon-sun,
.catalog-theme-toggle .icon-moon {
  display: none;
}

html[data-catalog-theme="dark"] .catalog-theme-toggle .icon-sun {
  display: block;
}

html[data-catalog-theme="light"] .catalog-theme-toggle .icon-moon,
html:not([data-catalog-theme]) .catalog-theme-toggle .icon-moon {
  display: block;
}

html[data-catalog-theme="dark"] .catalog-demo-thumb {
  background: #1a1a1a;
}

.catalog-demo {
  padding: 6.5rem 0 4rem;
}

.catalog-demo-hero {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.catalog-demo-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.catalog-demo-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
}

.catalog-demo-lead {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.catalog-demo-notice {
  margin: 0 0 0.85rem;
  max-width: 42rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
  color: #1faa5a;
}

html[data-catalog-theme="dark"] .catalog-demo-notice {
  color: #3dde7a;
}

.catalog-demo-meta {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.catalog-demo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 2rem;
  position: sticky;
  top: 4.5rem;
  z-index: 20;
  padding: 0.65rem 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
}

.catalog-demo-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 0.65rem;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.catalog-demo-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.catalog-demo-chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.catalog-demo-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 7.5rem;
}

.catalog-demo-section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.catalog-demo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
}

@media (min-width: 720px) {
  .catalog-demo-grid {
    grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
    gap: 1.15rem;
  }
}

.catalog-demo-card {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.catalog-demo-card:hover,
.catalog-demo-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  outline: none;
}

.catalog-demo-thumb {
  aspect-ratio: 1;
  background: #1a1f27;
  overflow: hidden;
}

.catalog-demo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-demo-ph {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, #2a313c, #1a1f27 60%);
}

.catalog-demo-body {
  padding: 0.75rem 0.85rem 1rem;
}

.catalog-demo-body h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  line-height: 1.25;
}

.catalog-demo-body p {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.catalog-demo-price {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent-ink);
}

.catalog-demo-cta {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, #1a1f27 0%, #2a313c 55%, #3a1820 100%);
  color: #f4f6f8;
}

@media (min-width: 720px) {
  .catalog-demo-cta {
    grid-template-columns: 1.4fr auto;
    padding: 2rem 2.25rem;
  }
}

.catalog-demo-cta h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.catalog-demo-cta p {
  margin: 0;
  color: rgba(244, 246, 248, 0.78);
  max-width: 36rem;
}

.catalog-demo-cta .btn-primary {
  justify-self: start;
}

.catalog-demo-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.catalog-demo-modal[hidden] {
  display: none !important;
}

.catalog-demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.62);
}

.catalog-demo-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  max-height: min(92vh, 44rem);
  overflow: auto;
  background: var(--surface);
  border-radius: calc(var(--radius) + 0.15rem);
  box-shadow: var(--shadow);
}

.catalog-demo-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.catalog-demo-modal-media {
  position: relative;
  background: #12161c;
}

.catalog-demo-modal-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.catalog-demo-variants {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  gap: 0.45rem;
  justify-content: center;
}

.catalog-demo-variant {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(18, 22, 28, 0.72);
  color: #f4f6f8;
  backdrop-filter: blur(8px);
}

.catalog-demo-variant.is-active {
  background: #f4f6f8;
  color: #12161c;
}

.catalog-demo-modal-copy {
  padding: 1.15rem 1.25rem 1.4rem;
}

.catalog-demo-modal-copy h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.catalog-demo-modal-meta {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.catalog-demo-modal-copy > p:not(.catalog-demo-modal-meta):not(.catalog-demo-modal-price):not(.catalog-demo-modal-note) {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.catalog-demo-modal-note {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.catalog-demo-modal-price {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-ink);
}

/* —— Pricing docs link —— */
.pricing-docs {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.pricing-docs a {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* —— Prices / requisites page —— */
.prices-page .prices-main {
  padding-top: 5.5rem;
}

.prices-hero h1 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.prices-lead {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
}

.prices-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.prices-table {
  width: 100%;
  min-width: 40rem;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 1rem;
}

.prices-table .col-tariff {
  width: 18%;
}

.prices-table .col-period {
  width: 20.5%;
}

/* Вертикальная зебра по периодам */
.prices-table thead th:nth-child(2),
.prices-table tbody td:nth-child(2),
.prices-table thead th:nth-child(4),
.prices-table tbody td:nth-child(4) {
  background: color-mix(in srgb, var(--paper) 72%, var(--surface));
}

.prices-table thead th:nth-child(3),
.prices-table tbody td:nth-child(3),
.prices-table thead th:nth-child(5),
.prices-table tbody td:nth-child(5) {
  background: var(--surface);
}

.prices-table thead th:nth-child(5),
.prices-table tbody td:nth-child(5) {
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.prices-table th,
.prices-table td {
  padding: 1.15rem 1rem;
  white-space: nowrap;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.prices-table thead th {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-align: center;
  border-bottom: 2px solid var(--line);
  border-left: 1px solid var(--line);
}

.prices-table thead th:first-child {
  text-align: left;
  border-left: 0;
  background: color-mix(in srgb, var(--paper) 55%, var(--surface));
  color: var(--muted);
}

.prices-table tbody th {
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink);
  text-align: left;
  background: color-mix(in srgb, var(--paper) 40%, var(--surface));
  border-right: 1px solid var(--line);
}

.prices-table tbody td {
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  color: var(--ink);
  border-left: 1px solid var(--line);
}

.prices-table tbody tr:last-child th,
.prices-table tbody tr:last-child td {
  border-bottom: 0;
}

.prices-table tbody tr:hover td:nth-child(2),
.prices-table tbody tr:hover td:nth-child(4) {
  background: color-mix(in srgb, var(--paper) 55%, var(--accent) 8%);
}

.prices-table tbody tr:hover td:nth-child(3) {
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.prices-table tbody tr:hover td:nth-child(5) {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

.prices-note {
  margin: 1.1rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.prices-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.rekvizity-list {
  max-width: 26rem;
  margin: 0;
  padding: 0.35rem 1.35rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rekvizity-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.rekvizity-row:last-child {
  border-bottom: 0;
}

.rekvizity-k {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.rekvizity-v {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
  .rekvizity-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
