.article-page {
    background: var(--paper);
}

.article-page .desktop-nav a[href="/anapa/blog/"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.article-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3rem, 6vw, 5.25rem) clamp(2.25rem, 3.5vw, 3.25rem);
    background:
        radial-gradient(circle at 90% 6%, rgba(71, 125, 132, 0.16), transparent 28rem),
        radial-gradient(circle at 4% 88%, rgba(209, 177, 113, 0.18), transparent 24rem),
        var(--paper);
}

.article-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: clamp(2.3rem, 5vw, 4rem);
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 660;
}

.article-breadcrumbs a {
    text-decoration-color: rgba(37, 41, 54, 0.28);
    text-underline-offset: 0.22rem;
}

.article-hero__content {
    max-width: 67rem;
}

.article-category {
    width: fit-content;
    margin-bottom: 1.2rem;
    padding: 0.48rem 0.72rem;
    border-radius: 999px;
    background: var(--gold-pale);
    color: #775723;
    font-size: 0.69rem;
    font-weight: 770;
    letter-spacing: 0.09em;
    line-height: 1.2;
    text-transform: uppercase;
}

.article-hero h1 {
    max-width: 17ch;
    margin-bottom: 1.5rem;
    font-size: clamp(3.1rem, 6.8vw, 6.5rem);
    font-weight: 580;
    letter-spacing: -0.058em;
    line-height: 0.94;
}

.article-hero__lead {
    max-width: 50rem;
    margin-bottom: 2rem;
    color: var(--ink-soft);
    font-size: clamp(1.12rem, 1.8vw, 1.4rem);
    line-height: 1.58;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-meta li {
    padding: 0.6rem 0.82rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.73rem;
    font-weight: 680;
}

.article-cover {
    position: relative;
    width: 87%;
    min-height: clamp(26rem, 48vw, 38rem);
    margin: clamp(3rem, 6vw, 5rem) auto 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--paper-cool);
    box-shadow: var(--shadow-soft);
    isolation: isolate;
}

.article-cover::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(17, 23, 31, 0.68), transparent 55%);
    content: "";
}

.article-cover img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
}

.article-cover figcaption {
    position: absolute;
    z-index: 2;
    right: 1.5rem;
    bottom: 1.5rem;
    left: 1.5rem;
    width: fit-content;
    max-width: min(30rem, calc(100% - 3rem));
    padding: 0.78rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 1rem;
    background: rgba(20, 25, 33, 0.34);
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.76rem;
    line-height: 1.45;
    backdrop-filter: blur(14px) saturate(130%);
}

.article-section {
    padding-block: clamp(2.5rem, 4vw, 4rem) clamp(4.5rem, 8vw, 8rem);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(12.5rem, 0.36fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(3rem, 7vw, 7rem);
}

.article-toc {
    position: sticky;
    top: 7rem;
    display: grid;
    gap: 1.2rem;
}

.article-toc__label {
    margin: 0;
    color: var(--gold-strong);
    font-size: 0.7rem;
    font-weight: 760;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.article-toc ol {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
    counter-reset: toc;
}

.article-toc li {
    counter-increment: toc;
    border-bottom: 1px solid var(--line);
}

.article-toc ol a {
    display: grid;
    grid-template-columns: 1.6rem 1fr;
    gap: 0.65rem;
    padding-block: 0.82rem;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 640;
    line-height: 1.35;
    text-decoration: none;
    transition: color 160ms ease;
}

.article-toc ol a::before {
    color: var(--gold-strong);
    content: counter(toc, decimal-leading-zero);
    font-size: 0.66rem;
    font-weight: 740;
}

.article-toc__back {
    width: fit-content;
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.mobile-toc {
    display: none;
    margin-bottom: 2.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.76);
    overflow: hidden;
}

.mobile-toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 720;
    list-style: none;
}

.mobile-toc summary::-webkit-details-marker {
    display: none;
}

.mobile-toc summary span {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: transform 180ms var(--ease-out);
}

.mobile-toc[open] summary span {
    transform: rotate(45deg);
}

.mobile-toc ol {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0 1.1rem 1rem 2.7rem;
}

.mobile-toc a {
    display: block;
    padding-block: 0.45rem;
    color: var(--ink-soft);
    font-size: 0.84rem;
    text-underline-offset: 0.2rem;
}

.article-body {
    min-width: 0;
    max-width: 50rem;
}

.article-body > p,
.article-body li {
    color: #474d5a;
    font-size: clamp(1.04rem, 1.4vw, 1.14rem);
    line-height: 1.78;
}

.article-body > p {
    margin-bottom: 1.45rem;
}

.article-body > h2 {
    margin: clamp(4rem, 8vw, 6rem) 0 1.35rem;
    scroll-margin-top: 7rem;
    font-size: clamp(2.45rem, 4.7vw, 4.2rem);
    font-weight: 590;
    letter-spacing: -0.048em;
    line-height: 0.98;
}

.article-body > h3 {
    margin: 2.8rem 0 1rem;
    scroll-margin-top: 7rem;
    font-size: clamp(1.65rem, 2.8vw, 2.35rem);
    font-weight: 620;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.article-body a:not(.button):not(.channel-button):not(.related-link) {
    text-decoration-color: rgba(184, 139, 67, 0.56);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

.article-answer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid rgba(71, 125, 132, 0.2);
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 90% 12%, rgba(71, 125, 132, 0.12), transparent 16rem),
        var(--paper-cool);
}

.article-answer__label {
    margin: 0;
    color: var(--sea);
    font-size: 0.72rem;
    font-weight: 780;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.article-answer__content p {
    margin-bottom: 0.9rem;
    color: var(--ink);
    font-size: clamp(1.25rem, 2.1vw, 1.58rem);
    font-weight: 610;
    letter-spacing: -0.025em;
    line-height: 1.35;
}

.article-answer__content small {
    display: block;
    color: var(--ink-soft);
    font-size: 0.84rem;
    line-height: 1.55;
}

.article-note {
    margin-block: 2rem;
    padding: 1.2rem 1.3rem;
    border-left: 0.25rem solid var(--gold);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    background: var(--paper-warm);
}

.article-note strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--ink);
}

