* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #0f1a2a;
  background: #f7f9fc;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: #0b1b35;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 6px 20px rgba(10, 20, 40, 0.2);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.9;
}

.logo-img {
  height: 70px;
  width: auto;
  display: block;
}

/* Для темного фона шапки - инвертируем для белого текста, возвращаем оранжевый цвет графики, убираем черный фон */
.site-header .logo-img {
  filter: invert(1) hue-rotate(180deg) brightness(1.05);
  mix-blend-mode: screen;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.nav a {
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.nav a:hover {
  border-bottom-color: #4bb5ff;
}

.nav .lang-link {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav .lang-link:hover {
  border-bottom-color: transparent;
  border-color: #4bb5ff;
}

.hero {
  padding: 72px 0;
  background: linear-gradient(120deg, #0b1b35 0%, #162b52 55%, #1f3d7a 100%);
  color: #fff;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 16px;
}

.lead {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: #4bb5ff;
  color: #0b1b35;
  box-shadow: 0 10px 20px rgba(75, 181, 255, 0.3);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* display: inline-flex у .btn перебивает нативный [hidden] */
.btn[hidden] {
  display: none !important;
}

.btn:hover {
  transform: translateY(-1px);
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-card h3 {
  margin-bottom: 12px;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: #eef3fb;
}

.section h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 16px;
}

.section-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(15, 26, 42, 0.08);
}

.card.highlight {
  border: 2px solid #4bb5ff;
}

.card ul {
  margin-top: 12px;
  padding-left: 18px;
}

.feature-grid,
.stack-grid,
.steps,
.compare {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.feature-grid,
.stack-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature,
.stack-item,
.step,
.compare > div {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(15, 26, 42, 0.08);
}

.two-col {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 24px;
}

.compare {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 32px;
}

.steps {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.step span {
  display: inline-flex;
  background: #4bb5ff;
  color: #0b1b35;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.footer {
  background: #0b1b35;
  color: #fff;
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}

.footer .btn.primary {
  background: #fff;
  color: #0b1b35;
}

.footer a {
  color: #fff;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.footer a:hover {
  opacity: 0.8;
}

.footer-bottom {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
}

.footer-bottom > p {
  margin: 0;
}

.footer-bottom .footer-copyright {
  opacity: 0.7;
  margin-top: 10px;
}

@media (max-width: 820px) {
  .header-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Страница сведений по приказу № 511 */
.legal-page .legal-main {
  padding: 48px 0 64px;
}

.legal-intro {
  margin-bottom: 40px;
}

.legal-intro h1 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 16px;
  line-height: 1.3;
}

.legal-lead {
  font-size: 17px;
  color: #3a4a62;
  max-width: 72ch;
  margin-bottom: 24px;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.legal-toc a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d8e2f0;
  color: #0f1a2a;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(15, 26, 42, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.legal-toc a:hover {
  border-color: #4bb5ff;
  background: #f3f9ff;
}

.legal-section {
  margin-bottom: 48px;
  scroll-margin-top: 150px;
}

.legal-section h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #4bb5ff;
}

.legal-section h3 {
  font-size: 18px;
  margin: 20px 0 10px;
}

.legal-list {
  margin: 12px 0 0 1.25rem;
  display: grid;
  gap: 10px;
}

.legal-list li {
  padding-left: 4px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(15, 26, 42, 0.08);
  font-size: 15px;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e2e8f2;
  line-height: 1.65;
}

.data-table .cell-long-text {
  max-width: none;
}

.data-table thead th {
  background: #eef3fb;
  font-weight: 600;
}

.data-table tbody th[scope="row"] {
  width: 28%;
  min-width: 140px;
  background: #f9fbfe;
  font-weight: 600;
}

.data-table a {
  color: #1a5fb4;
  text-decoration: underline;
}

.data-table a:hover {
  color: #0b1b35;
}

.disclaimer {
  margin-top: 16px;
  padding: 14px 16px;
  background: #eef3fb;
  border-radius: 10px;
  font-size: 14px;
  color: #3a4a62;
}

.legal-updated {
  margin-top: 32px;
  font-size: 14px;
  color: #5a6a82;
}

.footer-requisites {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.92;
}

.footer-requisites p {
  margin-bottom: 6px;
}

.footer-legal-link {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.footer .footer-legal-link a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
  opacity: 1;
}

.footer-legal-link a {
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 720px) {
  .data-table:not(.data-table-stack) thead {
    display: none;
  }

  .data-table:not(.data-table-stack) tr {
    display: block;
    margin-bottom: 12px;
    border-bottom: 2px solid #e2e8f2;
  }

  .data-table:not(.data-table-stack) td,
  .data-table:not(.data-table-stack) tbody th[scope="row"] {
    display: block;
    width: 100%;
  }

  .data-table:not(.data-table-stack) tbody th[scope="row"] {
    border-bottom: none;
    padding-bottom: 4px;
  }
}

/* SmartSearcher product page */
.shot-carousel {
  margin-top: 28px;
}

.shot-carousel-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f2;
  box-shadow: 0 20px 40px rgba(15, 26, 42, 0.1);
}

.shot-carousel-track {
  display: block;
}

.shot-slide {
  margin: 0;
  width: 100%;
}

.shot-slide[hidden] {
  display: none !important;
}

.shot-zoom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: #eef3fb;
  cursor: zoom-in;
}

.shot-zoom:focus-visible {
  outline: 2px solid #4bb5ff;
  outline-offset: -2px;
}

.shot-zoom img {
  display: block;
  width: 100%;
  height: auto;
  background: #eef3fb;
}

.shot-carousel-caption {
  margin-top: 16px;
  min-height: 3.2em;
  font-size: 15px;
  color: #3a4a62;
  line-height: 1.55;
}

.shot-carousel-nav {
  position: absolute;
  top: clamp(72px, 18vw, 160px);
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(11, 27, 53, 0.82);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 26, 42, 0.2);
}

.shot-carousel-nav:hover,
.shot-carousel-nav:focus-visible {
  background: #0b1b35;
  outline: none;
}

.shot-carousel-prev {
  left: 12px;
}

.shot-carousel-next {
  right: 12px;
}

.shot-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.shot-carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #c5d3e6;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.shot-carousel-dot.is-active {
  background: #4bb5ff;
  transform: scale(1.2);
}

.shot-carousel-dot:focus-visible {
  outline: 2px solid #0b1b35;
  outline-offset: 2px;
}

.shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 27, 53, 0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.shot-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.shot-lightbox-dialog {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.shot-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(11, 27, 53, 0.85);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.shot-lightbox-close:hover,
.shot-lightbox-close:focus-visible {
  background: #0b1b35;
  outline: none;
}

.shot-lightbox-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  background: #eef3fb;
}

.shot-lightbox-caption {
  padding: 16px 20px 18px;
  font-size: 15px;
  color: #3a4a62;
  line-height: 1.55;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .shot-carousel-nav {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .shot-carousel-prev {
    left: 8px;
  }

  .shot-carousel-next {
    right: 8px;
  }
}

.product-hero .hero-tagline {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  margin-bottom: 14px;
  opacity: 0.95;
}

.product-hero .status-note {
  margin-top: 18px;
  font-size: 13px;
  opacity: 0.75;
  max-width: 52ch;
}

.product-panel ul li {
  position: relative;
  padding-left: 18px;
}

.product-panel ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4bb5ff;
}

.section-lead {
  font-size: 17px;
  color: #3a4a62;
  max-width: 68ch;
  margin-bottom: 8px;
}

.problem-grid .feature h3 {
  margin-bottom: 8px;
}

.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin-top: 28px;
}

