/* ONLINE PARK — статьи, текстовые страницы, о компании, поддержка, ошибки. */

/* Общее для контентных страниц: от крошек до заголовка 40px, заголовок 36px — как в макете */
.cnt-crumbs { margin-bottom: 40px; }
.cnt-h1 { font-size: 36px; line-height: 1.2; }

/* ── Статьи ──────────────────────────────────────────────── */

.posts-intro { font-size: 14px; line-height: 17px; margin: 0 0 16px; }
.posts-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.posts-tabs .chip { height: 36px; padding: 0 12px; gap: 8px; border-radius: 18px; background: var(--bg-grey); font-size: 16px; font-weight: 400; }
.posts-tabs .chip:hover { background: #e3e3de; }
.posts-tabs .chip-on, .posts-tabs .chip-on:hover { background: var(--ink); color: var(--white); }

.posts-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.posts-list > * { min-width: 0; }
.post-wide .post-body b { font-size: 24px; }

/* ── Одна статья ─────────────────────────────────────────── */

.art-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 8px; }
.art-head h1 { font-size: 36px; line-height: 43px; max-width: 984px; }
.art-date { font-size: 14px; line-height: 17px; padding-bottom: 7px; white-space: nowrap; }
.art-cover { width: 100%; height: 420px; object-fit: cover; border-radius: var(--r-24); }

.art-body { font-size: 16px; line-height: 20px; margin-top: 16px; }
.art-body img { border-radius: var(--r-24); margin: 16px 0; }

.art-foot { display: flex; flex-direction: column; align-items: flex-start; margin-top: 24px; }
.art-cta-title { font-size: 20px; font-weight: 600; line-height: 24px; margin-bottom: 8px; }
.art-cta { height: 55px; padding: 0 24px; border: 1px solid var(--blue); border-radius: var(--r-8); gap: 8px; font-size: 18px; font-weight: 500; background: var(--white); }
.art-cta:hover { background: var(--blue); color: var(--white); }
.art-share { height: 48px; padding: 0 16px; border-radius: var(--r-8); gap: 8px; font-size: 18px; font-weight: 500; margin-top: 25px; color: var(--ink); }
.art-share .icon { color: var(--orange); }

/* ── Текст статьи и текстовой страницы (макет «Text + setup») ── */

.doc h1 { font-size: 36px; line-height: 43px; margin-bottom: 16px; }
.doc-body { font-size: 16px; line-height: 20px; }

.doc-body h2, .art-body h2 { font-size: 20px; font-weight: 600; line-height: 24px; margin: 16px 0 8px; }
.art-body h2 { margin-top: 24px; }
.doc-body h3, .art-body h3 { font-size: 18px; font-weight: 600; line-height: 22px; margin: 16px 0 8px; }
.doc-body > :first-child, .art-body > :first-child { margin-top: 0; }
.doc-body p, .art-body p { margin: 0 0 8px; }
.art-body p + p { margin-top: 16px; }
.doc-body a, .art-body a { color: var(--blue); }
.doc-body a:hover, .art-body a:hover { text-decoration: underline; }
.doc-body b, .doc-body strong, .art-body b, .art-body strong { font-weight: 600; }

/* Пункт списка — строка 28px: точка 4px на отступе 8, текст с 20; у нумерованного — синий номер, текст с 32 */
.doc-body ul, .art-body ul { list-style: none; padding: 0; margin: 0 0 8px; }
.doc-body ul li, .art-body ul li { position: relative; padding: 4px 8px 4px 20px; margin-bottom: 8px; }
.doc-body ul li::before, .art-body ul li::before { content: ''; position: absolute; left: 8px; top: 12px; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.doc-body ol, .art-body ol { padding-left: 32px; margin: 0 0 8px; }
.doc-body ol li, .art-body ol li { padding: 4px 8px 4px 0; margin-bottom: 8px; }
.doc-body ol li::marker, .art-body ol li::marker { color: var(--blue); }
.doc-body li > ul, .doc-body li > ol, .art-body li > ul, .art-body li > ol { margin: 8px 0 0; }
.doc-body li:last-child, .art-body li:last-child { margin-bottom: 0; }

.doc-body table { margin: 16px 0; }
.doc-body th, .doc-body td { padding: 10px 12px; border-bottom: 1px solid var(--ink-10); text-align: left; }

/* Плашка-примечание внутри текста: белая, с красным знаком слева */
.doc-body .note, .doc-body blockquote,
.art-body .note, .art-body blockquote {
    position: relative;
    margin: 8px 0; padding: 4px 8px 4px 32px;
    background: var(--white); border-radius: var(--r-4);
}

.doc-body .note::before, .doc-body blockquote::before,
.art-body .note::before, .art-body blockquote::before {
    content: ''; position: absolute; left: 8px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
    background: var(--red);
    -webkit-mask: url('../icons/danger.svg') center / contain no-repeat;
    mask: url('../icons/danger.svg') center / contain no-repeat;
}

.doc-body blockquote p:last-child, .art-body blockquote p:last-child { margin-bottom: 0; }

/* ── Форма вопроса: «О компании», текстовая страница, поддержка ── */

.doc-form, .about-form { background: var(--white); border-radius: var(--r-24); padding: 24px; }
.doc-form { margin-top: 40px; }
.doc-form h2, .about-form h2, .sup-faq h2, .sup-feedback h2 { font-size: 26px; font-weight: 600; line-height: 32px; }
.cnt-form-sub { font-size: 16px; line-height: 20px; margin: 12px 0 20px; }
.doc-form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 8px; align-items: center; }
.doc-form-btn, .sup-send { height: 53px; padding: 0 24px; border-radius: var(--r-8); font-size: 18px; font-weight: 500; }

