/* SIGA Hero block — асимметричный hero со «Smirnov-style» витринной карточкой */

.siga-hero {
    padding: 96px 24px 112px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
/* Фоновый мотив — кривая роста трафика (наша «фишка», циан = данные) */
.siga-hero__art {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 3%, #000 44%);
    mask-image: linear-gradient(90deg, transparent 3%, #000 44%);
}
.siga-hero__art svg { position: absolute; right: 0; bottom: 0; width: 80%; height: 100%; }
.siga-hero__art-line {
    stroke-dasharray: 2600;
    stroke-dashoffset: 2600;
    animation: siga-hero-draw 2.6s ease forwards .35s;
    filter: drop-shadow(0 0 6px var(--color-data-glow));
}
.siga-hero__art-node { filter: drop-shadow(0 0 6px var(--color-data-glow)); }
.siga-hero__art-node--peak {
    transform-box: fill-box;
    transform-origin: center;
    animation: siga-hero-peak 2.6s ease-in-out infinite;
}
/* Маршрут (мотив «Карты»): пунктир медленно «едет» к пину назначения */
.siga-hero__art-route {
    stroke-dasharray: 10 9;
    filter: drop-shadow(0 0 6px var(--color-data-glow));
    animation: siga-hero-route 26s linear infinite;
}
@keyframes siga-hero-draw { to { stroke-dashoffset: 0; } }
@keyframes siga-hero-peak { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes siga-hero-route { to { stroke-dashoffset: -380; } }
@media (prefers-reduced-motion: reduce) {
    .siga-hero__art-line { animation: none; stroke-dashoffset: 0; }
    .siga-hero__art-node--peak { animation: none; }
    .siga-hero__art-route { animation: none; }
}
.siga-hero--dark {
    background-color: var(--dark);
    color: #fff;
}
.siga-hero--light {
    background-color: var(--color-bg-light);
    color: var(--color-text);
}
.siga-hero--has-bg::before {
    content: "";
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 0;
}

.siga-hero__inner {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
.siga-hero--with-case .siga-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
.siga-hero--with-form .siga-hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
}

.siga-hero__main { min-width: 0; }

.siga-hero__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.siga-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
    line-height: 1;
    white-space: nowrap;
}
.siga-hero__badge-icon {
    flex-shrink: 0;
    color: #94A3B8;
}
.siga-hero--light .siga-hero__badge {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

.siga-hero__title {
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
}
.siga-hero--dark .siga-hero__title em,
.siga-hero--dark .siga-hero__title strong {
    color: var(--color-accent);
    font-style: normal;
}

.siga-hero__subtitle {
    font-size: 18px;
    line-height: 1.55;
    max-width: 600px;
    margin: 0 0 36px;
    color: inherit;
    opacity: 0.78;
}
.siga-hero--dark .siga-hero__title,
.siga-hero--dark .siga-hero__subtitle {
    color: #fff;
}

/* Правая колонка + форма-карта (главный CTA hero) */
.siga-hero__aside { position: relative; z-index: 1; min-width: 0; }
.siga-hero__main { min-width: 0; }
.siga-hero__formcard {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.05), transparent 34%), var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 32px 32px 24px;
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, 0.03),
        0 28px 64px -32px rgba(0, 0, 0, 0.65);
}
/* акцент-полоса сверху: emerald → cyan (действие → данные) */
.siga-hero__formcard::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), #38BDF8 70%, transparent);
    opacity: 0.85;
}
.siga-hero--light .siga-hero__formcard {
    background: #fff;
    border-color: var(--color-border);
    box-shadow: 0 12px 34px -14px rgba(15, 23, 42, 0.14);
}
.siga-hero__formcard-title {
    display: block;
    font-size: clamp(21px, 2.2vw, 26px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #F8FAFC;
    margin-bottom: 8px;
}
.siga-hero--light .siga-hero__formcard-title { color: var(--color-text); }
.siga-hero__formcard-sub {
    font-size: 15px;
    line-height: 1.5;
    color: #94A3B8;
    margin: 0 0 22px;
}
.siga-hero__formcard-note {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.45;
    color: #94A3B8;
    margin: 12px 0 0;
}

/* Промо-строка (акции типа 2=3) — золото, не конкурирует с CTA */
.siga-hero__formcard-promo {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 18px;
    padding: 10px 14px;
    border: 1px solid rgba(217, 174, 85, 0.38);
    border-radius: 10px;
    background: rgba(217, 174, 85, 0.08);
    color: #E6CB86;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
}
.siga-hero__formcard-promo svg {
    flex: 0 0 auto;
    width: 16px; height: 16px;
    margin-top: 1px;
    color: #D9AE55;
}

/* Тики доверия под кнопкой */
.siga-hero__formcard-ticks {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 14px 0 0;
    padding: 0;
}
.siga-hero__formcard-ticks li {
    position: relative;
    padding-left: 18px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #94A3B8;
    white-space: nowrap;
}
.siga-hero__formcard-ticks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}
/* Форма внутри карты — вертикальная (поле + широкая кнопка) */
.siga-hero__formcard .siga-hero__form {
    flex-direction: column;
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    gap: 12px;
    max-width: 100%;
}
.siga-hero__formcard .siga-hero__form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 15px 18px;
}
.siga-hero--light .siga-hero__formcard .siga-hero__form-input {
    background: var(--color-bg-light);
    border-color: var(--color-border);
    color: var(--color-text);
}
.siga-hero--light .siga-hero__formcard .siga-hero__form-input::placeholder { color: var(--color-text-muted); }
.siga-hero__formcard .siga-hero__form-input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}
.siga-hero__formcard .siga-hero__form-btn {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    padding: 15px 24px;
    font-size: 16px;
    box-shadow: 0 14px 30px -12px rgba(16, 185, 129, 0.55);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.siga-hero__formcard .siga-hero__form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -12px rgba(16, 185, 129, 0.65);
}
.siga-hero__formcard .siga-hero__form-btn span {
    display: inline-block;
    margin-left: 6px;
    transition: transform .2s ease;
}
.siga-hero__formcard .siga-hero__form-btn:hover span { transform: translateX(3px); }

