/* === MAIN =================== */
.mw-1400 {
    max-width: 1400px;
}

.mw-900 {
    max-width: 900px;
}

.kg-cta-bg-grey {
    background-color: #f5f5f5;
}

.pos-content a {
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* === GLOBAL BUTTON =================== */
.btn {
    display: inline-block;
    padding: 20px 28px;
    background: #f2f2f2;
    color: #333;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    letter-spacing: .2px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color .3s ease, color .3s ease;
}

.btn:hover {
    background: #e1e1e1;
}

.btn.disabled {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 10px;
    justify-content: flex-start;
    margin-bottom: 24px;
}

/* === TITLES ======================= */
.title {
    margin: 140px 0;
}

.title h1 {
    font-size: 5.2rem;
    font-variant-numeric: slashed-zero;
    margin: 0;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -1.5px;
}

.title h3 {
    font-size: 4.2rem;
    font-variant-numeric: slashed-zero;
    margin: 0;
}

.title .lead {
    font-size: 4.2rem;
    color: #949494;
    letter-spacing: -0.82px;
    line-height: 46.2px;
    margin: 0 0 3vh;
}

.title .lead-2 {
    font-size: 3.5rem;
    color: #949494;
    letter-spacing: -0.82px;
    line-height: 38px;
    margin: 0 0 3vh;
}

.small {
    font-size: 12px;
    letter-spacing: -0.2px;
}

/* === TEXT / CONTENT BLOCKS ======================= */
.block-content {
    padding: 20px 0;
}

.block-content h2 {
    font-size: 4.2rem;
    letter-spacing: -0.82px;
    margin: 140px 0 0;
    max-width: 900px;
}

.block-content h3 {
    font-size: 3rem;
    letter-spacing: -0.82px;
    margin: 120px auto 0;
}

.block-content h2+h3 {
    font-size: 3.5rem;
    font-weight: 300;
    color: #949494;
    letter-spacing: -0.82px;
    line-height: 38px;
    margin: 0;
}

blockquote {
    max-width: 950px;
    margin: 40px auto 40px;
    border-left: 3px solid #000;
    padding-left: 20px;
    font-size: x-large;
}

.block-content h3,
.block-content p,
.block-content ul,
.block-content ol,
.block-content .kg-card.kg-cta-card,
.post-share-section,
.block-content .kg-toggle-card,
.block-content .kg-callout-card {
    max-width: 950px;
    margin: 40px auto 0;
}


.block-content p,
.block-content ul {
    font-size: 2rem;
    font-variant-numeric: slashed-zero;
    font-weight: 400;
    line-height: 28px;
}

.block-content p {
    margin-top: 16px;
}

.blog.block-content h2+p,
.blog.block-content h3+p {
    margin-top: 40px;
}


.block-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0 auto;
}

.block-content ul li {
    position: relative;
    padding-left: 1.2em;
    padding-top: 16px;
}

.block-content ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #666;
}


/* CTA text block inside content */
.block-content .kg-cta-text p,
.block-content .kg-cta-text ul {
    color: #000;
    font-size: 16px;
    font-weight: 400;
    line-height: 140%;
    margin-top: 15px;
}

.block-content .kg-cta-text li {
    margin-top: 10px;
}

.block-content .kg-cta-text strong {
    display: block;
    padding: 20px 0;
}

.block-content .kg-cta-text strong:first-of-type {
    margin-top: 0;
}

.block-content .kg-cta-text em {
    font-style: normal;
    color: #666;
    margin-right: 16px;
}

