/* ============================================================
   Internal content pages (page/show.html article branch).
   Reuses the landing's design tokens (style.css :root). Adds
   article typography + a few content helpers used in page HTML.
   ============================================================ */

.page-view { padding-top: clamp(24px, 4vw, 52px); }
.page-view-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.page-view-head .hero-eyebrow { justify-content: center; }
.page-view-head .section-title { margin: 14px 0 0; }
.section-lead {
    margin: 20px auto 0;
    max-width: 680px;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.7;
    color: var(--text-soft);
}

/* Rich text body authored as stored HTML */
.rich { max-width: 920px; margin: 0 auto; color: var(--text-soft); font-size: 1.05rem; line-height: 1.8; }
.rich > * + * { margin-top: 1.1em; }
.rich h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    line-height: 1.15;
    color: var(--text);
    margin-top: 2.4em;
    letter-spacing: -0.01em;
}
.rich h2:first-child { margin-top: 0; }
.rich h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.25rem, 1.9vw, 1.5rem);
    color: var(--text);
    margin-top: 1.8em;
}
.rich .eyebrow, .rich .lead { display: block; }
.rich .lead { font-size: 1.15rem; color: var(--text); }
.rich ul { list-style: none; padding: 0; margin-top: 1em; display: grid; gap: 12px; }
.rich ul li { position: relative; padding-left: 30px; }
.rich ul li::before {
    content: ""; position: absolute; left: 6px; top: 11px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
}
.rich a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.rich strong { color: var(--text); font-weight: 600; }
.rich hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }

/* Price tag inside rich content */
.rich .price {
    display: inline-block; margin-top: 6px;
    font-family: var(--font-display); font-weight: 600;
    font-size: 1.35rem; color: var(--accent-strong);
}

/* Card grid for service tiers / courses inside a page */
.page-cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 1.6em; }
.page-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.page-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.page-card .kicker { font-family: var(--font-sans); font-size: .72rem; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--accent-strong); }
.page-card h3 { margin: 8px 0 4px; font-family: var(--font-display); font-size: 1.4rem; color: var(--text); }
.page-card .price { font-size: 1.5rem; }

/* Bank / requisites block for the donate page */
.req-table { width: 100%; border-collapse: collapse; margin-top: 1.2em; }
.req-table th, .req-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.req-table th { width: 38%; color: var(--text-muted); font-weight: 500; font-family: var(--font-sans); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.req-table td { font-family: var(--font-mono); color: var(--text); font-size: .95rem; }

/* Contact list on the contacts page */
.page-contacts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1.4em; list-style: none; padding: 0; }
.page-contacts li { padding-left: 0; }
.page-contacts li::before { display: none; }
.page-contacts a, .page-contacts span {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 18px 20px;
    color: var(--text); text-decoration: none; font-weight: 500;
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.page-contacts a:hover { border-color: var(--accent); transform: translateY(-2px); }
.page-contacts i { font-size: 1.3rem; color: var(--accent-strong); }

/* ============================================================
   Selling pages (template='sell') — landing-style offer pages.
   ============================================================ */
.page-sell { display: block; }
.page-sell .container { max-width: var(--container); }

/* Hero */
.sell-hero { text-align: center; padding: clamp(28px, 4vw, 56px) 0 0; }
.sell-hero .eyebrow, .sell-hero .hero-eyebrow { justify-content: center; }
.sell-hero h1 {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05;
    letter-spacing: -0.02em; margin: 14px 0 0; color: var(--text);
}
.sell-hero .lead { margin: 22px auto 0; max-width: 640px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.7; color: var(--text-soft); }
.sell-hero .hero-actions { justify-content: center; margin-top: 30px; }

/* Direction / offer block */
.sell-block { padding: var(--section-y) 0; border-top: 1px solid var(--border); }
.sell-block:first-of-type { border-top: 0; }
.sell-block__head { max-width: 760px; margin-bottom: 40px; }
.sell-block__head .kicker { font-size: .74rem; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--accent-strong); }
.sell-block__head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1; margin: 10px 0 0; color: var(--text); letter-spacing: -0.01em; }
.sell-block__head p { margin: 16px 0 0; font-size: 1.08rem; line-height: 1.7; color: var(--text-soft); max-width: 680px; }

