/* Информационные страницы (Контакты, Реклама и др.): белая карточка как у записей
   + компоненты .ip-* для оформления содержимого. reboot-child / inc/info-pages.php */

/* ---------- карточка страницы ---------- */
body.page #primary article.article-post {
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05) !important;
    padding: 22px 28px 28px !important;
    margin-bottom: 12px !important;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}
body.page #primary article.article-post .breadcrumb {
    padding: 0 !important;
    margin: 0 0 12px !important;
    font-size: 13px;
    color: #8a8f98;
}
body.page #primary article.article-post .breadcrumb a { color: #8a8f98 !important; text-decoration: none !important; }
body.page #primary article.article-post .breadcrumb a:hover { color: #2d81e0 !important; }
body.page #primary article.article-post > .entry-title {
    margin: 0 0 6px !important;
    padding: 0 !important;
    font: 700 30px/1.25 'Inter', sans-serif !important;
    letter-spacing: -.02em;
    color: #111 !important;
}
body.page #primary article.article-post .entry-content {
    padding: 10px 0 0 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}
body.page #primary .entry-social {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    padding: 18px 28px !important;
    margin: 0 0 12px !important;
}

/* ---------- общие элементы ---------- */
.ip { --ip-blue: #2d81e0; --ip-ink: #111; --ip-muted: #6b7280; --ip-line: #eceef2; }
.ip > *:first-child { margin-top: 0 !important; }
.entry-content .ip h2 {
    margin: 34px 0 14px !important;
    font: 700 22px/1.3 'Inter', sans-serif !important;
    letter-spacing: -.01em;
    color: var(--ip-ink) !important;
}
.entry-content .ip h3 {
    margin: 0 0 6px !important;
    font: 700 17px/1.35 'Inter', sans-serif !important;
    color: var(--ip-ink) !important;
}
.entry-content .ip p { margin: 0 0 10px; }
.entry-content .ip p:last-child { margin-bottom: 0; }
.entry-content .ip a { color: var(--ip-blue); }

.ip-lead {
    font-size: 18px !important;
    line-height: 1.6 !important;
    color: #374151 !important;
    margin: 0 0 22px !important;
}

.ip-grid { display: grid; gap: 14px; margin: 0 0 8px; }
.ip-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ip-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* кнопки */
.entry-content a.ip-btn,
.ip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font: 600 15px/1.2 'Inter', sans-serif;
    color: #fff !important;
    text-decoration: none !important;
    background: var(--ip-blue, #2d81e0);
    box-shadow: 0 6px 16px rgba(45, 129, 224, .25);
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}
.entry-content a.ip-btn:hover { background: #1f6fcb; box-shadow: 0 8px 22px rgba(45, 129, 224, .35); transform: translateY(-1px); }
.entry-content a.ip-btn--light { color: #1f6fcb !important; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.entry-content a.ip-btn--light:hover { background: #f3f8ff; }
.entry-content a.ip-btn--ghost { color: var(--ip-blue) !important; background: #eef5fe; box-shadow: none; }
.entry-content a.ip-btn--ghost:hover { background: #e1edfc; box-shadow: none; }

/* ---------- контактные карточки ---------- */
.entry-content a.ip-card,
.ip-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 18px 16px;
    border: 1px solid var(--ip-line);
    border-radius: 14px;
    color: var(--ip-ink) !important;
    text-decoration: none !important;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.entry-content a.ip-card:hover {
    border-color: color-mix(in srgb, var(--c, #2d81e0) 45%, #fff);
    box-shadow: 0 10px 26px rgba(17, 24, 39, .08);
    transform: translateY(-2px);
}
.ip-card__icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    border-radius: 12px;
    font-size: 22px;
    background: color-mix(in srgb, var(--c, #2d81e0) 12%, #fff);
}
.ip-card__label { font-size: 13px; font-weight: 600; color: var(--ip-muted); text-transform: uppercase; letter-spacing: .04em; }
.ip-card__value { font-size: 17px; font-weight: 700; color: var(--c, #2d81e0); word-break: break-word; }
.ip-card__hint { font-size: 14px; line-height: 1.45; color: var(--ip-muted); }
.ip-card--mail { --c: #e8590c; }
.ip-card--tg { --c: #229ed9; }
.ip-card--ch { --c: #7c3aed; }

/* редактор */
.ip-person {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0 0;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f5f9ff, #eef4fd);
    border: 1px solid #e3ecf9;
}
.ip-person__avatar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font: 700 19px/1 'Inter', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #3b8ff0, #1f6fcb);
    box-shadow: 0 6px 16px rgba(45, 129, 224, .3);
    overflow: hidden;
    text-decoration: none;
}
.ip-person__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 50%;
}
.ip-person__info { flex: 1 1 auto; min-width: 0; }
.ip-person__name { font-size: 17px; font-weight: 700; color: var(--ip-ink); line-height: 1.3; }
.ip-person__name a { color: inherit; text-decoration: none; }
.ip-person__name a:hover { color: var(--ip-primary, #2d81e0); }
.ip-person__role { font-size: 14px; color: var(--ip-muted); }

/* список с иконками */
.entry-content ul.ip-list { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 10px; }
.entry-content ul.ip-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0 !important;
    padding: 14px 16px !important;
    border-radius: 12px;
    background: #f7f8fa;
}
.entry-content ul.ip-list li::before { display: none !important; }
.ip-list__icon { flex: 0 0 auto; font-size: 22px; line-height: 1.3; }
.ip-list__text { font-size: 15px; line-height: 1.55; color: #374151; }
.ip-list__text b { display: block; color: var(--ip-ink); font-size: 16px; margin-bottom: 2px; }

/* ---------- реклама: шапка ---------- */
.ip-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 8px;
    padding: 30px 30px 32px;
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 255, 255, .22) 0, rgba(255, 255, 255, 0) 38%),
        radial-gradient(circle at 8% 110%, rgba(255, 143, 102, .45) 0, rgba(255, 143, 102, 0) 45%),
        linear-gradient(135deg, #1f6fcb 0%, #3b8ff0 55%, #5aa3f5 100%);
    box-shadow: 0 14px 34px rgba(31, 111, 203, .28);
}
.ip-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 34px solid rgba(255, 255, 255, .09);
    pointer-events: none;
}
.ip-hero__badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(4px);
}
.entry-content .ip .ip-hero__title {
    margin: 0 0 12px !important;
    max-width: 620px;
    font: 800 28px/1.22 'Inter', sans-serif !important;
    letter-spacing: -.02em;
    color: #fff !important;
}
.entry-content .ip .ip-hero p {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 0 20px !important;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .92) !important;
}
.ip-hero__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.entry-content .ip-hero a.ip-btn--outline {
    color: #fff !important;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55);
}
.entry-content .ip-hero a.ip-btn--outline:hover { background: rgba(255, 255, 255, .24); }

/* форматы */
.ip-feature {
    position: relative;
    padding: 20px 20px 18px;
    border: 1px solid var(--ip-line);
    border-radius: 16px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ip-feature:hover {
    border-color: color-mix(in srgb, var(--c, #2d81e0) 40%, #fff);
    box-shadow: 0 12px 28px rgba(17, 24, 39, .07);
    transform: translateY(-2px);
}
.ip-feature__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ip-feature__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 23px;
    background: color-mix(in srgb, var(--c, #2d81e0) 13%, #fff);
}
.entry-content .ip .ip-feature h3 { margin: 0 !important; }
.ip-feature p { font-size: 15px; line-height: 1.6; color: #4b5563; }
.ip-feature--wide { grid-column: 1 / -1; }
.ip-feature--events { --c: #f59e0b; }
.ip-feature--places { --c: #ef4444; }
.ip-feature--home { --c: #2d81e0; }
.ip-feature--cat { --c: #8b5cf6; }
.ip-feature--banner { --c: #10b981; }
.ip-tag {
    display: inline-block;
    margin: 4px 6px 0 0;
    padding: 4px 10px;
    border-radius: 8px;
    font: 600 12.5px/1.3 'Inter', sans-serif;
    color: #047857;
    background: #ecfdf5;
}

/* шаги */
.ip-steps { counter-reset: ipstep; }
.ip-step {
    position: relative;
    padding: 18px 18px 16px;
    border-radius: 14px;
    background: #f7f8fa;
}
.ip-step::before {
    counter-increment: ipstep;
    content: counter(ipstep);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    border-radius: 50%;
    font: 700 15px/1 'Inter', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #3b8ff0, #1f6fcb);
}
.ip-step b { display: block; font-size: 16px; color: var(--ip-ink); margin-bottom: 4px; }
.ip-step span { font-size: 14.5px; line-height: 1.5; color: #4b5563; }

/* призыв */
.ip-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0 0;
    padding: 24px 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed, #fff1e6);
    border: 1px solid #fde3c8;
}
.ip-cta__emoji { flex: 0 0 auto; font-size: 40px; line-height: 1; }
.ip-cta__text { flex: 1 1 auto; min-width: 0; }
.entry-content .ip .ip-cta h3 { font-size: 19px !important; margin-bottom: 4px !important; }
.ip-cta p { font-size: 15px; color: #6b4e2e; }
.ip-cta__actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
    .ip-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ip-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
    body.page #primary article.article-post,
    body.page #primary .entry-social {
        border-radius: 0 !important;
        box-shadow: none !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    body.page #primary article.article-post { padding-top: 16px !important; padding-bottom: 22px !important; margin-bottom: 10px !important; }
    body.page #primary article.article-post > .entry-title { font-size: 24px !important; }
    .ip-lead { font-size: 16.5px !important; }
}
@media (max-width: 599px) {
    .ip-grid--2,
    .ip-grid--3 { grid-template-columns: minmax(0, 1fr); }
    .ip-hero { padding: 22px 20px 24px; border-radius: 16px; }
    .entry-content .ip .ip-hero__title { font-size: 22px !important; }
    .ip-hero__actions .ip-btn { flex: 1 1 auto; }
    .ip-person { flex-wrap: wrap; }
    .ip-person .ip-btn { width: 100%; }
    .ip-cta { padding: 20px; }
    .ip-cta__actions { width: 100%; }
    .ip-cta__actions .ip-btn { flex: 1 1 auto; }
    .entry-content .ip h2 { font-size: 20px !important; margin-top: 28px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .ip-card, .ip-feature, .ip-btn { transition: none !important; }
}

/* ---------- «Для бизнеса» (/dlya-biznesa/, inc/biz.php) ---------- */
.ip-hero--biz {
    display: flex;
    align-items: center;
    gap: 28px;
    background:
        radial-gradient(circle at 92% 10%, rgba(255, 255, 255, .22) 0, rgba(255, 255, 255, 0) 38%),
        radial-gradient(circle at 6% 112%, rgba(255, 170, 120, .5) 0, rgba(255, 170, 120, 0) 46%),
        linear-gradient(135deg, #4c2fc9 0%, #5b3fd4 40%, #3b8ff0 100%);
    box-shadow: 0 14px 34px rgba(76, 47, 201, .28);
}
.ip-hero__main { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; }
.ip-mock {
    position: relative;
    z-index: 1;
    flex: 0 0 230px;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    color: #111;
    box-shadow: 0 18px 40px rgba(17, 24, 39, .28);
    transform: rotate(2.5deg);
}
.ip-mock__img {
    display: grid;
    place-items: center;
    height: 96px;
    font-size: 42px;
    background: linear-gradient(135deg, #ffe4d6, #ffd0e0 60%, #e8dcff);
}
.ip-mock__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.ip-mock__badge { align-self: flex-start; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #b91c1c; background: #fee2e2; }
.ip-mock__title { font-size: 16px; line-height: 1.25; }
.ip-mock__row { font-size: 12.5px; color: #4b5563; }
.ip-mock__btn { margin-top: 4px; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 600; text-align: center; color: #fff; background: #5b3fd4; }

/* цифры */
.ip-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 6px; }
.ip-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 16px 14px;
    border-radius: 14px;
    background: #f7f8fa;
}
.ip-stat__icon { font-size: 20px; line-height: 1; margin-bottom: 6px; }
.ip-stat__num { font: 800 20px/1.2 'Inter', sans-serif; letter-spacing: -.01em; color: #111; }
.ip-stat__label { font-size: 13.5px; line-height: 1.4; color: #6b7280; }

.ip-feature--teal { --c: #0ea5e9; }
.ip-split .ip-list { align-content: start; }

/* рубрики-чипсы */
.ip-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-content a.ip-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--ip-line);
    font-size: 14.5px;
    font-weight: 500;
    color: #1f2937 !important;
    text-decoration: none !important;
    background: #fff;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.entry-content a.ip-chip:hover { border-color: #c9bdf5; background: #f6f3ff; color: #4528c0 !important; }

/* тарифы */
.ip-tariffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.ip-tariff {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 20px 20px;
    border: 1px solid var(--ip-line);
    border-radius: 16px;
    background: #fff;
}
.ip-tariff.is-best {
    border: 2px solid #5b3fd4;
    background: linear-gradient(180deg, #f8f6ff, #fff 60%);
    box-shadow: 0 12px 28px rgba(91, 63, 212, .14);
}
.ip-tariff__tag {
    position: absolute;
    top: -11px;
    left: 18px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #5b3fd4;
}
.ip-tariff__label { font-size: 15px; font-weight: 600; color: #6b7280; }
.ip-tariff__price { font: 800 30px/1.15 'Inter', sans-serif; letter-spacing: -.02em; color: #111; }
.ip-tariff__per { font-size: 13.5px; color: #047857; margin-bottom: 12px; }
.ip-tariff .ip-btn { margin-top: auto; }
.entry-content .ip-tariff.is-best a.ip-btn { background: #5b3fd4; box-shadow: 0 6px 16px rgba(91, 63, 212, .3); }
.entry-content .ip-tariff.is-best a.ip-btn:hover { background: #4528c0; }
.entry-content .ip p.ip-note { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--ip-muted); }

.ip-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* владельцам */
.ip-owner {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0 0;
    padding: 24px 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f6f3ff, #eef4fe);
    border: 1px solid #e6e0fb;
    scroll-margin-top: 80px;
}
.ip-owner__icon { flex: 0 0 auto; font-size: 38px; line-height: 1; }
.ip-owner__text { flex: 1 1 auto; min-width: 0; }
.entry-content .ip .ip-owner h3 { font-size: 19px !important; margin-bottom: 4px !important; }
.ip-owner p { font-size: 15px; color: #4b5563; }
.ip-owner__actions { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.entry-content .ip-owner a.ip-btn:not(.ip-btn--ghost) { background: #5b3fd4; box-shadow: 0 6px 16px rgba(91, 63, 212, .3); }
.entry-content .ip-owner a.ip-btn:not(.ip-btn--ghost):hover { background: #4528c0; }

/* вопросы и ответы */
.ip-faq { display: grid; gap: 10px; }
.ip-faq__item {
    border: 1px solid var(--ip-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ip-faq__item[open] { border-color: #d9d1fa; box-shadow: 0 8px 22px rgba(17, 24, 39, .06); }
.ip-faq__item summary {
    position: relative;
    padding: 16px 52px 16px 18px;
    list-style: none;
    cursor: pointer;
    font: 600 16px/1.4 'Inter', sans-serif;
    color: #111;
}
.ip-faq__item summary::-webkit-details-marker { display: none; }
.ip-faq__item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 16px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-top: -13px;
    border-radius: 50%;
    font: 500 18px/1 'Inter', sans-serif;
    color: #5b3fd4;
    background: #f1edff;
    transition: transform .2s ease;
}
.ip-faq__item[open] summary::after { transform: rotate(45deg); }
.ip-faq__a { padding: 0 18px 16px; font-size: 15px; line-height: 1.65; color: #374151; }

@media (max-width: 900px) {
    .ip-mock { display: none; }
    .ip-stats, .ip-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ip-owner { flex-direction: column; align-items: flex-start; }
    .ip-owner__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 599px) {
    .ip-grid--4 { grid-template-columns: minmax(0, 1fr); }
    .ip-stat { padding: 14px; }
    .ip-stat__num { font-size: 18px; }
    .ip-owner { padding: 20px; }
    .ip-owner__actions { width: 100%; }
    .ip-owner__actions .ip-btn { flex: 1 1 auto; }
    .ip-faq__item summary { font-size: 15px; padding: 14px 48px 14px 16px; }
    .ip-faq__a { padding: 0 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .ip-mock { transform: none; }
}
