/* Контентные страницы (tpl_rich.php): первый экран, секции, FAQ, боковая карточка, форма. */
.cv-rich { padding-top: 0 !important; }

.cv-rich__hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: clamp(150px, 16vw, 200px) 0 clamp(44px, 5vw, 72px);
  overflow: hidden;
  background: linear-gradient(160deg, #24120d 0%, #0a0604 100%);
  color: #fff8ec;
  isolation: isolate;
}
.cv-rich__hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cv-rich__hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14,7,5,.84) 0%, rgba(14,7,5,.6) 45%, rgba(14,7,5,.12) 100%), linear-gradient(0deg, rgba(14,7,5,.7) 0%, rgba(14,7,5,0) 60%); }
.cv-rich__hero:not(.has-image) .cv-rich__hero-shade { background: radial-gradient(70% 90% at 0% 0%, rgba(212,165,116,.22), transparent 58%); }
.cv-rich__hero-inner { position: relative; z-index: 2; max-width: 860px; }
.cv-rich__hero .cv-crumbs { margin: 0 0 14px; }
.cv-rich__hero .cv-crumbs li { color: rgba(255,248,236,.6); }
.cv-rich__hero .cv-crumbs a { color: rgba(255,248,236,.85); border-bottom-color: rgba(255,248,236,.3); }
.cv-rich__hero .cv-crumbs a:hover { color: #d4a574; }
.cv-rich__hero .cv-crumbs li[aria-current] { color: #fff8ec; }
.cv-rich__kicker { display: inline-flex; margin-bottom: 16px; padding: 7px 12px; border: 1px solid rgba(212,165,116,.45); border-radius: 999px; color: #d4a574; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cv-rich__title { margin: 0 0 16px; color: #fff8ec; font-size: clamp(34px, 5vw, 60px); font-weight: 800; line-height: 1.04; }
.cv-rich__lead { margin: 0 0 26px; max-width: 700px; color: rgba(255,248,236,.86); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; }
.cv-rich__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.cv-rich__chips li { display: flex; flex-direction: column; gap: 2px; min-width: 140px; padding: 12px 16px; border: 1px solid rgba(255,248,236,.16); border-radius: 16px; background: rgba(30,16,10,.55); }
.cv-rich__chips span { font-size: 12px; color: rgba(255,248,236,.62); text-transform: uppercase; letter-spacing: .06em; }
.cv-rich__chips strong { font-size: 17px; color: #fff8ec; white-space: nowrap; }
.cv-rich__btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 999px; background: #d4a574; color: #14090a !important; font-weight: 700; text-decoration: none !important; transition: background .2s, transform .2s; }
.cv-rich__btn:hover { background: #e2b98a; transform: translateY(-1px); }
.cv-rich__btn--block { width: 100%; }

.cv-rich__body { padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 72px); }
.cv-rich__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; max-width: 1180px; margin: 0 auto; }
.cv-rich__article { min-width: 0; }
.cv-rich__article p, .cv-rich__article li { color: rgba(45,33,28,.84); font-size: 17px; line-height: 1.7; }
.cv-rich__intro p:first-child { font-size: 19px; }
.cv-rich__article h2 { margin: 0 0 18px; padding-top: 6px; color: #24120d; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.1; }
.cv-rich__section { position: relative; margin: 0 0 40px; padding-top: 18px; border-top: 1px solid rgba(76,44,32,.12); scroll-margin-top: 130px; }
.cv-rich__section::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, #b98254, #d8a36c); }
.cv-rich__article ul { display: grid; gap: 10px; margin: 18px 0 22px; padding: 0; list-style: none; }
.cv-rich__article li { position: relative; padding: 12px 16px 12px 40px; border: 1px solid rgba(76,44,32,.1); border-radius: 16px; background: rgba(255,255,255,.7); }
.cv-rich__article li::before { content: ""; position: absolute; top: 20px; left: 17px; width: 9px; height: 9px; border-radius: 999px; background: linear-gradient(135deg, #b98254, #d8a36c); box-shadow: 0 0 0 5px rgba(216,163,108,.14); }
.cv-rich__toc { margin: 0 0 34px; padding: 18px 22px; border: 1px solid rgba(76,44,32,.12); border-radius: 20px; background: rgba(255,255,255,.6); }
.cv-rich__toc > span { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #b98254; }
.cv-rich__toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 24px; }
.cv-rich__toc li { break-inside: avoid; padding: 4px 0 !important; border: 0 !important; background: none !important; font-size: 15px; }
.cv-rich__toc li::before { display: none !important; }
.cv-rich__toc a { color: #24120d; text-decoration: none; border-bottom: 1px solid rgba(184,130,84,.35); }
.cv-rich__toc a:hover { color: #b98254; }
.cv-rich__figure { margin: 0 0 40px; }
.cv-rich__figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; box-shadow: 0 24px 60px rgba(70,42,28,.14); }
.cv-rich__table { overflow-x: auto; margin: 18px 0 24px; -webkit-overflow-scrolling: touch; }
.cv-rich__table table { width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 0; border: 1px solid rgba(76,44,32,.12); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.7); }
.cv-rich__table th { padding: 13px 16px; text-align: left; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #b98254; background: rgba(216,163,108,.12); border-bottom: 1px solid rgba(76,44,32,.12); }
.cv-rich__table td { padding: 13px 16px; border-bottom: 1px solid rgba(76,44,32,.08); color: rgba(45,33,28,.84); font-size: 15px; }
.cv-rich__table tr:last-child td { border-bottom: 0; }

.cv-faq__item { margin: 0 0 10px; border: 1px solid rgba(76,44,32,.12); border-radius: 18px; background: rgba(255,255,255,.72); transition: box-shadow .2s; }
.cv-faq__item[open] { box-shadow: 0 16px 40px rgba(70,42,28,.1); }
.cv-faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; color: #24120d; }
.cv-faq__item summary::-webkit-details-marker { display: none; }
.cv-faq__item summary::after { content: "+"; flex: 0 0 auto; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(216,163,108,.18); color: #b98254; font-size: 20px; font-weight: 700; transition: transform .2s; }
.cv-faq__item[open] summary::after { content: "–"; }
.cv-faq__a { padding: 0 20px 18px; color: rgba(45,33,28,.84); font-size: 16px; line-height: 1.65; }

.cv-rich__aside { position: sticky; top: 120px; display: grid; gap: 18px; }
.cv-rich__card { padding: 24px; border-radius: 24px; background: linear-gradient(160deg, #24120d, #0a0604); color: #fff8ec; box-shadow: 0 24px 60px rgba(70,42,28,.16); }
.cv-rich__card h3 { margin: 0 0 8px; color: #d4a574; font-size: 18px; font-weight: 800; }
.cv-rich__card p { margin: 0 0 16px; color: rgba(255,248,236,.72); font-size: 14px; line-height: 1.55; }
.cv-rich__card-phone { display: block; margin-bottom: 6px; color: #fff8ec !important; font-size: 22px; font-weight: 800; text-decoration: none !important; }
.cv-rich__card-wa { display: inline-block; margin-bottom: 18px; color: #d4a574 !important; font-weight: 600; text-decoration: none !important; }
.cv-rich__card-wa:hover, .cv-rich__card-phone:hover { color: #e2b98a !important; }
.cv-rich__card--links { background: rgba(255,255,255,.7); color: #24120d; box-shadow: none; border: 1px solid rgba(76,44,32,.12); }
.cv-rich__card--links h3 { color: #24120d; }
.cv-rich__links { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cv-rich__links a { display: block; padding: 10px 12px; border-radius: 12px; background: rgba(216,163,108,.12); color: #24120d !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.cv-rich__links a:hover { background: rgba(216,163,108,.24); }

.cv-rich__request { padding: clamp(44px, 6vw, 80px) 0; background: linear-gradient(160deg, #24120d 0%, #0a0604 100%); color: #fff8ec; }
.cv-rich__request-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.cv-rich__request h2 { margin: 0 0 16px; color: #fff8ec; font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.1; }
.cv-rich__closing p, .cv-rich__closing h3 { color: rgba(255,248,236,.78); font-size: 16px; line-height: 1.65; }
.cv-rich__closing h3 { color: #d4a574; font-size: 18px; margin: 18px 0 8px; }
.cv-rich__request-contacts a { color: #d4a574 !important; font-weight: 700; text-decoration: none !important; }
.cv-rich__request-form { padding: 22px; border-radius: 24px; background: rgba(255,248,236,.06); border: 1px solid rgba(255,248,236,.14); }
/* Поля формы: правила только внутри этого блока, чтобы не задеть формы в других местах сайта. */
.cv-rich__request-form .wpcf7 form { display: block; }
.cv-rich__request-form .wpcf7-form-control-wrap { display: block; }
.cv-rich__request-form .uk-grid { margin-left: -10px; }
.cv-rich__request-form .uk-grid > * { padding-left: 10px; }
.cv-rich__request-form .uk-grid > .uk-grid-margin { margin-top: 10px; }
.cv-rich__request-form .uk-width-1-3\@l { width: 100%; }
.cv-rich__request-form .uk-width-1-3\@l + .uk-width-1-3\@l { margin-top: 10px; }
.cv-rich__request-form .uk-width-1-1 { margin-top: 10px; }
.cv-rich__request-form .uk-input,
.cv-rich__request-form .uk-textarea,
.cv-rich__request-form .wpcf7 input:not([type=submit]),
.cv-rich__request-form .wpcf7 textarea {
  width: 100%; height: 46px; min-height: 46px; padding: 0 14px; border: 1px solid rgba(255,248,236,.2); border-radius: 12px;
  background: rgba(255,248,236,.96); color: #14090a; font-size: 15px; line-height: 1.3; box-shadow: none;
}
.cv-rich__request-form .uk-textarea,
.cv-rich__request-form .wpcf7 textarea { height: 96px; min-height: 96px; padding: 12px 14px; resize: vertical; }
.cv-rich__request-form .uk-input::placeholder, .cv-rich__request-form .uk-textarea::placeholder { color: #7a6a60; font-size: 15px; font-weight: 400; }
.cv-rich__request-form .uk-input:focus, .cv-rich__request-form .uk-textarea:focus { border-color: #d4a574; background: #fff; box-shadow: 0 0 0 3px rgba(212,165,116,.28); outline: none; }
.cv-rich__request-form .uk-child-width-auto { display: grid; grid-template-columns: 1fr; gap: 12px; margin-left: 0; }
.cv-rich__request-form .uk-child-width-auto > * { padding-left: 0; width: auto; margin-top: 0 !important; }
.cv-rich__request-form .wpcf7 .wpcf7-submit { display: block; width: 100%; height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: #d4a574; color: #14090a; font-size: 15px; font-weight: 700; line-height: 48px; cursor: pointer; }
.cv-rich__request-form .wpcf7 .wpcf7-submit:hover { background: #e2b98a; }
.cv-rich__request-form .uk-child-width-auto span { display: block; color: rgba(255,248,236,.6); font-size: 12px; line-height: 1.45; }
.cv-rich__request-form .uk-child-width-auto span br { display: none; }
.cv-rich__request-form .wpcf7-not-valid-tip { color: #ffb4a2; font-size: 12px; margin-top: 4px; }
.cv-rich__request-form .wpcf7-response-output { margin: 12px 0 0; padding: 10px 14px; border: 1px solid rgba(212,165,116,.5); border-radius: 12px; color: #fff8ec; font-size: 14px; }
.cv-rich__request-form .wpcf7-spinner { display: block; margin: 8px auto 0; }

@media (max-width: 1100px) {
  .cv-rich__layout { grid-template-columns: minmax(0, 1fr); }
  .cv-rich__aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .cv-rich__request-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cv-rich__hero { min-height: 0; padding-top: 130px; }
  .cv-rich__chips li { min-width: calc(50% - 5px); }
  .cv-rich__aside { grid-template-columns: 1fr; }
  .cv-rich__toc ol { columns: 1; }
  .cv-rich__article p, .cv-rich__article li { font-size: 16px; }
  .cv-rich__figure img { border-radius: 16px; }
}

/* Записи блога */
.cv-post__callout { margin: 0 0 40px; padding: 24px; border-radius: 22px; background: linear-gradient(160deg, #24120d, #0a0604); color: #fff8ec; }
.cv-post__callout h3 { margin: 0 0 6px; color: #d4a574; font-size: 20px; font-weight: 800; }
.cv-post__callout p { margin: 0 0 16px; color: rgba(255,248,236,.78); font-size: 15px; line-height: 1.55; }
.cv-post__callout .cv-rich__chips { margin-bottom: 18px; }
.cv-post__callout .cv-rich__chips li { background: rgba(255,248,236,.08); }
.cv-post .cv-rich__article img { max-width: 100%; height: auto; border-radius: 18px; }
.cv-post .cv-rich__article figure { margin: 0 0 24px; }
.cv-post__related { margin-top: clamp(32px, 4vw, 56px); padding-top: 28px; border-top: 1px solid rgba(76,44,32,.12); }
.cv-post__related h2 { margin: 0 0 18px; color: #24120d; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; }
.cv-post__related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cv-post__card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid rgba(76,44,32,.12); border-radius: 20px; background: rgba(255,255,255,.72); color: #24120d !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.cv-post__card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(70,42,28,.12); }
.cv-post__card-img { display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 9; }
.cv-post__card-img img { width: 100%; height: 100%; object-fit: cover; }
.cv-post__card-date { font-size: 12px; color: #7a6a60; }
.cv-post__card-title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.cv-rich__request-lead { color: rgba(255,248,236,.78); font-size: 16px; line-height: 1.6; }
@media (max-width: 800px) { .cv-post__related-grid { grid-template-columns: 1fr; } }

.cv-rich__links--cols { grid-template-columns: 1fr; }
.cv-rich__links--cols a { padding: 8px 12px; font-size: 13px; }

.cv-rich__official { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,248,236,.14); color: rgba(255,248,236,.72) !important; font-size: 13px; line-height: 1.45; text-decoration: none !important; }
.cv-rich__official:hover { color: #d4a574 !important; }

/* Подпись материала: автор и даты — под заголовком, до основного текста */
.cv-rich__byline{margin:0 0 26px;padding:14px 18px;border:1px solid rgba(76,44,32,.14);border-left:3px solid #d4a574;border-radius:14px;background:#fffdf7}
.cv-rich__byline p{margin:0;font-size:14px;line-height:1.5;color:#5f4e3f}
.cv-rich__byline-who strong{color:#1a120b}
.cv-rich__byline-exp{margin-top:4px!important;font-size:13px;color:#77685a}
.cv-rich__byline-dates{margin-top:8px!important;display:flex;flex-wrap:wrap;gap:6px 18px;font-size:12.5px;color:#8b7c6d}
@media (max-width:640px){.cv-rich__byline{padding:12px 14px}}
