/* Hero above-the-fold: совпадает с output.css, чтобы не было CLS при async output */
/* Brand tokens: brand-blue #003d5c, sirius-azure #2563eb, brand-red #e94560, brand-orange #ff9700 */
.ext-hero-inner{width:100%;display:flex;flex-direction:column;position:relative;z-index:2}
.ext-hero-module .graphic-wrapper{animation:none!important}

/* --- Hero Block (Extensions) CSS --- */
.ext-hero-module {
  box-sizing: border-box;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 16px 4px;
}

.ext-hero-module *,
.ext-hero-module *::before,
.ext-hero-module *::after {
  box-sizing: border-box;
}

.ext-hero-module .ext-hero {
  position: relative;
  width: 100%;
  min-height: 580px;
  background: #ffffff;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 56px 48px;
  box-shadow: 0 30px 60px rgba(0, 20, 50, 0.08), 0 10px 20px rgba(0, 0, 0, 0.03);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
    linear-gradient(to bottom, #ffffff, #fafbfc);
}

.ext-hero-module .ext-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 30% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, black 30%, transparent 70%);
  opacity: 0.5;
}

.ext-hero-module .ext-hero-matrix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  border-radius: inherit;
}

.ext-hero-module .ext-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.55);
}

.ext-hero-module .ext-hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 60px;
}

.ext-hero-module .ext-hero-content {
  flex: 1 1 55%;
  max-width: 600px;
  min-width: 0;
  width: auto;
}

.ext-hero-module .ext-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.ext-hero-module .ext-hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  color: #003d5c;
  margin: 0 0 20px;
  letter-spacing: -0.8px;
  width: auto;
  max-width: 100%;
}

.ext-hero-module.ext-hero-module--gradient-title .ext-hero-title {
  background: linear-gradient(135deg, #003d5c 0%, #2563eb 100%); /* brand-blue → sirius-azure */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ext-hero-module .ext-hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 24px;
  max-width: 480px;
  width: auto;
}

.ext-hero-module .ext-hero-desc p {
  margin: 0 0 0.75em;
  font-size: 17px;
  line-height: 1.7;
  color: #475569;
}

.ext-hero-module .ext-hero-desc p:last-child {
  margin-bottom: 0;
}

.ext-hero-module .ext-hero-feature-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: auto;
  max-width: 100%;
}

.ext-hero-module .ext-hero-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: #334155;
  width: auto;
  max-width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ext-hero-module .ext-hero-feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-color: var(--ext-bg-elevated, #ffffff);
  border: 1px solid var(--ext-border, #e2e8f0);
  border-radius: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1.5 5.5L4.5 8.5L10.5 1.5' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 9px;
}

.ext-hero-module .ext-hero-discount {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.ext-hero-module .ext-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  width: auto;
  max-width: 100%;
}

.ext-hero-module .ext-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}

.ext-hero-module .ext-hero-btn--primary {
  background: #e94560;
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.3);
}

.ext-hero-module .ext-hero-btn--primary:hover {
  background: #d63a54;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(233, 69, 96, 0.4);
  transform: translateY(-2px);
}

.ext-hero-module .ext-hero-btn--outline {
  background: transparent;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
}

.ext-hero-module .ext-hero-btn--outline:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #1e293b;
  transform: translateY(-2px);
}

.ext-hero-module .ext-hero-visual {
  flex: 1 1 45%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 340px;
  width: auto;
  overflow: visible;
}

.ext-hero-module .ext-hero-visual-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 480px;
}

.ext-hero-module .registry-certificate {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9eef3;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: 'Inter', sans-serif;
  position: relative;
  z-index: 3;
  animation: none;
}

.ext-hero-module .registry-emblem {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #f0f4fe;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 22px;
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.1);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.ext-hero-module .registry-certificate:hover .registry-emblem {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.ext-hero-module .registry-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ext-hero-module .registry-main-text {
  font-weight: 600;
  font-size: 14px;
  color: #1e293b;
  line-height: 1.4;
  margin: 0;
}

.ext-hero-module .registry-date-highlight {
  font-weight: 700;
  color: #0f172a;
}

.ext-hero-module .registry-entry-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}

.ext-hero-module .registry-number-value {
  font-weight: 700;
  color: #1e293b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'Inter', monospace;
  letter-spacing: 0.3px;
}

.ext-hero-module a.registry-number-value {
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.ext-hero-module a.registry-number-value:hover {
  background: #e0e7ff;
  color: #1d4ed8;
}

.ext-hero-module .registry-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s;
  width: fit-content;
}

.ext-hero-module .registry-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.ext-hero-module .graphic-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 400px;
  flex-shrink: 0;
  animation: none;
}

@keyframes extHeroFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

.ext-hero-module .monitor {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 260px;
  height: 180px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 20px;
  box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.35);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}

.ext-hero-module .monitor-screen {
  background: #f8fafc;
  border-radius: 12px;
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

.ext-hero-module .screen-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ext-hero-module .doc-icon {
  width: 28px;
  height: 32px;
  background: #2563eb;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.ext-hero-module .doc-icon::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 3px;
  background: white;
  border-radius: 2px;
  box-shadow: 0 6px 0 white, 0 12px 0 white;
}

.ext-hero-module .text-line {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  flex: 1;
  min-width: 0;
}

.ext-hero-module .text-line.short {
  max-width: 60%;
}

.ext-hero-module .floating-doc {
  position: absolute;
  top: 60px;
  left: -20px;
  width: 150px;
  height: 200px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.2);
  z-index: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: rotate(-5deg);
  animation: extHeroDocLeft 5s ease-in-out infinite;
}

