/* ==============================================================
   hero.css — hero с bento-плитками
   ============================================================== */

.hero {
    padding: 48px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(255, 92, 0, 0.05) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at top, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at top, black 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 16px;
}

.tile-hero {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 460px;
    background: var(--bg);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 28px;
}
.kicker::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero h1 {
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 24px;
}
.hero h1 em {
    font-style: italic;
    font-weight: 500;
    color: var(--accent);
}

.hero-sub {
    font-size: 17px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 32px;
    letter-spacing: -0.005em;
}

.hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
}

/* ===== SPECS ===== */
.tile-specs { grid-column: 2; grid-row: 1; padding: 24px 28px; }
.specs-list { display: flex; flex-direction: column; gap: 18px; }
.spec-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}
.spec-row:last-child { padding-bottom: 0; border-bottom: none; }
.spec-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-2);
}
.spec-value {
    font-family: 'Inter Tight', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-align: right;
}
.spec-value.with-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
}
.spec-value.with-logo svg { width: 18px; height: 18px; }

/* ===== CTA плитка (тёмная) ===== */
.tile-cta {
    grid-column: 2;
    grid-row: 2;
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    text-decoration: none;
    transition: all 0.25s ease;
    overflow: hidden;
}
.tile-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 92, 0, 0.15), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.tile-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-color: var(--ink);
}
.tile-cta:hover::before { opacity: 1; }
.tile-cta-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    position: relative;
    z-index: 1;
}
.tile-cta-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 14px 0 4px;
    position: relative;
    z-index: 1;
}
.tile-cta-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.tile-cta-arrow {
    align-self: flex-end;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
    position: relative;
    z-index: 1;
}
.tile-cta:hover .tile-cta-arrow { transform: rotate(-45deg); }
.tile-cta-arrow svg { width: 14px; height: 14px; color: #fff; }

/* ===== TIMELINE ===== */
.tile-timeline {
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 22px 28px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}
.timeline-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-2);
    white-space: nowrap;
}
.timeline-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
}
.timeline-steps::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    height: 1px;
    background: var(--border);
    z-index: 0;
}
.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}
.timeline-step:not(:first-child) { padding-left: 20px; }
.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.timeline-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted-3);
}
.timeline-dot.active { border-color: var(--accent); background: var(--accent); }
.timeline-dot.active::after { background: #fff; }
.timeline-step-name { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.timeline-step-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--muted-2);
    margin-top: 2px;
    letter-spacing: 0.03em;
}
.timeline-partner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 32px;
    border-left: 1px solid var(--border-subtle);
}
.timeline-partner-text { font-size: 12px; color: var(--muted); line-height: 1.3; }
.timeline-partner strong {
    display: block;
    color: var(--ink);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 1px;
}

/* Анимация появления */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tile-hero, .tile-specs, .tile-cta, .tile-timeline {
    animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.tile-hero     { animation-delay: 0.05s; }
.tile-specs    { animation-delay: 0.15s; }
.tile-cta      { animation-delay: 0.25s; }
.tile-timeline { animation-delay: 0.35s; }

/* Responsive */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .tile-hero, .tile-specs, .tile-cta, .tile-timeline {
        grid-column: 1; grid-row: auto;
    }
    .tile-hero { min-height: auto; padding: 32px 28px; }
    .tile-timeline { grid-template-columns: 1fr; gap: 18px; }
    .timeline-partner { padding-left: 0; border-left: none; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
}

@media (max-width: 560px) {
    .hero { padding: 32px 0 56px; }
    .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
    .hero-actions .btn-primary, .hero-actions .btn-ghost { justify-content: center; }
    .timeline-steps { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
    .timeline-steps::before { display: none; }
    .timeline-step:not(:first-child) { padding-left: 0; }
}
