/* ==========================================================================
   CROPAS — отзывы, блог, пост, FAQ, контакты
   ========================================================================== */

/* --- Общий hero внутренних страниц ------------------------------------- */
/* Единая полоса героя внутренних страниц: тот же тон, что у .portfolio-hero,
   .bl-hero, .article-hero, .ct-hero, .faq-hero, .case-detail-hero. Белый фон
   на белой же секции ниже полосой не читался — оставалась одна волосяная линия. */
.page-hero { background: var(--bg-soft-3); border-bottom: 1px solid var(--bg-page); position: relative; overflow: hidden; }
.page-hero .container { position: relative; padding-top: 38px; padding-bottom: 44px; }
/* Заголовок — над своим текстом, а не на 168px левее: текст страницы идёт
   колонкой 800px по центру, значит и крошки с H1 держим в той же колонке. */
.page-hero__in { max-width: 800px; margin: 0 auto; }

/* --- ОТЗЫВЫ ------------------------------------------------------------- */
.review-card { border: 1px solid var(--bd); border-radius: 20px; padding: 28px 26px; background: #fff; display: flex; flex-direction: column; }

.letter { border: 1px solid var(--bd); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 20px 44px -30px rgba(15, 24, 48, .5); }
.letter__frame { aspect-ratio: 3 / 4; background: var(--bg-soft-4); display: flex; align-items: center; justify-content: center; }
.letter__frame img { width: 100%; height: 100%; object-fit: cover; }
.letter__ph { text-align: center; padding: 20px; font-weight: 700; font-size: 13px; color: var(--c-muted); }
.letter__company { font-weight: 700; font-size: 14.5px; color: var(--c-black); }

.cert { aspect-ratio: 3 / 4; border: 1px solid var(--bd); border-radius: 12px; background: var(--bg-soft-3); display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px; font-weight: 600; font-size: 12px; color: var(--c-muted); }
.cert img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

/* --- FAQ страница ------------------------------------------------------- */
.faq-search { max-width: 560px; margin: 24px 0 0; position: relative; }
.faq-search .field { padding-left: 46px; }
.faq-search .field { padding-left: 16px; }
.faq-search__empty { margin: 16px 0 0; font-weight: 500; font-size: 15px; color: var(--c-muted); }
.faq-nav a.is-active { background: var(--accent-tint); color: var(--accent-hover); }
.faq-group { margin-bottom: 40px; }
.faq-group__title { font-weight: 800; font-size: 22px; color: var(--c-black); margin-bottom: 6px; }
.faq-group__kicker { font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }

/* --- КОНТАКТЫ ----------------------------------------------------------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* --- БЛОГ (лента) ------------------------------------------------------- */
.blog-hero__search .field { padding-left: 46px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.post-card { border: 1px solid var(--bd); border-radius: 20px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow var(--tr), transform var(--tr); }
.post-card:hover { box-shadow: 0 24px 48px -30px rgba(15, 24, 48, .4); transform: translateY(-3px); }
.post-card__cat .mono { font-family: var(--font-mono); }
.post-card__dot { color: var(--c-muted); }

/* Карточки блога на главной — по макету home.html (простая обложка-заглушка, без анонса). */

.newsletter { display: grid; grid-template-columns: 1fr .8fr; gap: 40px; align-items: center; background: var(--c-footer); color: #fff; border-radius: var(--r-card); padding: 44px; }

/* --- ПОСТ (детальная статья) ------------------------------------------- */
.article-hero { background: var(--bg-soft-3); border-bottom: 1px solid var(--bg-page); }
.article-hero .container { padding-top: 38px; padding-bottom: 44px; }
/* Рубрика — inline-flex, её margin не схлопывается с отбивкой крошек:
   зазор складывался в 50px против 26px на остальных страницах. */
.breadcrumbs + .article-hero__cat { margin-top: 0; }
.article-hero__cat { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--cat-ink, var(--accent-hover)); }
.article-hero__title { margin: 16px 0 0; max-width: 920px; }
.article-hero__meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 600; font-size: 14px; color: var(--c-muted); }
.article-cover { max-width: 900px; margin: -20px auto 0; position: relative; z-index: 3; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--bd); aspect-ratio: 16 / 8; background: var(--bg-soft-3); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-body { max-width: 756px; margin: 0 auto; }
.article-section { padding: 52px 0 70px; }
.article-body > * { margin-left: auto; margin-right: auto; }
.article-body p { font-size: 18px; line-height: 1.75; color: #232323; margin: 0 0 22px; }
.article-body h2 { font-size: clamp(24px, 2.2vw, 30px); margin: 40px 0 16px; letter-spacing: -.02em; }
.article-body h3 { font-size: 22px; margin: 32px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 4px; list-style: none; }
.article-body ul li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 17px; line-height: 1.65; color: #232323; }
.article-body ul li::before { content: ""; position: absolute; left: 6px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.article-body ol { counter-reset: li; }
.article-body ol li { position: relative; padding-left: 34px; margin-bottom: 12px; font-size: 17px; line-height: 1.65; color: #232323; counter-increment: li; }
.article-body ol li::before { content: counter(li); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 7px; background: var(--accent-tint); color: var(--accent-hover); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.article-body blockquote { margin: 24px 0; padding: 20px 24px; border-left: 4px solid var(--accent); background: var(--accent-tint); border-radius: 0 14px 14px 0; font-size: 18px; line-height: 1.6; color: var(--c-text-2); }
.article-body img { border-radius: 16px; margin: 24px auto; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* Типографика статьи: лид-абзац, медиа, таблицы, код, разделители. */
.article-body > p:first-child { font-size: 19px; line-height: 1.7; color: #1B2438; }
.article-body > h2:first-child, .article-body > h3:first-child { margin-top: 0; }
.article-body figure { margin: 28px 0; }
.article-body figure img { margin: 0; }
.article-body figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--c-muted); text-align: center; }
.article-body hr { border: 0; height: 1px; background: var(--bd-4, #EEF2F8); margin: 36px 0; }
.article-body .wp-block-table, .article-body figure.wp-block-table { overflow-x: auto; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15.5px; }
.article-body th, .article-body td { padding: 12px 14px; border-bottom: 1px solid var(--bd-4, #EEF2F8); text-align: left; vertical-align: top; }
.article-body th { background: var(--bg-soft-3, #F5F8FC); font-weight: 700; color: var(--c-black); }
.article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--bg-soft-3, #F5F8FC); border: 1px solid var(--bd-4, #EEF2F8); border-radius: 6px; padding: 2px 6px; }
.article-body pre { background: #0F1830; color: #EAECF6; border-radius: 14px; padding: 18px 20px; overflow-x: auto; margin: 24px 0; }
.article-body pre code { background: none; border: 0; padding: 0; color: inherit; }

/* --- Универсальная страница (юр-страницы и т.п.) ----------------------- */
.page-content { max-width: 800px; margin: 0 auto; }
.page-content > *:first-child { margin-top: 0; }
.page-content p { font-size: 16.5px; line-height: 1.75; color: var(--c-text); margin: 0 0 18px; }
.page-content h2 { font-size: clamp(21px, 2vw, 27px); margin: 36px 0 14px; letter-spacing: -.02em; }
.page-content h3 { font-size: 19px; margin: 26px 0 10px; }
.page-content ul, .page-content ol { margin: 0 0 18px; padding-left: 4px; list-style: none; }
.page-content ul li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 16px; line-height: 1.6; color: var(--c-text); }
.page-content ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.page-content ol { counter-reset: li; }
.page-content ol li { position: relative; padding-left: 34px; margin-bottom: 12px; font-size: 16px; line-height: 1.6; color: var(--c-text); counter-increment: li; }
.page-content ol li::before { content: counter(li); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 7px; background: var(--accent-tint); color: var(--accent-hover); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.page-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.page-content strong { font-weight: 700; color: var(--c-black); }
/* .legal-note удалён в 1.9.38: плашка «типовой шаблон» переехала в админку. */
.page-content .legal-updated { font-size: 14px; color: var(--c-muted); margin-bottom: 24px; }

/* Юр-строка в подвале */

/* --- СПАСИБО ------------------------------------------------------------ */
.thankyou { min-height: 60vh; display: flex; align-items: center; }
.thankyou__box { max-width: 620px; margin: 0 auto; text-align: center; }
.thankyou__check { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 42px; font-weight: 800; margin-bottom: 24px; box-shadow: 0 16px 34px -14px rgba(12, 113, 80, .6); }
.thankyou__title { margin: 0; }
.thankyou__text { margin: 16px auto 0; font-size: 17px; line-height: 1.65; color: var(--c-text); max-width: 48ch; }
.thankyou__actions { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* --- Gutenberg: широкие/полноширинные блоки внутри колонок контента --- */
/* Раньше здесь были margin-left:50% + transform:translateX(-50%). transform
   создаёт containing block: любой position:fixed внутри широкого блока
   (виджет, встроенная карта, лайтбокс) начинал позиционироваться от него,
   а не от окна. Тот же результат без transform — отрицательными полями. */
.article-body .alignwide, .page-content .alignwide, .case-body .alignwide {
	width: min(1120px, 94vw);
	max-width: none;
	margin-left: calc(50% - min(560px, 47vw));
	margin-right: calc(50% - min(560px, 47vw));
}
.article-body .alignfull, .page-content .alignfull, .case-body .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.article-body .alignfull img, .page-content .alignfull img { width: 100%; height: auto; }
.article-body .aligncenter, .page-content .aligncenter { margin-left: auto; margin-right: auto; }

/* ===== Отзывы: hero-статы (значения из «Настроек Cropas» → «Цифры и рейтинг») ===== */
.reviews-stats{display:flex;flex-wrap:wrap;gap:14px;margin-top:30px}
.reviews-stats__card{flex:1 1 200px;min-width:180px;background:#fff;border:1px solid #E1E8F1;border-radius:16px;padding:18px 22px}
.reviews-stats__v{display:flex;align-items:baseline;gap:8px}
.reviews-stats__v>span:first-child{font:800 30px/1 'Manrope',sans-serif;letter-spacing:-.02em;color:var(--accent)}
.reviews-stats__s{font:700 15px/1 'Manrope',sans-serif;color:#262626}
.reviews-stats__l{font:600 13.5px/1.4 'Manrope',sans-serif;color:#171717;margin-top:8px}

/* ============================================================
   Контакты — ТОЧНО по макету contacts.html (v1.7.4)
   ============================================================ */
.ct-hero { position: relative; overflow: hidden; background: var(--bg-soft-3); border-bottom: 1px solid var(--bg-page); }
.ct-hero__glow { position: absolute; top: -170px; right: -130px; width: 660px; height: 660px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--accent-rgb),.12), transparent); pointer-events: none; }
.ct-hero__in { position: relative; padding-top: 38px; padding-bottom: 74px; }
/* .ct-crumbs удалён в 1.9.38: во всех шаблонах одни крошки — cropas_breadcrumbs()
   с микроразметкой BreadcrumbList. Стили живут в theme.css (грузится везде). */
.ct-eyebrow { margin: 24px 0 0; }
.ct-title { margin: 16px 0 0; font-size: clamp(34px,4vw,52px); line-height: 1.04; letter-spacing: -.03em; }
.ct-sub { margin: 18px 0 0; max-width: 62ch; font-size: 16.5px; line-height: 1.6; color: #171717; }

.ct-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 28px; align-items: stretch; margin-top: 38px; }
.ct-card2 .ct-row { flex: 1 1 auto; }

.ct-card2 { display: flex; flex-direction: column; background: #fff; border: 1px solid #E7EDF6; border-radius: 20px; box-shadow: 0 30px 60px -46px rgba(15,24,48,.55); overflow: hidden; }
.ct-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 17px 22px; border-bottom: 1px solid #EEF2F8; text-decoration: none; color: inherit; transition: background .14s ease; }
.ct-row:hover { background: #F7FAFD; }
.ct-row__ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-hover); display: flex; align-items: center; justify-content: center; }
.ct-row__t { min-width: 0; }
.ct-row__l { display: block; font-weight: 600; font-size: 12.5px; line-height: 1; color: #262626; margin-bottom: 5px; }
.ct-row__note { display: block; font-weight: 500; font-size: 12.5px; line-height: 1.45; color: var(--c-muted, #6B7590); margin-top: 4px; }
.ct-row__v { display: block; font-weight: 800; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; color: var(--c-black); word-break: break-word; }
.ct-row__v--sm { font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.ct-actions { display: flex; gap: 10px; padding: 16px 22px; margin-top: auto; background: #F7FAFD; border-top: 1px solid #EEF2F8; }
.ct-msgbtn { flex: 1; text-align: center; font-weight: 700; font-size: 14.5px; line-height: 1; padding: 14px; border-radius: 11px; text-decoration: none; color: #0B1426; transition: filter .15s ease; }
.ct-msgbtn:hover { filter: brightness(.95); color: #0B1426; }
.ct-msgbtn--wa { background: #25D366; }
.ct-msgbtn--tg { background: #229ED9; }

.ct-formcard { background: #fff; border: 1px solid #E2E9F3; border-radius: 24px; padding: 38px; box-shadow: 0 50px 90px -50px rgba(15,24,48,.4); }
.ct-formcard__h { margin: 0; font-weight: 800; font-size: clamp(24px,2.6vw,30px); line-height: 1.15; letter-spacing: -.02em; color: var(--c-black); }
.ct-formcard__sub { margin: 10px 0 0; font-weight: 500; font-size: 15px; line-height: 1.55; color: #171717; }
.ct-formcard .cr-form, .ct-formcard .cr-form__body { background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.ct-formcard .cr-form__fields--labeled { margin-top: 26px; }
.ct-formcard .field { width: 100%; border: 1px solid #D6DFEC; background: #F6F8FC; border-radius: 12px; padding: 16px 17px; font-weight: 500; font-size: 15.5px; line-height: 1.3; color: var(--c-black); outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.ct-formcard .field:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.14); background: #fff; }
.ct-formcard textarea.field { resize: vertical; min-height: 92px; }
.ct-formcard .cr-form__submit { margin-top: 16px; background: var(--accent); color: #fff; border: none; font-weight: 700; font-size: 16.5px; padding: 18px; border-radius: 13px; cursor: pointer; box-shadow: 0 16px 30px -12px rgba(var(--accent-rgb),.8); }
.ct-formcard .cr-form__note { margin-top: 2px; font-weight: 600; font-size: 13px; line-height: 1.4; color: #262626; text-align: center; }

.ct-mapsec { background: #fff; border-top: 1px solid #E2E9F3; padding: 66px 0; }
.ct-map-eyebrow { text-align: center; margin: 0; font-weight: 700; font-size: 14.5px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.ct-map-title { text-align: center; margin: 14px 0 34px; font-weight: 800; font-size: clamp(25px,2.9vw,36px); line-height: 1.05; letter-spacing: -.025em; color: var(--c-black); }
.ct-map { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid #D1DAEA; box-shadow: 0 30px 60px -44px rgba(15,24,48,.5); }
.ct-map__ph { height: 400px; background-image: repeating-linear-gradient(135deg,#E7EDF6,#E7EDF6 16px,#DDE6F1 16px,#DDE6F1 32px); }
.ct-map iframe { width: 100%; height: 440px; border: 0; display: block; }
.ct-map__card { position: absolute; left: 24px; bottom: 24px; right: 24px; max-width: 420px; background: #fff; border: 1px solid #D1DAEA; border-radius: 18px; padding: 24px; box-shadow: 0 24px 50px -30px rgba(15,24,48,.55); }
.ct-map__eyebrow { font-weight: 700; font-size: 12.5px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ct-map__addr { margin: 10px 0 0; font-weight: 800; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; color: var(--c-black); }
.ct-map__note { margin: 6px 0 0; font-weight: 500; font-size: 14px; line-height: 1.5; color: #171717; }
.ct-map__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

@media (max-width: 860px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-formcard { padding: 26px; }
  .ct-map__card { position: static; max-width: none; border: 0; border-top: 1px solid #D1DAEA; border-radius: 0; box-shadow: none; }
}

/* ============================================================
   F.A.Q. — ТОЧНО по макету faq.html (v1.7.4)
   ============================================================ */
.faq-hero { position: relative; overflow: hidden; background: var(--bg-soft-3); border-bottom: 1px solid var(--bg-page); }
.faq-hero__in { position: relative; padding-top: 38px; padding-bottom: 44px; }
.faq-hero__head { max-width: 760px; }
.faq-eyebrow { margin: 24px 0 0; }
.faq-title { margin: 16px 0 0; font-size: clamp(34px,4vw,52px); line-height: 1.04; letter-spacing: -.03em; }
.faq-sub { margin: 18px 0 0; max-width: 62ch; font-size: 16.5px; line-height: 1.6; color: #171717; }

.faq-body { background: #fff; padding: 52px 0 74px; }
.faq-body__grid { display: grid; grid-template-columns: 248px minmax(0,1fr); gap: 52px; align-items: start; }

.faq-side { position: sticky; top: 96px; align-self: start; }
.faq-side__t { font-weight: 700; font-size: 12px; line-height: 1; letter-spacing: .1em; text-transform: uppercase; color: #262626; }
.faq-side__list { display: flex; flex-direction: column; margin-top: 14px; }
.faq-pill { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px; font-weight: 600; font-size: 14px; line-height: 1.3; color: #2E374B; text-decoration: none; transition: background .15s, color .15s; }
.faq-pill:hover, .faq-pill.is-active { background: var(--accent-tint); color: var(--accent-hover); }
.faq-pill__ic { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-tint); color: var(--accent-hover); display: flex; align-items: center; justify-content: center; }
.faq-pill:hover .faq-pill__ic, .faq-pill.is-active .faq-pill__ic { background: var(--accent); color: #fff; }

.faq-main { min-width: 0; }
.faq-groups { display: flex; flex-direction: column; gap: 44px; }
.faq-group { margin-bottom: 0; scroll-margin-top: 90px; }
.faq-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.faq-group__ic { flex: none; width: 48px; height: 48px; border-radius: 13px; background: var(--accent-tint); color: var(--accent-hover); display: flex; align-items: center; justify-content: center; }
.faq-group__kicker { margin: 0; font-weight: 700; font-size: 12.5px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.faq-group__title { margin: 7px 0 0; font-weight: 800; font-size: clamp(21px,2.4vw,28px); line-height: 1.1; letter-spacing: -.02em; color: var(--c-black); }

.faq--wide { display: flex; flex-direction: column; gap: 12px; }

/* CTA — синий градиент (не тёмный) */

@media (max-width: 960px) {
  .faq-body__grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-side { position: static; }
  .faq-side__list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
}

/* ============================================================
   Отзывы — ТОЧНО по макету reviews.html (v1.7.4)
   ============================================================ */
.ct-hero__in--rev { padding-bottom: 46px; }

.rv-sec { padding: 52px 0 72px; }
.rv-sec--letters { background: #fff; }
.rv-sec--certs { background: var(--bg-soft-3); border-top: 1px solid var(--bg-page); padding: 64px 0; }
.rv-sec--quotes { background: #fff; border-top: 1px solid var(--bg-page); }
.rv-sec .eyebrow { margin: 0; }
.rv-h2 { margin: 14px 0 4px; }
.rv-lead { margin: 0 0 34px; max-width: 60ch; font-weight: 500; font-size: 16px; line-height: 1.6; color: #171717; }

.rv-letters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 22px; row-gap: 44px; align-items: start; }
.rv-letter__frame { aspect-ratio: 3 / 4; border: 1px solid #E1E8F1; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 18px; text-align: center; background: repeating-linear-gradient(135deg,#F6F9FD,#F6F9FD 11px,#D9E2EF 11px,#D9E2EF 22px); }
.rv-letter__frame img { width: 100%; height: 100%; object-fit: cover; }
.rv-letter__ph { font-weight: 600; font-size: 12.5px; line-height: 1.6; letter-spacing: .02em; color: #171717; }
.rv-letter__company { margin-top: 12px; font-weight: 800; font-size: 15.5px; line-height: 1.3; color: var(--c-black); text-align: center; }
.rv-letter__sub { margin-top: 4px; font-weight: 600; font-size: 13px; line-height: 1.45; color: #171717; text-align: center; }

.rv-certs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; align-items: start; }
.rv-cert__frame { aspect-ratio: 3 / 4; border: 1px solid #E1E8F1; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 14px; text-align: center; background: repeating-linear-gradient(135deg,#F6F9FD,#F6F9FD 9px,#D9E2EF 9px,#D9E2EF 18px); }
.rv-cert__frame img { width: 100%; height: 100%; object-fit: cover; }
.rv-cert__ph { font-weight: 600; font-size: 11.5px; line-height: 1.5; letter-spacing: .02em; color: #171717; }
.rv-cert__cap { margin-top: 10px; font-weight: 700; font-size: 13px; line-height: 1.3; color: var(--c-black); text-align: center; }

.rv-cta-sec { background: var(--bg-soft); padding: 50px 0; }

@media (max-width: 1080px) {
  .rv-letters { grid-template-columns: repeat(4, 1fr); }
  .rv-certs { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
  .rv-letters { grid-template-columns: repeat(2, 1fr); }
  .rv-certs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 460px) {
  .rv-letters, .rv-certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Ниже 380px две колонки писем не помещаются: рамка письма несёт padding 18px
   и собственную минимальную ширину — карточка выезжала за экран на 36px. */
@media (max-width: 380px) {
  .rv-letters { grid-template-columns: minmax(0, 1fr); }
  .rv-letter__frame { padding: 12px; }
}

/* ================= БЛОГ (home.php) — по макету blog.html ================= */
.bl-hero { position: relative; overflow: hidden; background: var(--bg-soft-3, #F5F8FC); border-bottom: 1px solid var(--bg-page, #E4EBF4); }
.bl-hero__glow { position: absolute; top: -170px; right: -130px; width: 660px; height: 660px; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .12), transparent); border-radius: 50%; pointer-events: none; }
.bl-hero__in { position: relative; padding-top: 38px; padding-bottom: 40px; }
.bl-hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: 24px; }
.bl-hero__lead { max-width: 720px; }
.bl-hero__eyebrow { margin: 0; }
.bl-hero__title { margin: 16px 0 0; }
.bl-hero__sub { margin: 18px 0 0; max-width: 56ch; }
.bl-search { position: relative; display: block; width: 300px; max-width: 100%; }
.bl-search__ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #262626; display: flex; }
.bl-search__in { width: 100%; border: 1px solid #D6DFEC; background: #fff; border-radius: 12px; padding: 14px 16px 14px 44px; font: 500 15px/1 'Manrope', sans-serif; color: var(--c-black, #0A0A0A); outline: none; transition: border-color .15s, box-shadow .15s; }
.bl-search__in:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .14); }
.bl-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.bl-chip { background: #fff; border: 1px solid #D6DFEC; color: #171717; font: 700 13.5px/1 'Manrope', sans-serif; padding: 11px 18px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.bl-chip:hover { border-color: var(--accent); color: var(--accent); }
.bl-chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

.bl-listing { background: var(--bg-white, #fff); padding: 56px 0 72px; }
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.bl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #E7EDF6; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px -34px rgba(15, 24, 48, .45); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.bl-card:hover { transform: translateY(-4px); border-color: var(--accent-soft); box-shadow: 0 30px 56px -32px rgba(15, 24, 48, .5); }
.bl-card__media { position: relative; display: block; height: 184px; background: #EFF3FA; overflow: hidden; }
.bl-card__media::before { content: ""; position: absolute; inset: 0; background: var(--cat, var(--accent)); opacity: .10; }
.bl-card__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120px 120px at 80% 20%, rgba(var(--accent-rgb), .16), transparent); }
.bl-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.bl-card__badge { position: absolute; left: 16px; top: 16px; z-index: 2; background: #fff; color: var(--cat-ink, var(--accent-hover)); font: 700 11.5px/1 'Manrope', sans-serif; letter-spacing: .05em; text-transform: uppercase; padding: 7px 11px; border-radius: 8px; box-shadow: 0 6px 14px -8px rgba(15, 24, 48, .4); }
.bl-card__mono { position: absolute; right: 16px; bottom: 16px; z-index: 2; font: 800 34px/1 'Manrope', sans-serif; color: rgba(15, 24, 48, .24); }
.bl-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.bl-card__title { font: 800 19px/1.28 'Manrope', sans-serif; letter-spacing: -.01em; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card__title a { color: var(--c-black, #0A0A0A); text-decoration: none; transition: color .16s ease; }
.bl-card:hover .bl-card__title a { color: var(--accent); }
.bl-card__ex { font: 500 14.5px/1.55 'Manrope', sans-serif; color: #171717; margin: 11px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 45px; }
.bl-card__meta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 18px; font: 600 12.5px/1 'Manrope', sans-serif; color: #262626; }
.bl-card__dot { width: 4px; height: 4px; border-radius: 50%; background: #CBD3E1; }
.bl-empty { text-align: center; background: #fff; border: 1px solid #E7EDF6; border-radius: 20px; padding: 48px; color: #171717; }

.bl-more { display: flex; justify-content: center; margin-top: 44px; }
.bl-more a { background: #fff; border: 1px solid #D6DFEC; color: var(--c-black, #0A0A0A); font: 700 15px/1 'Manrope', sans-serif; padding: 16px 30px; border-radius: 12px; cursor: pointer; text-decoration: none; transition: border-color .15s, color .15s; }
.bl-more a:hover { border-color: var(--accent); color: var(--accent); }

.bl-news-sec { background: var(--bg-soft-3, #F5F8FC); border-top: 1px solid var(--bg-page, #E4EBF4); padding: 64px 0; }
.bl-news { position: relative; overflow: hidden; background: linear-gradient(135deg, #0B1426, #1B2C4E); border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.bl-news__glow { position: absolute; top: -120px; right: -80px; width: 420px; height: 420px; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .45), transparent); pointer-events: none; }
.bl-news__l { position: relative; }
.bl-news__eyebrow { font: 700 13px/1 'Manrope', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); margin: 0; }
.bl-news__h { font: 800 clamp(24px, 2.6vw, 32px)/1.15 'Manrope', sans-serif; letter-spacing: -.02em; color: #fff; margin: 14px 0 0; }
.bl-news__text { font: 500 15.5px/1.6 'Manrope', sans-serif; color: #AEB8CE; margin: 12px 0 0; max-width: 46ch; }
.bl-news__r { position: relative; }

/* Подвал: адрес под колонкой «Мессенджеры» */

@media (max-width: 1000px) {
  .bl-grid { grid-template-columns: repeat(2, 1fr); }
  .bl-news { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bl-grid { grid-template-columns: 1fr; }
  .bl-news { padding: 28px; }
  .bl-hero__row { align-items: flex-start; }
  .bl-search { width: 100%; }
}

/* ================= Страница статьи (single.php) — по макету post.html ================= */
.article-hero { position: relative; overflow: hidden; background: var(--bg-soft-3, #F5F8FC); border-bottom: 1px solid var(--bg-page, #E4EBF4); }
.article-hero__cat { text-decoration: none; }
.article-hero__row { display: flex; justify-content: flex-start; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.article-hero__row .article-hero__meta::before { content: ""; flex: none; width: 1px; height: 32px; background: var(--bd, #D1DAEA); }
.article-hero__row .article-byline { margin-top: 0; }
.article-hero__row .article-hero__meta { margin-top: 0; }

.art-related-sec { background: var(--bg-soft-3, #F5F8FC); border-top: 1px solid var(--bg-page, #E4EBF4); padding: 64px 0; }
.art-related__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.art-related__title { margin: 0; }
.art-related__all { font: 700 14.5px/1 'Manrope', sans-serif; color: var(--accent); text-decoration: none; white-space: nowrap; }
.art-related__all:hover { color: var(--accent-hover); }

.art-cta-sec { background: var(--bg-white, #fff); border-top: 1px solid var(--bd, #D1DAEA); padding: 64px 0; }
.art-cta-sec--pf { border-top: 0; padding: 8px 0 64px; }
.art-related-sec + .art-cta-sec { border-top: none; }
.art-cta { position: relative; overflow: hidden; background: linear-gradient(135deg, #0B1426, #1B2C4E); border-radius: 24px; padding: 48px; text-align: center; }
.art-cta__glow { position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 520px; height: 420px; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .4), transparent); pointer-events: none; }
.art-cta__h { position: relative; font: 800 clamp(24px, 2.6vw, 34px)/1.15 'Manrope', sans-serif; letter-spacing: -.02em; color: #fff; margin: 0; }
.art-cta__text { position: relative; font: 500 15.5px/1.6 'Manrope', sans-serif; color: #AEB8CE; margin: 14px auto 0; max-width: 52ch; }
.art-cta__btns { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.art-cta__btns .btn { padding: 15px 26px; font-size: 15px; }
.art-cta__wa { display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.25); color: #fff; background: transparent; font: 700 15px/1 'Manrope', sans-serif; padding: 15px 26px; border-radius: 12px; text-decoration: none; transition: background .15s, border-color .15s; }
.art-cta__wa:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color: #fff; }
@media (max-width: 640px) { .art-cta { padding: 30px 22px; } .art-related__head { flex-direction: column; align-items: flex-start; gap: 6px; } }

/* ===== Кейс-деталь (single-cropas_case.php) — по макету case-electro.html ===== */

/* Точные размеры заголовков CTA под макеты */
.art-related__title { font-size: clamp(24px, 2.4vw, 32px); }
.rv-cta-sec .faq-cta__h { font-size: clamp(24px, 2.6vw, 33px); }

/* --- Главная: CTA «Оставьте заявку» — тёмная карточка на белом фоне (по home.html) --- */
/* город на Главной = 36 (у услуг 40 через --svc) */

/* --- Комментарии (по умолчанию отключены; стили — на случай включения) --- */
.cropas-comments { max-width: 756px; margin: 0 auto; }
.cropas-comments .comment-reply-title,
.cropas-comments .comments-title { font: 800 clamp(22px, 2vw, 28px)/1.1 'Manrope', sans-serif; letter-spacing: -.02em; margin: 0 0 14px; color: var(--c-black); }
.cropas-comments .comment-notes,
.cropas-comments .comment-form-cookies-consent label,
.cropas-comments .logged-in-as { font-size: 14px; line-height: 1.5; color: var(--c-muted); margin: 0 0 18px; }
.cropas-comments .comment-form { display: flex; flex-direction: column; gap: 16px; }
.cropas-comments .comment-form p { margin: 0; }
.cropas-comments .comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--c-text); }
.cropas-comments input[type="text"],
.cropas-comments input[type="email"],
.cropas-comments input[type="url"],
.cropas-comments textarea { width: 100%; border: 1px solid var(--bd, #D1DAEA); border-radius: 12px; padding: 14px 16px; font: 500 15px/1.4 'Manrope', sans-serif; color: var(--c-black); background: var(--bg-soft-3, #F5F8FC); outline: none; transition: border-color .15s, box-shadow .15s; }
.cropas-comments input:focus,
.cropas-comments textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.cropas-comments textarea { min-height: 130px; resize: vertical; }
.cropas-comments .comment-form-cookies-consent { flex-direction: row; align-items: flex-start; gap: 10px; }
.cropas-comments .form-submit { margin: 4px 0 0; }
.cropas-comments .form-submit .submit { background: var(--accent); color: #fff; border: none; border-radius: 12px; padding: 15px 28px; font: 700 15px/1 'Manrope', sans-serif; cursor: pointer; transition: background .15s; }
.cropas-comments .form-submit .submit:hover { background: var(--accent-hover); }
.cropas-comments .comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.cropas-comments .comment-list .comment { padding: 18px 0; border-bottom: 1px solid var(--bd-4, #EEF2F8); }
.cropas-comments .no-comments { color: var(--c-muted); }