/* Поле с иконкой — как в макете */
.ffield {
    display: flex; align-items: center; gap: 12px;
    height: 56px; padding: 0 16px;
    background: var(--white); border: 1px solid var(--blue); border-radius: var(--r-12);
}

.ffield .icon { color: var(--blue); flex: none; }
.ffield input, .ffield textarea, .ffield select { flex: 1 0 0; min-width: 0; border: 0; background: 0; outline: 0; font-size: 14px; appearance: none; color: var(--ink); }
.ffield input::placeholder, .ffield textarea::placeholder { color: var(--ink); opacity: .3; }
.ffield-area { height: auto; align-items: flex-start; padding: 16px; }
.ffield-area textarea { resize: vertical; min-height: 90px; }
.ffield:has(select) { position: relative; }
.ffield select { cursor: pointer; padding-right: 20px; }

/* В формах контентных страниц поле по макету: скругление 8, пунктир между иконкой и текстом, текст 16px */
.cnt-form .ffield { gap: 16px; border-radius: var(--r-8); }
.cnt-form .ffield input, .cnt-form .ffield textarea { padding: 0 0 0 16px; border-left: 1px dashed var(--blue); font-size: 16px; line-height: 20px; }
.cnt-form .ffield input { height: 20px; }
.cnt-form .ffield-area textarea { min-height: 76px; }

/* ── О компании ──────────────────────────────────────────── */

.about-head { margin-bottom: 16px; }
.about-block { margin-bottom: 24px; }
.about-block .pd-label { display: block; line-height: 17px; }
.about-text { font-size: 16px; line-height: 20px; margin-top: 4px; }
.about-text p { margin: 0; }
.about-text-html p + p { margin-top: 8px; }
.about-contacts { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 4px; padding: 8px 0; }
.about-contact a { display: block; font-size: 18px; font-weight: 500; line-height: 18px; }
.about-contact a:hover { color: var(--blue); }
.about-contact span { display: block; margin-top: 4px; font-size: 14px; line-height: 17px; opacity: .4; }

.about-block-contacts { margin-bottom: 4px; }
.about-form { margin: 0 0 24px; }

.about-req { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 4px; padding: 8px 0; }
.about-req-item { min-width: 0; max-width: 100%; }
.about-req-value { display: inline-flex; align-items: center; gap: 4px; padding: 0; background: 0; border: 0; font-size: 18px; font-weight: 500; line-height: 18px; color: var(--ink); max-width: 100%; text-align: left; }
.about-req-value span { overflow: hidden; text-overflow: ellipsis; }
.about-req-value .icon { flex: none; }
.about-req-value:hover, .about-req-value.is-copied { color: var(--blue); }
.about-req-label { display: block; margin-top: 4px; font-size: 14px; line-height: 17px; text-transform: uppercase; opacity: .4; }

/* ── Поддержка ───────────────────────────────────────────── */

.sup-head { margin-bottom: 24px; }
.sup { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.sup > * { min-width: 0; }
.sup-faq, .sup-feedback { background: var(--white); border-radius: var(--r-24); padding: 24px; }
.sup-sub { font-size: 16px; line-height: 20px; margin: 16px 0; }

.sup-search { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 5px 0 16px; background: var(--bg-grey); border-radius: var(--r-8); margin-bottom: 16px; }
.sup-search input { flex: 1 1 0; width: 100%; min-width: 0; border: 0; background: 0; outline: 0; font-size: 16px; }
.sup-search input::placeholder { color: var(--ink); opacity: .3; }
.sup-search-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: var(--white); border-radius: var(--r-4); font-size: 16px; }

.sup-group { border: 1px solid var(--ink-10); border-radius: var(--r-4); margin-bottom: 16px; overflow: hidden; }
.sup-group:last-child { margin-bottom: 0; }
.sup-group-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
    padding: 8px 16px; background: var(--white); border: 0; text-align: left;
    font-size: 18px; font-weight: 500; line-height: 21px; color: var(--ink);
}
.sup-group.is-open .sup-group-head { color: var(--blue); }
.sup-group.is-open .sup-group-head .icon { transform: rotate(180deg); }
.sup-group-head .icon { transition: transform .15s; color: var(--ink); flex: none; }
.sup-list { display: none; }
.sup-group.is-open .sup-list { display: block; }

