/* ================================================================================
   page-tg-bijobs — Промо-страница Telegram-канала @bijobs63
   Палитра и стиль по текущему дизайну tg.bijobs.ru (Tilda)
   ================================================================================ */

/* ================================================================================
   VARIABLES
   ================================================================================ */
:root {
    --bg-dark: #121212;
    --bg-darker: #0d0d0d;
    --bg-card: #1e1e1e;
    --bg-card-hover: #252525;
    --bg-section: #181818;
    --border-color: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #666666;
    --accent: #2AABEE;
    --accent-hover: #229ED9;
    --accent-light: rgba(42, 171, 238, 0.12);
    --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

/* ================================================================================
   RESET & BASE
   ================================================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================================================================================
   REVEAL ANIMATION
   ================================================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

/* ================================================================================
   SECTION TITLE
   ================================================================================ */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}

/* ================================================================================
   HEADER
   ================================================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    height: 70px;
}

.header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header__logo-img {
    height: 32px;
    width: auto;
}

.header__nav {
    display: flex;
    gap: 32px;
    margin-left: auto;
}

.header__nav-link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    transition: color var(--transition);
}

.header__nav-link:hover {
    color: var(--text-primary);
}

.header__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: background var(--transition), transform var(--transition);
    white-space: nowrap;
}

.header__cta:hover {
    background: var(--accent-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.header__cta-icon {
    flex-shrink: 0;
}

/* Burger button */
.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.header__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================================================================================
   HERO
   ================================================================================ */
.hero {
    padding-top: 70px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(42, 171, 238, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(42, 171, 238, 0.05) 0%, transparent 50%),
        var(--bg-darker);
}

.hero__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px;
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.hero__content {
    flex: 1;
    min-width: 0;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero__accent {
    color: var(--accent);
}

.hero__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.5;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.hero__cta:hover {
    background: var(--accent-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 171, 238, 0.25);
}

.hero__image {
    flex-shrink: 0;
    width: 280px;
}

.hero__image img {
    width: 100%;
    filter: drop-shadow(0 0 60px rgba(42, 171, 238, 0.2));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ================================================================================
   POSTS
   ================================================================================ */
.posts {
    padding: 80px 0;
    background: var(--bg-section);
}

.posts__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.post-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: 12px;
    color: var(--accent);
    margin-bottom: 20px;
    flex-shrink: 0;
}

.post-card__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.post-card__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex: 1;
}

.post-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    transition: gap var(--transition);
}

.post-card__link:hover {
    gap: 10px;
}

/* ================================================================================
   ABOUT
   ================================================================================ */
.about {
    padding: 80px 0;
    background: var(--bg-dark);
}

.about__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.about__layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about__photo {
    flex-shrink: 0;
    width: 300px;
    position: relative;
}

.about__photo img {
    width: 100%;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse at 30% 20%, rgba(42, 171, 238, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(42, 171, 238, 0.15) 0%, transparent 50%),
        var(--bg-card);
}

.about__content {
    flex: 1;
    min-width: 0;
}

.about__name {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    margin-bottom: 8px;
}

.about__role {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.about__role a {
    color: var(--accent);
    font-weight: 600;
}

.about__text {
    margin-bottom: 32px;
}

.about__text p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.about__text p:last-child {
    margin-bottom: 0;
}

.about__text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about__facts {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

.about__fact {
    text-align: center;
}

.about__fact-value {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
}

.about__fact-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.about__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.about__cta:hover {
    background: var(--accent-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 171, 238, 0.25);
}

/* ================================================================================
   FOOTER
   ================================================================================ */
.footer {
    padding: 60px 0 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
}

.footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer__cta {
    text-align: center;
    padding: 48px 0;
}

.footer__title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    margin-bottom: 12px;
}

.footer__text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.footer__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--accent);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--radius);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.footer__btn:hover {
    background: var(--accent-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 171, 238, 0.25);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 48px;
}

.footer__copy {
    font-size: 14px;
    color: var(--text-muted);
}

.footer__copy a {
    color: var(--text-secondary);
}

.footer__copy a:hover {
    color: var(--accent);
}

.footer__top-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.footer__top-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ================================================================================
   RESPONSIVE: TABLET (< 960px)
   ================================================================================ */
@media (max-width: 960px) {
    .header__nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    }

    .header__nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header__nav-link {
        display: block;
        padding: 16px 24px;
        width: 100%;
        text-align: center;
        font-size: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .header__cta {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .hero__inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 40px 24px;
    }

    .hero__image {
        width: 200px;
        order: -1;
    }

    .hero__cta {
        justify-content: center;
    }

    .posts__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about__layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .about__photo {
        width: 220px;
    }

    .about__facts {
        justify-content: center;
    }

    .about__cta {
        justify-content: center;
    }
}

/* ================================================================================
   RESPONSIVE: MOBILE (< 640px)
   ================================================================================ */
@media (max-width: 640px) {
    .hero {
        min-height: auto;
        padding-top: 70px;
    }

    .hero__inner {
        padding: 32px 16px 48px;
    }

    .hero__title {
        font-size: clamp(26px, 7vw, 36px);
    }

    .hero__image {
        width: 160px;
    }

    .posts {
        padding: 48px 0;
    }

    .posts__inner {
        padding: 0 16px;
    }

    .posts__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .post-card {
        padding: 24px;
    }

    .section-title {
        font-size: clamp(24px, 6vw, 32px);
        margin-bottom: 28px;
    }

    .about {
        padding: 48px 0;
    }

    .about__inner {
        padding: 0 16px;
    }

    .about__photo {
        width: 180px;
    }

    .about__facts {
        flex-wrap: wrap;
        gap: 20px;
    }

    .about__fact {
        min-width: 80px;
    }

    .footer {
        padding: 40px 0 0;
    }

    .footer__inner {
        padding: 0 16px;
    }

    .footer__cta {
        padding: 32px 0;
    }

    .footer__btn {
        font-size: 16px;
        padding: 14px 28px;
    }
}

/* ================================================================================
   RESPONSIVE: SMALL (< 400px)
   ================================================================================ */
@media (max-width: 400px) {
    .hero__title {
        font-size: 24px;
    }

    .hero__subtitle {
        font-size: 14px;
    }

    .hero__cta {
        padding: 12px 24px;
        font-size: 14px;
    }

    .post-card {
        padding: 20px;
    }

    .post-card__title {
        font-size: 16px;
    }
}