.article-note p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.94rem;
    line-height: 1.65;
}

.comparison-wrap {
    margin-block: 2rem 3rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 18px 48px rgba(24, 29, 37, 0.06);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.comparison-table th {
    background: var(--ink-deep);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 730;
}

.comparison-table th:first-child {
    width: 25%;
    color: rgba(255, 255, 255, 0.66);
}

.comparison-table td:first-child {
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 720;
}

.comparison-table td {
    color: var(--ink-soft);
    font-size: 0.86rem;
    line-height: 1.55;
}

.comparison-table tr:last-child td {
    border-bottom: 0;
}

.fact-list,
.document-list {
    display: grid;
    gap: 0;
    margin: 1.5rem 0 2.5rem;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.fact-list li,
.document-list li {
    position: relative;
    padding: 1rem 0 1rem 2.25rem;
    border-bottom: 1px solid var(--line);
}

.fact-list li::before,
.document-list li::before {
    position: absolute;
    top: 1.15rem;
    left: 0;
    display: grid;
    width: 1.4rem;
    height: 1.4rem;
    place-items: center;
    border-radius: 50%;
    background: var(--gold-pale);
    color: #775723;
    content: "✓";
    font-size: 0.7rem;
    font-weight: 800;
}

.decision-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-block: 2rem 3rem;
}

.decision-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
}

.decision-card--apartments {
    background:
        radial-gradient(circle at 90% 8%, rgba(71, 125, 132, 0.13), transparent 11rem),
        var(--paper-cool);
}

.decision-card__number {
    margin-bottom: 2.8rem;
    color: var(--gold-strong);
    font-size: 0.7rem;
    font-weight: 760;
}

.decision-card h3 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.55rem, 2.8vw, 2.15rem);
    font-weight: 620;
    letter-spacing: -0.035em;
    line-height: 1.06;
}

.decision-card p {
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.62;
}

.channel-cta {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(13rem, 0.58fr);
    min-height: 24rem;
    margin-block: clamp(4rem, 8vw, 6rem);
    overflow: hidden;
    border: 1px solid rgba(71, 125, 132, 0.22);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 98% 0%, rgba(71, 125, 132, 0.2), transparent 18rem),
        linear-gradient(145deg, #eef8fb, #dceff6);
    box-shadow: 0 24px 70px rgba(38, 93, 116, 0.12);
}

.channel-cta__content {
    position: relative;
    z-index: 2;
    padding: clamp(1.7rem, 3vw, 2rem);
}