/* === TEASER BAR ======================= */
.teaser {
    background: #FDF313;
    padding: 15px 20px;
    margin: 0;
    font-size: 16px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.teaser a {
    font-size: 16px;
    color: #000;
}

.teaser a:hover {
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.teaser svg {
    position: relative;
    top: 2px;
    width: 15px;
}

/* === IMAGES / MEDIA ======================= */
.blog.block-content figure {
    text-align: center;
    margin: 0 auto;
}

.blog.block-content img {
    width: 950px;
    margin: 40px auto 20px;
    border-radius: 10px;
    height: auto;
}

.blog.block-content .kg-image-card.kg-width-full img {
    position: relative;
    width: calc(100vw - 32px);
    margin-left: calc(-50vw + 16px);
    height: auto;
    border-radius: 10px;
    margin: 20px auto 100px;
}

.blog.block-content .kg-image-card.kg-width-wide,
.blog.block-content .kg-gallery-card {
    background-color: #e9eaee;
    border-radius: 10px;
    margin: 60px auto 100px;
    text-align: center;
    padding: 60px;
}

.blog.block-content .kg-image-card.kg-width-wide img {
    border-radius: 10px;
    margin: 0 auto;
    max-width: 1400px;
    width: 100%;
    height: auto;
}

/* === BLOG-SPECIFIC ======================= */
.post-tags a:last-of-type {
    margin-bottom: 0;
}

/* Hero секция - статичная в потоке документа */
.hero-static {
    position: relative;
    height: 75vh;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 0;
    transition: opacity 0.4s ease;
}

.hero-bg-static {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-static::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

:root {
    --hero-height: 35vh;
}

.hero-static {
    height: var(--hero-height) !important;
}

.hero-title-static {
    position: fixed;
    top: calc((var(--hero-height) / 2) - 35px) !important;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: rgba(255, 255, 255, .9);
    font-size: 10rem;
    font-weight: 300;
    line-height: 1;
    pointer-events: none;
    width: 380px;
    margin: 0;
}

.hero-title-static span {
    display: block;
    font-weight: 300;
    font-size: 3rem;
    text-transform: uppercase;
    text-align: right;
}

.post-section {
    position: relative;
    background: #fff;
    z-index: 3;
    margin-top: 0;
}

.blog.block-content {
    position: relative;
    background: #fff;
    z-index: 3;
}

.blog .title {
    margin: 0;
}

.gh-content {
    position: relative;
    height: 100%;
    margin: 8vmin 0;
    font-size: 1.6rem;
}

.gh-toc>.toc-list {
    position: relative;
    background-color: #f5f5f5;
    padding: 24px;
    border-radius: 10px;
}

.toc-list a:hover {
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.gh-toc .is-active-link::before {
    background-color: var(--ghost-accent-color);
}

.blog ol {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.blog ol li {
    counter-increment: item;
    margin: 0 0 10px 0;
    position: relative;
    padding-left: 2.5em;
}

.blog ol li::before {
    content: counter(item, decimal-leading-zero);
    position: absolute;
    left: 0;
    font-variant-numeric: slashed-zero;
    color: rgb(102, 102, 102);
}

.blog.block-content .gh-toc ol::before {
    content: "Содержание";
    display: block;
    margin-bottom: 28px;
    font-size: 1.7rem;
    color: rgb(102, 102, 102);
}

.block-content li:first-of-type,
.block-content ul:first-of-type,
.block-content p:first-of-type {
    margin-top: 0;
}

.membership .title {
    margin: 140px 0 60px;
}

/* === Адаптивная верстка ============ */
@media (max-width: 768px) {
    .header-toggle .bar {
        background-color: #fff;
    }

    #primary_nav_wrap ul ul {
        right: -10px;
    }

    .hero-title-static {
        font-size: 7rem;
        width: 268px;
    }

    .hero-title-static span {
        font-size: 2.3rem;
    }

    .title h1 {
        font-size: 32px;
        line-height: 36.8px;
        padding: 10px 0 5px;
    }

    .block-content h3 {
        font-size: 2.5rem;
        font-weight: 400;
    }

    .title .lead-2 {
        font-size: 20px;
        line-height: 28px;
        ;
    }

    .block-content p,
    .block-content ul {
        font-size: 16px;
        line-height: 22.2px;
        margin-top: 20px;
    }

    .gh-toc>.toc-list {
        padding: 15px 15px 5px;
    }

    .blog.block-content .gh-toc ol::before {
        margin-bottom: 15px;
        font-size: 1.4rem;
    }

    .gh-content {
        font-size: 1.4rem;
    }

}