/* ============================================
   Fresh Harvest — универсальные стили статей
   ============================================ */

.fh-article {
    max-width: 860px !important;
    margin: 0 auto !important;
    padding: 20px 0 50px !important;
    font-family: inherit !important;
    color: #f4f4f4 !important;
    line-height: 1.7 !important;
    font-size: 17px !important;
}

.fh-article * {
    box-sizing: border-box !important;
}

.fh-article p {
    margin: 0 0 18px !important;
}

.fh-article h2 {
    margin: 42px 0 18px !important;
    font-size: 30px !important;
    line-height: 1.25 !important;
    color: #ffffff !important;
}

.fh-article h3 {
    margin: 28px 0 10px !important;
    font-size: 22px !important;
    line-height: 1.35 !important;
    color: #ffffff !important;
}

.fh-article h4 {
    margin: 22px 0 8px !important;
    font-size: 19px !important;
    line-height: 1.4 !important;
    color: #ffffff !important;
}

/* ----- Маркированные списки ----- */
.fh-article ul {
    margin: 18px 0 24px !important;
    padding: 0 !important;
    list-style: none !important;
}

.fh-article ul li {
    position: relative !important;
    margin: 0 0 12px !important;
    padding: 14px 18px 14px 48px !important;
    background: #fdf5ed !important;
    border-radius: 14px !important;
    color: #2b2b2b !important;
}

.fh-article ul li strong {
    color: #1f1f1f !important;
}

.fh-article ul li:before {
    content: "" !important;
    position: absolute !important;
    left: 18px !important;
    top: 21px !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: #e67e22 !important;
}

/* ----- Нумерованные списки ----- */
.fh-article ol {
    margin: 18px 0 24px !important;
    padding: 0 !important;
    list-style: none !important;
    counter-reset: fh-counter !important;
}

.fh-article ol li {
    position: relative !important;
    margin: 0 0 12px !important;
    padding: 14px 18px 14px 56px !important;
    background: #fdf5ed !important;
    border-radius: 14px !important;
    color: #2b2b2b !important;
    counter-increment: fh-counter !important;
}

.fh-article ol li:before {
    content: counter(fh-counter) !important;
    position: absolute !important;
    left: 14px !important;
    top: 12px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: #e67e22 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 28px !important;
    text-align: center !important;
}

.fh-article ol li strong {
    color: #1f1f1f !important;
}

/* ----- Вступительная карточка ----- */
.fh-article .intro-card {
    padding: 28px !important;
    margin: 0 0 34px !important;
    background: linear-gradient(135deg, #fdf5ed 0%, #fffbf5 100%) !important;
    border: 1px solid #f0dcc8 !important;
    border-radius: 24px !important;
    color: #2b2b2b !important;
}

.fh-article .intro-card p {
    color: #2b2b2b !important;
}

.fh-article .intro-card p:last-child {
    margin-bottom: 0 !important;
}

/* ----- Блок-примечание ----- */
.fh-article .note-box {
    margin: 24px 0 !important;
    padding: 22px 24px !important;
    background: #fdf5ed !important;
    border-left: 5px solid #e67e22 !important;
    border-radius: 16px !important;
    color: #2b2b2b !important;
}

.fh-article .note-box strong {
    color: #1f1f1f !important;
}

.fh-article .note-box p,
.fh-article .note-box span,
.fh-article .note-box a {
    color: #2b2b2b !important;
    margin:0 !important;
}

/* ----- Блок-предупреждение (красный акцент) ----- */
.fh-article .warning-box {
    margin: 24px 0 !important;
    padding: 22px 24px !important;
    background: #fef5f5 !important;
    border-left: 5px solid #e74c3c !important;
    border-radius: 16px !important;
    color: #2b2b2b !important;
}

.fh-article .warning-box strong {
    color: #1f1f1f !important;
}

.fh-article .warning-box p {
    color: #2b2b2b !important;
}

/* ----- Блок-совет (зелёный акцент) ----- */
.fh-article .tip-box {
    margin: 24px 0 !important;
    padding: 22px 24px !important;
    background: #f4fdf7 !important;
    border-left: 5px solid #27ae60 !important;
    border-radius: 16px !important;
    color: #2b2b2b !important;
}

.fh-article .tip-box strong {
    color: #1f1f1f !important;
}

.fh-article .tip-box p {
    color: #2b2b2b !important;
}

/* ----- Цитата ----- */
.fh-article blockquote {
    margin: 24px 0 !important;
    padding: 20px 28px !important;
    background: #fdf5ed !important;
    border-left: 5px solid #e67e22 !important;
    border-radius: 0 16px 16px 0 !important;
    color: #2b2b2b !important;
    font-style: italic !important;
}

.fh-article blockquote p {
    margin: 0 !important;
    color: #2b2b2b !important;
}

.fh-article blockquote cite {
    display: block !important;
    margin-top: 8px !important;
    font-size: 15px !important;
    font-style: normal !important;
    color: #8a8a8a !important;
}

/* ----- Таблицы ----- */
.fh-article .table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    margin: 24px 0 34px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.22) !important;
    background: #ffffff !important;
}

