:root {
    --ink: #191317;
    --ink-2: #4A4046;
    --muted: #7B7078;
    --bg: #FBF7F5;
    --card: #FFFFFF;
    --line: #E7DCD8;
    --line-2: #D3C3BD;
    --brand: #962D65;
    --brand-dark: #6D1E49;
    --brand-soft: #F7E9F1;
    --brand-soft-2: #EBD3E0;
    --cta: #F4B400;
    --cta-2: #FFC422;
    --cta-dark: #C98F00;
    --cta-ink: #2B1D00;
    --green: #177A52;
    --danger: #C0392B;
    --r-sm: 10px;
    --r: 14px;
    --r-lg: 20px;
    --shadow: 0 1px 2px rgba(25, 19, 23, .04), 0 8px 24px -12px rgba(25, 19, 23, .14);
    --shadow-lg: 0 24px 60px -24px rgba(25, 19, 23, .35);
    --cta-shadow: 0 6px 18px -6px rgba(201, 143, 0, .55);
    --maxw: 660px;
    --pad: 18px;
}

*,
*::before,
*::after {
    box-sizing: border-box
}

* {
    -webkit-tap-highlight-color: transparent
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-synthesis-weight: none;
    overflow-x: hidden;
    padding-bottom: calc(80px + env(safe-area-inset-bottom))
}

@media (min-width:900px) {
    body {
        padding-bottom: 0
    }
}

img {
    max-width: 100%;
    display: block;
    border: 0
}

button {
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit
}

a {
    color: var(--brand-dark)
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: -.022em;
    line-height: 1.24;
    font-weight: 800
}

p {
    margin: 0
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: 6px
}

@media (prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important
    }
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--pad)
}

.hidden {
    display: none !important
}

.center {
    text-align: center
}

/* 2. ШАПКА + ПРОГРЕСС ЧТЕНИЯ */
header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: saturate(150%) blur(8px);
    -webkit-backdrop-filter: saturate(150%) blur(8px);
    border-bottom: 1px solid var(--line)
}

.head-in {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 11px var(--pad);
    display: flex;
    align-items: center;
    gap: 10px
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 16.5px;
    letter-spacing: -.03em
}

.brand i {
    width: 25px;
    height: 25px;
    border-radius: 8px;
    flex: 0 0 25px;
    background: linear-gradient(140deg, var(--brand), #B8407F);
    display: grid;
    place-items: center;
    color: #fff;
    font-style: normal;
    font-size: 13px;
    font-weight: 900
}

.brand b {
    color: var(--brand-dark);
    font-weight: 900
}

.head-tag {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 999px;
    padding: 5px 10px;
    white-space: nowrap
}

@media (max-width:359px) {
    .head-tag {
        display: none
    }
}

.progress {
    height: 3px;
    background: transparent
}

.progress i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--brand), #C25A93);
    transition: width .1s linear
}

/* 3. ШАПКА СТАТЬИ */
.art-head {
    padding: 24px 0 6px
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 6px 11px;
    border-radius: 999px;
    margin-bottom: 14px
}

h1 {
    font-size: clamp(26px, 6.6vw, 38px);
    margin-bottom: 14px
}

.deck {
    font-size: 17.5px;
    line-height: 1.6;
    color: var(--ink-2);
    font-weight: 500
}

.byline {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 20px 0 4px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.byline .av {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-soft);
    display: grid;
    place-items: center;
    font-weight: 900;
    color: var(--brand-dark);
    font-size: 15px;
    background-size: cover;
    background-position: center;
    overflow: hidden
}

.byline b {
    display: block;
    font-size: 14.5px;
    line-height: 1.35
}

.byline small {
    color: var(--muted);
    font-size: 12.5px
}

.byline .meta {
    margin-left: auto;
    text-align: right;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    white-space: nowrap
}

/* 4. ТЕЛО ТЕКСТА */
article {
    padding-bottom: 10px
}

.body p {
    font-size: 17px;
    line-height: 1.75;
    margin: 0 0 18px;
    color: var(--ink)
}

.body p.lead-p {
    font-size: 18px
}

.body p strong {
    font-weight: 800
}

.body h2 {
    font-size: 21px;
    margin: 32px 0 14px;
    padding-top: 6px;
    line-height: 1.3
}

@media (min-width:720px) {
    .body h2 {
        font-size: 24px
    }
}

.body h2::before {
    content: "";
    display: block;
    width: 38px;
    height: 3px;
    border-radius: 2px;
    background: var(--brand-soft-2);
    margin-bottom: 13px
}

.dlg {
    margin: 0 0 10px;
    padding: 0 0 0 15px;
    border-left: 3px solid var(--brand-soft-2);
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--ink-2)
}

.dlg+.dlg {
    margin-top: -2px
}

.dlg-block {
    margin: 0 0 18px
}

.pull {
    margin: 24px 0;
    padding: 18px 18px 18px 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 5px solid var(--brand);
    border-radius: var(--r);
    box-shadow: var(--shadow)
}

.pull p {
    font-size: 18px;
    line-height: 1.55;
    font-weight: 700;
    letter-spacing: -.015em;
    margin: 0
}

.pull small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600
}

.note {
    margin: 22px 0;
    background: var(--brand-soft);
    border: 1px solid var(--brand-soft-2);
    border-radius: var(--r);
    padding: 15px 16px
}

