/* Focused corrections to the existing design, not a replacement theme. */
img { max-width: 100%; }
#flvmenu li:focus-within > ul { display: block; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible { outline: 2px solid #0985E0; outline-offset: 3px; }
#sidebar_menu li.menu-section { position: relative; }
#sidebar_menu li.menu-section > a { padding-right: 35px; }
.section-toggle { position: absolute; top: 6px; right: 3px; width: 30px; height: 30px; border: 0; background: transparent; color: #0985E0; font-size: 22px; cursor: pointer; }
.menu-section-active2 > .section-toggle { color: white; }
#sidebar_menu a[aria-current="page"] { font-weight: bold; }
.form-status { margin: 12px 0 0; font-size: 14px; line-height: 1.4; }
.form-status a { color: inherit; text-decoration: underline; }
.form-status[hidden] { display: none; }
.search-content { width: 100% !important; float: none !important; min-height: 55vh; }
#site-search { display: flex; gap: 12px; max-width: 700px; margin: 24px 0; }
#site-search input { min-width: 0; flex: 1; padding: 12px; border: 1px solid #ccc; }
#search-results { list-style: none; padding: 0; }
#search-results li { padding: 18px 0; border-bottom: 1px solid #eee; }
#search-results a { font-size: 20px; color: #0985E0; }
/* Карта и блок «Свяжитесь с нами» рядом с ней — одной высоты (400 px, на телефоне тоже); текст и кнопка — по центру.
   Без :has(), чтобы работало и в старых браузерах: в .map_form обе колонки устроены одинаково. */
.map_form > .col-md-6 { display: flex; flex-direction: column; }
#contacts-map { flex: 1; height: 400px; min-height: 400px; overflow: hidden; }
/* Iframe выше карты на 170 px: под край уходит белая панель Яндекса с результатом поиска (её высота — 170 px, проверено 26.10.2026 в Chrome и Firefox). */
#contacts-map iframe { display: block; width: 100%; height: calc(100% + 170px); border: 0; }
.map_form .form { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 400px; box-sizing: border-box; }
/* Short service points on the first screen stay readable on one line. */
#slider .slider_form { border-radius: 16px; }
#slider .slider_content .slider_form { position: relative; border-color: transparent; }
#slider .slider_content .slider_form::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 12px;
  background-image:
    radial-gradient(circle, #0985e0 1.5px, transparent 1.6px),
    radial-gradient(circle, #0985e0 1.5px, transparent 1.6px),
    radial-gradient(circle, #0985e0 1.5px, transparent 1.6px),
    radial-gradient(circle, #0985e0 1.5px, transparent 1.6px);
  background-size: 7px 3px, 7px 3px, 3px 7px, 3px 7px;
  background-position: left top, left bottom, left top, right top;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  pointer-events: none;
}
/* Первый экран: вместо формы — телефон и кнопка звонка. */
#slider .hero-call { margin-top: 14px; }
#slider .hero-call__phone { display: block; margin-bottom: 16px; color: #0985e0; font-size: 1.5em; font-weight: 700; text-decoration: none; white-space: nowrap; }
#slider .hero-call .button { display: inline-block; }
#slider .hero-call .hero-form-note { margin-top: 14px; }
/* Use the same square check mark in the benefits strip on every page. */
#block_company_main .fa-check-circle-o::before { content: "\f046"; }
.sidebar-discounts .discount-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 16px 14px; border: 1px solid #d7e3ed; border-left: 4px solid #0985e0; background: #fff; }
.sidebar-discounts .discount-card__label { font-size: 15px; line-height: 1.3; }
.sidebar-discounts .discount-card__amount { flex: none; color: #0985e0; font-size: 21px; white-space: nowrap; }
#sidebar_prais .block { border: 2px dotted #0985e0; }
#index_photo img { cursor: zoom-in; }
#index_photo img:focus-visible { outline: 3px solid #0985e0; outline-offset: 2px; }
body.review-lightbox-open { overflow: hidden; }
.review-lightbox { position: fixed; inset: 0; width: max-content; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: 12px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 12px 45px rgba(0,0,0,.35); }
.review-lightbox::backdrop { background: rgba(0,0,0,.84); }
.review-lightbox img { display: block; width: auto; height: auto; max-width: calc(100vw - 48px); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); object-fit: contain; }
.review-lightbox__close { position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #0985e0; color: #fff; font: 32px/1 Arial,sans-serif; cursor: pointer; }
.review-lightbox__close:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
#slider .slider_content > .col:first-child { font-size: 24px; }
#slider .slider_content > .col:first-child li { white-space: nowrap; line-height: 1.1; }
@media (max-width: 768px) {
  #slider .slider_content > .col:first-child { font-size: clamp(12px, 3.5vw, 18px); }
  #slider .slider_content > .col:first-child li { padding-left: 22px; }
  #slider .slider_content > .col:first-child li i.fa { margin-left: -22px; }
  #header_nomer ,#header_nomer-2 { font-size: 18px; line-height: 1.2; }
  #header_top_address { padding: 6px 10px; box-sizing: border-box; }
  .header__mobile-wrapper { box-sizing: border-box; gap: 8px; }
  .header__mobile-middle { min-width: 0; }
  #header + #top_menu { top: auto; width: 100%; }
  #header.header--sticky + #top_menu { top: var(--mobile-header-height, 110px); }
  #flvmenu > ul { max-height: calc(100dvh - var(--mobile-header-height, 110px)); overflow-y: auto; }
  #content table { display: block; max-width: 100%; overflow-x: auto; }
  #content, #sidebar { min-width: 0; }
  #content img { height: auto; }
  #site-search { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 360px) {
  #slider .slider_content { padding: 20px 12px; }
  #slider .slider_content > .col:first-child { font-size: 12px; }
  #slider .slider_content > .col:first-child li { letter-spacing: -0.35px; }
}

/* ===== Рейтинговые звёзды: рисуются CSS (псевдоэлемент той же геометрии, что был у <img>), а не 30 000 тегов <img> ===== */
.advantages-reviews-star::before,
.reviews__star::before,
._review__stars > div::before {
  content: "";
  display: inline-block;
  background: url(/assets/images/zvezda-rejtinga.svg) center / contain no-repeat;
}
.advantages-reviews-star::before { height: 18px; width: 18px; margin-right: 5px; }
@media (min-width: 768px) { .advantages-reviews-star::before { height: 24px; width: 24px; } }
@media (min-width: 992px) { .advantages-reviews-star::before { height: 20px; width: 20px; } }
.reviews__star::before { height: 18px; width: 18px; }
@media (min-width: 992px) { .reviews__star::before { height: 24px; width: 24px; } }
._review__stars > div::before { height: 17px; width: 17px; }

/* Заголовки карточек («Примеры наших работ» и др.): без подчёркивания; при наведении — синий цвет меню (#0985E0) */
#content .boxes .box .text .title a,
#content .boxes .box .text .title a:hover,
#content .boxes .box .text .title a:focus,
#content_index .portfolio_index .box .text .title a,
#content_index .portfolio_index .box .text .title a:hover,
#content_index .portfolio_index .box .text .title a:focus { text-decoration: none; }
#content .boxes .box .text .title a:hover,
#content_index .portfolio_index .box .text .title a:hover { color: #0985E0; }

/* По требованию заказчика: на сайте нигде нет подчёркивания текста (ссылки, <u>, <ins>, наведение, фокус) */
*, *::before, *::after,
a, a:hover, a:focus, a:active, a:visited, u, ins, abbr[title] { text-decoration: none !important; }

/* Названия карточек (услуги на главной, «Примеры наших работ», портфолио): при наведении — синий #0985E0, как у активной ссылки */
.box .text .title a:hover,
.box .text .title a:focus,
#portfolio .title a:hover,
#portfolio .title a:focus { color: #0985E0 !important; }

/* Полоска под картинками карточек («Примеры наших работ» и др.) — синяя #0985E0, как у карточек услуг */
#content .boxes .img img,
#content_index .boxes .img img,
.boxes .img img { border-bottom-color: #0985E0; }

/* Пояснение к ценам над таблицами (вместо ссылки «Скачать прайс-лист») */
.prices__note { margin: 0 0 15px; font-size: 14px; line-height: 1.5; color: #555; }
.prices__info .prices__note { margin: 0; }
@media (max-width: 820px) { .prices__info { height: auto; } }

/* Блок «Отзывы наших клиентов на Авито» (вместо виджета с рейтингами карт) */
.reviews-avito { margin: 30px 0; }
.reviews-avito__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; margin-bottom: 15px; }
.reviews-avito__title { font-size: 24px; font-weight: 700; margin-right: 15px; }
.reviews-avito__all { font-size: 16px; color: #0985E0; }
.reviews-avito__note { margin: -5px 0 15px; color: #555; font-size: 15px; }
.reviews-avito__list { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 20px; }
.reviews-avito__list a { display: block; height: 320px; overflow: hidden; border: 1px solid #e3e3e3; border-radius: 8px; background: #fff; }
.reviews-avito__list img { display: block; width: 100%; height: auto; }
@media (max-width: 767px) {
	.reviews-avito { padding: 0 15px; }
	.reviews-avito__list { grid-template-columns: 1fr; }
	.reviews-avito__list a:nth-child(n+2) { display: none; }
}
