/* === Articles Hub (/category/poleznye-stati/) & Article Monetization Blocks === */
.sf-ah-page,
.sf-ah-page *,
.sf-am-box,
.sf-am-box * {
    box-sizing: border-box;
}

.sf-ah-page {
    padding: 0 0 64px;
    background: #F8F8FE;
    color: #373742;
}

.sf-ah-hero {
    background: #FFFFFF;
    border: 1px solid #ECECF6;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 10px 28px rgba(38, 38, 48, 0.04);
}

.sf-ah-hero__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sf-ah-pill {
    padding: 4px 12px;
    border-radius: 999px;
    background: #F1EBFC;
    color: #6A44B8;
    font-size: 13px;
    font-weight: 700;
}

.sf-ah-meta {
    font-size: 13px;
    color: #7A7A8F;
}

.sf-ah-hero__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.sf-ah-h1 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    color: #262630;
    margin: 0 0 8px;
}

.sf-ah-sub {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #5E5E70;
    max-width: 640px;
}

.sf-ah-search {
    display: flex;
    gap: 8px;
    min-width: 280px;
    flex: 0 1 360px;
}

.sf-ah-search input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 44px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    border: 1px solid #DCDCEB !important;
    border-radius: 10px !important;
    background: #F8F8FE !important;
    font-size: 14px !important;
    color: #262630 !important;
}

.sf-ah-search button {
    height: 44px !important;
    padding: 0 20px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 10px !important;
    background: #946FDE !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer;
}

.sf-ah-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #F0F0F8;
}

.sf-ah-nav-pill {
    padding: 7px 14px;
    border-radius: 999px;
    background: #F4F4FC;
    color: #373742;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.16s;
}

