/* FAQ v2 + Полезные статьи — отдельные файлы, не трогают main.css */

/* === Общее для секций главной === */
.home-section-v2 .container {
    max-width: 100% !important;
    width: 100%;
    padding-left: var(--hero-site-content-pad, calc(6vw + 0.5rem));
    padding-right: var(--hero-site-content-pad, calc(6vw + 0.5rem));
}

.home-section-v2__head {
    max-width: 46rem;
    margin-bottom: 2em;
}

.home-section-v2 h2:after {
    display: none;
}

.home-section-v2__mark {
    position: relative;
    z-index: 1;
}

.home-section-v2__mark:after {
    content: '';
    position: absolute;
    left: -.08em;
    right: -.08em;
    bottom: .02em;
    height: 55%;
    background: var(--bgbtn);
    z-index: -1;
}

.home-section-v2__lead {
    text-transform: none !important;
    font-weight: 600 !important;
    color: #555 !important;
    margin-bottom: 0 !important;
    line-height: 1.45em;
}

/* === FAQ v2 === */
section.faq-v2 {
    padding: 4.5em 0 5em;
    background: #f4f4f4;
}

.faq-v2 .faq-bl {
    width: 100%;
    max-width: 52rem;
    margin: 0 auto;
    background: transparent;
    counter-reset: faq-v2;
}

.faq-v2 .faq-it {
    padding: 0;
    margin: 0 0 .75em;
    border: 1px solid #ddd;
    border-radius: .35rem;
    background: #fff;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-v2 .faq-it:last-child {
    margin-bottom: 0;
}

.faq-v2 .faq-it.open {
    border-color: #c8d9c4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.faq-v2 .question {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .95em 1.15em;
    font-size: 1rem;
    line-height: 1.35em;
    font-weight: 600;
    position: relative;
}

.faq-v2 .question:before {
    content: '';
    position: static;
    flex: 0 0 1.65rem;
    width: 1.65rem;
    height: 1.65rem;
    margin-top: .1em;
    background: url(/assets/images/icon/plus.svg) no-repeat center / 1.1rem;
    opacity: .85;
}

.faq-v2 .question:after {
    display: none;
}

.faq-v2 .faq-it.open .question {
    color: var(--col);
}

.faq-v2 .faq-it.open .question:before {
    background-image: url(/assets/images/icon/xmark.svg);
}

.faq-v2 .answer {
    display: none;
    padding: 0 1.15em 1.05em 3.65em;
    font-size: .93em;
    line-height: 1.5em;
    color: #444;
}

.faq-v2 .answer p {
    margin-top: 0;
    margin-bottom: .75em;
}

.faq-v2 .answer p:last-child {
    margin-bottom: 0;
}

.faq-v2 .answer ul,
.faq-v2 .answer ol {
    margin: 0 0 .75em 1.1em;
    padding: 0;
}

.faq-v2 .answer li {
    margin-bottom: .35em;
}

.faq-v2 .answer a {
    color: var(--col);
    text-decoration: underline;
}

.faq-v2__cta-line {
    margin-top: .85em;
    font-weight: 600;
    color: #333;
}

/* === Отзывы v2 === */
section.reviews-v2 {
    padding: 4.5em 0 5em;
    background: #f4f4f4;
}

.reviews-v2__wrap {
    display: grid;
    grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
    gap: 1.5em;
    align-items: start;
}

.reviews-v2__intro {
    position: sticky;
    top: 6.5rem;
}

.reviews-v2__trust,
.reviews-v2__widget-card {
    border: 1px solid #ddd;
    background: #fff;
}

.reviews-v2__trust {
    padding: 1.35em 1.25em;
    margin-bottom: 1em;
}

.reviews-v2__badge {
    display: inline-flex;
    align-items: center;
    min-height: 2.15rem;
    padding: 0 .8rem;
    background: var(--gray);
    border-left: 4px solid var(--bgbtn);
    font-family: 'bounded', sans-serif;
    font-size: .78em;
    text-transform: uppercase;
    margin-bottom: 1em;
}

.reviews-v2__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.reviews-v2__list li {
    position: relative;
    padding-left: 1.35em;
    margin-bottom: .7em;
    color: #444;
    line-height: 1.45em;
}

.reviews-v2__list li:last-child {
    margin-bottom: 0;
}

.reviews-v2__list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: .45em;
    width: .45em;
    height: .45em;
    background: var(--bgbtn);
}

.reviews-v2__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75em;
}

.reviews-v2__widget-card {
    padding: 1em;
}

.reviews-v2__widget-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5em 1em;
    margin-bottom: .85em;
}