/* Pricing tier cards */
.tier-cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.tier-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.tier-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.tier-card--featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.tier-card .badge-popular {
    position: absolute; top: -12px; left: 28px;
    background: var(--accent); color: #fff; font-size: .68rem; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-pill);
}
.tier-card .kicker { font-size: .72rem; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--text-muted); }
.tier-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; margin: 6px 0 0; color: var(--text); }
.tier-card .tier-price { font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; color: var(--accent-strong); margin: 14px 0 4px; }
.tier-card .tier-price small { font-size: 1rem; color: var(--text-muted); font-family: var(--font-sans); }
.tier-card ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 11px; }
.tier-card ul li { position: relative; padding-left: 28px; font-size: .96rem; line-height: 1.5; color: var(--text-soft); }
.tier-card ul li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 1px; color: var(--accent); font-size: .9rem; }
.tier-card .btn { margin-top: auto; }

/* "For whom" / "what you get" chip grids */
.icon-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; padding: 0; }
.icon-grid li { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.icon-grid li::before { display: none; }
.icon-grid i { color: var(--accent-strong); font-size: 1.3rem; flex: none; margin-top: 2px; }
.icon-grid b { display: block; color: var(--text); margin-bottom: 3px; }
.icon-grid span { color: var(--text-muted); font-size: .94rem; line-height: 1.5; }

/* Service hub — direction cards linking to per-service selling pages */
.svc-hub { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.svc-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px 30px; text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.svc-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent-soft, rgba(0,0,0,.04)); color: var(--accent-strong);
    font-size: 1.6rem; margin-bottom: 20px;
}
.svc-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--text); margin: 0 0 8px; }
.svc-card p { color: var(--text-soft); font-size: 1rem; line-height: 1.6; margin: 0 0 24px; }
.svc-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.svc-from { font-family: var(--font-display); font-weight: 600; color: var(--accent-strong); font-size: 1.15rem; }
.svc-more { font-family: var(--font-sans); font-size: .82rem; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--text-muted); display: inline-flex; align-items: center; gap: 7px; transition: gap .3s var(--ease), color .3s var(--ease); }
.svc-card:hover .svc-more { gap: 12px; color: var(--accent-strong); }

/* Single-offer direction: keep one tier card from stretching full-width */
.tier-cards--single { grid-template-columns: minmax(280px, 440px); justify-content: center; }

/* Example-request list inside a selling block */
.req-examples { columns: 2; column-gap: 48px; list-style: none; padding: 0; margin-top: .4em; }
.req-examples li { break-inside: avoid; position: relative; padding-left: 30px; margin-bottom: 16px; color: var(--text-soft); line-height: 1.55; }
.req-examples li::before { content: "\F505"; font-family: "bootstrap-icons"; position: absolute; left: 2px; top: 1px; color: var(--accent); font-size: .95rem; }
@media (max-width: 720px) { .req-examples { columns: 1; } }

/* Pricing overview — dotted-leader menu rows (Стоимость page) */
.price-rows { list-style: none; padding: 0; margin: 0; }
.price-rows li { display: flex; align-items: baseline; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.price-rows li::before { display: none; }
.price-rows .pr-name { color: var(--text); font-size: 1.05rem; }
.price-rows .pr-name small { display: block; color: var(--text-muted); font-size: .86rem; margin-top: 2px; }
.price-rows .pr-dots { flex: 1; border-bottom: 1px dotted var(--border); transform: translateY(-4px); min-width: 24px; }
.price-rows .pr-cost { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--accent-strong); white-space: nowrap; }
.price-note { margin-top: 18px; color: var(--text-muted); font-size: .94rem; }
.price-note a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }

/* CTA band */
.cta-band { background: var(--bg-inverse); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); text-align: center; margin: var(--section-y) 0; }
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.8rem); color: var(--text-on-dark); margin: 0; line-height: 1.1; }
.cta-band p { color: var(--text-muted-on-dark); margin: 16px auto 0; max-width: 560px; font-size: 1.08rem; line-height: 1.7; }
.cta-band .hero-actions { justify-content: center; margin-top: 30px; }

/* ============================================================
   Материалы — news/articles listing + detail + premium gate
   ============================================================ */
.news-listing { padding-top: clamp(24px, 4vw, 52px); }

/* Category filter chips */
.news-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(28px, 4vw, 48px); }
.news-chip {
    display: inline-flex; align-items: center; padding: 8px 18px;
    border: 1px solid var(--border); border-radius: var(--radius-pill);
    font-size: .9rem; color: var(--text-soft); text-decoration: none;
    transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.news-chip:hover { border-color: var(--accent); color: var(--text); }
.news-chip.is-active { background: var(--bg-inverse); color: var(--text-on-dark); border-color: var(--bg-inverse); }

/* Card grid */
.news-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.news-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-lg); text-decoration: none; box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.news-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--bg); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); opacity: .35; font-size: 2.4rem; }
.news-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.news-card__meta { display: flex; gap: 16px; font-size: .8rem; color: var(--text-muted); letter-spacing: .03em; margin-bottom: 12px; }
.news-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: var(--text); margin: 0 0 10px; }
.news-card__excerpt { color: var(--text-soft); font-size: .96rem; line-height: 1.6; margin: 0 0 18px; }
.news-card__more { margin-top: auto; font-family: var(--font-sans); font-size: .8rem; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--accent-strong); display: inline-flex; align-items: center; gap: 8px; transition: gap .3s var(--ease); }
.news-card:hover .news-card__more { gap: 12px; }

.news-empty { text-align: center; color: var(--text-muted); padding: clamp(40px, 8vw, 90px) 0; }
.news-empty i { font-size: 2.6rem; color: var(--accent); opacity: .4; display: block; margin-bottom: 14px; }

/* Article detail */
.article-page .article-meta { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 18px; color: var(--text-muted); font-size: .9rem; }
.article-page .article-meta i { color: var(--accent-strong); margin-right: 6px; }
.article-cover { max-width: 920px; margin: clamp(28px, 4vw, 48px) auto 0; border-radius: var(--radius-lg); overflow: hidden; }
.article-cover img { width: 100%; height: auto; display: block; }
.article-body { margin-top: clamp(32px, 5vw, 56px); }
.article-foot { max-width: 920px; margin: clamp(40px, 6vw, 64px) auto 0; }

/* Premium paywall */
.premium-gate { max-width: 760px; margin: clamp(32px, 5vw, 56px) auto 0; text-align: center; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 56px); box-shadow: var(--shadow-md); }
.premium-gate__badge { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--accent-strong); background: var(--accent-soft, rgba(0,0,0,.04)); padding: 7px 16px; border-radius: var(--radius-pill); }
.premium-gate h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--text); margin: 18px 0 0; line-height: 1.15; }
.premium-gate > p { color: var(--text-soft); margin: 14px auto 0; max-width: 520px; line-height: 1.7; }
.premium-perks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; text-align: left; }
.premium-perks li { display: flex; gap: 14px; align-items: flex-start; }
.premium-perks li::before { display: none; }
.premium-perks i { color: var(--accent-strong); font-size: 1.25rem; flex: none; margin-top: 2px; }
.premium-perks b { display: block; color: var(--text); }
.premium-perks span { color: var(--text-muted); font-size: .94rem; line-height: 1.5; }
.premium-gate .hero-actions { justify-content: center; margin-top: 32px; }
.premium-gate__note { font-size: .88rem; color: var(--text-muted); margin-top: 22px; }
.premium-gate__note a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }

/* Two-column conditions / notes */
.terms-list { columns: 2; column-gap: 48px; list-style: none; padding: 0; margin-top: 1.2em; }
.terms-list li { break-inside: avoid; position: relative; padding-left: 26px; margin-bottom: 14px; color: var(--text-soft); line-height: 1.55; }
.terms-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 720px) { .terms-list { columns: 1; } }