.pipeline-step {
  flex: 1 1 180px;
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(15, 26, 42, 0.08);
}

.pipeline-step span {
  display: inline-flex;
  background: #4bb5ff;
  color: #0b1b35;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-size: 13px;
}

.pipeline-step h3 {
  margin-bottom: 8px;
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  color: #4bb5ff;
  font-size: 22px;
  font-weight: 700;
  padding: 0 2px;
}

.status-card {
  border-left: 4px solid #4bb5ff;
}

.status-card h2 {
  margin-bottom: 12px;
}

.status-card p + p {
  margin-top: 12px;
  color: #3a4a62;
}

.cta-section .cta-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.btn.dark-btn {
  background: #0b1b35;
  color: #fff;
  box-shadow: 0 10px 20px rgba(11, 27, 53, 0.2);
}

.btn.dark-ghost {
  border: 1px solid #0b1b35;
  color: #0b1b35;
}

.nav a[aria-current="page"] {
  border-bottom-color: #4bb5ff;
}

.text-link {
  color: #1a5fb4;
  text-decoration: underline;
  font-weight: 600;
}

.text-link:hover {
  color: #0b1b35;
}

.stack-note {
  margin-top: 16px;
}

.card-actions {
  margin-top: 16px;
}

.btn.on-light {
  display: inline-flex;
}

.btn.primary.on-light {
  box-shadow: 0 8px 18px rgba(75, 181, 255, 0.25);
}

@media (max-width: 820px) {
  .pipeline-arrow {
    display: none;
  }
}

/* Песочница: модальная форма заявки на демо-стенд */
.sandbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 27, 53, 0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sandbox-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.sandbox-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  color: #0f1a2a;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  padding: 28px 28px 24px;
}

.sandbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(11, 27, 53, 0.08);
  color: #0b1b35;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.sandbox-close:hover,
.sandbox-close:focus-visible {
  background: rgba(11, 27, 53, 0.16);
  outline: none;
}

.sandbox-panel h2 {
  font-size: 24px;
  margin-bottom: 10px;
  padding-right: 36px;
}

.sandbox-lead {
  color: #3a4a62;
  margin-bottom: 20px;
  font-size: 15px;
}

.sandbox-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #0b1b35;
}

.sandbox-field abbr {
  text-decoration: none;
  color: #c0392b;
}

.sandbox-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #c9d5e8;
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
  color: #0f1a2a;
  background: #f7f9fc;
}

.sandbox-field input:focus {
  outline: 2px solid rgba(75, 181, 255, 0.55);
  outline-offset: 1px;
  border-color: #4bb5ff;
  background: #fff;
}

.sandbox-turnstile {
  min-height: 65px;
}

.sandbox-error {
  margin: 4px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdecea;
  color: #8a1f11;
  font-size: 14px;
  font-weight: 500;
}

.sandbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.sandbox-actions .btn.ghost {
  border: 1px solid #c5d0e0;
  color: #0b1b35;
  background: #fff;
}

.sandbox-actions .btn.ghost:hover,
.sandbox-actions .btn.ghost:focus-visible {
  background: #eef3fb;
  border-color: #9eb0c8;
}

.sandbox-creds {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #eef3fb;
  border: 1px solid #d5e0f0;
}

/* display: grid выше перебивает нативный [hidden] без !important */
.sandbox-creds[hidden],
.sandbox-panel[hidden] {
  display: none !important;
}

.sandbox-creds div {
  display: grid;
  gap: 2px;
}

.sandbox-creds dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a6b82;
}

.sandbox-creds dd {
  margin: 0;
  font-size: 15px;
  word-break: break-word;
}

.sandbox-creds code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 6px;
  border-radius: 6px;
}

.sandbox-creds a {
  color: #1a5fb4;
  font-weight: 600;
  text-decoration: underline;
}
