/*
Theme Name: Florishka (дочерняя Blocksy)
Template: blocksy
Author: Anton
Description: Дочерняя тема статейника florishka.ru: зелёная палитра, карточки, шаблон статьи, оглавление и «Читайте также».
Version: 0.2.0
Text Domain: ffl
*/

/* ==========================================================================
   Палитра: те же зелёные, что на test.beautyflora.ru
   ========================================================================== */
/* Контейнер Blocksy на этом сайте шире дефолтного: 1180 px */
html:root {
    --theme-content-width: 1180px;
    --ffl-900: #27352e;
    --ffl-800: #33765a;
    --ffl-600: #3f8f66;
    --ffl-200: #bfe6cf;
    --ffl-100: #e2f4e9;
    --ffl-50:  #f6fcf9;
    --ffl-muted: #63796c;
    --ffl-line: #c4d8cb;

    --theme-palette-color-1: #33765a;
    --theme-palette-color-2: #3f8f66;
    --theme-palette-color-3: #27352e;
    --theme-palette-color-4: #63796c;
    --theme-palette-color-5: #c4d8cb;
    --theme-palette-color-6: #eff8f3;
    --theme-palette-color-7: #ffffff;
    --theme-palette-color-8: #f6fcf9;
}

/* ==========================================================================
   Типографика
   ========================================================================== */
body {
    font-family: "Golos Text", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ffl-900);
    background: #fff;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .entry-title, .ct-header .site-title {
    font-family: "Manrope", "Golos Text", Arial, sans-serif;
    color: var(--ffl-900);
    letter-spacing: -0.01em;
}
a { color: var(--ffl-800); }
a:hover { color: var(--ffl-600); }

/* ==========================================================================
   Шапка
   ========================================================================== */
.ct-header { border-bottom: 1px solid var(--ffl-line); background: #fff; }
.ct-header .site-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ffl-900);
    letter-spacing: -0.02em;
}
.ct-header .site-title::after {
    content: "";
    display: inline-block;
    width: 7px; height: 7px;
    margin-left: 7px;
    border-radius: 50%;
    background: var(--ffl-600);
    transform: translateY(-2px);
}
.ct-header nav.header-menu-1 a {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ffl-900);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}
.ct-header nav.header-menu-1 a:hover { border-bottom-color: var(--ffl-600); color: var(--ffl-800); }
.ct-header [data-row="middle"] { min-height: 72px; }

/* ==========================================================================
   Первый экран
   ========================================================================== */
