/* ==========================================================================
   Revecon — новые компоненты и правки (2026). Подключается после style.css.
   Палитра сайта: #2c3552 (синий), #f12e1d / #d91907 (красный), #2b2b2b, #c3c5cf.
   ========================================================================== */

/* ---------- Доступность и базовые правки ---------- */
:focus-visible { outline: 3px solid #f12e1d; outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100000; padding: 10px 16px; background: #2c3552; color: #fff; }
.skip-link:focus { left: 10px; top: 10px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }
.g_format table { border-collapse: collapse; }

/* ---------- Изображения вместо background-image ---------- */
.rv-cover { position: relative; overflow: hidden; }
.rv-cover > img, .gallery__item > img, .catalog__image > img, .product__right > img, .works__image > img, .article__image > img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.catalog__image, .works__image, .article__image { position: relative; overflow: hidden; }
.product__right { position: relative; overflow: hidden; min-height: 320px; }
.product__right > img { height: 100%; }
.gallery__item { display: block; overflow: hidden; }
.gallery__item[hidden], .rv-gallery-grid a[hidden] { display: none; }
.gallery__item > img { transition: transform .4s; }
.gallery__item:hover > img { transform: scale(1.04); }
.task__slide { position: relative; overflow: hidden; }
.task__slide > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Меню ---------- */
.header__bottom nav { width: 100%; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs a:after { content: none !important; }
.breadcrumbs--page + .inner, .breadcrumbs--page + .task { padding-top: 14px !important; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; color: #6b7186; }
.breadcrumbs li { display: inline; }
.breadcrumbs li + li:before { content: "›"; margin: 0 8px; color: #c3c5cf; }
.breadcrumbs a { color: #4d5773; text-decoration: none; }
.breadcrumbs a:hover { color: #f12e1d; text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: #2c3552; }
.breadcrumbs--page { padding: 18px 0 0; }
.breadcrumbs--page ol { margin-bottom: 0; }

/* ---------- Hero категории ---------- */
.product .rv-lead { margin: 0 0 22px; font-size: 17px; line-height: 1.55; color: #2c3552; font-weight: 500; }
.rv-hero-facts { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 22px 0 24px; padding: 0; list-style: none; }
.rv-hero-facts li { margin: 0 !important; padding-left: 24px; position: relative; font-size: 15px; line-height: 1.4; color: #2c3552; }
.rv-hero-facts li:before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #f12e1d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/10px no-repeat; }
.rv-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.rv-hero-cta .btn { max-width: 250px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 0 16px; }
.rv-hero-cta .btn--white { box-shadow: none; }

/* ---------- Навигация по разделу (чипсы) ---------- */
.rv-chips { padding: 26px 0 0; }
.rv-chips__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rv-chips__list a { display: inline-block; padding: 9px 16px; border: 1px solid #d1d3dc; border-radius: 30px; background: #fff; color: #2c3552; font-size: 14px; text-decoration: none; transition: .2s; }
.rv-chips__list a:hover { border-color: #f12e1d; color: #f12e1d; }

/* ---------- Секции ---------- */
.rv-section { padding: 56px 0; }
.rv-section--white { background: #fff; }
.rv-section .caption { text-align: left; }
.rv-section__lead { margin: -14px 0 28px; max-width: 820px; color: #4d5773; line-height: 1.6; }
@media (max-width: 720px) { .rv-section { padding: 34px 0; } }

/* ---------- Таблица цен ---------- */
.rv-table-wrap { overflow-x: auto; border-radius: 10px; box-shadow: 0 6px 29px rgba(77,87,115,.11); background: #fff; }
.rv-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.rv-table th { padding: 14px 18px; text-align: left; background: #2c3552; color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.rv-table td { padding: 14px 18px; border-bottom: 1px solid #e8e8f1; vertical-align: top; line-height: 1.45; }
.rv-table tr:last-child td { border-bottom: 0; }
.rv-table td:last-child { white-space: nowrap; font-weight: 700; color: #2c3552; }
.rv-table-note { margin: 14px 0 0; font-size: 13px; color: #6b7186; line-height: 1.5; }
.rv-factors { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.rv-factors li { margin: 0; padding: 14px 16px 14px 44px; position: relative; border: 1px solid #e8e8f1; border-radius: 10px; background: #fff; font-size: 14.5px; line-height: 1.45; }
.rv-factors li:before { content: ""; position: absolute; left: 16px; top: 17px; width: 14px; height: 14px; border-radius: 3px; background: #f12e1d; opacity: .85; }

/* ---------- Этапы (общий компонент) ---------- */
.rv-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: rvstep; }
.rv-steps li { position: relative; margin: 0; padding: 54px 16px 18px; border-radius: 10px; background: #fff; box-shadow: 0 6px 29px rgba(77,87,115,.11); counter-increment: rvstep; font-size: 14.5px; line-height: 1.45; }
.rv-steps li:before { content: counter(rvstep); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 50%; background: #f12e1d; color: #fff; font-weight: 900; }
.rv-steps b { display: block; margin-bottom: 4px; color: #2c3552; font-size: 15.5px; }
@media (max-width: 1100px) { .rv-steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .rv-steps { grid-template-columns: 1fr; } }

/* ---------- Преимущества (мини) ---------- */
.rv-adv { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.rv-adv li { margin: 0; padding: 20px 18px; border-radius: 10px; background: #fff; box-shadow: 0 6px 29px rgba(77,87,115,.11); font-size: 14.5px; line-height: 1.5; }
.rv-adv b { display: block; margin-bottom: 6px; font-size: 16px; color: #2c3552; }

/* ---------- SEO-текст (без сворачивания) ---------- */
.rv-prose { max-width: 920px; }
.rv-prose h2 { margin: 1.7em 0 .6em; font-size: 24px; line-height: 1.25; color: #2c3552; text-transform: none; text-align: left; }
.rv-prose h3 { margin: 1.4em 0 .5em; font-size: 19px; line-height: 1.3; color: #2c3552; }
.rv-prose p { margin: 0 0 1.05em; line-height: 1.7; }
.rv-prose ul, .rv-prose ol { margin: 0 0 1.2em 1.2em; padding: 0; }
.rv-prose li { margin-bottom: .45em; line-height: 1.6; }
.rv-prose a { color: #f12e1d; text-decoration: underline; text-underline-offset: 2px; }
.rv-prose a:hover { color: #d91907; }
.rv-prose table { width: 100%; margin: 0 0 1.4em; font-size: 15px; display: block; overflow-x: auto; }
.rv-prose th, .rv-prose td { padding: 10px 14px; border: 1px solid #e0e2ea; text-align: left; vertical-align: top; }
.rv-prose th { background: #f1f2f7; color: #2c3552; }
.rv-prose img { height: auto; border-radius: 8px; }
.rv-prose .alignright { float: right; margin: 6px 0 14px 22px; max-width: 42%; }
.rv-prose .alignleft { float: left; margin: 6px 22px 14px 0; max-width: 42%; }
.rv-prose .aligncenter { display: block; margin: 20px auto; }
.rv-prose::after { content: ""; display: block; clear: both; }
@media (max-width: 720px) { .rv-prose .alignright, .rv-prose .alignleft { float: none; max-width: 100%; margin: 14px 0; } .rv-prose h2 { font-size: 21px; } }
.rv-callout { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid #f12e1d; border-radius: 0 8px 8px 0; background: #fff; box-shadow: 0 6px 29px rgba(77,87,115,.08); }
.rv-callout p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.rv-faq { max-width: 920px; }
.rv-faq details { margin: 0 0 10px; border: 1px solid #e0e2ea; border-radius: 10px; background: #fff; }
.rv-faq summary { position: relative; padding: 16px 52px 16px 20px; cursor: pointer; list-style: none; font-weight: 700; color: #2c3552; line-height: 1.4; }
.rv-faq summary::-webkit-details-marker { display: none; }
.rv-faq summary:after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: #f12e1d; }
.rv-faq details[open] summary:after { content: "–"; }
.rv-faq details > div { padding: 0 20px 18px; line-height: 1.65; color: #3b4258; }
.rv-faq details > div p { margin: 0 0 .8em; }

/* ---------- Связанные ссылки ---------- */
.rv-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.rv-links a { display: block; height: 100%; padding: 16px 18px; border: 1px solid #e0e2ea; border-radius: 10px; background: #fff; color: #2c3552; font-weight: 600; line-height: 1.4; text-decoration: none; transition: .2s; }
.rv-links a:hover { border-color: #f12e1d; box-shadow: 0 6px 20px rgba(241,46,29,.12); }
.rv-links small { display: block; margin-top: 4px; font-weight: 400; color: #6b7186; font-size: 13px; }
.rv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.rv-card { display: block; height: 100%; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 6px 29px rgba(77,87,115,.11); color: inherit; text-decoration: none; transition: .25s; }
.rv-card:hover { transform: translateY(-3px); box-shadow: 0 10px 34px rgba(77,87,115,.2); }
.rv-card__img { position: relative; height: 170px; background: #e8e8f1; }
.rv-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-card__body { padding: 16px 18px 20px; }
.rv-card__title { margin: 0 0 8px; font-size: 16px; line-height: 1.35; font-weight: 700; color: #2c3552; }
.rv-card__text { margin: 0; font-size: 14px; line-height: 1.5; color: #4d5773; }

/* ---------- Каталог: карточки ---------- */
.catalog__items { align-items: stretch; }
.catalog__item { display: flex; flex-direction: column; overflow: hidden; }
.catalog__info { flex: 1; display: flex; flex-direction: column; }
.catalog__bottom { margin-top: auto; }
.catalog__title a { color: inherit; text-decoration: none; }
.catalog__title a:hover { color: #f12e1d; }
.catalog__item--single { width: 100%; }
.catalog__price small { display: block; font-size: 12px; font-weight: 400; color: #6b7186; text-transform: none; }
.catalog__param li { margin-bottom: 6px; }
.catalog__empty { padding: 22px 26px; border-radius: 10px; background: #fff; box-shadow: 0 6px 29px rgba(77,87,115,.11); }

/* ---------- Обновлено / автор ---------- */
.rv-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 22px; font-size: 13.5px; color: #6b7186; }
.rv-meta b { color: #2c3552; font-weight: 600; }
.rv-summary { margin: 0 0 26px; padding: 18px 22px; border-radius: 10px; background: #fff; border: 1px solid #e0e2ea; line-height: 1.65; }
.rv-summary b:first-child { color: #f12e1d; text-transform: uppercase; font-size: 12.5px; letter-spacing: .06em; display: block; margin-bottom: 4px; }

/* ---------- Оглавление статьи ---------- */
.rv-toc { margin: 0 0 30px; padding: 18px 22px; border-radius: 10px; background: #fff; border: 1px solid #e0e2ea; }
.rv-toc__title { margin: 0 0 8px; font-weight: 800; color: #2c3552; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.rv-toc ol { margin: 0; padding-left: 20px; }
.rv-toc li { margin: 0 0 6px; line-height: 1.4; }
.rv-toc li.rv-toc__sub { margin-left: 18px; list-style: circle; }
.rv-toc a { color: #2c3552; text-decoration: none; }
.rv-toc a:hover { color: #f12e1d; text-decoration: underline; }
.inner__content h2[id], .inner__content h3[id] { scroll-margin-top: 150px; }

/* ---------- Статья: CTA и услуги ---------- */
.rv-cta { margin: 36px 0 0; padding: 28px 30px; border-radius: 12px; background: #2c3552; color: #fff; display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
.rv-cta h2, .rv-cta h3 { margin: 0 0 6px; color: #fff; font-size: 22px; text-align: left; text-transform: none; }
.rv-cta p { margin: 0; color: #d1d3dc; line-height: 1.5; }
.rv-cta .btn { max-width: 280px; display: inline-flex; align-items: center; justify-content: center; }
.rv-services { margin: 34px 0; }
.rv-services__title { margin: 0 0 16px; font-size: 22px; color: #2c3552; text-align: left; text-transform: none; }

/* ---------- Портфолио ---------- */
.rv-case { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.rv-case__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
.rv-case__facts li { margin: 0; padding: 12px 14px; border-radius: 8px; background: #fff; border: 1px solid #e0e2ea; font-size: 13.5px; color: #6b7186; }
.rv-case__facts b { display: block; color: #2c3552; font-size: 15px; margin-top: 2px; }
.rv-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.rv-gallery-grid a { position: relative; display: block; padding-bottom: 70%; overflow: hidden; border-radius: 8px; }
.rv-gallery-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.rv-gallery-grid a:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .rv-case { grid-template-columns: 1fr; } }

/* ---------- Видео-фасад ---------- */
.rv-video { position: relative; display: block; width: 100%; padding-bottom: 56.25%; overflow: hidden; border-radius: 12px; background: #111 center/cover no-repeat; cursor: pointer; }
.rv-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: .3s; }
.rv-video:hover img { opacity: 1; }
.rv-video button { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border: 0; border-radius: 50%; background: #f12e1d; cursor: pointer; box-shadow: 0 0 0 10px rgba(241,46,29,.25); }
.rv-video button:before { content: ""; position: absolute; left: 30px; top: 23px; border: 15px solid transparent; border-left: 24px solid #fff; border-right: 0; }
.rv-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Контакты ---------- */
.rv-contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.rv-contact { padding: 22px; border-radius: 10px; background: #fff; box-shadow: 0 6px 29px rgba(77,87,115,.11); }
.rv-contact h3 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: #6b7186; }
.rv-contact p, .rv-contact a { font-size: 18px; font-weight: 600; color: #2c3552; text-decoration: none; line-height: 1.45; margin: 0; display: block; }
.rv-contact a:hover { color: #f12e1d; }
.rv-contact small { display: block; margin-top: 6px; font-weight: 400; font-size: 13.5px; color: #6b7186; }

/* ---------- Мобильная панель действий ---------- */
.rv-sticky { display: none; }
@media (max-width: 760px) {
  .rv-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 998; display: flex; background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.15); }
  .rv-sticky a { flex: 1; padding: 13px 8px; text-align: center; font-weight: 700; font-size: 14px; text-decoration: none; text-transform: uppercase; color: #2c3552; }
  .rv-sticky a + a { background: #f12e1d; color: #fff; }
  body { padding-bottom: 50px; }
}

/* ---------- Ссылка «Политика» ---------- */
.popup__warning a { color: inherit; text-decoration: underline; }
.rv-consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 12.5px; line-height: 1.4; color: #6b7186; text-align: left; }
.rv-consent input { margin-top: 2px; }

/* ---------- Подвал ---------- */
.footer__menu { flex-wrap: wrap; }
.rv-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; padding: 30px 0 6px; }
.rv-footer-cols h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #c3c5cf; }
.rv-footer-cols ul { margin: 0; padding: 0; list-style: none; }
.rv-footer-cols li { margin: 0 0 8px; }
.rv-footer-cols a { color: #fff; text-decoration: none; font-size: 14px; opacity: .9; }
.rv-footer-cols a:hover { color: #f12e1d; opacity: 1; }
.rv-footer-legal { padding: 14px 0 0; font-size: 12.5px; color: #8e95b0; line-height: 1.5; }
.rv-footer-legal a { color: #c3c5cf; }

/* ---------- Хаб статей ---------- */
.rv-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 34px 0 0; }
.rv-pagination a, .rv-pagination span { min-width: 42px; padding: 10px 14px; text-align: center; border: 1px solid #d1d3dc; border-radius: 8px; background: #fff; color: #2c3552; text-decoration: none; font-weight: 600; }
.rv-pagination .current { background: #f12e1d; border-color: #f12e1d; color: #fff; }
.rv-pagination a:hover { border-color: #f12e1d; color: #f12e1d; }
.rv-hub-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.rv-hub-nav a { padding: 8px 16px; border: 1px solid #d1d3dc; border-radius: 30px; background: #fff; color: #2c3552; text-decoration: none; font-size: 14px; }
.rv-hub-nav a.is-active, .rv-hub-nav a:hover { background: #f12e1d; border-color: #f12e1d; color: #fff; }

@media print { .rv-sticky, .fixed-callback, .cookie-consent, #jvLabelWrap { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- Главная ---------- */
.rv-home-hero { padding: 38px 0 30px; text-align: center; background: #fff; }
.rv-home-hero h1 { margin: 0 auto 12px; max-width: 980px; font-size: 34px; line-height: 1.2; font-weight: 900; color: #2c3552; text-transform: uppercase; }
.rv-home-hero p { margin: 0 auto 22px; max-width: 760px; font-size: 18px; line-height: 1.55; color: #4d5773; }
@media (max-width: 720px) { .rv-home-hero h1 { font-size: 22px; } .rv-home-hero p { font-size: 16px; } }
.basic__item { position: relative; overflow: hidden; }
.basic__item > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rv-cards--home { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.rv-card--cat .rv-card__img { display: block; }
.rv-card__list { margin: 10px 0 0; padding: 0; list-style: none; }
.rv-card__list li { margin: 0 0 6px; font-size: 14px; line-height: 1.4; }
.rv-card__list a { color: #4d5773; text-decoration: none; }
.rv-card__list a:hover { color: #f12e1d; text-decoration: underline; }
.rv-card--cat .rv-card__title a:hover { color: #f12e1d !important; }

/* Cookie-плашка не должна перекрывать мобильную панель действий */
@media (max-width: 760px) { .cookie-consent { bottom: 50px !important; z-index: 997; } }

/* Оглавление: нумерация (в сбросе стилей сайта списки без маркеров) */
.rv-toc ol { list-style: decimal; }
.rv-toc li.rv-toc__sub { list-style: circle; }
.inner__content ul { list-style: disc; margin-left: 1.2em; }
.inner__content ol { list-style: decimal; margin-left: 1.2em; }
.rv-prose ul { list-style: disc; } .rv-prose ol { list-style: decimal; }

/* карточки: span-ы блочные, у статей — картинка и заголовок */
.rv-card__img, .rv-card__body, .rv-card__title, .rv-card__text { display: block; }
.rv-card__img img { display: block; }
.rv-card__title { word-break: break-word; }
.rv-cards > li { margin: 0; }

/* формы заявки вне главной: без наезда на соседние блоки */
body:not(.home) .sendorder { transform: none; margin: 40px 0; }
.sendorder .popup__warning { margin: 16px 0 0; text-align: center; }
.sendorder__form .form__wrap { min-width: 0; }
.inner__content::after { content: ""; display: block; clear: both; }
.inner__content img { max-width: 100%; height: auto; }
.inner__content p > img { display: block; margin-left: auto; margin-right: auto; }

/* длинный текст на главной в 2 колонки, как в оригинале */
.rv-prose--cols { max-width: none; column-count: 2; column-gap: 50px; text-align: left; }
.rv-prose--cols h2, .rv-prose--cols h3 { break-after: avoid; }
.rv-prose--cols h2:first-child { margin-top: 0; }
.rv-prose--cols ul, .rv-prose--cols ol, .rv-prose--cols table { break-inside: avoid; }
@media (max-width: 900px) { .rv-prose--cols { column-count: 1; column-gap: 0; } }