/* Inline-форма как капсула (базовые стили поля/кнопки) */
.siga-hero__form {
    display: flex;
    align-items: stretch;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 6px;
    gap: 6px;
    transition: border-color .2s, background .2s;
}
.siga-hero__form:focus-within {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
}
.siga-hero__form-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    font-size: 16px;
    padding: 14px 22px;
    font-family: inherit;
    border-radius: 999px;
    -webkit-appearance: none;
    appearance: none;
}
.siga-hero__form-input:-webkit-autofill {
    border-radius: 999px;
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    -webkit-text-fill-color: #fff;
    transition: background-color 5000s;
}
.siga-hero__form-input::placeholder {
    /* плейсхолдер = подпись поля (лейблов нет) — должен читаться */
    color: #9FADC2;
    opacity: 1;
}
.siga-hero__form-btn {
    flex-shrink: 0;
    background: var(--color-accent);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, transform .18s;
    font-family: inherit;
}
.siga-hero__form-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* Плашка-гарантия под формой */
.siga-hero__guarantee {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 8px 14px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.4;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.03);
    opacity: 0.92;
}
.siga-hero__guarantee-icon {
    flex-shrink: 0;
    color: #94A3B8;
}
.siga-hero--dark .siga-hero__guarantee {
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.03);
}