.fh-article table {
    width: 100% !important;
    min-width: 680px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff !important;
    color: #2b2b2b !important;
    overflow: hidden !important;
    margin: 0 !important;
}

.fh-article table thead,
.fh-article table tbody,
.fh-article table tr {
    background: transparent !important;
}

.fh-article table th {
    padding: 16px 14px !important;
    background: #e67e22 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-align: left !important;
    font-size: 15px !important;
    border: none !important;
    border-right: 1px solid rgba(255,255,255,0.35) !important;
}

.fh-article table th:first-child {
    border-top-left-radius: 18px !important;
}

.fh-article table th:last-child {
    border-top-right-radius: 18px !important;
    border-right: none !important;
}

.fh-article table td {
    padding: 15px 14px !important;
    border: none !important;
    border-bottom: 1px solid #f0e0d0 !important;
    border-right: 1px solid #f0e0d0 !important;
    font-size: 15px !important;
    color: #2b2b2b !important;
    background: #ffffff !important;
    text-align: left !important;
}

.fh-article table td:last-child {
    border-right: none !important;
}

.fh-article table tbody tr:nth-child(even) td {
    background: #fdf5ed !important;
    color: #2b2b2b !important;
}

.fh-article table tbody tr:nth-child(odd) td {
    background: #ffffff !important;
    color: #2b2b2b !important;
}

.fh-article table tbody tr:hover td {
    background: #fce8d5 !important;
    color: #1f1f1f !important;
}

.fh-article table tbody tr:last-child td {
    border-bottom: none !important;
}

.fh-article table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 18px !important;
}

.fh-article table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 18px !important;
}

/* ----- Сетка карточек (2 колонки) ----- */
.fh-article .factors-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin: 24px 0 10px !important;
}

.fh-article .factor-card {
    padding: 22px !important;
    background: #ffffff !important;
    border: 1px solid #f0dcc8 !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08) !important;
    color: #2b2b2b !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.fh-article .factor-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
}

.fh-article .factor-card h3 {
    margin: 0 0 10px !important;
    font-size: 22px !important;
    line-height: 1.35 !important;
    color: #1f1f1f !important;
}

.fh-article .factor-card p {
    margin: 0 !important;
    color: #4a4a4a !important;
    line-height: 1.7 !important;
}

/* ----- Сетка карточек (3 колонки) ----- */
.fh-article .cards-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin: 24px 0 10px !important;
}

.fh-article .cards-grid-3 .factor-card {
    padding: 18px !important;
}

.fh-article .cards-grid-3 .factor-card h3 {
    font-size: 19px !important;
}

/* ----- Карточка эксперта ----- */
.fh-article .expert-card {
    margin: 24px 0 !important;
    padding: 24px !important;
    background: #ffffff !important;
    border: 1px solid #f0dcc8 !important;
    border-radius: 20px !important;
    color: #2b2b2b !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06) !important;
}

.fh-article .expert-card h3 {
    color: #1f1f1f !important;
    margin: 0 0 8px !important;
}

.fh-article .expert-card p {
    color: #4a4a4a !important;
    margin: 0 !important;
}