.ffl-hero {
    background:
        radial-gradient(1200px 380px at 15% -10%, var(--ffl-100) 0%, rgba(226,244,233,0) 70%),
        linear-gradient(180deg, var(--ffl-50) 0%, #ffffff 100%);
    border-bottom: 1px solid var(--ffl-line);
    padding: 56px 0 52px;
}
.ffl-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}
@media (max-width: 900px) {
    .ffl-hero__grid { grid-template-columns: 1fr; gap: 28px; }
}
.ffl-hero__card {
    background: #fff;
    border: 1px solid var(--ffl-line);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 16px 40px rgba(39,53,46,.07);
}
.ffl-hero__card-title {
    margin: 0 0 12px;
    font-family: "Manrope", sans-serif;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ffl-800);
    font-weight: 700;
}
.ffl-hero__card ul { list-style: none; margin: 0 0 14px; padding: 0; }
.ffl-hero__card li { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid #eef4f0; }
.ffl-hero__card li:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.ffl-hero__card li a { text-decoration: none; font-weight: 600; font-size: .97rem; line-height: 1.4; color: var(--ffl-900); }
.ffl-hero__card li a:hover { color: var(--ffl-600); }
.ffl-hero__card-more { font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--ffl-800); }
.ffl-hero__trust { font-size: .88rem; color: var(--ffl-muted); margin: 20px 0 0; }
.ffl-hero__eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ffl-800);
    background: var(--ffl-100);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 18px;
}
.ffl-hero h1 {
    font-size: clamp(2rem, 4.2vw, 3rem);
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 18px;
}
.ffl-hero p {
    font-size: 1.15rem;
    color: var(--ffl-muted);
    max-width: 620px;
    margin: 0 0 28px;
}
.ffl-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ffl-btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .12s ease, background .12s ease;
}
.ffl-btn--primary { background: var(--ffl-600); color: #fff; }
.ffl-btn--primary:hover { background: var(--ffl-800); color: #fff; transform: translateY(-1px); }
.ffl-btn--ghost { border-color: var(--ffl-line); color: var(--ffl-900); background: #fff; }
.ffl-btn--ghost:hover { border-color: var(--ffl-600); color: var(--ffl-800); }

/* ==========================================================================
   Секции
   ========================================================================== */
.ffl-section { padding: 48px 0 8px; }
.ffl-section--tint { background: var(--ffl-50); border-top: 1px solid var(--ffl-line); border-bottom: 1px solid var(--ffl-line); }
.ffl-section__inner { width: 100%; }
.ffl-section__head { margin-bottom: 26px; }
.ffl-section h2 { font-size: 1.6rem; font-weight: 800; margin: 0 0 6px; }
.ffl-section__lead { color: var(--ffl-muted); margin: 0; max-width: 640px; }

/* Заголовок ленты */
.ffl-feed-head { margin: 44px 0 20px; padding-top: 26px; border-top: 1px solid var(--ffl-line); }
.ffl-feed-head__inner { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.ffl-feed-head h2 { font-size: 1.6rem; font-weight: 800; margin: 0; }
.ffl-feed-head__count { font-size: .9rem; color: var(--ffl-muted); }

/* Контейнер: одна ширина для шапки, героя, рубрик, ленты и подвала */
.ct-container, .ct-container-full { max-width: 1180px !important; }
body.home .site-main, body.archive .site-main { width: 100%; }

/* Рубрики */
.ffl-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .ffl-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ffl-cats { grid-template-columns: 1fr; } }
.ffl-cat {
    display: flex; flex-direction: column; gap: 6px;
    padding: 22px 22px 20px;
    background: #fff;
    border: 1px solid var(--ffl-line);
    border-radius: 14px;
    text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.ffl-cat:hover { box-shadow: 0 12px 28px rgba(39,53,46,.09); transform: translateY(-2px); border-color: var(--ffl-200); }
.ffl-cat__icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--ffl-100); color: var(--ffl-800);
    display: grid; place-items: center;
    font-weight: 800; font-size: 1rem;
    margin-bottom: 6px;
}
.ffl-cat__title { font-family: "Manrope", sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--ffl-900); }
.ffl-cat__desc { color: var(--ffl-muted); font-size: 0.95rem; line-height: 1.5; }
.ffl-cat__meta { margin-top: 10px; font-size: 0.85rem; color: var(--ffl-800); font-weight: 600; }

/* Карточки статей */
.ffl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.ffl-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--ffl-line); border-radius: 14px;
    overflow: hidden; text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease;
}
.ffl-card:hover { box-shadow: 0 14px 30px rgba(39,53,46,.10); transform: translateY(-2px); }
.ffl-card__cover {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--ffl-100) 0%, var(--ffl-200) 55%, #d8efe2 100%);
    position: relative;
}
.ffl-card__cover::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(63,143,102,.22) 0 12px, transparent 13px),
        radial-gradient(circle at 62% 68%, rgba(63,143,102,.16) 0 18px, transparent 19px),
        radial-gradient(circle at 82% 24%, rgba(51,118,90,.14) 0 9px, transparent 10px);
}
.ffl-card__cat {
    align-self: flex-start;
    margin: 14px 16px 0;
    font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ffl-800); background: var(--ffl-100);
    padding: 4px 9px; border-radius: 6px; font-weight: 700;
}
.ffl-card__title {
    font-family: "Manrope", sans-serif;
    font-size: 1.08rem; font-weight: 700; line-height: 1.35;
    color: var(--ffl-900);
    margin: 10px 16px 8px;
}
.ffl-card__excerpt { margin: 0 16px 14px; color: var(--ffl-muted); font-size: 0.93rem; line-height: 1.55; }
.ffl-card__meta { margin: auto 16px 16px; padding-top: 10px; border-top: 1px solid #eef4f0; font-size: 0.82rem; color: var(--ffl-muted); }

/* ==========================================================================
   Лента Blocksy
   ========================================================================== */
.site-main .entries { gap: 22px !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 1000px) { .site-main .entries { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px)  { .site-main .entries { grid-template-columns: 1fr !important; } }
article.entry-card {
    border: 1px solid var(--ffl-line) !important;
    border-radius: 14px !important;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .15s ease, transform .15s ease;
}
article.entry-card:hover { box-shadow: 0 14px 30px rgba(39,53,46,.10); transform: translateY(-2px); }
article.entry-card .card-content { padding: 20px 22px 22px !important; }
article.entry-card .entry-title {
    font-family: "Manrope", sans-serif;
    font-size: 1.15rem !important;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 8px !important;
}
article.entry-card .entry-excerpt { color: var(--ffl-muted); font-size: .95rem; }
article.entry-card .entry-meta { font-size: .8rem; color: var(--ffl-800); font-weight: 600; }

/* ==========================================================================
   Статья
   ========================================================================== */
.entry-content { font-size: 1.06rem; line-height: 1.78; color: #2b3a32; }
.entry-content > p:first-of-type { font-size: 1.14rem; color: var(--ffl-900); }
.entry-content h2 {
    font-size: 1.55rem; font-weight: 800; margin: 2.1em 0 .6em;
    padding-left: 14px; border-left: 4px solid var(--ffl-600);
    line-height: 1.3;
}
.entry-content h3 { font-size: 1.2rem; font-weight: 700; margin: 1.7em 0 .5em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin: .4em 0; }
.entry-content a { text-decoration: underline; text-decoration-color: var(--ffl-200); text-underline-offset: 3px; }
.entry-content table {
    width: 100%; border-collapse: collapse; margin: 1.6em 0;
    font-size: .96rem; border: 1px solid var(--ffl-line); border-radius: 10px; overflow: hidden;
}
.entry-content th {
    background: var(--ffl-100); color: var(--ffl-900);
    text-align: left; font-weight: 700; padding: 11px 13px;
    border-bottom: 1px solid var(--ffl-line);
}
.entry-content td { padding: 10px 13px; border-bottom: 1px solid #eef4f0; vertical-align: top; }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content blockquote {
    margin: 1.6em 0; padding: 14px 18px;
    background: var(--ffl-50); border-left: 4px solid var(--ffl-200);
    color: var(--ffl-900); border-radius: 0 10px 10px 0;
}

/* Оглавление, метаданные, «Читайте также» */
.ffl-toc { border: 1px solid var(--ffl-line); border-radius: 14px; padding: 18px 22px; margin: 0 0 30px; background: var(--ffl-50); }
.ffl-toc__title { font-family: "Manrope", sans-serif; font-weight: 700; margin: 0 0 10px; font-size: 1rem; color: var(--ffl-800); }
.ffl-toc ol { margin: 0; padding-left: 1.2em; }
.ffl-toc li { margin: 5px 0; font-size: .96rem; }
.ffl-toc a { text-decoration: none; border-bottom: 1px solid transparent; }
.ffl-toc a:hover { border-bottom-color: var(--ffl-200); }

.ffl-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .88rem; color: var(--ffl-muted); margin: 0 0 22px; padding-bottom: 16px; border-bottom: 1px solid #eef4f0; }

.ffl-related { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--ffl-line); }
.ffl-related h2 { font-size: 1.25rem; margin: 0 0 16px; padding: 0; border: 0; }
.ffl-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ffl-related li { margin: 0; }
.ffl-related a {
    display: block; padding: 14px 16px;
    border: 1px solid var(--ffl-line); border-radius: 10px;
    text-decoration: none; font-weight: 600; color: var(--ffl-900);
    transition: border-color .12s ease, background .12s ease;
}
.ffl-related a:hover { border-color: var(--ffl-200); background: var(--ffl-50); }

/* Избранное и формы */
.ffl-fav {
    display: inline-block; margin: 6px 0 24px; padding: 9px 16px;
    border: 1px solid var(--ffl-line); border-radius: 9px;
    font-size: .9rem; cursor: pointer; background: #fff; color: var(--ffl-800);
}
.ffl-fav[aria-pressed="true"] { background: var(--ffl-100); border-color: var(--ffl-200); font-weight: 600; }
.ffl-form input[type="text"], .ffl-form input[type="email"], .ffl-form input[type="password"] {
    width: 100%; padding: 11px 13px; margin: 0 0 12px;
    border: 1px solid var(--ffl-line); border-radius: 9px; font-size: 1rem;
}
.ffl-form button { padding: 11px 20px; cursor: pointer; border: 0; border-radius: 9px; background: var(--ffl-600); color: #fff; font-weight: 600; }
.ffl-notice { padding: 12px 16px; border-radius: 10px; margin: 0 0 18px; }
.ffl-notice--ok { background: var(--ffl-100); }
.ffl-notice--err { background: #fdecea; }

/* Комментарии */
#comments .comment-respond h3, #comments h2 { font-size: 1.3rem; }
#comments textarea { border: 1px solid var(--ffl-line); border-radius: 10px; }
#comments .form-submit input[type="submit"] {
    background: var(--ffl-600); color: #fff; border: 0; border-radius: 9px;
    padding: 12px 22px; font-weight: 600; cursor: pointer;
}

/* ==========================================================================
   Подвал
   ========================================================================== */
/* Штатный подвал Blocksy на этом сайте пуст — вместо него свой блок */
.ct-footer { display: none !important; }

.ffl-footer {
    background: var(--ffl-900);
    color: #d9e7df;
    padding: 52px 0 22px;
    margin-top: 60px;
}
.ffl-footer__inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.ffl-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 36px;
}
@media (max-width: 860px) {
    .ffl-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.ffl-footer__brand {
    font-family: "Manrope", sans-serif;
    font-size: 1.25rem; font-weight: 800; color: #fff;
    margin: 0 0 10px;
}
.ffl-footer__about p { color: #a9c2b5; font-size: .93rem; line-height: 1.6; margin: 0; max-width: 320px; }
.ffl-footer__title {
    font-family: "Manrope", sans-serif;
    font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
    color: #8fb3a1; margin: 0 0 12px;
}
.ffl-footer ul { list-style: none; margin: 0; padding: 0; }
.ffl-footer li { margin: 0 0 9px; }
.ffl-footer a { color: #d9e7df; text-decoration: none; font-size: .93rem; }
.ffl-footer a:hover { color: #fff; text-decoration: underline; }
.ffl-footer__bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 36px; padding-top: 18px;
    border-top: 1px solid rgba(217,231,223,.18);
    font-size: .86rem; color: #8fb3a1;
}

/* Карточки ленты: фото сверху, потом рубрика, заголовок, анонс, дата.
   Раньше здесь был плейсхолдер ::before — он висел пустым боксом над карточкой
   уже после того, как у статей появились настоящие обложки. */
article.entry-card { display: flex; flex-direction: column; }
article.entry-card > .ct-media-container { order: 1; margin: 0 0 14px; }
article.entry-card > .entry-meta:first-of-type { order: 2; }
article.entry-card > .entry-title { order: 3; }
article.entry-card > .entry-excerpt { order: 4; }
article.entry-card > .entry-meta:last-of-type { order: 5; margin-top: auto; }
article.entry-card > .ct-media-container img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Пустая заглушка только для карточек без фото */
article.entry-card:not(:has(.ct-media-container))::before {
    content: "";
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, var(--ffl-100), var(--ffl-50));
}

/* Активный пункт меню */
.ct-header nav.header-menu-1 li.current-menu-item > a { border-bottom-color: var(--ffl-600); font-weight: 600; }

.entry-content img { border-radius: 12px; }
@media (max-width: 720px) {
    .ffl-hero { padding: 40px 0 36px; }
    .ffl-section { padding: 34px 0 4px; }
    .entry-content { font-size: 1rem; }
}

/* ==========================================================================
   v0.3: сетка контейнеров, обложки, шапка
   Блоки главной рендерятся до контейнера Blocksy, поэтому ширину задаём сами.
   ========================================================================== */
.ffl-hero,
.ffl-section,
.ffl-feed-head {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

@media (max-width: 620px) {
    .ffl-hero, .ffl-section, .ffl-feed-head { padding-left: 16px; padding-right: 16px; }
}

/* Обложки карточек */
.ffl-card__cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ffl-100); }
.ffl-card__cover::after { display: none; }
.ffl-card__cover img,
.ffl-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.ffl-card:hover .ffl-card__img { transform: scale(1.045); }
.ffl-card__cover--empty { background: linear-gradient(135deg, var(--ffl-100), var(--ffl-50)); }

/* Рубрики: фото слева, текст справа */
.ffl-cat {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    padding: 0;
    overflow: hidden;
    align-items: stretch;
}
.ffl-cat__cover {
    background-size: cover;
    background-position: center;
    background-color: var(--ffl-100);
    min-height: 132px;
}
.ffl-cat__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
}
.ffl-cat__icon { display: none; }
.ffl-cats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) {
    .ffl-cats--2 { grid-template-columns: 1fr; }
}

/* «Свежее» в первом экране: миниатюры */
.ffl-hero__card li a { display: flex; gap: 12px; align-items: center; }
.ffl-hero__thumb,
.ffl-hero__item-text + img { order: -1; }
.ffl-hero__thumb {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}
.ffl-hero__item-text { display: block; }

/* Шапка: меню крупнее и с воздухом */
.site-header .ct-menu > li > a,
.site-header .menu > li > a {
    font-size: .86rem;
    color: #33463c;
    letter-spacing: .06em;
    padding: 0 2px;
}
.site-header .ct-menu > li,
.site-header .menu > li { margin-left: 22px; }
.site-header .ct-menu > li > a:hover { color: var(--ffl-600); }

/* Статья: обложка, подпись, компактное оглавление */
.ffl-cover { margin: 0 0 26px; }
.ffl-cover__img {
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}
.ffl-cover__credit {
    margin-top: 8px;
    font-size: .78rem;
    color: var(--ffl-muted);
    text-align: right;
}

.ffl-toc {
    margin: 0 0 22px;
    padding: 14px 18px;
    border: 1px solid var(--ffl-100);
    border-radius: 14px;
    background: var(--ffl-50);
}
.ffl-toc__title {
    cursor: pointer;
    font-weight: 700;
    font-size: .95rem;
    color: var(--ffl-900);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ffl-toc__title::-webkit-details-marker { display: none; }
.ffl-toc__title::after {
    content: "▾";
    margin-left: auto;
    color: var(--ffl-600);
    transition: transform .2s ease;
}
.ffl-toc[open] .ffl-toc__title::after { transform: rotate(180deg); }
.ffl-toc__count {
    font-weight: 600;
    font-size: .78rem;
    color: var(--ffl-800);
    background: var(--ffl-100);
    border-radius: 999px;
    padding: 2px 9px;
}
.ffl-toc ol { margin: 12px 0 0; padding-left: 20px; }
.ffl-toc li { margin: 0 0 6px; font-size: .94rem; }

.ffl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: .85rem;
    color: var(--ffl-muted);
    margin: 0 0 22px;
}
.ffl-meta__dot { opacity: .6; }

/* v0.4: крупная обложка в первом экране, ритм заголовка, шапка */
.ffl-hero h1 { text-wrap: balance; letter-spacing: -.02em; }
.ffl-hero__lead {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    position: relative;
    min-height: 210px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    padding: 16px;
    background-color: var(--ffl-100);
    background-size: cover;
    background-position: center;
    margin-bottom: 16px;
}
.ffl-hero__lead::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(39,53,46,0) 35%, rgba(39,53,46,.78) 100%);
}
.ffl-hero__lead-cat,
.ffl-hero__lead-title { position: relative; z-index: 1; }
.ffl-hero__lead-cat {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 700;
    color: #d9f0e3;
}
.ffl-hero__lead-title {
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    font-size: 1.12rem;
    line-height: 1.3;
    color: #fff;
}
.ffl-hero__lead:hover .ffl-hero__lead-title { text-decoration: underline; }