.sup-item { border-top: 1px solid var(--ink-10); }
.sup-q {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
    padding: 8px 16px; background: 0; border: 0; text-align: left; font-size: 16px; line-height: 20px; color: var(--ink);
}
.sup-q:hover, .sup-item.is-open .sup-q { color: var(--blue); }
.sup-item.is-open .sup-q { padding-bottom: 4px; }
.sup-sign { position: relative; width: 16px; height: 16px; flex: none; color: var(--ink); }
.sup-sign::before, .sup-sign::after { content: ''; position: absolute; background: currentColor; border-radius: 1px; }
.sup-sign::before { left: 4px; right: 4px; top: 7px; height: 1.5px; }
.sup-sign::after { top: 4px; bottom: 4px; left: 7px; width: 1.5px; }
.sup-item.is-open .sup-sign::after { display: none; }
.sup-a { display: none; padding: 0 48px 8px 16px; font-size: 16px; line-height: 19px; }
.sup-item.is-open .sup-a { display: block; }

.sup-form { display: flex; flex-direction: column; gap: 8px; }
.sup-form .ffield { height: 54px; }
.sup-form .ffield-area { height: auto; }

/* ── Ошибки ──────────────────────────────────────────────── */

/* Макет: рисунок 496px высотой в 100px под шапкой, текст и кнопка лежат поверх рисунка в его «пустой» середине */
.errpage { display: flex; justify-content: center; padding: 100px 20px 40px; }
.errbox { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 100%; }
.errpic { display: block; width: auto; max-width: 100%; height: 496px; }
.errmsg { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.errbox.has-pic .errmsg { position: absolute; left: 50%; top: var(--err-top, 41.3%); width: var(--err-width, 387px); max-width: 100%; transform: translateX(-50%); }
.errcode { font-size: 120px; font-weight: 800; line-height: 1; color: var(--blue); margin-bottom: 16px; }
.errtext { margin: 0; font-size: 20px; font-weight: 500; line-height: 24px; white-space: pre-line; }
.errbtn { height: 48px; padding: 0 16px; border-radius: var(--r-8); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }

/* ── Адаптив ─────────────────────────────────────────────── */

@media (max-width: 1199px) {
    .posts-list { grid-template-columns: repeat(3, 1fr); }
    .art-head h1, .doc h1, .cnt-h1 { font-size: 30px; line-height: 1.2; }
    .sup { grid-template-columns: 1fr 320px; }
}

@media (max-width: 991px) {
    .posts-list { grid-template-columns: repeat(2, 1fr); }
    .sup { grid-template-columns: 1fr; }
    .doc-form-row { grid-template-columns: 1fr 1fr; }
    .doc-form-btn { grid-column: 1 / -1; }
    .art-cover { height: 320px; }
    /* Рисунок уже не вмещает текст — текст и кнопка уходят под него, как в макете телефона */
    .errpage { padding-top: 40px; }
    .errpic { height: auto; }
    .errbox.has-pic .errmsg { position: static; transform: none; width: auto; max-width: 320px; margin-top: 24px; }
}

@media (max-width: 767px) {
    .cnt-crumbs { margin-bottom: 16px; }
    .posts-list { grid-template-columns: 1fr; }
    .post-wide { height: 300px; }
    .post-wide .post-body b { font-size: 20px; }
    .art-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .art-head h1, .doc h1, .cnt-h1 { font-size: 24px; line-height: 1.2; }
    .art-date { padding-bottom: 0; }
    .art-cover { height: 220px; border-radius: var(--r-16); }
    .doc-form-row { grid-template-columns: 1fr; }
    .doc-form, .about-form, .sup-faq, .sup-feedback { padding: 20px 16px; }
    .doc-form h2, .about-form h2, .sup-faq h2, .sup-feedback h2 { font-size: 22px; line-height: 28px; }
    .sup-search-btn { padding: 0 12px; }
    .sup-a { padding-right: 16px; }
    .errcode { font-size: 72px; }
    .errtext { font-size: 18px; line-height: 21px; }
}

/* ── Юридическим лицам ───────────────────────────────────── */

.biz-page { display: grid; grid-template-columns: 1fr 580px; gap: 40px; align-items: start; margin-top: 24px; }
.biz-page > * { min-width: 0; }
.biz-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 16px; }
.biz-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 24px; }
.biz-list .icon { color: var(--blue); flex: none; }
.biz-price { margin-top: 32px; height: 56px; padding: 0 24px; border-radius: var(--r-12); }

.biz-form-card { background: var(--white); border-radius: var(--r-24); padding: 28px; }
.biz-form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.biz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.biz-row > * { min-width: 0; }
.biz-submit { height: 56px; border-radius: var(--r-12); margin-top: 4px; }

@media (max-width: 991px) {
    .biz-page { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 479px) {
    .biz-row { grid-template-columns: 1fr; }
    .biz-form-card { padding: 20px 16px; }
}