/* ----- Разделитель ----- */
.fh-article .divider {
    border: 0 !important;
    height: 2px !important;
    background: linear-gradient(to right, #f0dcc8, transparent) !important;
    margin: 40px 0 !important;
}

/* ----- FAQ (аккордеон) ----- */
.fh-article .faq-block {
    margin-top: 26px !important;
}

.fh-article .faq-item {
    margin: 0 0 14px !important;
    background: #ffffff !important;
    border: 1px solid #f0dcc8 !important;
    border-radius: 18px !important;
    color: #2b2b2b !important;
    overflow: hidden !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06) !important;
}

.fh-article .faq-item summary {
    position: relative !important;
    display: block !important;
    padding: 20px 58px 20px 22px !important;
    margin: 0 !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    color: #1f1f1f !important;
    cursor: pointer !important;
    list-style: none !important;
    background: #ffffff !important;
}

.fh-article .faq-item summary::-webkit-details-marker {
    display: none !important;
}

.fh-article .faq-item summary:after {
    content: "+" !important;
    position: absolute !important;
    right: 22px !important;
    top: 50% !important;
    width: 28px !important;
    height: 28px !important;
    margin-top: -14px !important;
    border-radius: 50% !important;
    background: #fce8d5 !important;
    color: #e67e22 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 26px !important;
    text-align: center !important;
}

.fh-article .faq-item[open] summary {
    background: #fdf5ed !important;
}

.fh-article .faq-item[open] summary:after {
    content: "−" !important;
    background: #e67e22 !important;
    color: #ffffff !important;
}

.fh-article .faq-answer {
    padding: 0 22px 20px !important;
    background: #ffffff !important;
    color: #4a4a4a !important;
}

.fh-article .faq-answer p {
    margin: 0 !important;
    color: #4a4a4a !important;
}

/* ----- Кнопка-ссылка ----- */
.fh-article .btn-link {
    display: inline-block;
    background: #e67e22 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    transition: 0.2s;
    margin: 10px 0 !important;
}

.fh-article .btn-link:hover {
    background: #c96f1e !important;
    transform: translateY(-1px);
}

/* ----- Блок «Вас заинтересует» ----- */
.fh-article .related-links {
    margin: 34px 0 0 !important;
}

.fh-article .related-links a {
    display: inline-block;
    margin: 0 12px 10px 0;
    padding: 8px 18px;
    background: #fdf5ed;
    color: #e67e22 !important;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.fh-article .related-links a:hover {
    background: #fce8d5;
}

/* ----- Бейдж / метка ----- */
.fh-article .badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e67e22;
    color: #ffffff !important;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fh-article .badge--green {
    background: #27ae60;
}

.fh-article .badge--red {
    background: #e74c3c;
}

/* ----- Изображения ----- */
.fh-article img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 16px !important;
    margin: 20px 0 !important;
}

/* ----- Видео-контейнер ----- */
.fh-article .video-wrapper {
    position: relative !important;
    padding-bottom: 56.25% !important;
    height: 0 !important;
    margin: 24px 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.fh-article .video-wrapper iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

/* ----- Адаптивность ----- */
@media (max-width: 768px) {
    .fh-article {
        font-size: 16px !important;
        padding: 10px 0 40px !important;
    }

    .fh-article h2 {
        font-size: 25px !important;
    }

    .fh-article h3 {
        font-size: 20px !important;
    }

    .fh-article h4 {
        font-size: 17px !important;
    }

    .fh-article .intro-card,
    .fh-article .note-box,
    .fh-article .warning-box,
    .fh-article .tip-box {
        padding: 20px !important;
        border-radius: 18px !important;
    }

    .fh-article .factors-grid {
        grid-template-columns: 1fr !important;
    }

    .fh-article .cards-grid-3 {
        grid-template-columns: 1fr !important;
    }

    .fh-article table {
        min-width: 640px !important;
    }

    .fh-article .faq-item summary {
        padding: 18px 52px 18px 18px !important;
        font-size: 17px !important;
    }

    .fh-article .faq-answer {
        padding: 0 18px 18px !important;
    }
}
#anchorlinks-toc {
  background-color: #fff !important;
}
#anchorlinks-toc.detached {
  width: 295px !important;
}
.anchorlinks-toggle-button {
  background-color: #e67e22 !important;
}
.anchorlinks-toggle-icon::before, .anchorlinks-toggle-icon::after {
  background-color: #fff;
}
.anchorlinks-title {
  margin-bottom: 0 !important;
}
.anchorlinks-toggle-container {
  margin-bottom: 0 !important;
}
#anchorlinks-toc ul {
  margin: 20px 0 0 0 !important;
}
/* ============================================
   Калькулятор — универсальные стили
   ============================================ */

