/* ScanViewer — страница ПО в стиле sitech */

.sv-page .about-lead .thesis {
  max-width: none;
  width: 100%;
}

.sv-scroll-top {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 90;
  display: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--neon-green);
  cursor: pointer;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
  transition: color 0.15s, transform 0.12s;
}

.sv-scroll-top:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.sv-scroll-top svg {
  display: block;
  width: clamp(36px, 5vw, 44px);
  height: auto;
}

.sv-cover {
  margin: clamp(12px, 2vw, 20px) 0 0;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
}

.sv-cover img {
  display: block;
  width: 100%;
  max-height: min(52vh, 420px);
  object-fit: cover;
}

.sv-prose {
  margin-top: clamp(14px, 2vw, 22px);
  color: var(--ink);
  font-size: var(--t-base);
  line-height: 1.65;
}

.sv-prose p + p {
  margin-top: 1em;
}

.sv-prose h3 {
  margin: clamp(20px, 3vw, 32px) 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
}

.sv-prose h3:first-child {
  margin-top: 0;
}

.sv-media {
  margin: clamp(16px, 2.5vw, 24px) 0;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  border: 1px solid var(--line);
}

.sv-media img,
.sv-media video {
  display: block;
  width: 100%;
  height: auto;
}

.sv-product {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  margin-top: clamp(16px, 2.5vw, 24px);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 12px);
  background: color-mix(in srgb, var(--bg-tile) 88%, transparent);
}

.sv-product__logo {
  flex-shrink: 0;
  width: clamp(72px, 12vw, 112px);
  height: auto;
  border-radius: 16px;
}

.sv-product__body {
  flex: 1 1 200px;
  min-width: 0;
}

.sv-product__body h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: var(--ink);
}

.sv-product__body p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.sv-product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fe-docs-btn-gap, clamp(0.75rem, 1.8vw, 1.5625rem));
  width: 100%;
}

.sv-product__actions .btn {
  flex: 1 1 140px;
  justify-content: center;
  text-align: center;
}

.sv-registry {
  width: 100%;
  margin: 0;
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--ink-soft);
}

.sv-registry a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sv-registry a:hover {
  color: var(--neon-green);
}

.sv-docs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fe-docs-btn-gap, clamp(0.75rem, 1.8vw, 1.5625rem));
  margin-top: clamp(14px, 2vw, 20px);
}

.sv-docs .btn {
  flex: 1 1 200px;
  justify-content: center;
  text-align: center;
}

.sv-request {
  margin-top: clamp(14px, 2vw, 20px);
}

.sv-request.is-highlight .stage__body {
  animation: sv-highlight 2s ease;
}

@keyframes sv-highlight {
  0%, 100% { box-shadow: none; }
  15%, 85% { box-shadow: 0 0 0 2px var(--neon-green), 0 0 24px color-mix(in srgb, var(--neon-green) 35%, transparent); }
}

.sv-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

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

  .sv-form-grid label:first-child {
    grid-column: 1 / -1;
  }
}

.sv-form-grid label {
  display: block;
}

.sv-form-grid input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: var(--t-base);
  color: var(--ink);
  background: var(--bg-stage);
}

.sv-form-grid input:focus {
  outline: none;
  border-color: var(--neon-green);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--neon-green) 25%, transparent);
}

.sv-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 18px;
}

.sv-form-error {
  margin: 0;
  font-size: var(--t-sm);
  color: var(--neon-orange);
}

.sv-contacts {
  margin-top: clamp(20px, 3vw, 28px);
  padding-top: clamp(16px, 2.5vw, 22px);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--t-sm);
  line-height: 1.6;
}

.sv-contacts p {
  margin: 0 0 6px;
}

.sv-contacts a {
  color: inherit;
  text-decoration: none;
}

.sv-contacts a:hover {
  color: var(--neon-green);
}

.sv-map {
  margin-top: clamp(12px, 2vw, 18px);
  min-height: 320px;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  border: 1px solid var(--line);
}

.sv-map iframe,
.sv-map > div {
  width: 100% !important;
  min-height: 320px;
}
