/* ===== RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ===== BASE ===== */
body {
    background: #02034f;
    color: #fff;
    font-family: Arial, sans-serif;
}

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

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    padding: 24px;
}

/* ===== HERO ===== */
.hero-block {
    margin-bottom: 48px;
}

.hero-top {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 28px;
}

.hero-thumb img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
}

.hero-meta {
    min-width: 0;
}

.hero-meta h1 {
    margin: 0 0 8px;
    font-size: clamp(32px, 4vw, 64px);
    line-height: 1.08;
    font-weight: 700;
    word-break: break-word;
}

.hero-stats {
    font-size: clamp(18px, 1.8vw, 24px);
    margin-bottom: 24px;
    color: #bfc3ff;
}

.hero-stats .growth {
    color: #ffd400;
    font-weight: 700;
    margin-left: 8px;
}

.hero-separator {
    border: 0;
    border-top: 1px solid rgba(255,255,255,.2);
    margin: 24px 0 36px;
}

/* ===== CONTENT ===== */
.content {
    max-width: 1400px;
}

.content p {
    font-size: clamp(18px, 1.6vw, 24px);
    line-height: 1.7;
    color: rgba(255,255,255,.82);
    margin: 0 0 18px;
    word-break: break-word;
}

/* ===== BUTTONS ===== */
.open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(180deg, #ff00d4 0%, #ff00f0 100%);
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(255,0,200,.25);
    max-width: 100%;
}

.open-btn.large {
    width: min(260px, 100%);
    height: 72px;
    font-size: clamp(20px, 2vw, 28px);
    padding: 0 24px;
}

.open-btn.small {
    width: min(150px, 100%);
    height: 72px;
    font-size: clamp(18px, 1.8vw, 24px);
    margin-top: 18px;
    padding: 0 20px;
}

/* ===== RELATED ===== */
.related-title {
    font-size: clamp(24px, 2.2vw, 34px);
    margin: 0 0 22px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.rel-card {
    position: relative;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 22px;
    padding: 16px 16px 44px;
    text-decoration: none;
    color: #fff;
    min-height: 360px;
    min-width: 0;
}

.rel-thumb-wrap {
    position: relative;
    margin-bottom: 14px;
}

.rel-thumb {
    width: 100%;
    height: 155px;
    object-fit: cover;
    border-radius: 12px;
}

.rel-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffd400;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
}

.rel-stat {
    color: #5dff47;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 14px;
    text-align: center;
}

.rel-name {
    font-size: clamp(20px, 1.6vw, 24px);
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    word-break: break-word;
}

.rel-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,.7);
    font-size: 18px;
    text-align: center;
}

.tg-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #19a7ff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.rel-bottom-dot {
    position: absolute;
    left: 50%;
    bottom: -24px;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ff00d4 0%, #ff00f0 100%);
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
    .container {
        padding: 20px;
    }

    .hero-thumb img {
        width: 130px;
        height: 130px;
    }

    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .hero-top {
        flex-direction: column;
        gap: 16px;
    }

    .hero-thumb img {
        width: 96px;
        height: 96px;
    }

    .open-btn.large,
    .open-btn.small {
        height: 56px;
    }

    .content p {
        line-height: 1.6;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .rel-card {
        min-height: auto;
    }

    .rel-thumb {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .rel-cta {
        font-size: 16px;
    }

    .rel-bottom-dot {
        width: 42px;
        height: 42px;
        bottom: -18px;
    }
}

.dynamic-links-block{margin:24px 0;padding:18px;border-radius:14px;background:#f7f7f7}
.dynamic-links-block h2{margin:0 0 12px;font-size:20px}
.dynamic-links-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px 18px;margin:0;padding-left:20px}
.dynamic-links-list a{text-decoration:none;font-weight:600}
.dynamic-links-list a:hover{text-decoration:underline}
