.hero-section {
    padding: 56px 0 60px 0;
    background: radial-gradient(circle at 80% 10%, rgba(184, 147, 74, 0.08) 0%, rgba(250, 249, 246, 0) 60%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
    text-align: left;
}

.hero-content {
    max-width: 560px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-bg-cream);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(184, 147, 74, 0.25);
    margin-bottom: 22px;
}

.chip-spark {
    color: var(--color-primary);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.text-gradient {
    background: linear-gradient(135deg, #C5A059 0%, #8E6D2B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 0 28px 0;
}

.hero-triggers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.trigger-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.trigger-icon {
    color: var(--color-primary);
    font-weight: 800;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.cta-microtext {
    font-size: 0.82rem;
    color: var(--color-text-dark);
    max-width: 420px;
}

/* Hero visual: AI scan device mockup */
/* Визуал + плитки-показатели: сканер слева, цифры справа, единым блоком —
   и на десктопе, и на мобильных. */
.hero-visual-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    flex: 0 1 55%;
    min-width: 0;
}

.scan-device {
    width: 100%;
    max-width: 320px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}

.scan-device-header {
    background: var(--color-bg-cream);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--color-border);
}

.scan-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(184, 147, 74, 0.6);
}

.scan-device-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-main);
}

/* .scan-stage — общий контейнер фазы «сканирование» и фазы «результат»:
   всегда занимает высоту видимой фазы, скрытая фаза не резервирует место. */
.scan-stage {
    position: relative;
}

.scan-device-body {
    position: relative;
    background: #201F1C;
    padding: 22px 0 10px 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.scan-figure {
    width: 62%;
    max-width: 150px;
    height: auto;
    position: relative;
    z-index: 2;
}

.scan-node {
    fill: var(--color-primary);
    filter: drop-shadow(0 0 4px rgba(184, 147, 74, 0.9));
    animation: scanPulse 1.8s infinite;
}

@keyframes scanPulse {
    0% { opacity: 0.4; r: 3; }
    50% { opacity: 1; r: 4.5; }
    100% { opacity: 0.4; r: 3; }
}

.scan-scanline {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, rgba(212,120,92,0) 0%, rgba(212,120,92,0.9) 50%, rgba(212,120,92,0) 100%);
    animation: scanSweep 2.6s ease-in-out infinite;
    z-index: 3;
}

@keyframes scanSweep {
    0% { top: 10%; }
    50% { top: 88%; }
    100% { top: 10%; }
}

.scan-device-footer {
    padding: 16px 18px 18px 18px;
}

.scan-progress {
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    margin-bottom: 10px;
    overflow: hidden;
}

.scan-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
}

.scan-status-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.scan-status-percent {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--color-primary);
    min-width: 2.6em;
}

/* --- Фаза «сканирование»: сворачивается, когда срабатывает таймер --- */
.scan-live {
    overflow: hidden;
    transition: max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.scan-live.is-collapsed {
    opacity: 0;
}

.scan-device-footer.is-done .scan-progress-fill {
    width: 100% !important;
}

.scan-device-footer.is-done .scan-status-text {
    color: var(--color-success);
    font-weight: 600;
}

/* --- Фаза «результат»: пример анализа, скрыт по умолчанию, раскрывается по таймеру --- */
.scan-result {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.12s, opacity 0.4s ease 0.12s;
}

.scan-result.is-revealed {
    opacity: 1;
}

.scan-result-inner {
    padding: 20px 18px 22px 18px;
    background: var(--color-surface);
}

.scan-result-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-success);
    margin-bottom: 14px;
}

.scan-result-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(45, 122, 88, 0.12);
    font-size: 0.7rem;
    line-height: 1;
}

.scan-result-reflex {
    background: var(--color-bg-cream);
    border: 1px solid rgba(184, 147, 74, 0.25);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 14px;
}

.scan-result-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.scan-result-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 4px;
}

.scan-result-hint {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Кнопка-аккордеон — сворачивает детальный разбор, чтобы блок не занимал
   лишнее место, пока пользователь сам не захочет его открыть. */
.scan-result-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font-main);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.scan-result-toggle:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-cream);
}

.scan-result-toggle-icon {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1;
    transition: transform var(--transition-fast);
}

.scan-result.is-open .scan-result-toggle-icon {
    transform: rotate(45deg);
}

.scan-result-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.scan-result-detail-inner {
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scan-result-detail-inner p {
    font-size: 0.83rem;
    line-height: 1.55;
    color: var(--color-text-muted);
    margin: 0;
}

.scan-result-detail-inner strong {
    color: var(--color-text-main);
}

.hero-stats-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    flex: 1 1 auto;
    min-width: 0;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.hero-stat-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.proof-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
}

.proof-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.3;
}