/* Fallback-кнопки */
.siga-hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* ── Конверсионный костяк левой части: оффер-чип + метрик-строка ── */
.siga-hero__offer {
    display: inline-flex; align-items: center; gap: 9px;
    margin-top: 22px; font-size: 13px; font-weight: 500;
    color: var(--color-gold, #D9AE55);
    background: var(--color-gold-bg, rgba(217, 174, 85, 0.10));
    border: 1px solid rgba(217, 174, 85, 0.35); border-radius: 10px; padding: 8px 13px;
}
.siga-hero__offer svg { flex: 0 0 auto; }
/* оффер стоит прямо над кнопками — подтягиваем их ближе */
.siga-hero__offer + .siga-hero__buttons { margin-top: 14px; }
.siga-hero__metrics { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.siga-hero__metric { display: flex; flex-direction: column; }
.siga-hero__metric b { font-family: var(--font-mono); font-size: 19px; font-weight: 600; color: #F8FAFC; letter-spacing: -0.02em; }
.siga-hero__metric span { font-size: 11px; color: #64748B; margin-top: 1px; }
.siga-hero__metric-sep { width: 1px; height: 26px; background: rgba(255, 255, 255, 0.12); flex: 0 0 auto; }

/* Витринная карточка кейса (справа) */
.siga-hero__case {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.92) 100%);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.siga-hero__case::before {
    content: "";
    position: absolute;
    top: -40%; right: -20%;
    width: 60%; height: 80%;
    background: radial-gradient(closest-side, rgba(16, 185, 129, 0.22), transparent 70%);
    pointer-events: none;
}
.siga-hero__case:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 20px 60px -20px rgba(16, 185, 129, 0.35);
}

.siga-hero__case-badge {
    align-self: flex-start;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--color-accent-bg);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.siga-hero__case-metric {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}
.siga-hero__case-metric-value {
    font-size: clamp(72px, 8vw, 120px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #fff;
}
.siga-hero__case-metric-delta {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.18);
    color: var(--color-accent);
}

.siga-hero__case-metric-before {
    margin-top: -4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.2px;
    position: relative;
    z-index: 1;
}
.siga-hero__case-caption {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.siga-hero__case-secondary {
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    position: relative;
    z-index: 1;
}
.siga-hero__case-secondary-value {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}
.siga-hero__case-secondary-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}
.siga-hero__case-secondary-delta {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    color: var(--color-accent);
    margin-left: 2px;
}

.siga-hero__case-foot {
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    position: relative;
    z-index: 1;
}
.siga-hero__case-client {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}
.siga-hero__case-term {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.siga-hero__case-cta {
    margin-top: 6px;
    font-size: 13px;
    color: var(--color-accent);
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: transform .2s;
}
.siga-hero__case:hover .siga-hero__case-cta {
    transform: translateX(4px);
}

/* Tablet */
@media (max-width: 1024px) {
    .siga-hero { padding: 72px 24px 88px; }
    .siga-hero--with-case .siga-hero__inner,
    .siga-hero--with-form .siga-hero__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .siga-hero__case,
    .siga-hero__formcard {
        max-width: 540px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .siga-hero { padding: 56px 20px 72px; }
    .siga-hero__labels { gap: 6px; margin-bottom: 16px; }
    .siga-hero__badge { font-size: 11px; padding: 5px 10px 5px 8px; }
    .siga-hero__subtitle { font-size: 16px; margin-bottom: 28px; }
    .siga-hero__form {
        flex-direction: column;
        border-radius: 18px;
        padding: 8px;
    }
    .siga-hero__form-btn {
        border-radius: 12px;
        padding: 14px 20px;
    }
    .siga-hero__case {
        padding: 24px;
        border-radius: 20px;
    }
}

/* =========================================================
   Hero · правая часть — «Созвездие преимуществ» (aside_type=constellation)
   Орб-ядро + штриховые связи к стикерам-спутникам + мессенджеры.
   ========================================================= */
.siga-hero--with-constel .siga-hero__inner { grid-template-columns: minmax(0, 1fr) 560px; align-items: center; }
@media (max-width: 980px) { .siga-hero--with-constel .siga-hero__inner { grid-template-columns: 1fr; } }
/* min-width:0 обязателен: иначе grid-item не сжимается уже min-content
   (созвездие 560px) и ВЕСЬ hero остаётся 560px на мобильном, а лишнее
   срезается overflow:hidden секции — «скролла нет, но контент обрезан». */
.siga-hero__constel-aside { display: flex; flex-direction: column; gap: 24px; align-self: center; min-width: 0; }

.siga-constel { position: relative; width: 100%; max-width: 560px; height: 470px; margin: 0 auto; }
.siga-constel__links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.siga-constel__link { stroke: var(--color-data); stroke-opacity: .4; stroke-width: 1.4; stroke-dasharray: 4 5; fill: none; animation: siga-constel-flow 9s linear infinite; }
@keyframes siga-constel-flow { to { stroke-dashoffset: -90; } }
.siga-constel__node { fill: #7DD3FC; filter: drop-shadow(0 0 5px rgba(56,189,248,.7)); }
.siga-constel__port { fill: var(--color-data); filter: drop-shadow(0 0 4px rgba(56,189,248,.8)); }

.siga-orb {
    position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
    width: 150px; height: 150px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    background: radial-gradient(circle at 50% 38%, rgba(56,189,248,.28), rgba(16,185,129,.10) 60%, rgba(15,23,42,.9) 100%);
    border: 1px solid rgba(125,211,252,.35);
    box-shadow: 0 0 60px -8px rgba(56,189,248,.5), inset 0 0 30px rgba(56,189,248,.12); z-index: 3;
}
.siga-orb::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed rgba(125,211,252,.35); animation: siga-orb-spin 26s linear infinite; }
@keyframes siga-orb-spin { to { transform: rotate(360deg); } }
.siga-orb__eyebrow { font-family: var(--font-mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #7DD3FC; margin-bottom: 5px; opacity: .9; }
.siga-orb__core { font-size: 21px; font-weight: 800; line-height: 1.1; color: #fff !important; letter-spacing: -.01em; padding: 0 10px; }
.siga-orb__accent { color: #7DD3FC; }

.siga-sat {
    position: absolute; z-index: 4; display: flex; align-items: flex-start; gap: 9px;
    padding: 11px 13px; border-radius: 12px; max-width: 210px;
    background: rgba(23,32,50,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 40px -22px rgba(0,0,0,.8);
}
.siga-sat__ic { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: rgba(16,185,129,.14); border: 1px solid rgba(16,185,129,.4); color: var(--color-accent); }
.siga-sat__k { font-size: 13.5px; font-weight: 600; color: #F8FAFC; line-height: 1.25; }
.siga-sat__v { font-size: 11px; color: #94A3B8; margin-top: 2px; font-family: var(--font-mono); letter-spacing: .02em; }

.siga-msg__cap { font-size: 13px; color: #94A3B8; margin-bottom: 11px; text-align: center; }
.siga-msg__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.siga-msg__btn { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 13px 8px; border-radius: 12px; text-decoration: none; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: #CBD5E1; font-size: 12px; font-weight: 600; transition: border-color .18s, background .18s, color .18s, transform .18s; }
.siga-msg__btn:hover { border-color: rgba(16,185,129,.5); background: rgba(16,185,129,.08); color: #fff; transform: translateY(-2px); }
.siga-msg__btn--tg svg { color: #38BDF8; } .siga-msg__btn--wa svg { color: #25D366; } .siga-msg__btn--mx svg { color: #A78BFA; }

@media (prefers-reduced-motion: reduce) { .siga-constel__link, .siga-orb::before { animation: none; } }
/* Мобильный: созвездие свёрстано абсолютом в px под 560px — на узком экране
   спутники налезают и режутся. Превращаем в обычную сетку карточек:
   орб и линии убираем (их смысл дублируют H1 и оффер-чип), спутники
   становятся flow-плитками. Масштабирование (scale) тут не годится —
   текст стал бы нечитаемым. */
@media (max-width: 760px) {
    .siga-constel {
        height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        transform: none;
    }
    .siga-constel__links,
    .siga-orb { display: none; }
    .siga-sat {
        position: static !important;
        inset: auto !important;
        width: auto;
        max-width: none;
    }
}
@media (max-width: 430px) {
    .siga-constel { grid-template-columns: 1fr; }
}