.sf-ah-nav-pill:hover { background: #ECE6FA; color: #5E3BA6; }
.sf-ah-nav-pill.is-active { background: #946FDE; color: #FFFFFF; }
.sf-ah-nav-pill--accent { background: #E6F7F1; color: #12805C; }
.sf-ah-nav-pill--accent:hover { background: #18AA88; color: #FFFFFF; }

/* Spotlight Card */
.sf-ah-spotlight {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 28px;
    background: #FFFFFF;
    border: 1px solid #ECECF6;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 12px 30px rgba(38, 38, 48, 0.05);
}

.sf-ah-spotlight__media {
    display: block;
    min-height: 280px;
    background: #F1EBFC;
    overflow: hidden;
}

.sf-ah-spotlight__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sf-ah-spotlight__body {
    padding: 28px 28px 28px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sf-ah-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #7A7A8F;
    margin-bottom: 12px;
}

.sf-ah-tag {
    padding: 3px 10px;
    border-radius: 999px;
    background: #F1EBFC;
    color: #6A44B8;
    font-weight: 700;
    font-size: 12px;
}

.sf-ah-spotlight__title {
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 12px;
}

.sf-ah-spotlight__title a { color: #262630; }
.sf-ah-spotlight__title a:hover { color: #946FDE; }

.sf-ah-spotlight__excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #555568;
    margin: 0 0 20px;
}

.sf-ah-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    height: 44px;
    padding: 0 22px;
    border-radius: 10px;
    background: #946FDE;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
}

.sf-ah-btn:hover { background: #7C55CC; color: #FFFFFF; }

/* 3-Column Grid */
.sf-ah-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.sf-ah-card {
    background: #FFFFFF;
    border: 1px solid #ECECF6;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.sf-ah-card:hover {
    transform: translateY(-3px);
    border-color: #D2C2F5;
    box-shadow: 0 14px 28px rgba(148, 111, 222, 0.1);
}

.sf-ah-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #F1EBFC;
    overflow: hidden;
}

.sf-ah-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sf-ah-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #946FDE;
    font-size: 20px;
}

.sf-ah-read-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(38, 38, 48, 0.78);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
}

.sf-ah-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sf-ah-card__date {
    font-size: 12px;
    color: #8B8B9E;
    margin-bottom: 6px;
}

.sf-ah-card__title {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 10px;
}

.sf-ah-card__title a { color: #262630; }
.sf-ah-card__title a:hover { color: #946FDE; }

.sf-ah-card__excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: #5E5E70;
    margin: 0 0 14px;
}

.sf-ah-card__link {
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    color: #7C55CC;
}

.sf-ah-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.sf-ah-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sf-ah-pagination .page-numbers a,
.sf-ah-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1px solid #E5E5F2;
    color: #373742;
    font-weight: 600;
    font-size: 14px;
}

.sf-ah-pagination .page-numbers span.current {
    background: #946FDE;
    border-color: #946FDE;
    color: #FFFFFF;
}

.sf-ah-empty {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 36px;
    text-align: center;
}

/* === Article Inline Monetization Blocks (4 Variants) === */
.sf-am-box {
    margin: 28px 0;
    padding: 24px 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F1FD 100%);
    border: 2px solid #D2C2F5;
    box-shadow: 0 10px 26px rgba(148, 111, 222, 0.1);
}

.sf-am-box--pdf {
    background: linear-gradient(135deg, #FFFFFF 0%, #EEF9F5 100%);
    border-color: #9CE0CA;
}

.sf-am-box--promo {
    background: linear-gradient(135deg, #271C4B 0%, #5234A0 100%);
    border-color: #7C55CC;
    color: #FFFFFF;
}

.sf-am-hp {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.sf-am-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #946FDE;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.sf-am-badge--green { background: #18AA88; }
.sf-am-badge--light { background: rgba(255, 255, 255, 0.18); color: #FFFFFF; }

.sf-am-title {
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
    color: #262630;
    margin: 0 0 8px;
}

.sf-am-sub {
    font-size: 14px;
    line-height: 1.55;
    color: #555568;
    margin: 0 0 16px;
}

.sf-am-box--promo .sf-am-title { color: #FFFFFF; }
.sf-am-box--promo .sf-am-sub   { color: rgba(255, 255, 255, 0.88); }

/* Quiz Pills */
.sf-am-quiz-opts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.sf-am-quiz-group > span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #7A7A8F;
    margin-bottom: 6px;
}

.sf-am-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sf-am-pill {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid #D8CBF5;
    background: #FFFFFF;
    color: #373742;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.sf-am-pill.is-active {
    background: #946FDE;
    border-color: #946FDE;
    color: #FFFFFF;
}

.sf-am-quiz-est {
    padding: 10px 14px;
    border-radius: 10px;
    background: #F1EBFC;
    color: #4D2D96;
    font-size: 15px;
    margin-bottom: 14px;
}

/* PDF Header */
.sf-am-pdf-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.sf-am-pdf-icon {
    flex: 0 0 54px;
    width: 54px;
    height: 64px;
    border-radius: 12px;
    background: #18AA88;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Promo Banner Wrap */
.sf-am-promo-wrap {
    display: flex;
    align-items: center;
    gap: 22px;
}

.sf-am-promo-photo {
    flex: 0 0 110px;
    width: 110px;
    height: 132px;
    border-radius: 14px;
    object-fit: cover;
    object-position: center top;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.sf-am-promo-body { flex: 1; min-width: 0; }

/* Inline Form Row */
.sf-am-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.sf-am-row input[type="tel"] {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    border: 1.5px solid #DCDCEB !important;
    border-radius: 10px !important;
    background: #FFFFFF !important;
    font-size: 14px !important;
    color: #262630 !important;
}

.sf-am-btn {
    height: 46px !important;
    padding: 0 22px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 10px !important;
    background: #946FDE !important;
    color: #FFFFFF !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.sf-am-btn:hover { background: #7C55CC !important; color: #FFFFFF !important; }

.sf-am-btn--white {
    background: #FFFFFF !important;
    color: #5B38AE !important;
}

.sf-am-btn--white:hover {
    background: #F1EBFC !important;
    color: #462691 !important;
}

.sf-am-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6E6E80;
    margin-top: 8px;
    cursor: pointer;
}

.sf-am-consent input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
    accent-color: #946FDE;
}

.sf-am-msg {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}

.sf-am-msg.is-success { color: #12805C; }
.sf-am-msg.is-error   { color: #D63939; }

/* Responsive */
@media (max-width: 991px) {
    .sf-ah-spotlight {
        grid-template-columns: 1fr;
    }
    .sf-ah-spotlight__body {
        padding: 20px;
    }
    .sf-ah-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .sf-ah-hero { padding: 18px 16px; }
    .sf-ah-h1 { font-size: 26px; }
    .sf-ah-search { min-width: 100%; }
    .sf-ah-grid { grid-template-columns: minmax(0, 1fr); }
    .sf-am-box { padding: 18px 16px; }
    .sf-am-row { grid-template-columns: minmax(0, 1fr); }
    .sf-am-btn { width: 100% !important; white-space: normal; text-align: center; }
    .sf-am-promo-wrap,
    .sf-am-pdf-head { flex-direction: column; align-items: flex-start; }
}

/* === Calculators Hub & Clickable Calc Tags === */
.sf-calc-cnt {
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(55, 55, 66, 0.08);
    margin-left: 4px;
}

.sf-ah-nav-pill.is-active .sf-calc-cnt {
    background: rgba(255, 255, 255, 0.22);
}

.sf-calc-card__tags,
.sf-calc-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
}

.sf-calc-single-tags {
    margin: 10px 0 20px;
}

.sf-calc-card-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #F1EBFC;
    color: #6A44B8;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    transition: background 0.16s, color 0.16s;
}

.sf-calc-card-tag:hover {
    background: #946FDE;
    color: #FFFFFF;
}

.sf-calc-card-tag--lg {
    padding: 6px 13px;
    font-size: 13px;
}

.sf-calc-tag-more {
    display: none;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px dashed #946FDE;
    background: #FFFFFF;
    color: #7C55CC;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 767px) {
    .sf-calc-tag-nav:not(.is-expanded) .sf-calc-tag--extra {
        display: none;
    }
    .sf-calc-tag-more {
        display: inline-flex;
    }
}
