/* Страница «О нас» (классы ab-*). Селекторов .time / .timer здесь нет. */

.ab-js .ab-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.ab-js .ab-reveal.in {
    opacity: 1;
    transform: none;
}

.ab-wrap {
    width: min(1120px, 100% - 40px);
    margin-inline: auto;
}

.ab-section {
    padding: clamp(50px, 8vw, 90px) 0 0;
}

.ab-title {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 14px;
}

.ab-title .ab-emoji { margin-right: 10px; }

.ab-text {
    color: var(--muted);
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.75;
    max-width: 760px;
}

/* ---------- Hero ---------- */
.ab-hero {
    position: relative;
    padding: clamp(60px, 10vw, 120px) 0 10px;
    text-align: center;
    isolation: isolate;
}

.ab-hero::before {
    content: "";
    position: absolute;
    inset: -40px 0 auto 0;
    height: 560px;
    z-index: -1;
    background:
        radial-gradient(45% 55% at 50% 30%, rgba(79, 70, 229, 0.32), transparent 70%),
        radial-gradient(30% 40% at 85% 20%, rgba(0, 162, 255, 0.16), transparent 70%),
        radial-gradient(30% 40% at 12% 25%, rgba(225, 48, 108, 0.12), transparent 70%);
}

.ab-hero h1 {
    font-family: var(--font-pixel);
    font-size: clamp(26px, 6vw, 62px);
    line-height: 1.3;
    text-shadow: 0 0 34px rgba(79, 70, 229, 0.85);
    margin-bottom: 26px;
}

.ab-lead {
    max-width: 860px;
    margin: 0 auto 22px;
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.35;
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 70%, #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ab-hero .ab-text {
    margin-inline: auto;
}

/* ---------- Три факта ---------- */
.ab-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.ab-fact {
    padding: 26px 22px;
    border-radius: var(--radius);
    text-align: left;
    background: linear-gradient(165deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.ab-fact:hover { transform: translateY(-5px); border-color: rgba(79, 70, 229, 0.65); }

.ab-fact i {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    border-radius: 16px;
    font-style: normal;
    font-size: 28px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.35), rgba(0, 162, 255, 0.25));
}

.ab-fact b { display: block; font-size: 17px; margin-bottom: 6px; }
.ab-fact span { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- Телевизор ---------- */
.ab-callout {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 26px;
    padding: 22px 26px;
    border-radius: var(--radius);
    text-align: left;
    background: linear-gradient(110deg, rgba(79, 70, 229, 0.22), rgba(0, 162, 255, 0.08));
    border: 1px solid rgba(79, 70, 229, 0.45);
}

.ab-callout .ab-big { font-size: 42px; line-height: 1; }
.ab-callout p { color: #d4d6ee; line-height: 1.7; font-size: clamp(15px, 1.6vw, 17px); }

/* ---------- Игры по категориям ---------- */
.ab-cat { margin-top: 44px; --c: #a5b4fc; }
.ab-cat:nth-of-type(1) { --c: #34d399; }
.ab-cat:nth-of-type(2) { --c: #fb7185; }
.ab-cat:nth-of-type(3) { --c: #fbbf24; }
.ab-cat:nth-of-type(4) { --c: #a78bfa; }
.ab-cat:nth-of-type(5) { --c: #38bdf8; }

.ab-cat h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 700;
}

.ab-cat h3::before {
    content: "";
    width: 5px;
    height: 26px;
    border-radius: 4px;
    background: var(--c);
    box-shadow: 0 0 16px var(--c);
}

.ab-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.ab-game {
    overflow: hidden;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ab-game:hover {
    transform: translateY(-5px);
    border-color: var(--c);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.ab-game img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #0d0d18;
}

.ab-game figcaption {
    padding: 12px 14px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    border-top: 2px solid var(--c);
}

/* ---------- Как это работает ---------- */
.ab-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
    counter-reset: step;
    position: relative;
}

.ab-step {
    position: relative;
    padding: 34px 24px 26px;
    border-radius: var(--radius);
    text-align: left;
    background: linear-gradient(165deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
}

.ab-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -22px;
    left: 24px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-family: var(--font-pixel);
    font-size: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.5);
}

.ab-step b { display: block; margin-bottom: 8px; font-size: 18px; }
.ab-step span { color: var(--muted); line-height: 1.65; font-size: 15px; }

/* ---------- Призыв ---------- */
.ab-cta {
    margin: clamp(60px, 9vw, 100px) auto 0;
    padding: clamp(34px, 6vw, 60px) clamp(22px, 5vw, 50px);
    border-radius: 28px;
    text-align: center;
    background:
        radial-gradient(60% 90% at 50% 0%, rgba(79, 70, 229, 0.4), transparent 70%),
        linear-gradient(165deg, #1f1d4d, #0f0f22);
    border: 1px solid rgba(79, 70, 229, 0.55);
    box-shadow: 0 24px 60px rgba(79, 70, 229, 0.2);
}

.ab-cta h2 { font-size: clamp(24px, 4vw, 38px); font-weight: 800; margin-bottom: 12px; }
.ab-cta p { color: #c9cbe8; line-height: 1.7; }
.ab-cta .ab-contact { margin: 18px auto 28px; max-width: 640px; color: #fff; font-weight: 500; }

.ab-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.ab-btn {
    display: inline-block;
    padding: 16px 34px;
    border: 0;
    border-radius: 999px;
    font: 700 16px var(--font-main);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.5);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.ab-btn:hover { transform: translateY(-3px); filter: brightness(1.1); }

.ab-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.ab-end { height: clamp(60px, 9vw, 100px); }

/* ---------- Телефон ---------- */
@media (max-width: 860px) {
    .ab-facts, .ab-steps { grid-template-columns: 1fr; }
    .ab-steps { gap: 38px; margin-top: 42px; }
    .ab-callout { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
    .ab-games { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ab-game figcaption { padding: 10px 10px 12px; font-size: 13px; }
    .ab-btn { width: 100%; text-align: center; }
}