.note b {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    color: var(--brand-dark);
    margin-bottom: 6px
}

.note p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-2);
    margin: 0
}

figure {
    margin: 24px 0
}

.media {
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(150deg, #F7EFF2, #EDE2E6);
    aspect-ratio: 4/3
}

.media img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.media.contain img {
    object-fit: contain;
    padding: 12px;
    background: #fff
}

figcaption {
    margin-top: 9px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
    text-align: center
}

/* 5. КНОПКИ И CTA-БЛОКИ — три появления, не больше */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 56px;
    padding: 14px 20px;
    background: linear-gradient(180deg, var(--cta-2), var(--cta));
    color: var(--cta-ink);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.01em;
    border-radius: var(--r);
    box-shadow: var(--cta-shadow);
    transition: transform .12s ease, box-shadow .12s ease;
    text-decoration: none;
    text-align: center
}

.btn:active {
    transform: translateY(1px) scale(.995);
    box-shadow: 0 3px 10px -4px rgba(201, 143, 0, .5)
}

.btn .arrow {
    font-size: 19px;
    line-height: 1
}

.btn.pulse {
    animation: pulse 2.8s ease-in-out 1.4s infinite
}

@keyframes pulse {

    0%,
    88%,
    100% {
        box-shadow: var(--cta-shadow)
    }

    94% {
        box-shadow: 0 6px 18px -6px rgba(201, 143, 0, .55), 0 0 0 10px rgba(244, 180, 0, .16)
    }
}

.btn-note {
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 9px;
    line-height: 1.5
}

.ctabox {
    margin: 28px 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 18px;
    box-shadow: var(--shadow)
}

.ctabox.strong {
    border: 2px solid var(--cta);
    box-shadow: var(--shadow-lg)
}

.ctabox .top {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 14px
}

.ctabox .thumb {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(150deg, #F7EFF2, #EDE2E6);
    border: 1px solid var(--line)
}

.ctabox .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.ctabox .top b {
    display: block;
    font-size: 16px;
    line-height: 1.3
}

.ctabox .top small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
    line-height: 1.45
}

.ctabox ul {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    gap: 7px
}

.ctabox li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-2)
}

.chk {
    flex: 0 0 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--brand-soft-2);
    color: var(--brand-dark);
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 900;
    margin-top: 2px
}

.stars {
    color: var(--cta-dark);
    letter-spacing: 1px;
    font-size: 12.5px
}

/* 6. ПОДПИСЬ АВТОРА */
.sign {
    margin: 26px 0 4px;
    padding: 16px;
    background: var(--bg);
    border: 1px dashed var(--line-2);
    border-radius: var(--r);
    font-size: 14.5px;
    color: var(--ink-2);
    line-height: 1.6
}

.sign b {
    display: block;
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 3px
}

/* 7. КОММЕНТАРИИ */
.comments {
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 30px 0 34px;
    margin-top: 26px
}

.c-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px
}

.c-head h3 {
    font-size: 18px
}

.c-head span {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600
}

.c {
    display: flex;
    gap: 11px;
    margin-bottom: 16px
}

.c .av {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-soft);
    display: grid;
    place-items: center;
    font-weight: 900;
    color: var(--brand-dark);
    font-size: 13px;
    background-size: cover;
    background-position: center;
    overflow: hidden
}

.c-in {
    flex: 1;
    min-width: 0
}

.c-bub {
    background: var(--bg);
    border-radius: 14px;
    padding: 11px 13px
}

.c-bub b {
    display: block;
    font-size: 14px;
    margin-bottom: 3px
}

.c-bub p {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink-2)
}

.c-foot {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 6px 0 0 4px;
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600
}

.c-foot .lk {
    color: var(--brand-dark);
    cursor: pointer
}

.c-foot .lk.on {
    color: var(--green)
}

.c.reply {
    margin-left: 30px
}

.c.reply .av {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    font-size: 12px
}

.c-more {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink-2);
    background: #fff
}

/* 8. НИЖНЯЯ ФИКСИРОВАННАЯ ПОЛОСА */
.sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 9px var(--pad) calc(9px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px -18px rgba(25, 19, 23, .4);
    transform: translateY(120%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1)
}

.sticky.on {
    transform: none
}

.sticky-in {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px
}

.sticky .t {
    min-width: 0
}

.sticky .t b {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.25
}

.sticky .t small {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.3;
    margin-top: 1px
}

.sticky .btn {
    width: auto;
    flex: 0 0 auto;
    min-height: 48px;
    font-size: 15.5px;
    padding: 11px 18px
}

@media (max-width:379px) {
    .sticky .t {
        display: none
    }

    .sticky .btn {
        flex: 1
    }
}

@media (min-width:900px) {
    .sticky {
        display: none
    }
}

/* 9. ПОДВАЛ */
footer {
    background: #1A1216;
    color: #A2929A;
    padding: 28px 0 32px;
    font-size: 12.5px;
    line-height: 1.6
}

footer b {
    color: #E4D8DE;
    display: block;
    margin-bottom: 8px;
    font-size: 14px
}

footer .disc {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    font-size: 11.5px;
    color: #82727A
}

footer a {
    color: #A2929A
}

#back2-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    background: #fff;
}

#back2-overlay iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}