/*
Theme Name: Chanty Health
Theme URI: https://chanty.health
Description: Block child theme of Twenty Twenty-Five for chanty.health: Chanty palette and type (Figtree), article-first layout, hub and front-page templates, CTA pattern. Managed by the content panel; installed once by the site administrator.
Template: twentytwentyfive
Version: 1.0.11
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: chanty-health
*/

/* Статья: читаемая колонка, спокойные заголовки, синие ссылки как на chanty.com. */
.entry-content > * { max-width: var(--wp--style--global--content-size); margin-left: auto; margin-right: auto; }
.entry-content a:not(.wp-element-button) { color: var(--wp--preset--color--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:not(.wp-element-button):hover { color: var(--wp--preset--color--accent-dark); }
.entry-content h2 { margin-top: 2.4em; }
.entry-content h3 { margin-top: 1.8em; }
.entry-content table { font-size: 0.92em; }
.entry-content table th, .entry-content table td { padding: 0.55em 0.8em; border: 1px solid var(--wp--preset--color--line); vertical-align: top; }
.entry-content table th { background: var(--wp--preset--color--soft); text-align: left; }
.entry-content blockquote { border-left: 3px solid var(--wp--preset--color--accent); padding-left: 1em; color: var(--wp--preset--color--muted); }

/* Оглавление (functions.php вставляет после лида) */
.ch-toc { background: var(--wp--preset--color--soft); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem auto; font-size: 0.95em; }
.ch-toc strong { display: block; margin-bottom: 0.4rem; }
.ch-toc ol { margin: 0; padding-left: 1.2rem; }
.ch-toc li { margin: 0.2rem 0; }
.ch-toc a { text-decoration: none; }

/* Хлебные крошки */
.ch-crumbs { font-size: 0.9em; color: var(--wp--preset--color--muted); margin: 0 auto 0.75rem; }
.ch-crumbs a { color: inherit; text-decoration: none; }
.ch-crumbs a:hover { color: var(--wp--preset--color--accent); }
.ch-crumbs span { margin: 0 0.4em; }

/* CTA-блок (паттерн) */
.ch-cta { background: var(--wp--preset--color--soft); border: 1px solid var(--wp--preset--color--line); border-radius: 16px; padding: 1.5rem 1.75rem; }
.ch-cta p { margin: 0 0 0.75rem; }
.ch-cta .wp-block-buttons { margin-top: 0.75rem; }
.ch-cta .ch-cta-note { font-size: 0.85em; color: var(--wp--preset--color--muted); margin: 0.75rem 0 0; }

/* Плашка «факты проверены» и дисклеймер */
.ch-note { border-left: 3px solid var(--wp--preset--color--accent); background: var(--wp--preset--color--soft); padding: 0.75rem 1rem; border-radius: 0 10px 10px 0; font-size: 0.9em; color: var(--wp--preset--color--muted); }
.ch-note.warn { border-left-color: var(--wp--preset--color--amber); }

/* Кнопки: пилюли как на chanty.com */
.wp-block-button .wp-element-button { border-radius: 40px; padding: 0.7em 1.5em; font-weight: 600; }
.wp-block-button.is-style-outline .wp-element-button { border: 1.5px solid var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); background: transparent; }

/* Список дочерних страниц в хабах — карточками; вложенные страницы (fax → cover sheet) — списком внутри карточки */
.ch-hub .wp-block-page-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.ch-hub .wp-block-page-list > li { margin: 0; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 1rem 1.1rem; }
.ch-hub .wp-block-page-list > li > a { display: block; text-decoration: none; color: var(--wp--preset--color--contrast); font-weight: 600; line-height: 1.35; }
.ch-hub .wp-block-page-list > li:hover { border-color: var(--wp--preset--color--accent); }
.ch-hub .wp-block-page-list > li > a:hover { color: var(--wp--preset--color--accent); }
.ch-hub .wp-block-page-list ul { list-style: disc; margin: 0.6rem 0 0; padding-left: 1.1rem; font-size: 0.92em; }
.ch-hub .wp-block-page-list ul li { margin: 0.25rem 0; }
.ch-hub .wp-block-page-list ul a { color: var(--wp--preset--color--muted); text-decoration: none; }
.ch-hub .wp-block-page-list ul a:hover { color: var(--wp--preset--color--accent); text-decoration: underline; }

/* Главная */
.ch-trust { margin-top: 1rem; }
.ch-steps h2, .ch-start h2 { margin-bottom: 1.25rem; }
.ch-steps h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
.ch-step { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--wp--preset--color--accent); color: #fff; font-size: 0.85rem; align-items: center; justify-content: center; margin-right: 8px; vertical-align: 2px; }
.ch-steps p { font-size: 1rem; color: var(--wp--preset--color--muted); }
.ch-start-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px 24px; }
.ch-start-list li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.ch-start-list a { text-decoration: none; font-weight: 500; }