.reviews-v2__widget-title {
    font-family: 'bounded', sans-serif;
    font-size: .95em;
    text-transform: uppercase;
    line-height: 1.25em;
}

.reviews-v2__widget-note {
    color: #777;
    font-size: .82em;
}

.reviews-v2__widget {
    width: 100%;
    height: 44rem;
    overflow: hidden;
    position: relative;
    border: 1px solid #e6e6e6;
    background: #fff;
}

.reviews-v2__widget iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.reviews-v2__widget a {
    box-sizing: border-box;
    text-decoration: none;
    color: #9b9b9b;
    font-size: 10px;
    font-family: YS Text, sans-serif;
    padding: 0 16px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    left: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-height: 14px;
    white-space: nowrap;
}

/* === Полезные статьи === */
section.articles-v2 {
    padding: 4.5em 0 5em;
}

.articles-v2__grid,
.articles-page__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25em;
    width: 100%;
}

.article-card {
    height: 100%;
    min-width: 0;
    width: 100%;
    margin: 0;
}

.article-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #ddd;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.article-card__link:hover {
    border-color: #c8d9c4;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
    color: inherit;
}

.article-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #eef3ea 0%, #f7f7f7 55%, #ececec 100%);
}

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

.article-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.15em 1.2em 1.25em;
}

.article-card__date {
    font-size: .78em;
    color: #777;
    margin-bottom: .65em;
}

.article-card__title {
    font-family: 'bounded', sans-serif;
    font-size: 1rem;
    line-height: 1.25em;
    text-transform: uppercase;
    margin: 0 0 .65em;
    font-weight: 700;
}

.article-card__excerpt {
    margin: 0 0 1em;
    color: #555;
    font-size: .92em;
    line-height: 1.45em;
    flex: 1 1 auto;
}

.article-card__more {
    font-size: .82em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--col);
    letter-spacing: .02em;
}

.articles-v2__foot {
    margin-top: 2em;
    display: flex;
    justify-content: center;
}

.articles-v2__empty,
.articles-page__empty {
    border: 1px dashed #ccc;
    background: #fafafa;
    padding: 2em 1.5em;
    text-align: center;
    color: #666;
    line-height: 1.5em;
    max-width: 40rem;
    margin: 0 auto;
}

.articles-v2__empty p,
.articles-page__empty p {
    margin: 0;
}

/* === Страница раздела статей === */
.articles-page {
    padding: 3em 0 5em;
}

.articles-page .container,
.article-page .container {
    max-width: 100% !important;
    width: 100%;
    padding-left: var(--hero-site-content-pad, calc(6vw + 0.5rem));
    padding-right: var(--hero-site-content-pad, calc(6vw + 0.5rem));
}

/* grid rules merged above with .articles-v2__grid */

/* === Страница одной статьи === */
.article-page {
    padding: 3em 0 5em;
}

.article-page__meta {
    color: #777;
    font-size: .9em;
    margin-bottom: 1.5em;
}

.article-page__topnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75em 1.25em;
    margin: 1.25em 0 1.5em;
}

.article-page__backlink {
    font-weight: 600;
    text-decoration: underline;
    color: var(--col);
    white-space: nowrap;
}

.article-page__cover {
    max-width: 72rem;
    margin-bottom: 1.5em;
}

.article-page__cover img {
    width: 100%;
    height: auto;
    display: block;
}

.article-page__content {
    max-width: 72rem;
    width: 100%;
    line-height: 1.75em;
    color: #333;
    font-size: 1.06em;
}

.article-page__content h2,
.article-page__content h3 {
    margin-top: 1.5em;
    margin-bottom: .75em;
}

.article-page__content p,
.article-page__content ul,
.article-page__content ol {
    margin-bottom: 1em;
}

.article-page__empty-note {
    max-width: 72rem;
    padding: 1.25em 1.5em;
    border: 1px dashed #ccc;
    background: #fafafa;
    color: #666;
    line-height: 1.5em;
}

.article-page__cta {
    margin-top: 2.5em;
    padding: 1.5em;
    background: var(--gray);
    border-left: 6px solid var(--bgbtn);
    max-width: 72rem;
}

.article-page__cta p {
    margin: 0 0 1em;
    font-weight: 600;
    color: #333;
    text-transform: none;
}

.article-page__pager {
    margin-top: 1.25em;
    max-width: 72rem;
}

.article-page__pager-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75em;
}

.article-page__pager-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 3.1em;
    width: 100%;
    text-align: center;
}

@media screen and (max-width: 600px) {
    .article-page__pager-inner {
        grid-template-columns: 1fr;
    }
}