.ffl-hero__thumb { width: 60px; height: 60px; flex: 0 0 60px; border-radius: 9px; }
.ffl-hero__card { padding: 18px; }
.ffl-hero__card-title { margin: 0 0 10px; }

/* Шапка компактнее, поиск заметнее */
.site-header { --header-height: 74px; }
.site-header .ct-search-trigger svg { width: 20px; height: 20px; }
.site-header .ct-menu > li > a:hover,
.site-header .ct-menu > li.current-menu-item > a { color: var(--ffl-600); }

/* Вертикальный ритм секций */
.ffl-section { padding-top: 56px; }
.ffl-section__head { margin-bottom: 24px; }
.ffl-feed-head { margin-top: 56px; }
.ffl-hero__thumb--empty {
    background: linear-gradient(135deg, var(--ffl-100), var(--ffl-50));
    border: 1px solid var(--ffl-100);
}
/* Лид: прямой ответ до обложки */
.ffl-lead {
    margin: 0 0 22px;
    padding: 18px 20px;
    border-left: 4px solid var(--ffl-600);
    border-radius: 0 12px 12px 0;
    background: var(--ffl-50);
    font-size: 1.06rem;
    line-height: 1.62;
}
.ffl-lead p { margin: 0; }
.ffl-lead strong { color: var(--ffl-900); }
/* Логотип стоит картинкой — текстовый дубль рядом не нужен */
.site-branding .site-logo-container + .site-title-container,
.site-branding .site-logo-container ~ .site-title-container { display: none; }
.site-branding .site-logo-container img { display: block; height: 54px; width: auto; }
@media (max-width: 999.98px) {
    .site-branding .site-logo-container img { height: 42px; }
}
/* Фото карточки — от края до края, без внутреннего отступа */
article.entry-card { padding: 0 !important; overflow: hidden; }
article.entry-card > .ct-media-container {
    margin: 0 0 16px;
    border-radius: 0;
}
article.entry-card > .entry-meta,
article.entry-card > .entry-title,
article.entry-card > .entry-excerpt { padding-left: 20px; padding-right: 20px; }
article.entry-card > .entry-meta:first-of-type { padding-top: 18px; }
article.entry-card > .entry-meta:last-of-type { padding-bottom: 18px; padding-top: 10px; }
article.entry-card > .entry-title { margin-top: 4px; }
/* ==========================================================================
   v0.5: выключка по ширине и автопереносы
   Переносы работают только при lang="ru" на <html> — WordPress его ставит.
   ========================================================================== */