/* Шапка: логотип Chanty + суффикс .health */
.ch-brand { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.ch-logo { display: inline-flex; align-items: center; text-decoration: none; }
.ch-logo img { height: 30px; width: auto; display: block; }
.ch-logo-suffix { font-weight: 700; font-size: 1.25rem; color: var(--wp--preset--color--contrast); letter-spacing: -0.01em; }

/* Шапка */
.ch-header .wp-block-site-title a { text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.ch-header .ch-tag { font-size: 0.95rem; color: var(--wp--preset--color--muted); margin: 0; padding-top: 4px; }
.ch-header .wp-block-navigation a { font-weight: 500; }

@media (max-width: 600px) {
  .ch-cta { padding: 1.1rem 1.2rem; }
}

/* Футер */
.ch-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.ch-footer-brand p { font-size: 0.95rem; color: var(--wp--preset--color--muted); margin: 1rem 0 0; max-width: 300px; }
.ch-footer-brand .ch-tag { display: none; }
.ch-footer-cta { display: inline-block; border-radius: 40px; padding: 0.55em 1.3em; font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.ch-footer-trust { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ch-footer-trust li { font-size: 0.78rem; font-weight: 600; color: var(--wp--preset--color--contrast); background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 20px; padding: 3px 10px; }
.ch-footer-col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.9rem; color: var(--wp--preset--color--contrast); }
.ch-footer-col ul { list-style: none; padding: 0; margin: 0; }
.ch-footer-col li { margin: 0 0 0.55rem; font-size: 0.95rem; }
.ch-footer-col a { color: var(--wp--preset--color--muted); text-decoration: none; }
.ch-footer-col a:hover { color: var(--wp--preset--color--accent); }
.ch-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--wp--preset--color--line); font-size: 0.85rem; color: var(--wp--preset--color--muted); }
.ch-footer-bottom a { color: inherit; text-decoration: none; }
.ch-footer-bottom a:hover { text-decoration: underline; }
@media (max-width: 900px) { .ch-footer-grid { grid-template-columns: repeat(2, 1fr); } .ch-footer-brand { grid-column: 1 / -1; } }

/* Лендинг (page-landing): карточки фич, рамка таблицы планов */
.ch-landing .entry-content > p:first-of-type { font-size: 1.25rem; color: var(--wp--preset--color--muted); max-width: 760px; }
.ch-feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 2rem 0; }
.ch-feat { position: relative; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; padding: 1.5rem 1.6rem 1.25rem; background: #fff; display: flex; flex-direction: column; }
.ch-feat:hover { border-color: var(--wp--preset--color--accent); box-shadow: 0 8px 24px rgba(24, 105, 236, 0.08); }
.ch-feat-n { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; background: var(--wp--preset--color--accent); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 0.9rem; }
.ch-feat h2 { font-size: 1.3rem; margin: 0 0 0.75rem; }
.ch-feat ul { list-style: none; padding: 0; margin: 0; font-size: 1rem; }
.ch-feat li { position: relative; padding-left: 1.6rem; margin: 0 0 0.55rem; color: var(--wp--preset--color--muted); }
.ch-feat li strong { color: var(--wp--preset--color--contrast); }
.ch-feat li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; border-radius: 50%; background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.ch-feat-more { margin-top: auto !important; padding-top: 0.75rem; }
.ch-feat-more a { font-weight: 600; text-decoration: none; }
.ch-plans { background: var(--wp--preset--color--soft); border-radius: 16px; padding: 1.5rem 1.6rem; margin: 2rem 0; }
.ch-plans h2 { margin-top: 0; }
.ch-plans table { background: #fff; border-radius: 12px; overflow: hidden; font-size: 0.95rem; }
.ch-plans thead th { background: var(--wp--preset--color--accent); color: #fff; }
.ch-plans thead th:first-child { background: #fff; }
.ch-plans tbody td:first-child { font-weight: 600; color: var(--wp--preset--color--contrast); }
.ch-plans p { font-size: 0.9rem; color: var(--wp--preset--color--muted); margin-bottom: 0; }
@media (max-width: 760px) { .ch-feat-grid { grid-template-columns: 1fr; } }
.ch-landing .wp-block-page-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ch-landing .wp-block-page-list > li { margin: 0; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 1rem 1.1rem; }
.ch-landing .wp-block-page-list > li > a { display: block; text-decoration: none; color: var(--wp--preset--color--contrast); font-weight: 600; line-height: 1.35; }
.ch-landing .wp-block-page-list > li:hover { border-color: var(--wp--preset--color--accent); }
.ch-glossary-az h3 { font-size: 1rem; color: var(--wp--preset--color--muted); margin: 1.6rem 0 0.4rem; }
