/* ============================================================
   nabiullin.com — стили НОВЫХ страниц-услуг (шаблон 30)
   Извлечено из макетов (nabiullin-pages-imgs.tar.gz / pages/*.html)

   Здесь ТОЛЬКО стили контентных блоков, которых нет в теме
   (шапка, меню, hero, кнопки, title, подвал — берутся из
   main.min.css/custom.css темы, как на главной странице).
   ============================================================ */

/* Переменные дизайн-системы (дублируются из темы, безопасно) */
:root {
    --orange:      #fb5531;
    --orange-hov:  #fc7f56;
    --blue:        #0687b8;
    --blue-hov:    #00a8e8;
    --ink:         #222222;
    --muted:       #9a9e9f;
    --expert:      #5c848c;
    --border:      #dddfe0;
    --shadow:      rgba(221,223,224,.7);
    --bg-soft:     #f6f7f8;
    --bg-expert:   #f2f6f7;
    --green:       #49953f;
}

html { scroll-behavior: smooth; }

/* Текст услуги */
.service-text h3 { font-size: 1.4rem; margin: 1.6rem 0 .7rem; color: var(--blue); line-height: 1.2; }
.service-text p { margin-bottom: 1rem; color: var(--ink); }
.service-text ul, .service-text ol { margin: 0 0 1.25rem 1.4rem; display: grid; gap: .5rem; }
.service-text li { padding-left: .2rem; }
.service-text li::marker { color: var(--orange); font-weight: 700; }
.service-text strong { color: var(--ink); }

/* Карточки */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--border); background: #fff; padding: 22px; height: 100%; transition: transform .15s ease-in-out, box-shadow .15s ease-in-out; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 .3125rem .625rem 0 var(--shadow); }
.service-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; margin-bottom: 14px; }
.service-icon svg { width: 24px; height: 24px; fill: var(--blue); }
.service-title { color: var(--blue); font-size: 1.15rem; line-height: 1.2; font-weight: 700; margin-bottom: .625rem; }
.service-desc { font-size: .95rem; color: var(--ink); }

/* «Главное» — нумерованный список */
.keypoints-num { list-style: none; display: grid; gap: 16px; counter-reset: kp; }
.keypoints-num li { display: flex; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px 24px; }
.keypoints-num .num { counter-increment: kp; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 700; display: grid; place-items: center; }
.keypoints-num b { color: var(--blue); }
.keypoints-num p { font-size: .95rem; color: var(--ink); margin-top: 4px; }

/* «Главное» — чипы */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { flex: 1 1 300px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 14px 22px; display: flex; gap: 10px; align-items: baseline; }
.chip b { color: var(--blue); white-space: nowrap; }
.chip span { font-size: .92rem; color: var(--ink); }

/* «Что входит» — чек-лист */
.checklist { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; }
.checklist .check { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.checklist b { color: var(--blue); }
.checklist p { font-size: .92rem; color: var(--ink); margin-top: 4px; }

/* «Что входит» — таймлайн */
.timeline { position: relative; display: grid; gap: 18px; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.t-step { position: relative; }
.t-dot { position: absolute; left: -24px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(251,85,49,.15); }
.t-step b { color: var(--blue); }
.t-step p { font-size: .95rem; color: var(--ink); margin-top: 4px; }

/* Изображение статьи */
.article-figure { margin: 2rem 0; }
.article-figure img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); }
.article-figure figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.article-figure--top { margin-top: 0; }
.article-figure--side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.article-figure--side figcaption { grid-column: 1 / -1; }

/* Картинки в макетах страниц 1-80 */
.article-image { margin: 2rem 0; }
.article-image img { display: block; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); }
.article-image figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.article-image-middle { text-align: center; }