@keyframes extHeroDocLeft {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-10px); }
}

.ext-hero-module .floating-doc .line {
  height: 10px;
  background: #e2e8f0;
  border-radius: 5px;
  display: block;
  width: 100%;
}

.ext-hero-module .floating-doc .line.blue {
  background: #2563eb;
  width: 50%;
}

.ext-hero-module .floating-doc-right {
  position: absolute;
  top: 110px;
  right: -25px;
  width: 140px;
  height: 180px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.2);
  z-index: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: rotate(4deg);
  animation: extHeroDocRight 6s ease-in-out infinite;
}

@keyframes extHeroDocRight {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-12px); }
}

.ext-hero-module .floating-doc-right .line {
  height: 8px;
  background: #cbd5e1;
  border-radius: 4px;
  display: block;
  width: 100%;
}

.ext-hero-module .decor-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  z-index: 0;
}

.ext-hero-module .circle-large {
  width: 200px;
  height: 200px;
  bottom: 0;
  left: 30px;
  animation: extHeroPulse 4s ease-in-out infinite;
}

.ext-hero-module .circle-small {
  width: 90px;
  height: 90px;
  top: 0;
  right: 40px;
  background: rgba(37, 99, 235, 0.12);
  animation: extHeroPulse 3s ease-in-out infinite;
}

@keyframes extHeroPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Тёмная тема */
html.dark .ext-hero-module .ext-hero {
  background: #1e293b;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    linear-gradient(to bottom, #1e293b, #151f32);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 10px 20px rgba(0, 0, 0, 0.25);
}

html.dark .ext-hero-module .ext-hero::before {
  background-image: radial-gradient(circle, rgba(96, 165, 250, 0.15) 1px, transparent 1px);
  opacity: 0.35;
}

html.dark .ext-hero-module .ext-hero-badge {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(96, 165, 250, 0.2);
  color: #93c5fd;
}

html.dark .ext-hero-module .ext-hero-title {
  color: #f1f5f9;
}

html.dark .ext-hero-module.ext-hero-module--gradient-title .ext-hero-title {
  background: linear-gradient(135deg, #f1f5f9 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

html.dark .ext-hero-module .ext-hero-desc {
  color: #94a3b8;
}

html.dark .ext-hero-module .ext-hero-feature-list li {
  color: #cbd5e1;
}

html.dark .ext-hero-module .ext-hero-discount {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}

html.dark .ext-hero-module .ext-hero-btn--outline {
  color: #f1f5f9;
  border-color: #475569;
}

html.dark .ext-hero-module .ext-hero-btn--outline:hover {
  background: #334155;
  color: #f1f5f9;
}

html.dark .ext-hero-module .floating-doc,
html.dark .ext-hero-module .floating-doc-right {
  background: #334155;
}

html.dark .ext-hero-module .floating-doc .line {
  background: #475569;
}

html.dark .ext-hero-module .floating-doc-right .line {
  background: #64748b;
}

html.dark .ext-hero-module .registry-certificate {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.35);
}

html.dark .ext-hero-module .registry-main-text {
  color: #e2e8f0;
}

html.dark .ext-hero-module .registry-date-highlight {
  color: #f8fafc;
}

html.dark .ext-hero-module .registry-entry-row {
  color: #94a3b8;
}

html.dark .ext-hero-module .registry-number-value {
  color: #f1f5f9;
  background: #334155;
}

html.dark .ext-hero-module a.registry-number-value:hover {
  background: #1e3a5f;
  color: #93c5fd;
}

html.dark .ext-hero-module .registry-emblem {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
}

html.dark .ext-hero-module .registry-link {
  color: #60a5fa;
}

html.dark .ext-hero-module .registry-link:hover {
  color: #93c5fd;
}

html.dark .ext-hero-module .ext-hero--matrix .ext-hero-overlay {
  background: rgba(15, 23, 42, 0.72);
}

@media (max-width: 1024px) {
  .ext-hero-module .ext-hero {
    padding: 44px 32px;
  }
  .ext-hero-module .ext-hero-title {
    font-size: 38px;
  }
}

@media (max-width: 860px) {
  .ext-hero-module .ext-hero {
    border-radius: 24px;
    padding: 36px 22px;
    min-height: auto;
  }
  .ext-hero-module .ext-hero-container {
    flex-direction: column;
    gap: 40px;
    align-items: stretch;
  }
  .ext-hero-module .ext-hero-content {
    max-width: 100%;
    text-align: center;
  }
  .ext-hero-module .ext-hero-desc {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .ext-hero-module .ext-hero-buttons {
    justify-content: center;
  }
  .ext-hero-module .ext-hero-visual {
    flex: none;
    min-width: 0;
    width: 100%;
    min-height: 220px;
  }
  .ext-hero-module .graphic-wrapper {
    max-width: 340px;
    width: 100%;
    height: 220px;
    min-height: 220px;
    margin: 0 auto;
  }
  .ext-hero-module .monitor {
    position: relative;
    top: 0;
    left: auto;
    right: auto;
    margin-left: auto;
    margin-right: auto;
    width: 220px;
    height: 150px;
  }
  .ext-hero-module .floating-doc,
  .ext-hero-module .floating-doc-right {
    display: none;
  }
}

@media (max-width: 480px) {
  .ext-hero-module .ext-hero-title {
    font-size: 28px;
  }
  .ext-hero-module .ext-hero-btn {
    padding: 12px 22px;
    font-size: 14px;
  }
}