.channel-cta__eyebrow {
    margin-bottom: 0.75rem;
    color: #2083b8;
    font-size: 0.7rem;
    font-weight: 780;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.channel-cta h2 {
    max-width: 20ch;
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 610;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.channel-cta__lead {
    max-width: 36rem;
    margin-bottom: 1rem;
    color: #4b6470;
    font-size: 0.98rem;
    line-height: 1.62;
}

.channel-benefits {
    display: grid;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.channel-benefits li {
    position: relative;
    padding-left: 1.35rem;
    color: #344e59;
    font-size: 0.84rem;
    font-weight: 630;
    line-height: 1.45;
}

.channel-benefits li::before {
    position: absolute;
    top: 0.58em;
    left: 0;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #2d94c8;
    content: "";
}

.channel-actions {
    width: max-content;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 0.65rem;
}

.channel-button {
    min-width: 9.5rem;
    min-height: 3.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.82rem 0.875rem;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
    transition:
        transform 140ms var(--ease-out),
        box-shadow 180ms var(--ease-out);
}

.channel-button:active {
    transform: scale(0.97);
}

.channel-button img {
    width: 1.65rem;
    height: 1.65rem;
    object-fit: contain;
}

.channel-button--telegram {
    background: #2a98d4;
    box-shadow: 0 12px 28px rgba(42, 152, 212, 0.24);
}

.channel-button--max {
    background: linear-gradient(120deg, #2368f2, #8d45e6);
    box-shadow: 0 12px 28px rgba(91, 69, 222, 0.22);
}

.channel-participants {
    margin: 0.75rem 0 0;
    color: #627986;
    font-size: 0.78rem;
    font-weight: 650;
}

.channel-cta__visual {
    position: relative;
    min-height: 100%;
}

.channel-cta__visual img {
    position: absolute;
    right: -1.5rem;
    bottom: -1.5rem;
    width: min(36rem, 185%);
    max-width: none;
    height: auto;
}

.article-lead {
    position: relative;
    margin-block: clamp(4rem, 8vw, 6rem);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 92% 8%, rgba(209, 177, 113, 0.22), transparent 18rem),
        radial-gradient(circle at 8% 100%, rgba(71, 125, 132, 0.2), transparent 18rem),
        var(--ink-deep);
    color: var(--white);
}

.article-lead__content {
    padding: clamp(1.7rem, 4.5vw, 3rem) clamp(1.7rem, 4.5vw, 3rem) 1rem;
}

.article-lead h2 {
    max-width: 44rem;
    margin-bottom: 0.9rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.article-lead__content > p:not(.eyebrow) {
    max-width: 44rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.96rem;
}

.article-lead .lead-form {
    width: auto;
    margin: 0 clamp(0.75rem, 2vw, 1.4rem) clamp(0.75rem, 2vw, 1.4rem);
}

.article-summary {
    margin-block: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.article-summary h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.article-summary p {
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.72;
}

.author-card {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 1rem;
    margin-block: 3.5rem 2rem;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
}

.author-card__mark {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper-warm);
}

.author-card__mark img {
    width: 100%;
    height: 100%;
    padding: 0.18rem;
    object-fit: contain;
}

.author-card h2 {
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
    font-weight: 720;
    letter-spacing: -0.02em;
}

.author-card p {
    margin-bottom: 0.65rem;
    color: var(--ink-soft);
    font-size: 0.84rem;
    line-height: 1.55;
}

.author-location {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 680;
    text-decoration: none;
}

.author-location img {
    width: 1.4rem;
    height: 1.4rem;
}

.article-sources {
    margin-block: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.article-sources h2 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 680;
    letter-spacing: -0.025em;
}

.article-sources ol {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding-left: 1.2rem;
}

.article-sources li {
    color: var(--ink-soft);
    font-size: 0.78rem;
    line-height: 1.55;
}

.article-disclaimer {
    margin: 1.5rem 0 0;
    color: var(--ink-soft);
    font-size: 0.75rem;
    line-height: 1.55;
}

.related-pages {
    margin-top: clamp(4rem, 8vw, 6rem);
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}

.related-pages > p {
    margin-bottom: 1rem;
    color: var(--gold-strong);
    font-size: 0.7rem;
    font-weight: 760;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.related-pages__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.related-link {
    min-height: 9rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 680;
    line-height: 1.35;
    text-decoration: none;
    transition:
        transform 180ms var(--ease-out),
        border-color 180ms ease,
        box-shadow 180ms var(--ease-out);
}

.related-link span {
    color: var(--gold-strong);
    font-size: 1.15rem;
}

@media (hover: hover) and (pointer: fine) {
    .article-toc a:hover,
    .article-toc__back:hover {
        color: var(--ink);
    }

    .channel-button:hover,
    .related-link:hover {
        transform: translateY(-2px);
    }

    .channel-button--telegram:hover {
        box-shadow: 0 16px 34px rgba(42, 152, 212, 0.3);
    }

    .channel-button--max:hover {
        box-shadow: 0 16px 34px rgba(91, 69, 222, 0.3);
    }

    .related-link:hover {
        border-color: rgba(184, 139, 67, 0.38);
        box-shadow: 0 14px 32px rgba(24, 29, 37, 0.08);
    }

    .author-location:hover {
        color: var(--gold-strong);
    }
}

@media (max-width: 64rem) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-toc {
        display: none;
    }

    .mobile-toc {
        display: block;
    }

    .article-body {
        max-width: 48rem;
        margin-inline: auto;
    }
}

@media (max-width: 48rem) {
    .article-hero {
        padding-block: 2.4rem 2.25rem;
    }

    .article-breadcrumbs {
        margin-bottom: 2.2rem;
    }

    .article-hero h1 {
        max-width: 12ch;
        font-size: clamp(2.85rem, 13vw, 4.2rem);
    }

    .article-hero__lead {
        font-size: 1.06rem;
    }

    .article-meta {
        gap: 0.45rem;
    }

    .article-meta li {
        padding: 0.5rem 0.65rem;
        font-size: 0.68rem;
    }

    .article-cover {
        width: 100%;
        min-height: 31rem;
        border-radius: var(--radius-md);
    }

    .article-cover img {
        object-position: 48% center;
    }

    .article-cover figcaption {
        right: 1rem;
        bottom: 1rem;
        left: 1rem;
        max-width: calc(100% - 2rem);
    }

    .article-section {
        padding-block: 2.5rem 5rem;
    }

    .article-answer {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        border-radius: var(--radius-sm);
    }

    .article-body > h2 {
        margin-top: 3.7rem;
        font-size: clamp(2.25rem, 10vw, 3rem);
    }

    .comparison-wrap {
        border: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .comparison-table,
    .comparison-table tbody {
        display: grid;
        gap: 0.75rem;
    }

    .comparison-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .comparison-table tr {
        display: grid;
        gap: 0;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        background: var(--white);
    }

    .comparison-table td,
    .comparison-table td:first-child {
        display: grid;
        grid-template-columns: 6.5rem 1fr;
        gap: 0.85rem;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid var(--line);
        font-size: 0.82rem;
    }

    .comparison-table td::before {
        color: var(--ink-soft);
        content: attr(data-label);
        font-size: 0.68rem;
        font-weight: 720;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .comparison-table td:first-child {
        grid-template-columns: 1fr;
        background: var(--ink-deep);
        color: var(--white);
    }

    .comparison-table td:first-child::before {
        display: none;
    }

    .comparison-table td:last-child {
        border-bottom: 0;
    }

    .decision-grid,
    .channel-cta,
    .related-pages__grid {
        grid-template-columns: 1fr;
    }

    .decision-card__number {
        margin-bottom: 2rem;
    }

    .channel-cta {
        min-height: 0;
        border-radius: var(--radius-md);
    }

    .channel-actions {
        width: 100%;
        max-width: none;
        display: grid;
        grid-template-columns: 1fr;
    }

    .channel-button {
        min-width: 0;
        width: 100%;
    }

    .channel-cta__visual {
        min-height: 18rem;
    }

    .channel-cta__visual img {
        right: 50%;
        bottom: -3.8rem;
        width: 27rem;
        transform: translateX(50%);
    }

    .article-lead {
        border-radius: var(--radius-md);
    }

    .article-lead .lead-form__fields {
        grid-template-columns: 1fr;
    }

    .author-card {
        grid-template-columns: 1fr;
    }

    .related-link {
        min-height: 7rem;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .article-cover figcaption,
    .mobile-toc {
        background: var(--white);
        color: var(--ink);
        backdrop-filter: none;
    }

    .article-lead .lead-form {
        backdrop-filter: none;
    }
}

@media (prefers-contrast: more) {
    .article-answer,
    .comparison-wrap,
    .decision-card,
    .channel-cta,
    .article-lead,
    .author-card,
    .related-link {
        border: 2px solid currentColor;
    }
}
