/* Tetris — герой + бегущая строка (ТЗ 02). Токены — из tetris-tokens.css */

.tt-hero {
    position: relative;
    background: var(--tt-dark);
    overflow: hidden;
}
.tt-hero__glow {
    position: absolute;
    top: -180px;
    right: -120px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(145, 74, 43, 0.55) 0%, rgba(145, 74, 43, 0) 70%);
    animation: tsGlow 9s ease-in-out infinite;
    pointer-events: none;
}
.tt-hero__blocks {
    position: absolute;
    top: 0;
    right: 0;
    width: 560px;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
    opacity: 0.4;
    pointer-events: none;
}
.tt-hero__blocks span { display: block; background: #2E2E2E; }
.tt-hero__blocks span:nth-child(3),
.tt-hero__blocks span:nth-child(6),
.tt-hero__blocks span:nth-child(12) { background: #4A2C1D; }
.tt-hero__blocks span:nth-child(1),
.tt-hero__blocks span:nth-child(7),
.tt-hero__blocks span:nth-child(9) { background: #333333; }

.tt-hero__inner {
    position: relative;
    max-width: var(--tt-container);
    margin: 0 auto;
    padding: 120px var(--tt-container-pad) 112px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}
.tt-hero__col {
    display: flex;
    flex-direction: column;
    gap: 26px;
}
.tt-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tt-hero__eyebrow-line {
    width: 28px;
    height: 1px;
    background: var(--tt-brand-light);
}
.tt-hero__eyebrow span:last-child {
    font-family: var(--tt-font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--tt-brand-light);
}
.tt-hero__h1 {
    margin: 0;
    max-width: 620px;
    font-family: var(--tt-font-head);
    font-size: 50px;
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -0.02em;
    color: #fff;
}
.tt-hero__subtitle {
    margin: 0;
    max-width: 540px;
    font-family: var(--tt-font-body);
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
}
.tt-hero__actions {
    display: flex;
    gap: 14px;
    padding-top: 8px;
    flex-wrap: wrap;
}
.tt-hero__btn-secondary { font-weight: 400; }
button.tt-hero__btn-secondary { -webkit-appearance: none; appearance: none; }

.tt-hero__media {
    position: relative;
    height: 420px;
    border-radius: var(--tt-radius-lg);
    overflow: hidden;
    box-shadow: var(--tt-shadow-hero-img);
    animation: tsIn 900ms cubic-bezier(0.22, 1, 0.36, 1) both, tsFloat 8s ease-in-out 1s infinite;
    background: repeating-linear-gradient(135deg, #3A3A3A 0 12px, #323232 12px 24px);
}
.tt-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tt-hero__media-ph { display: block; width: 100%; height: 100%; }

/* Бегущая строка */
.tt-marquee {
    background: var(--tt-bg-muted);
    border-bottom: 1px solid var(--tt-border);
    overflow: hidden;
    padding: 12px 0;
}
.tt-marquee__track {
    display: flex;
    width: max-content;
    animation: tsMarquee 48s linear infinite;
}
.tt-marquee__group {
    display: flex;
    gap: 40px;
    padding-right: 40px;
    font-family: var(--tt-font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--tt-text-2);
    white-space: nowrap;
}
.tt-marquee__group span { display: inline-block; }
.tt-marquee__dot { color: #C9C9C9; }

/* ---- Адаптив ---- */
@media (max-width: 991px) {
    .tt-hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 64px 20px 56px;
    }
    .tt-hero__h1 { font-size: 40px; }
    .tt-hero__media { height: 320px; }
    .tt-hero__blocks { width: 320px; opacity: 0.3; }
}
@media (max-width: 575px) {
    .tt-hero__inner { padding: 48px 20px 40px; gap: 32px; }
    .tt-hero__col { gap: 18px; }
    .tt-hero__h1 { font-size: 32px; line-height: 1.18; }
    .tt-hero__subtitle { font-size: 15px; }
    .tt-hero__blocks { width: 180px; opacity: 0.35; }
    .tt-hero__actions { flex-direction: column; align-items: stretch; }
    .tt-hero__actions .tt-btn--action,
    .tt-hero__actions .tt-hero__btn-secondary { width: 100%; height: 50px; padding: 0; }
    .tt-hero__media { height: 220px; }
    .tt-marquee__group { font-size: 11px; }
}

/* ---- Keyframes ---- */
@keyframes tsGlow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.08); }
}
@keyframes tsFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
@keyframes tsMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes tsIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