.entry-content,
.entry-content p,
.entry-content li,
.ffl-lead p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

/* Длинные заголовки не рвём переносами: в H2/H3 переносы выглядят плохо */
.entry-content h2,
.entry-content h3,
.entry-content h4,
.ffl-lead strong {
    text-align: left;
    hyphens: manual;
    text-wrap: pretty;
}

/* В узких экранах выключка по ширине даёт «реки» — там выравниваем по левому краю */
@media (max-width: 620px) {
    .entry-content, .entry-content p, .entry-content li, .ffl-lead p {
        text-align: left;
    }
}

/* Списки и таблицы: выключка по ширине мешает читать перечисления */
.entry-content ul li,
.entry-content ol li,
.entry-content table th,
.entry-content table td {
    text-align: left;
}

/* ==========================================================================
   v0.6: страница статьи — две колонки, нормальная мера строки, зацепки
   ========================================================================== */
html:root {
    --ffl-hair: #e7efe9;   /* волосяные линии: мягче, чем --ffl-line */
    --ffl-ink:  #22302a;
}

.ffl-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px;
    z-index: 999; pointer-events: none;
}
.ffl-progress span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--ffl-600), var(--ffl-800));
    transition: width .12s linear;
}

.ffl-article { padding: 26px 0 72px; }
.ffl-article__wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Крошки */
.ffl-crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
    font-size: .84rem; color: #5b6f62; margin-bottom: 18px;
}
.ffl-crumbs a { color: #5b6f62; text-decoration: none; }
.ffl-crumbs a:hover { color: var(--ffl-800); }
.ffl-crumbs__sep { opacity: .5; }

/* Шапка статьи */
.ffl-head { margin-bottom: 30px; }
.ffl-head__chip {
    display: inline-block; margin-bottom: 14px;
    padding: 5px 12px; border-radius: 999px;
    background: var(--ffl-100); color: var(--ffl-800);
    font-size: .82rem; font-weight: 600; text-decoration: none;
}
.ffl-head__chip:hover { background: var(--ffl-200); }
.ffl-head__title {
    font-family: "Manrope", "Golos Text", sans-serif;
    font-size: clamp(1.7rem, 2.7vw, 2.3rem);
    line-height: 1.24; letter-spacing: -.018em;
    margin: 0 0 16px; max-width: 100%; color: var(--ffl-900);
    text-wrap: balance;
}
.ffl-head__lead {
    font-size: 1.06rem; line-height: 1.72; color: #3a4b41;
    font-weight: 400; max-width: 100%; padding-left: 16px;
    border-left: 3px solid var(--ffl-200);
}
.ffl-head__lead p { margin: 0; text-align: left; }
.ffl-head__lead strong, .ffl-head__lead b { font-weight: 500; color: #2e4036; }
.ffl-head__meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-top: 16px; font-size: .88rem; color: #5b6f62;
}
.ffl-head__meta a { color: var(--ffl-muted); text-decoration: none; border-bottom: 1px dotted #c9d9ce; }
.ffl-head__meta a:hover { color: var(--ffl-800); }
.ffl-head__dot { opacity: .45; }

/* Сетка: текст + колонка */
.ffl-grid {
    display: grid;
    grid-template-columns: minmax(0, 720px) minmax(280px, 1fr);
    justify-content: space-between;
    gap: 56px;
    align-items: start;
}
@media (max-width: 1080px) {
    .ffl-grid { grid-template-columns: 1fr; gap: 40px; }
}
.ffl-main { min-width: 0; }

/* Обложка */
.ffl-main .ffl-cover { margin: 0 0 30px; }
.ffl-main .ffl-cover img {
    width: 100%; height: auto; display: block;
    border-radius: 14px; aspect-ratio: 16 / 9; max-height: 340px; object-fit: cover;
}
.ffl-cover__credit {
    margin-top: 8px; font-size: .78rem; color: #6f8277; text-align: right;
}

/* Текст статьи: мера 68-72 знака, воздух между блоками */
.ffl-prose {
    font-size: 18px; line-height: 1.75; color: var(--ffl-ink);
    max-width: 700px;
}
.ffl-prose > p { margin: 0 0 1.15em; }
.ffl-prose > p:last-child { margin-bottom: 0; }
.ffl-prose h2 {
    font-size: 1.5rem; line-height: 1.28; letter-spacing: -.015em;
    margin: 2.1em 0 .7em; padding-top: 1.35em;
    border-top: 1px solid var(--ffl-hair);
}
.ffl-prose h3 {
    font-size: 1.17rem; line-height: 1.35; margin: 1.7em 0 .55em;
}
.ffl-prose ul, .ffl-prose ol { margin: 0 0 1.15em; padding-left: 1.25em; }
.ffl-prose li { margin: 0 0 .45em; }
.ffl-prose strong { color: #1b2721; font-weight: 700; }
.ffl-prose a { color: var(--ffl-800); text-decoration: underline; text-decoration-color: var(--ffl-200); text-underline-offset: 2px; }
.ffl-prose a:hover { text-decoration-color: var(--ffl-600); }
.ffl-prose blockquote {
    margin: 1.5em 0; padding: 16px 20px; background: var(--ffl-50);
    border-left: 3px solid var(--ffl-600); border-radius: 0 10px 10px 0;
    color: #35463c;
}
.ffl-prose blockquote p:last-child { margin-bottom: 0; }
.ffl-prose table {
    width: 100%; border-collapse: collapse; margin: 1.4em 0;
    font-size: .94rem; display: block; overflow-x: auto;
}
.ffl-prose th, .ffl-prose td { padding: 10px 12px; border: 1px solid var(--ffl-hair); text-align: left; }
.ffl-prose th { background: #f3f9f5; font-weight: 700; }
.ffl-prose tbody tr:nth-child(even) td { background: #fbfdfb; }
.ffl-prose img { max-width: 100%; height: auto; border-radius: 10px; }

/* Колонка */
.ffl-aside { min-width: 0; }
@media (min-width: 1081px) {
    .ffl-widget--toc { position: sticky; top: 92px; }
}
.ffl-widget {
    border: 1px solid var(--ffl-hair); border-radius: 14px;
    padding: 16px 18px 18px; margin-bottom: 18px; background: #fff;
}
.ffl-widget__title {
    margin: 0 0 12px; padding-bottom: 10px;
    border-bottom: 1px solid var(--ffl-hair);
    font-family: "Manrope", sans-serif;
    font-size: .95rem; font-weight: 700; color: var(--ffl-900);
}
.ffl-toc-list {
    list-style: none; margin: 0; padding: 0;
    max-height: 58vh; overflow: auto;
}
.ffl-toc-list li { margin: 0; }
.ffl-toc-list a {
    display: block; padding: 6px 0 6px 11px;
    font-size: .9rem; line-height: 1.4; color: #43544a;
    text-decoration: none; border-left: 2px solid transparent;
}
.ffl-toc-list a:hover { color: var(--ffl-800); }
.ffl-toc-list a.is-active {
    color: var(--ffl-800); font-weight: 600;
    border-left-color: var(--ffl-600); background: var(--ffl-50);
}

.ffl-mini { list-style: none; margin: 0; padding: 0; }
.ffl-mini li { border-bottom: 1px solid #f1f6f2; }
.ffl-mini li:last-child { border-bottom: 0; }
.ffl-mini a {
    display: flex; gap: 11px; align-items: center;
    padding: 9px 0; text-decoration: none; color: var(--ffl-ink);
    font-size: .9rem; line-height: 1.35;
}
.ffl-mini a:hover { color: var(--ffl-800); }
.ffl-mini__cover img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; display: block; }
.ffl-mini--date a { justify-content: space-between; align-items: baseline; gap: 12px; }
.ffl-mini__date { color: #93a49a; font-size: .8rem; white-space: nowrap; }

.ffl-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ffl-chips a {
    padding: 5px 11px; border: 1px solid var(--ffl-hair); border-radius: 999px;
    font-size: .84rem; color: #405146; text-decoration: none;
}
.ffl-chips a:hover { border-color: var(--ffl-200); color: var(--ffl-800); background: var(--ffl-50); }

/* Низ статьи */
.ffl-more { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--ffl-hair); }
.ffl-more__title {
    font-size: 1.25rem; margin: 0 0 18px; letter-spacing: -.01em;
    padding-top: 0; border-top: 0;
}
.ffl-more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 780px) { .ffl-more__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ffl-more__grid { grid-template-columns: 1fr; } }
.ffl-more__grid .ffl-card { padding: 0; }

.ffl-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
@media (max-width: 620px) { .ffl-pager { grid-template-columns: 1fr; } }
.ffl-pager__item {
    display: block; padding: 14px 16px; border: 1px solid var(--ffl-hair);
    border-radius: 12px; text-decoration: none; color: var(--ffl-ink);
    transition: border-color .2s, background .2s;
}
.ffl-pager__item:hover { border-color: var(--ffl-200); background: var(--ffl-50); }
.ffl-pager__label { display: block; font-size: .76rem; color: #90a196; margin-bottom: 4px; }
.ffl-pager__title { display: block; font-size: .95rem; font-weight: 600; line-height: 1.35; }
.ffl-pager__item--next { text-align: right; }

/* Мелкие доводки статьи */
.ffl-crumbs__here { color: #33443a; font-weight: 600; }
.ffl-head__title { margin-top: 0; }
.ffl-head__lead { margin-top: 20px; }
.ffl-head__meta { color: #56695d; }

.ffl-mini__cover {
    width: 56px; height: 56px; flex: 0 0 56px;
    border-radius: 8px; overflow: hidden; display: block;
    background: var(--ffl-50);
}
.ffl-mini__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ffl-mini__cover--empty { border: 1px dashed var(--ffl-hair); }
.ffl-mini--date .ffl-mini__date { color: #6f8277; }

/* На узком экране оглавление поднимаем наверх, до текста */
.ffl-toc-mobile { display: none; }
@media (max-width: 1080px) {
    .ffl-aside .ffl-widget--toc { display: none; }
    .ffl-toc-mobile {
        display: block; margin: 0 0 26px;
        border: 1px solid var(--ffl-hair); border-radius: 12px;
        padding: 12px 16px; background: var(--ffl-50);
    }
    .ffl-toc-mobile summary {
        cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--ffl-800);
        list-style: none;
    }
    .ffl-toc-mobile summary::-webkit-details-marker { display: none; }
    .ffl-toc-mobile summary span { color: #7d8f84; font-weight: 500; }
    .ffl-toc-mobile ol { margin: 12px 0 4px; padding-left: 1.2em; font-size: .93rem; line-height: 1.5; }
    .ffl-toc-mobile li { margin-bottom: .45em; }
    .ffl-toc-mobile a { color: #3d4f44; text-decoration: none; }
}

/* Карточки: заголовок и анонс не раздувают высоту в узкой колонке */
.ffl-card__title {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.ffl-card__excerpt {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.ffl-more .ffl-card__excerpt { -webkit-line-clamp: 2; }

/* Контраст мелкого текста: бледно-серое на мятном читалось плохо */
.ffl-hero__eyebrow { color: #2f6b52; }
.ffl-hero__lead, .ffl-hero__trust, .ffl-hero p.ffl-hero__lead { color: #3f5347; }
.ffl-hero__card li a, .ffl-hero__item-text { color: #37493f; }
.ffl-meta, .ffl-cat__meta, .ffl-card__meta { color: #55685c; }
.ffl-hero__card-title { color: #2f6b52; }

/* Логотип-03: знак в подвале рядом с названием */
.ffl-footer__brand {
    display: flex; align-items: center; gap: 10px;
}
.ffl-footer__mark { flex: 0 0 auto; color: #bfe6cf; }

/* Меню: пункты не сливаются — зазор между ними и подсветка при наведении */
.ct-header nav ul.menu {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ct-header nav ul.menu > li > a {
    display: inline-block;
    padding: 8px 13px;
    border-radius: 9px;
    border-bottom: 0;
    line-height: 1.25;
    color: #2b3a31;
    white-space: nowrap;
}
.ct-header nav ul.menu > li > a:hover,
.ct-header nav ul.menu > li:hover > a {
    background: var(--ffl-100);
    color: var(--ffl-800);
    border-bottom-color: transparent;
}
.ct-header nav ul.menu > li.current-menu-item > a,
.ct-header nav ul.menu > li.current-menu-ancestor > a,
.ct-header nav ul.menu > li.current-menu-parent > a {
    background: var(--ffl-100);
    color: var(--ffl-800);
    font-weight: 600;
}
@media (max-width: 999.98px) {
    .ct-header nav ul.menu > li > a { padding: 10px 12px; }
}