.fh-article .cake-calculator {
    margin: 28px 0 34px !important;
    padding: 28px !important;
    background: #ffffff !important;
    border: 1px solid #f0dcc8 !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08) !important;
    color: #2b2b2b !important;
}

.fh-article .cake-calculator .calculator-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 20px !important;
    color: #1f1f1f !important;
}

.fh-article .cake-calculator .calculator-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
}

.fh-article .cake-calculator .form-group {
    flex: 1 1 180px !important;
    min-width: 160px !important;
}

.fh-article .cake-calculator .form-group label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    color: #4a4a4a !important;
}

/* Поле ввода числа */
.fh-article .cake-calculator .form-group input {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #f0dcc8 !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #1f1f1f !important;
    background: #fdf5ed !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
}

.fh-article .cake-calculator .form-group input:focus {
    border-color: #e67e22 !important;
    box-shadow: 0 0 0 3px rgba(230,126,34,0.15) !important;
    background: #ffffff !important;
}

/* Убираем браузерные стрелки у number-полей */
.fh-article .cake-calculator .form-group input[type="number"] {
    -moz-appearance: textfield !important;
}

.fh-article .cake-calculator .form-group input[type="number"]::-webkit-outer-spin-button,
.fh-article .cake-calculator .form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Выпадающий список (select) */
.fh-article .cake-calculator .form-group select {
    width: 100% !important;
    padding: 12px 40px 12px 16px !important;
    border: 2px solid #f0dcc8 !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #1f1f1f !important;
    background: #fdf5ed !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e67e22' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px 8px !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
}

.fh-article .cake-calculator .form-group select:focus {
    border-color: #e67e22 !important;
    box-shadow: 0 0 0 3px rgba(230,126,34,0.15) !important;
    background-color: #ffffff !important;
}

/* Стили для опций в выпадающем списке */
.fh-article .cake-calculator .form-group select option {
    color: #1f1f1f !important;
    background: #ffffff !important;
    padding: 10px !important;
}

/* Кнопка */
.fh-article .cake-calculator button {
    display: inline-block !important;
    padding: 12px 28px !important;
    background: #e67e22 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 30px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.fh-article .cake-calculator button:hover {
    background: #c96f1e !important;
    transform: translateY(-1px) !important;
}

/* Блок с результатом — общий для всех калькуляторов */
.fh-article .cake-calculator #belliniResult,
.fh-article .cake-calculator #cakeResult,
.fh-article .cake-calculator .calc-result {
    margin-top: 20px !important;
    padding: 16px 20px !important;
    background: #fdf5ed !important;
    border-radius: 14px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #1f1f1f !important;
    display: none !important;
}

.fh-article .cake-calculator #belliniResult.show,
.fh-article .cake-calculator #cakeResult.show,
.fh-article .cake-calculator .calc-result.show {
    display: block !important;
}

.fh-article .cake-calculator #belliniResult strong,
.fh-article .cake-calculator #cakeResult strong,
.fh-article .cake-calculator .calc-result strong {
    color: #e67e22 !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .fh-article .cake-calculator {
        padding: 20px !important;
        border-radius: 18px !important;
    }

    .fh-article .cake-calculator .calculator-title {
        font-size: 18px !important;
    }

    .fh-article .cake-calculator .calculator-row {
        gap: 12px !important;
    }

    .fh-article .cake-calculator .form-group {
        flex: 1 1 100% !important;
    }
}