/* Тарифы */
.tariff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tariff-item { border: 5px solid #f6f7f8; background: #fff; display: flex; flex-direction: column; margin-bottom: 1.875rem; transition: transform .15s ease-in-out, box-shadow .15s ease-in-out, border-color .15s ease-in-out; }
.tariff-item:hover { transform: translateY(-3px); box-shadow: 0 .3125rem .625rem 0 var(--shadow); }
.tariff-item.popular { border-color: var(--orange); }
.tariff-header { padding: 2.1875rem 2.1875rem 0; }
.tariff-label { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.tariff-title { font-size: 1.7rem; font-weight: 700; color: var(--blue); margin: .3rem 0 .8rem; }
.tariff-price-count { font-size: 1.625rem; padding: 0 2.1875rem; }
.tariff-price-count b { color: var(--orange); }
.tariff-desc { padding: 1rem 2.1875rem; font-size: .95rem; color: var(--ink); flex: 1; }
.tariff-footer { padding: 0 2.1875rem 2.1875rem; }

/* Таблица */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; margin: 1.5rem 0; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
thead th { background: var(--blue); color: #fff; text-align: left; font-weight: 600; padding: 14px 18px; }
tbody td { padding: 14px 18px; border-top: 1px solid var(--border); vertical-align: top; color: var(--ink); }
tbody tr:nth-child(even) { background: var(--bg-soft); }
.price { font-weight: 700; color: var(--orange); white-space: nowrap; }

/* Эксперт */
.block-expert { background: var(--bg-expert); border-radius: 8px; padding: 26px; margin: 1.8rem 0; }
.block-expert-top { display: flex; align-items: flex-start; gap: 24px; }
.block-expert-avatar { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--blue); background: linear-gradient(135deg, var(--blue), var(--blue-hov)); color: #fff; display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; }
.block-expert-name { color: var(--expert); margin-bottom: 5px; font-weight: 700; }
.block-expert-description { color: var(--muted); font-size: .9rem; }
.block-expert-body { margin-top: 14px; font-size: 1.0625rem; }
.block-expert-body blockquote { font-style: italic; }

/* Ошибки */
.mistakes { display: grid; gap: 14px; margin-top: 1.5rem; }
.mistake { display: flex; gap: 16px; background: #fff; border: 1px solid var(--border); padding: 18px 20px; border-radius: 8px; }
.mistake-num { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 700; display: grid; place-items: center; }
.mistake b { color: var(--blue); }
.mistake p { font-size: .95rem; color: var(--ink); margin-top: 4px; }

/* Итоги */
.summary-list { list-style: none; display: grid; gap: 12px; margin-top: 1.5rem; }
.summary-list li { display: flex; gap: 12px; align-items: flex-start; }
.summary-list li::before { content: '✓'; color: var(--green); font-weight: 700; }

/* CTA */
.assistance { background-color: var(--bg-soft); border-radius: 8px; padding: 3.125rem 2.5rem 2.5rem; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.assistance-title { font-size: 1.5rem; font-weight: 700; color: var(--blue); }
.assistance-desc { color: var(--ink); font-size: 1.05rem; max-width: 760px; }
.assistance ol { list-style: none; display: grid; gap: 10px; margin-top: 8px; }
.assistance ol li { display: flex; gap: 12px; align-items: center; }
.assistance ol .n { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 700; display: grid; place-items: center; }

/* Оглавление (TOC) */
.toc { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 18px 22px; margin: 2rem auto 0; }
.toc-title { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); margin-bottom: 10px; }
.toc-list { display: flex; flex-wrap: wrap; gap: 8px; }
.toc-list a { font-size: .88rem; font-weight: 500; color: var(--ink); padding: 6px 13px; border: 1px solid var(--border); border-radius: 1.5rem; transition: all .15s ease-in-out; }
.toc-list a:hover { color: #fff; background: var(--blue); border-color: var(--blue); }

/* Автор */
.author-bio { padding: 2.5rem 0; }
.author-card { display: flex; gap: 1.2rem; align-items: flex-start; background: #fff; border: 1px solid rgba(34,34,34,.08); border-radius: 14px; padding: 1.6rem; box-shadow: 0 6px 24px rgba(0,0,0,.05); }
.author-avatar { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid #0687b8; background: linear-gradient(135deg, var(--orange), var(--blue)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; }
.author-info { flex: 1; }
.author-name { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.author-role { color: var(--blue); font-size: .9rem; margin: .1rem 0 .5rem; }
.author-desc { margin: 0; color: #555; font-size: .95rem; line-height: 1.55; }

/* Reveal (анимация появления) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1); }
.reveal.in-view { opacity: 1; transform: none; }

/* Адаптив контентных блоков */
@media (max-width: 992px) {
    .service-grid, .tariff-grid { grid-template-columns: repeat(2, 1fr); }
    .checklist { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .service-grid, .tariff-grid { grid-template-columns: 1fr; }
    .article-figure--side, .article-image--side { grid-template-columns: 1fr; }
}

/* Цитаты специалистов (expert-citation) — в стиле author-info с фото */
.expert-citation { display: flex; gap: 1.1rem; align-items: flex-start; background: #fff; border: 1px solid rgba(34,34,34,.08); border-radius: 14px; padding: 1.5rem 1.6rem; box-shadow: 0 6px 24px rgba(0,0,0,.05); margin: 1.8rem 0; }
.expert-citation .citation-photo { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid #0687b8; }
.expert-citation .citation-avatar { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg, #0687b8, #00a8e8); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.4rem; }
.expert-citation .citation-body { flex: 1; min-width: 0; }
.expert-citation .citation-author { font-weight: 700; color: #222; font-size: 1.05rem; }
.expert-citation .citation-role { color: #0687b8; font-size: .9rem; margin: .1rem 0 .6rem; }
.expert-citation .citation-text { font-size: 1.05rem; color: #333; line-height: 1.6; font-style: italic; }
@media (max-width: 640px) { .expert-citation { flex-direction: column; } }
